:root {
  --green: #16251b;
  --green-deep: #101c15;
  --green-light: #213326;
  --cream: #f5f1cf;
  --cream-bright: #fffbe5;
  --ink: #18231b;
  --muted: #a9ad98;
  --line: rgba(245, 241, 207, 0.22);
  --page: min(86vw, 1240px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--green);
  color: var(--cream);
  font-family: "KingHwa_OldSong", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cream-bright);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 92px;
  padding: 18px 5vw;
  background: linear-gradient(to bottom, rgba(22, 37, 27, 0.96), rgba(22, 37, 27, 0));
}

.logo-link { justify-self: start; width: 42px; height: 48px; }
.logo-link img, .footer-logo img { width: 100%; height: 100%; object-fit: contain; }

.desktop-nav { display: flex; align-items: center; gap: clamp(20px, 2.3vw, 38px); font-size: 14px; }
.desktop-nav a,
.desktop-nav button { position: relative; padding: 0; border: 0; background: none; color: inherit; white-space: nowrap; cursor: pointer; }
.desktop-nav a::after,
.desktop-nav button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transition: right 180ms ease;
}
.desktop-nav a:hover::after,
.desktop-nav button:hover::after { right: 0; }

.header-cta,
.primary-button {
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.header-cta {
  justify-self: end;
  padding: 11px 20px;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
}

.header-cta:hover,
.primary-button:hover { transform: translateY(-2px); background: var(--cream-bright); }

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  padding: 92px 5vw 176px;
}

.hero-copy { position: relative; z-index: 3; text-align: center; }
.hero h1 {
  margin: 0 0 26px;
  font-size: clamp(54px, 5.4vw, 78px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.015em;
}

.hero-step {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 15px;
}
.hero-step span { padding: 3px 11px; border: 1px solid var(--line); border-radius: 99px; }
.hero-step strong { color: var(--cream); font-weight: 400; }

.primary-button {
  min-width: 156px;
  padding: 14px 26px;
  background: var(--cream);
  color: var(--ink);
}

.hero-collage { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.framed-photo {
  position: absolute;
  margin: 0;
  padding: 0;
  background: url("./assets/photo-frame.webp") center / 100% 100% no-repeat;
  box-shadow: 0 20px 35px rgba(3, 10, 6, 0.38);
}
.framed-photo img { position: absolute; top: 5.1%; left: 5.8%; width: 88.4%; height: 73.4%; max-width: none; object-fit: cover; border-radius: 2px; filter: saturate(0.9) sepia(0.05); }
.photo-one { width: clamp(210px, 18vw, 290px); aspect-ratio: 1002 / 1219; left: -36px; bottom: -70px; transform: rotate(8deg); }
.photo-two { z-index: 2; width: clamp(180px, 15vw, 245px); aspect-ratio: 1002 / 1219; left: 11%; bottom: -126px; transform: rotate(-8deg); }
.photo-three { z-index: 3; width: clamp(170px, 14vw, 226px); aspect-ratio: 1002 / 1219; left: 23%; bottom: -145px; transform: rotate(9deg); }
.hero-book { position: absolute; height: auto; object-fit: contain; filter: drop-shadow(0 26px 28px rgba(3, 10, 6, 0.35)); }
.book-white { z-index: 2; width: clamp(270px, 23vw, 380px); right: 8%; bottom: -160px; transform: rotate(-7deg); }
.book-red { z-index: 3; width: clamp(250px, 21vw, 350px); right: -43px; bottom: -60px; transform: rotate(8deg); }

.section-cue {
  position: absolute;
  z-index: 4;
  bottom: 34px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
  transform: translateX(-50%);
}

.how-section { padding: 170px 7vw 120px; background: var(--green-deep); }
.steps-list { width: min(980px, 100%); margin: 0 auto; }
.step-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 45px;
  min-height: 275px;
  padding: 44px 0 58px;
  border-top: 1px solid var(--line);
}
.step-item:last-child { border-bottom: 1px solid var(--line); }
.step-item > span { color: var(--muted); font-size: 14px; }
.step-item h3 { max-width: 750px; margin: -12px 0 23px; font-size: clamp(40px, 4.2vw, 66px); font-weight: 400; line-height: 1.12; }
.step-item p { max-width: 610px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.9; }

.banner-section { position: relative; height: min(76vh, 760px); overflow: hidden; }
.banner-section::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 12, 9, 0.02), rgba(7, 12, 9, 0.72)); }
.banner-section img { width: 100%; height: 100%; object-fit: cover; object-position: center 52%; transform: scale(1.015); }
.banner-section p { position: absolute; z-index: 2; left: 7vw; bottom: 55px; max-width: 750px; margin: 0; font-size: clamp(34px, 4vw, 62px); line-height: 1.16; }

.stories-section { padding: 150px 6vw 165px; background: var(--green); }
.section-intro { display: grid; grid-template-columns: 1fr 2.1fr; gap: 36px; width: var(--page); margin: 0 auto 100px; }
.section-intro > p, .our-story-copy > p, .contact-copy > p:first-child { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.section-intro h2 { margin: 0; font-size: clamp(44px, 5vw, 74px); font-weight: 400; line-height: 1.12; }
.section-intro > span { grid-column: 2; max-width: 520px; color: var(--muted); font-size: 17px; }

.chapter-tabs { display: flex; gap: 10px; width: var(--page); margin: 0 auto 30px; overflow-x: auto; scrollbar-width: none; }
.chapter-tabs::-webkit-scrollbar { display: none; }
.chapter-tabs button {
  flex: 0 0 auto;
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.chapter-tabs button.is-active { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.question-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; width: var(--page); margin: 0 auto; }
.question-card {
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--green-light);
}
.question-card > p { margin: 0; color: var(--muted); font-size: 13px; }
.question-card h3 { margin: auto 0 16px; font-size: clamp(31px, 3vw, 46px); font-weight: 400; line-height: 1.18; }
.question-card > span { min-height: 55px; color: var(--muted); }
.question-card button { display: flex; justify-content: space-between; width: 100%; margin-top: 34px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 99px; background: transparent; cursor: pointer; }
.question-card button:hover { background: var(--cream); color: var(--ink); }
.question-card b { font-weight: 400; }

.our-story-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  gap: 7vw;
  min-height: 850px;
  padding: 130px 8vw;
  background: var(--cream);
  color: var(--ink);
}
.our-story-copy h2 { margin: 20px 0 42px; font-size: clamp(46px, 5.1vw, 74px); font-weight: 400; line-height: 1.1; }
.our-story-copy > p { color: rgba(24, 35, 27, 0.58); }
.story-text { max-width: 580px; color: rgba(24, 35, 27, 0.76); font-size: 17px; line-height: 2; }
.story-text p { margin: 0 0 18px; }
.text-button { margin-top: 20px; padding: 0 0 7px; border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--ink); cursor: pointer; }
.story-book { justify-self: center; width: min(480px, 100%); transform: rotate(2.5deg); filter: drop-shadow(0 26px 26px rgba(32, 27, 16, 0.2)); }
.story-book img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px 12px 12px 4px; }

.faq-section { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 8vw; padding: 150px 7vw; background: var(--green-deep); }
.faq-section > h2 { margin: 0; font-size: clamp(50px, 6vw, 86px); font-weight: 400; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-weight: 400; }
.faq-item button { display: flex; justify-content: space-between; gap: 30px; width: 100%; padding: 25px 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.faq-answer { padding: 0 55px 28px 0; color: var(--muted); }
.faq-answer p { margin: 0; }

.site-footer { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 45px; padding: 60px 6vw 42px; border-top: 1px solid var(--line); background: var(--green-deep); }
.footer-logo { width: 58px; height: 72px; }
.site-footer nav { display: flex; justify-self: end; gap: 28px; font-size: 14px; }
.site-footer nav button { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.site-footer > p { grid-column: 1 / -1; margin: 38px 0 0; color: var(--muted); font-size: 12px; }
.site-footer > p a { text-decoration: underline; text-underline-offset: 3px; }

.qr-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(5, 10, 7, 0.76); backdrop-filter: blur(12px); opacity: 0; visibility: hidden; transition: opacity 220ms ease, visibility 220ms ease; }
.qr-overlay.is-open { opacity: 1; visibility: visible; }
.qr-dialog { position: relative; width: min(440px, 100%); padding: 42px; border-radius: 22px; background: var(--cream); color: var(--ink); text-align: center; box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42); transform: translateY(16px) scale(0.98); transition: transform 220ms ease; }
.qr-overlay.is-open .qr-dialog { transform: translateY(0) scale(1); }
.qr-close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border: 1px solid rgba(24, 35, 27, 0.2); border-radius: 50%; background: transparent; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.qr-dialog > p:first-of-type { margin: 0 0 8px; color: rgba(24, 35, 27, 0.58); font-size: 13px; }
.qr-dialog h2 { margin: 0 0 28px; font-size: 30px; font-weight: 400; }
.qr-placeholder { display: grid; place-items: center; width: 230px; height: 230px; margin: 0 auto; padding: 25px; border: 1px dashed rgba(24, 35, 27, 0.35); background: rgba(255, 255, 255, 0.5); }
.qr-placeholder span { font-size: 23px; }
.qr-placeholder small { display: block; margin-top: 8px; color: rgba(24, 35, 27, 0.5); }
.qr-placeholder img { width: 100%; height: 100%; object-fit: contain; }
.qr-note { margin: 22px 0 0; color: rgba(24, 35, 27, 0.66); font-size: 14px; }
.contact-dialog { width: min(500px, 100%); text-align: left; }
.contact-dialog > p:first-of-type,
.contact-dialog h2 { text-align: center; }
.contact-list { margin: 0; border-top: 1px solid rgba(24, 35, 27, 0.18); }
.contact-list div { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid rgba(24, 35, 27, 0.18); }
.contact-list dt { color: rgba(24, 35, 27, 0.58); }
.contact-list dd { margin: 0; text-align: right; }
.contact-list a { text-decoration: underline; text-underline-offset: 3px; }
.follow-label { margin: 24px 0 12px; text-align: center; }
.follow-placeholder { display: grid; place-items: center; width: 160px; height: 160px; margin: 0 auto; padding: 18px; border: 1px dashed rgba(24, 35, 27, 0.35); background: rgba(255, 255, 255, 0.5); text-align: center; }
.follow-placeholder small { color: rgba(24, 35, 27, 0.5); }
.follow-placeholder img { width: 100%; height: 100%; object-fit: contain; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1000px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .question-grid { grid-template-columns: 1fr 1fr; }
  .question-card:last-child { grid-column: 1 / -1; }
  .our-story-section { grid-template-columns: 1fr 1fr; gap: 5vw; padding-inline: 6vw; }
}

@media (max-width: 700px) {
  :root { --page: 100%; }
  .site-header { height: 76px; padding: 13px 20px; }
  .logo-link { width: 35px; height: 42px; }
  .header-cta { padding: 9px 15px; font-size: 13px; }
  .hero { display: block; min-height: 800px; padding: 205px 22px 250px; }
  .hero-copy { max-width: 355px; text-align: left; }
  .hero h1 { margin-bottom: 24px; font-size: 42px; line-height: 1.14; letter-spacing: -0.015em; }
  .hero-step { justify-content: flex-start; flex-wrap: wrap; margin-bottom: 20px; }
  .primary-button { min-width: 145px; padding: 12px 22px; }
  .section-cue { display: none; }
  .photo-one { width: 155px; left: -45px; bottom: -2px; }
  .photo-two { width: 145px; left: 15%; bottom: -48px; }
  .photo-three { display: none; }
  .book-white { width: 185px; right: 5%; bottom: -89px; }
  .book-red { width: 172px; right: -56px; bottom: 7px; }
  .how-section { padding: 100px 22px 70px; }
  .step-item { grid-template-columns: 1fr; gap: 22px; min-height: auto; padding: 42px 0 58px; }
  .step-item h3 { margin: 0 0 17px; font-size: 41px; }
  .step-item p { font-size: 16px; }
  .banner-section { height: 68vh; min-height: 490px; }
  .banner-section p { left: 22px; right: 22px; bottom: 32px; font-size: 38px; }
  .stories-section { padding: 100px 22px 110px; }
  .section-intro { grid-template-columns: 1fr; gap: 17px; margin-bottom: 64px; }
  .section-intro h2 { font-size: 44px; }
  .section-intro > span { grid-column: 1; }
  .chapter-tabs { margin-bottom: 22px; }
  .chapter-tabs button { padding: 8px 16px; }
  .question-grid { grid-template-columns: 1fr; }
  .question-card, .question-card:last-child { grid-column: auto; min-height: 335px; padding: 25px; }
  .our-story-section { grid-template-columns: 1fr; gap: 65px; min-height: auto; padding: 100px 22px; }
  .our-story-copy h2 { font-size: 48px; }
  .story-book { width: min(360px, 88%); }
  .faq-section { grid-template-columns: 1fr; gap: 48px; padding: 100px 22px; }
  .faq-section > h2 { font-size: 55px; }
  .faq-item button { padding: 22px 0; }
  .site-footer { grid-template-columns: 1fr; align-items: start; gap: 30px; padding: 55px 22px 35px; }
  .site-footer nav { justify-self: start; flex-wrap: wrap; gap: 13px 22px; }
  .site-footer > p { grid-column: 1; margin-top: 18px; line-height: 1.8; }
  .qr-dialog { padding: 40px 24px 30px; }
  .qr-placeholder { width: 210px; height: 210px; }
  .contact-list div { grid-template-columns: 96px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
