:root {
  color-scheme: dark;
  --ink: #0a1019;
  --night: #0d1520;
  --paper: #eee8dd;
  --muted: #aaa9a5;
  --gold: #d0a65c;
  --gold-pale: #efd39b;
  --red: #bd382f;
  --line: rgba(224, 190, 127, .25);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, sans-serif;
  font-family: var(--sans);
  background: var(--ink);
  color: var(--paper);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { color: #fff; background: rgba(189, 56, 47, .72); }

.skip-link { position: fixed; z-index: 50; top: 12px; left: 12px; padding: 12px 16px; color: #111; background: var(--gold-pale); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.masthead { position: absolute; z-index: 10; top: 0; left: 0; display: flex; align-items: flex-start; justify-content: space-between; width: 100%; min-height: 125px; padding: 18px clamp(24px, 6vw, 100px); }
.brand { display: inline-block; width: clamp(170px, 17vw, 260px); line-height: 0; filter: drop-shadow(0 6px 18px rgba(0,0,0,.45)); }
.brand img { display: block; width: 100%; height: auto; }
.site-nav { display: flex; gap: clamp(22px, 3.5vw, 54px); align-items: center; padding-top: 24px; color: rgba(245, 237, 222, .9); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.site-nav a, .site-footer nav a { transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible, .site-footer nav a:hover { color: var(--gold-pale); }
.menu-toggle { display: none; }
.site-nav .nav-download { padding: 12px 17px; border: 1px solid rgba(224,190,127,.55); color: var(--gold-pale); }
.site-nav .nav-download:hover, .site-nav .nav-download:focus-visible { color: #15120e; background: var(--gold-pale); }

.hero { position: relative; min-height: min(860px, 100svh); min-height: max(690px, 100svh); display: flex; align-items: center; overflow: hidden; isolation: isolate; background: #0b1522 url("assets/hero-village.jpg") center 54% / cover no-repeat; }
.hero-wash { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(7,12,20,.77) 0%, rgba(7,12,20,.56) 38%, rgba(7,12,20,.12) 77%), linear-gradient(0deg, rgba(7,12,20,.86), transparent 30%, rgba(7,12,20,.28)); }
.hero-copy { width: min(680px, 56vw); margin: 72px 0 0 clamp(28px, 10.4vw, 168px); }
.eyebrow { margin: 0 0 20px; color: var(--gold-pale); font-size: 10px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin: 0 9px 1px 0; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px rgba(189,56,47,.8); }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
.hero h1 { margin: 0; color: #f3ead8; font-size: clamp(56px, 8vw, 116px); line-height: .88; letter-spacing: -.055em; text-shadow: 0 8px 35px rgba(0,0,0,.35); }
.hero h1 em { color: var(--gold-pale); font-weight: 400; }
.hero-subtitle { display: flex; align-items: center; gap: 16px; margin: 20px 0 23px 4px; color: rgba(238,232,221,.88); font-family: var(--serif); font-size: clamp(12px, 1.1vw, 16px); letter-spacing: .43em; }
.hero-subtitle::before { content: ""; display: block; width: 46px; height: 1px; background: var(--gold); }
.hero-description { max-width: 430px; margin: 0 0 32px 4px; color: rgba(238,232,221,.78); font-size: 15px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-left: 3px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 49px; padding: 0 22px; border: 1px solid var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; transition: background .2s ease, color .2s ease, transform .2s ease; }
.button span { font-size: 16px; }
.button-primary { color: #17130d; background: linear-gradient(115deg, #d5a956, #f1d28e 52%, #b78339); box-shadow: 0 8px 28px rgba(0,0,0,.28); }
.button-primary:hover { transform: translateY(-2px); background: #f2d89e; }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: rgba(245,237,222,.88); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.text-link span { color: var(--gold-pale); font-size: 17px; transition: transform .2s ease; }
.text-link:hover span { transform: translate(3px, -2px); }
.hero-caption { position: absolute; right: clamp(26px, 7vw, 110px); bottom: 54px; color: rgba(241,229,207,.62); font-size: 9px; letter-spacing: .18em; }
.hero-caption span { color: var(--gold-pale); }
.scroll-cue { position: absolute; bottom: 0; left: 50%; display: block; width: 22px; height: 45px; border-left: 1px solid rgba(236,207,155,.6); transform: translateX(-50%); }
.scroll-cue span { position: absolute; top: 0; left: -1px; width: 1px; height: 20px; background: var(--gold-pale); animation: scroll 1.8s ease-in-out infinite; }
@keyframes scroll { 0% { transform: translateY(0); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(24px); opacity: 0; } }

.download-section { padding: 34px 0 4px; background: var(--ink); }
.download-panel { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 26px clamp(22px, 4vw, 54px); border: 1px solid var(--line); background: linear-gradient(112deg, #111c29, #0d141e 67%, #17191c); box-shadow: 0 18px 45px rgba(0,0,0,.18); }
.download-panel::before { position: absolute; top: -1px; left: 10%; width: 25%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-pale), transparent); content: ""; }
.download-mark { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid rgba(224,190,127,.55); border-radius: 50%; color: var(--gold-pale); font-family: var(--serif); font-size: 34px; line-height: 1; }
.download-copy .eyebrow { margin-bottom: 8px; font-size: 9px; }
.download-copy h2 { margin: 0 0 8px; color: #eee8dd; font-family: var(--serif); font-size: clamp(23px, 2.4vw, 32px); font-weight: 400; }
.download-copy > p:not(.eyebrow) { max-width: 650px; margin: 0 0 12px; color: #b1b3b2; font-size: 12px; line-height: 1.7; }
.download-meta { color: #8e969e; font-size: 9px; letter-spacing: .15em; }
.download-meta i { padding: 0 5px; color: var(--gold); font-style: normal; }
.download-button { white-space: nowrap; }

.section-shell { width: min(1280px, calc(100% - 64px)); margin: 0 auto; }
.world-section { padding-top: 110px; padding-bottom: 112px; }
.section-kicker { display: flex; align-items: center; gap: 16px; margin-bottom: 31px; color: var(--gold); font-size: 9px; font-weight: 600; letter-spacing: .23em; text-transform: uppercase; }
.section-kicker span:first-child { color: #8c8c8b; font-family: var(--serif); font-size: 13px; letter-spacing: .05em; }
.world-layout { display: grid; grid-template-columns: 1.15fr .8fr; align-items: end; gap: 8vw; margin-bottom: 48px; }
.world-heading h2, .stories-head h2, .beta-copy h2 { margin: 0; font-size: clamp(36px, 5vw, 66px); line-height: 1.06; letter-spacing: -.035em; }
.world-heading h2 em, .stories-head h2 em, .beta-copy h2 em { color: var(--gold-pale); font-weight: 400; }
.world-copy { max-width: 450px; padding-bottom: 5px; }
.world-copy p { margin-bottom: 22px; color: #b6b7b7; font-size: 14px; line-height: 1.9; }
.text-link-gold { color: var(--gold-pale); }
.world-panorama { height: clamp(230px, 32vw, 430px); background: #101a26 url("assets/story-path.jpg") center 56% / cover no-repeat; box-shadow: 0 24px 65px rgba(0,0,0,.24); }
.world-note { display: flex; align-items: center; gap: 14px; margin-top: 18px; color: #9e9e99; font-size: 9px; letter-spacing: .2em; }
.note-mark { color: var(--red); font-family: var(--serif); font-size: 18px; }
.note-line { flex: 1; height: 1px; background: var(--line); }

.stories-section { padding: 95px 0 108px; background: linear-gradient(180deg, #101925, #0c131d); }
.stories-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 48px; }
.stories-head .section-kicker { margin-bottom: 18px; }
.stories-head h2 { font-size: clamp(38px, 4.5vw, 58px); }
.story-filters { display: flex; flex-wrap: wrap; justify-content: end; gap: 5px; padding-bottom: 5px; }
.filter-button { padding: 10px 12px; border: 0; border-bottom: 1px solid transparent; color: #a8a8a5; background: transparent; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.filter-button:hover, .filter-button.is-active { border-color: var(--gold); color: var(--gold-pale); }
.stories-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-card { min-width: 0; padding: 0 clamp(16px, 2.2vw, 32px); border-left: 1px solid var(--line); animation: fade-in .4s ease both; }
.story-card:first-child { padding-left: 0; border-left: 0; }
.story-card:last-child { padding-right: 0; }
.story-image-wrap { position: relative; overflow: hidden; height: clamp(155px, 18vw, 230px); margin-bottom: 21px; background: #172333; }
.story-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.story-card:hover .story-image { transform: scale(1.035); }
.story-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; color: var(--gold); font-size: 9px; letter-spacing: .17em; text-transform: uppercase; }
.story-date { color: #858b91; letter-spacing: .07em; white-space: nowrap; }
.story-card h3 { margin: 0 0 12px; color: #eee8dd; font-family: var(--serif); font-size: clamp(20px, 2.1vw, 27px); font-weight: 400; line-height: 1.2; }
.story-card p { min-height: 74px; margin: 0 0 17px; color: #a9aaab; font-size: 12px; line-height: 1.8; }
.story-open { display: inline-flex; gap: 9px; padding: 0; border: 0; color: var(--gold-pale); background: none; font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.story-open span { transition: transform .2s ease; }
.story-open:hover span { transform: translateX(4px); }
.loading-note, .empty-note { grid-column: 1 / -1; color: var(--muted); font-family: var(--serif); font-size: 20px; }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.beta-band { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; min-height: 435px; overflow: hidden; background: #161a20; }
.beta-image { min-height: 435px; background: linear-gradient(90deg, transparent 72%, rgba(10,16,25,.62)), url("assets/lantern-festival.jpg") center 50% / cover no-repeat; }
.beta-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 64px clamp(32px, 6vw, 94px); background: radial-gradient(ellipse at 0 50%, rgba(28,37,49,.7), #111923 68%); }
.beta-copy h2 { margin-bottom: 18px; font-size: clamp(36px, 4.2vw, 58px); }
.beta-copy > p:not(.eyebrow) { max-width: 440px; margin-bottom: 25px; color: #b1b3b2; font-size: 13px; line-height: 1.8; }
.button-outline { color: var(--gold-pale); background: rgba(10,16,25,.34); }
.button-outline:hover { color: #15120e; background: var(--gold-pale); }
.beta-index { position: absolute; right: 30px; bottom: 25px; color: rgba(240,213,165,.55); font-family: var(--serif); font-size: 12px; letter-spacing: .16em; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 95px; padding: 22px clamp(24px, 6vw, 100px); border-top: 1px solid var(--line); color: #a5a6a5; background: #090e15; }
.footer-brand { color: var(--gold-pale); font-family: var(--serif); font-size: 15px; letter-spacing: .22em; white-space: nowrap; }
.footer-copy { font-size: 10px; line-height: 1.7; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 10px; white-space: nowrap; }
.story-dialog { width: min(560px, calc(100% - 32px)); padding: 44px; border: 1px solid rgba(218,183,119,.5); color: var(--paper); background: rgba(12,19,29,.98); box-shadow: 0 30px 100px rgba(0,0,0,.65); }
.story-dialog::backdrop { background: rgba(3,7,12,.78); backdrop-filter: blur(5px); }
.story-dialog h2 { margin: 0 0 8px; font-size: 34px; }
.dialog-date { color: var(--gold); font-size: 10px; letter-spacing: .16em; }
.dialog-summary { margin: 20px 0 0; color: #b8b9b9; font-size: 14px; line-height: 1.85; }
.dialog-close { position: absolute; top: 13px; right: 15px; width: 34px; height: 34px; border: 0; color: var(--gold-pale); background: transparent; font-size: 26px; cursor: pointer; }
.toast { position: fixed; z-index: 40; right: 20px; bottom: 20px; max-width: min(360px, calc(100% - 40px)); padding: 13px 17px; border-left: 2px solid var(--gold); color: var(--paper); background: #101823; box-shadow: 0 12px 35px rgba(0,0,0,.32); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 2px solid var(--gold-pale); outline-offset: 4px; }
@media (max-width: 900px) {
  .masthead { min-height: 100px; padding: 15px 25px; }
  .brand { width: 175px; }
  .site-nav { gap: 20px; font-size: 9px; }
  .hero { min-height: 760px; background-position: 57% center; }
  .hero-copy { width: min(620px, 70vw); margin-left: 7vw; }
  .world-layout { gap: 5vw; }
  .story-card { padding-inline: 17px; }
  .story-meta { align-items: flex-start; flex-direction: column; gap: 7px; }
  .site-footer { flex-wrap: wrap; }
  .footer-copy { flex: 1 1 55%; }
}
@media (max-width: 640px) {
  .masthead { min-height: 83px; align-items: flex-start; padding: 10px 19px; }
  .brand { width: 136px; }
  .menu-toggle { display: flex; position: relative; z-index: 12; flex-direction: column; gap: 5px; align-items: center; justify-content: center; width: 42px; height: 42px; margin-top: 4px; border: 1px solid var(--line); color: var(--paper); background: rgba(8,13,20,.62); cursor: pointer; }
  .menu-toggle span { display: block; width: 17px; height: 1px; background: var(--gold-pale); }
  .site-nav { position: absolute; top: 0; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 78px 24px 20px; border-bottom: 1px solid var(--line); background: rgba(7,12,19,.96); font-size: 11px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 15px 0; border-top: 1px solid rgba(224,190,127,.12); }
  .site-nav .nav-download { margin-top: 10px; padding: 14px 16px; border: 1px solid rgba(224,190,127,.45); text-align: center; }
  .hero { min-height: 760px; min-height: 100svh; max-height: 900px; align-items: end; background-position: 60% center; }
  .hero-wash { background: linear-gradient(0deg, rgba(7,12,20,.94), rgba(7,12,20,.55) 48%, rgba(7,12,20,.1)), linear-gradient(90deg, rgba(7,12,20,.35), transparent); }
  .hero-copy { width: auto; margin: 0 24px 105px; }
  .hero h1 { font-size: clamp(52px, 15vw, 78px); }
  .hero-description { max-width: 390px; font-size: 13px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-caption { right: 23px; bottom: 62px; }
  .scroll-cue { display: none; }
  .download-section { padding: 20px 0 0; }
  .download-panel { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 22px 18px; }
  .download-mark { width: 44px; height: 44px; font-size: 28px; }
  .download-copy h2 { font-size: 25px; }
  .download-copy > p:not(.eyebrow) { font-size: 12px; }
  .download-meta { font-size: 8px; letter-spacing: .1em; }
  .download-button { grid-column: 1 / -1; width: 100%; }
  .section-shell { width: calc(100% - 40px); }
  .world-section { padding-top: 75px; padding-bottom: 76px; }
  .world-layout { grid-template-columns: 1fr; gap: 22px; margin-bottom: 30px; }
  .world-heading h2, .stories-head h2 { font-size: 42px; }
  .world-copy p { font-size: 13px; }
  .world-panorama { height: 255px; }
  .stories-section { padding: 72px 0; }
  .stories-head { align-items: flex-start; flex-direction: column; gap: 22px; margin-bottom: 30px; }
  .story-filters { justify-content: flex-start; width: 100%; gap: 3px; }
  .filter-button { padding: 9px 8px; font-size: 9px; }
  .stories-grid { grid-template-columns: 1fr; gap: 29px; }
  .story-card, .story-card:first-child, .story-card:last-child { padding: 0 0 27px; border: 0; border-bottom: 1px solid var(--line); }
  .story-image-wrap { height: 230px; margin-bottom: 16px; }
  .story-meta { flex-direction: row; align-items: center; }
  .story-card p { min-height: 0; }
  .beta-band { grid-template-columns: 1fr; }
  .beta-image { min-height: 260px; }
  .beta-copy { padding: 50px 24px 58px; }
  .beta-copy h2 { font-size: 42px; }
  .beta-index { bottom: 18px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 13px; padding: 26px 22px; }
  .footer-copy { flex: auto; }
  .site-footer nav { gap: 17px; }
  .story-dialog { padding: 38px 24px 27px; }
  .story-dialog h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.account-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .8fr);
  gap: clamp(36px, 8vw, 112px);
  align-items: start;
  padding-block: clamp(76px, 10vw, 142px);
  border-top: 1px solid rgba(202, 158, 82, .2);
}
.account-heading { max-width: 560px; padding-top: 42px; }
.account-heading h2 { margin: 18px 0; color: #eee5d2; font: 500 clamp(38px, 5vw, 65px)/1.04 Georgia, serif; }
.account-heading h2 em { color: #dbb36c; }
.account-heading > p:last-child { max-width: 460px; color: #c3c0ba; line-height: 1.8; }
.account-card { min-width: 0; padding: clamp(20px, 3vw, 34px); border: 1px solid rgba(207, 164, 91, .58); background: linear-gradient(145deg, rgba(22, 24, 28, .97), rgba(7, 12, 19, .97)); box-shadow: 0 22px 70px rgba(0, 0, 0, .32); }
.account-tabs { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid rgba(206, 164, 91, .3); }
.account-tab { padding: 12px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: #aaa69d; cursor: pointer; font: inherit; }
.account-tab:hover, .account-tab.is-active { color: #e7c37e; }
.account-tab.is-active { border-bottom-color: #d8ae63; }
.account-message { display: none; margin-bottom: 17px; padding: 12px 14px; border: 1px solid rgba(202, 158, 82, .38); color: #e8d8b5; line-height: 1.5; }
.account-message.is-visible { display: block; }
.account-message.is-error { border-color: rgba(219, 105, 88, .6); color: #f0a091; }
.account-form { display: grid; gap: 15px; }
.account-form[hidden] { display: none; }
.account-form h3 { margin: 0; color: #e2bd74; font: 500 23px/1.25 Georgia, serif; }
.account-form p { margin: 0; color: #b9b6ae; line-height: 1.65; }
.account-form label { display: grid; gap: 7px; color: #d5cbb7; font-size: 13px; letter-spacing: .02em; }
.account-form input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid rgba(193, 156, 93, .45); border-radius: 0; outline: 0; background: #11151b; color: #f2ead9; font: inherit; }
.account-form input:focus { border-color: #e3b968; box-shadow: 0 0 0 2px rgba(227, 185, 104, .12); }
.account-form input[readonly] { color: #b7aa91; }
.account-form .button { justify-self: start; margin-top: 4px; cursor: pointer; font: inherit; }
.google-signin-button { min-height: 44px; }
.account-hint { padding-top: 8px; font-size: 13px; }
.account-text-button { justify-self: start; padding: 5px 0; border: 0; background: transparent; color: #d9b166; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 4px; }
#account-current-email { padding: 12px; border-left: 2px solid #cba35f; background: rgba(255, 255, 255, .035); }

@media (max-width: 850px) {
  .account-section { grid-template-columns: 1fr; gap: 28px; }
  .account-heading { padding-top: 0; }
  .account-card { max-width: 620px; width: 100%; }
}
@media (max-width: 520px) {
  .account-tabs { gap: 2px; }
  .account-tab { padding: 10px 8px; font-size: 13px; }
  .account-card { padding: 19px 15px; }
}
