/* Miền Tây 360 — Coming soon. Modern Mekong Heritage. */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/playfair-display-vietnamese-600-normal.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/playfair-display-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/playfair-display-vietnamese-400-italic.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/playfair-display-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/be-vietnam-pro-vietnamese-400-normal.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/be-vietnam-pro-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f3ebdd;      /* giấy dó, nắng chiều */
  --paper-deep: #e9dcc6;
  --ink: #1f2e25;        /* lá dừa nước sẫm */
  --muted: #55665a;
  --silt: #8a4a24;       /* phù sa */
  --sun: #c7773d;
  --serif: "Playfair Display", "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background:
    radial-gradient(120% 70% at 50% 0%, #f8f2e7 0%, transparent 60%),
    radial-gradient(90% 60% at 50% 110%, var(--paper-deep) 0%, transparent 70%),
    var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.stage {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding:
    max(3rem, env(safe-area-inset-top))
    max(1.5rem, env(safe-area-inset-right))
    max(4rem, env(safe-area-inset-bottom))
    max(1.5rem, env(safe-area-inset-left));
  text-align: center;
}

/* Mark: mặt trời lặn trên sông, chiếc xuồng nhỏ */
.mark {
  width: min(15rem, 66vw);
  height: auto;
  margin-bottom: clamp(1.75rem, 5vh, 2.75rem);
  overflow: visible;
}
.sun { fill: var(--sun); opacity: .92; }
.horizon { stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; opacity: .55; }
.boat path { fill: var(--ink); }
.boat .oar { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; }
.waves path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.1;
  stroke-linecap: round;
  opacity: .5;
}
.waves path:nth-child(2) { opacity: .34; }
.waves path:nth-child(3) { opacity: .2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  margin: 0 0 1.1rem;
  font-size: .78rem;
  line-height: 1.6;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--silt);
  padding-left: .32em; /* bù letter-spacing để căn giữa thật */
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

.title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 13vw, 6.25rem);
  line-height: 1.12;
  letter-spacing: -.012em;
  color: var(--ink);
  text-wrap: balance;
}
.title .nw { white-space: nowrap; }
.title .num {
  color: var(--silt);
  font-variant-numeric: lining-nums;
}

.lede {
  max-width: 30rem;
  margin: clamp(1.1rem, 3vh, 1.6rem) 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 4.6vw, 1.5rem);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: balance;
}
.br { display: none; }
.lede a { color: var(--silt); text-underline-offset: .25em; }

/* Điện thoại xoay ngang / màn hình thấp */
@media (max-height: 30rem) {
  .stage { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .mark { width: 8.5rem; margin-bottom: .9rem; }
  .title { font-size: clamp(2.4rem, 9vh + 1rem, 4rem); }
  .lede { margin-top: .6rem; }
}

@media (min-width: 40rem) {
  .br { display: inline; }
  .eyebrow { font-size: .82rem; }
  .eyebrow::before,
  .eyebrow::after { width: 2.5rem; }
}

/* Chuyển động nhẹ: hiện dần, sóng lăn tăn */
@media (prefers-reduced-motion: no-preference) {
  .mark, .eyebrow, .title, .lede {
    opacity: 0;
    animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) forwards;
  }
  .eyebrow { animation-delay: .15s; }
  .title   { animation-delay: .3s; }
  .lede    { animation-delay: .5s; }

  .waves path { animation: drift 7s ease-in-out infinite alternate; }
  .waves path:nth-child(2) { animation-duration: 9s; animation-direction: alternate-reverse; }
  .waves path:nth-child(3) { animation-duration: 11s; }
  .boat { animation: bob 6s ease-in-out infinite alternate; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes drift {
  from { transform: translateX(-6px); }
  to   { transform: translateX(6px); }
}
@keyframes bob {
  from { transform: translate(-3px, 0); }
  to   { transform: translate(3px, .6px); }
}
