@font-face {
  font-family: 'Welcome Serif';
  src: url('/fonts/playfair-regular-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Welcome Serif';
  src: url('/fonts/playfair-regular-vietnamese.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  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: 'Welcome Sans';
  src: url('/fonts/jakarta-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Welcome Sans';
  src: url('/fonts/jakarta-vietnamese.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  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;
}

:root {
  color-scheme: dark;
  --welcome-bg: #121315;
  --welcome-ink: #f3f0ed;
  --welcome-muted: #aaa6a2;
  --welcome-quiet: #77736f;
  --welcome-line: rgba(240, 234, 229, 0.18);
  --welcome-accent: #c9807a;
  --welcome-panel: rgba(255, 255, 255, 0.035);
  --welcome-focus: #e49c95;
  font-family: 'Welcome Sans', 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--welcome-bg);
  color: var(--welcome-ink);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--welcome-bg); }
body { min-width: 320px; min-height: 100dvh; margin: 0; background: var(--welcome-bg); color: var(--welcome-ink); }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--welcome-focus); outline-offset: 4px; }
[hidden] { display: none !important; }

.welcome-shell {
  position: relative;
  display: flex;
  width: min(100%, 1600px);
  min-height: 100dvh;
  flex-direction: column;
  margin: 0 auto;
  padding: clamp(24px, 4.5vw, 62px) clamp(24px, 6.2vw, 96px) 24px;
  isolation: isolate;
}

.welcome-shell::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 74% 50%, rgba(104, 48, 57, 0.15), transparent 38%);
  content: '';
  pointer-events: none;
}

.welcome-masthead, .welcome-brand { display: flex; align-items: center; }
.welcome-masthead { min-height: 42px; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--welcome-line); padding-bottom: 22px; }
.welcome-brand { gap: 11px; color: var(--welcome-ink); text-decoration: none; }
.welcome-brand-name { font-family: 'Welcome Serif', Georgia, serif; font-size: 1.16rem; letter-spacing: -0.045em; }
.welcome-brand-divider { color: var(--welcome-accent); font-size: 1rem; }
.welcome-brand-type, .welcome-edition { color: var(--welcome-muted); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.16em; }
.welcome-edition { margin: 0; text-align: right; }
.welcome-edition span { color: var(--welcome-accent); padding: 0 5px; }

.welcome-layout {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.9fr);
  align-items: center;
  gap: clamp(56px, 8vw, 132px);
  padding: clamp(64px, 9vh, 112px) 0 clamp(62px, 8vh, 100px);
}

.welcome-copy { max-width: 720px; }
.welcome-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 27px; color: var(--welcome-muted); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em; }
.welcome-kicker-rule { width: 30px; height: 1px; background: var(--welcome-accent); }
.welcome-copy h1 { margin: 0; color: var(--welcome-ink); font-family: 'Welcome Serif', Georgia, serif; font-size: clamp(4.7rem, 9vw, 8.3rem); font-weight: 400; letter-spacing: -0.075em; line-height: 0.99; text-wrap: balance; }
.welcome-copy h1 em { color: var(--welcome-accent); font-style: normal; }
.welcome-description { max-width: 430px; margin: 28px 0 0; color: var(--welcome-muted); font-size: clamp(0.88rem, 1.2vw, 1rem); line-height: 1.75; text-wrap: pretty; }

.preview-access { margin-top: 36px; }
.preview-trigger { display: inline-flex; min-height: 54px; align-items: center; gap: 36px; padding: 0 18px; border: 1px solid rgba(201, 128, 122, 0.75); background: transparent; color: var(--welcome-ink); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.035em; cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease; }
.preview-trigger:hover { border-color: var(--welcome-accent); background: rgba(201, 128, 122, 0.12); }
.preview-trigger:active, .preview-submit:active { transform: translateY(1px) scale(0.99); }
.preview-trigger-arrow { color: var(--welcome-accent); font-size: 1rem; }
.preview-form { width: min(100%, 460px); margin-top: 4px; padding: 22px; border: 1px solid var(--welcome-line); background: var(--welcome-panel); }
.preview-form label { display: block; margin-bottom: 10px; color: var(--welcome-muted); font-size: 0.63rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.preview-form-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.preview-form input { min-width: 0; min-height: 48px; padding: 0 13px; border: 1px solid rgba(240, 234, 229, 0.24); border-radius: 0; background: rgba(0, 0, 0, 0.18); color: var(--welcome-ink); font-size: 0.8rem; }
.preview-form input::placeholder { color: var(--welcome-quiet); }
.preview-submit { min-width: 100px; min-height: 48px; padding: 0 14px; border: 0; background: var(--welcome-accent); color: #191616; font-size: 0.72rem; font-weight: 760; cursor: pointer; transition: filter 180ms ease, transform 180ms ease; }
.preview-submit:hover { filter: brightness(1.08); }
.preview-submit:disabled { cursor: wait; opacity: 0.68; }
.preview-status { min-height: 1.4em; margin-top: 10px; color: var(--welcome-muted); font-size: 0.72rem; line-height: 1.45; }
.preview-status[data-state='error'] { color: #f09a91; }
.preview-status[data-state='success'] { color: #b7d5bf; }

.countdown-panel { position: relative; padding: 26px 0 24px 32px; border-left: 1px solid var(--welcome-line); }
.countdown-heading, .countdown-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.countdown-heading { margin-bottom: 35px; color: var(--welcome-muted); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.17em; }
.countdown-target { color: var(--welcome-quiet); font-variant-numeric: tabular-nums; text-align: right; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.5vw, 21px); }
.countdown-unit { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 10px; }
.countdown-value { color: var(--welcome-ink); font-family: 'Welcome Serif', Georgia, serif; font-size: clamp(2.75rem, 5.5vw, 5.15rem); font-variant-numeric: tabular-nums; letter-spacing: -0.065em; line-height: 1; }
.countdown-label { color: var(--welcome-quiet); font-size: 0.52rem; font-weight: 700; letter-spacing: 0.16em; }
.countdown-footer { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--welcome-line); }
.countdown-location { color: var(--welcome-ink); font-size: 0.63rem; font-weight: 760; letter-spacing: 0.12em; }
.countdown-offset { color: var(--welcome-accent); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.11em; text-align: right; }
.countdown-note { margin-top: 13px; color: var(--welcome-quiet); font-size: 0.66rem; line-height: 1.6; }

.welcome-footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid var(--welcome-line); color: var(--welcome-quiet); font-size: 0.52rem; font-weight: 700; letter-spacing: 0.14em; line-height: 1.6; }
.welcome-footer span:last-child { text-align: right; }

@media (max-width: 960px) {
  .welcome-layout { grid-template-columns: minmax(0, 1fr); gap: 64px; padding: 74px 0 68px; }
  .welcome-copy { max-width: 740px; }
  .welcome-copy h1 { font-size: clamp(4.5rem, 12vw, 7.6rem); }
  .countdown-panel { width: min(100%, 660px); }
}

@media (max-width: 600px) {
  .welcome-shell { padding: 22px 21px 18px; }
  .welcome-masthead { align-items: flex-start; padding-bottom: 17px; }
  .welcome-brand { gap: 7px; }
  .welcome-brand-type { max-width: 80px; font-size: 0.48rem; line-height: 1.5; }
  .welcome-brand-name { font-size: 1.04rem; }
  .welcome-edition { max-width: 122px; font-size: 0.49rem; line-height: 1.6; }
  .welcome-layout { gap: 53px; padding: 62px 0 58px; }
  .welcome-kicker { margin-bottom: 22px; font-size: 0.56rem; }
  .welcome-copy h1 { font-size: clamp(4.1rem, 16vw, 6.1rem); letter-spacing: -0.08em; }
  .welcome-description { max-width: 34ch; margin-top: 21px; font-size: 0.86rem; }
  .preview-access { margin-top: 28px; }
  .preview-trigger { min-height: 50px; }
  .preview-form { padding: 16px; }
  .preview-form-row { grid-template-columns: minmax(0, 1fr); }
  .preview-submit { width: 100%; }
  .countdown-panel { padding: 22px 0 20px 17px; }
  .countdown-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 27px; font-size: 0.53rem; }
  .countdown-target { text-align: left; }
  .countdown-grid { gap: 7px; }
  .countdown-value { font-size: clamp(2.35rem, 11vw, 4rem); }
  .countdown-label { font-size: 0.46rem; letter-spacing: 0.1em; }
  .countdown-footer { align-items: flex-start; flex-direction: column; gap: 9px; margin-top: 25px; }
  .countdown-offset { text-align: left; }
  .welcome-footer { align-items: flex-start; flex-direction: column; gap: 7px; font-size: 0.47rem; }
  .welcome-footer span:last-child { text-align: left; }
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --welcome-bg: #f0efed;
    --welcome-ink: #222225;
    --welcome-muted: #686669;
    --welcome-quiet: #89868a;
    --welcome-line: rgba(34, 34, 37, 0.18);
    --welcome-accent: #8d3b47;
    --welcome-panel: rgba(255, 255, 255, 0.44);
    --welcome-focus: #8d3b47;
  }
  .welcome-shell::before { background: radial-gradient(ellipse at 74% 50%, rgba(141, 59, 71, 0.1), transparent 40%); }
  .preview-form input { background: rgba(255, 255, 255, 0.54); }
  .preview-status[data-state='success'] { color: #31583a; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
