:root {
  --primary: #B64B28;
  --primary-ink: #fff8f2;
  --accent: #0B6E69;
  --accent-deep: #085652;
  --background: #FFF8F2;
  --surface: #FFFFFF;
  --surface-2: #FCE8D7;
  --surface-3: #F6D7BE;
  --text: #312019;
  --muted: #5C4033;
  --border: #EBCDBA;
  --ink: #1F140F;
  --glass: rgba(255, 248, 242, 0.72);
  --shadow: 0 18px 40px rgba(49, 32, 25, 0.08);
  --radius: 2px;
  --header-h: 68px;
  --font: "Nunito Sans", "Noto Sans Devanagari", "Nunito Sans Fallback", system-ui, sans-serif;
  --max: 1180px;
}

@font-face {
  font-family: "Nunito Sans Fallback";
  src: local("Arial"), local("Helvetica"), local("system-ui");
  size-adjust: 100%;
  ascent-override: 99%;
  descent-override: 27%;
  line-gap-override: 0%;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--background);
  font-size: 18px;
  line-height: 1.7;
  min-width: 0;
}
img { display: block; width: 100%; max-width: 100%; height: auto; }
a { color: var(--accent-deep); text-underline-offset: 2px; }
.prose a { text-decoration: underline; }
button, .btn, .play-now { font-family: inherit; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.skip {
  position: absolute; left: 12px; top: -40px; background: var(--ink); color: #fff;
  padding: 8px 12px; z-index: 400;
}
.skip:focus { top: 12px; }
section[id] { scroll-margin-top: 84px; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; min-width: 0; }
.container-wide { width: min(1280px, calc(100% - 24px)); margin: 0 auto; min-width: 0; }

.site-header {
  position: sticky; top: 0; z-index: 320;
  background: rgba(255, 248, 242, 0.96);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  min-width: 0; white-space: nowrap;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 2px;
  background: var(--primary); color: var(--primary-ink);
  display: grid; place-items: center; font-weight: 800; letter-spacing: 0.02em;
}
.brand-name { font-weight: 800; letter-spacing: -0.02em; font-size: 17px; }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav a {
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px;
  white-space: nowrap;
}
.main-nav a[aria-current="page"] { color: var(--primary); }
.header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--primary-ink); text-decoration: none;
  font-weight: 800; letter-spacing: 0.06em; font-size: 13px;
  padding: 10px 16px; border-radius: 999px; white-space: nowrap;
}
.hamburger {
  display: none; border: 0; background: none; padding: 10px; cursor: pointer;
  position: fixed; top: 12px; right: 12px; z-index: 500;
  width: 44px; height: 44px; touch-action: manipulation;
}
.hamburger:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.hamburger span {
  display: block; height: 2px; margin: 6px 0; background: var(--ink); border-radius: 2px;
}
.mobile-drawer {
  display: none; position: fixed; inset: 0; z-index: 400;
  background: rgba(31, 20, 15, 0.45);
}
.mobile-drawer.open, .mobile-drawer.is-open { display: block; }
.drawer-panel {
  position: absolute; top: 0; right: 0; width: min(360px, calc(100vw - 56px)); height: 100%;
  background: var(--background); padding: 20px 20px 32px;
  display: flex; flex-direction: column; gap: 10px;
  overflow: auto; cursor: default;
}
.drawer-close {
  align-self: flex-end; margin-top: 48px;
  border: 1px solid var(--border); background: var(--surface);
  width: 44px; height: 44px; border-radius: 2px; font-size: 22px;
  cursor: pointer; pointer-events: auto; touch-action: manipulation;
  z-index: 510;
}
html.is-drawer-open, html.is-drawer-open body { overflow: hidden; }
.drawer-nav { list-style: none; margin: 8px 0 0; padding: 0; }
.drawer-nav li { border-bottom: 1px solid var(--border); }
.drawer-nav a {
  display: block; padding: 14px 4px; color: var(--ink); text-decoration: none;
  font-weight: 800;
}
.drawer-cta { margin-top: 16px; text-align: center; width: 100%; }

.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: calc(100dvh - var(--header-h));
  background: var(--background);
}
.hero-copy {
  padding: 48px 6vw 56px; display: flex; flex-direction: column; justify-content: center;
  min-width: 0;
}
.hero h1 {
  font-size: clamp(34px, 4.4vw, 58px); line-height: 1.08; letter-spacing: -0.035em;
  margin: 0 0 16px; color: var(--ink); max-width: 14ch;
}
.hero-lede { margin: 0 0 24px; max-width: 38ch; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 999px; font-weight: 800; text-decoration: none;
  white-space: nowrap; border: 1px solid transparent;
}
.btn-primary, .play-now {
  background: var(--primary); color: var(--primary-ink);
}
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--border);
}
.hero-media { position: relative; min-width: 0; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; min-height: 420px;
}
.glass-chip {
  position: absolute; left: 18px; bottom: 18px;
  background: var(--glass); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  padding: 10px 14px; color: var(--ink); font-size: 13px; font-weight: 700;
}

.band { padding: 72px 0; }
.band-paper { background: var(--surface); }
.band-warm { background: var(--surface-2); }
.band-ink { background: #2A1A14; color: #F8EFE7; }
.band-ink h2, .band-ink p { color: inherit; }
.section-h {
  font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.03em;
  margin: 0 0 14px; color: var(--ink); max-width: 22ch;
}
.lede { color: var(--muted); max-width: 62ch; margin: 0 0 28px; }

.age-bar {
  background: var(--ink); color: #F6E8DA; padding: 12px 0; font-size: 14px;
}
.age-bar .container { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.age-bar strong { color: #fff; }

.photo-notes {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
  align-items: start;
}
.note-card {
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 10px 10px 18px; transform: rotate(-1.2deg); position: relative;
}
.note-card:nth-child(2) { transform: rotate(1.4deg); margin-top: 28px; }
.note-card:nth-child(3) { transform: rotate(-0.4deg); }
.note-card img { aspect-ratio: 4/5; object-fit: cover; }
.ink-callout {
  position: absolute; right: 14px; top: 18px;
  background: var(--glass); border: 1px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(8px); padding: 6px 9px; font-size: 12px; font-weight: 800;
  color: var(--accent-deep);
}

.bound-sheet {
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(49,32,25,0.12);
  padding: 28px; position: relative;
}
.bound-sheet::before {
  content: ""; position: absolute; inset: 10px auto 10px -8px; width: 6px;
  background: var(--primary);
}
.sheet-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.sheet-col h3 { margin: 0 0 8px; font-size: 20px; }
.sheet-col p { margin: 0; color: var(--muted); }

.reveal-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px;
}
.reveal-item {
  border: 1px solid var(--border); background: var(--surface); padding: 0;
  position: relative; min-width: 0; cursor: pointer;
}
.reveal-item img { aspect-ratio: 16/10; object-fit: cover; }
.reveal-flap {
  position: absolute; inset: auto 12px 12px 12px;
  background: var(--glass); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.55); padding: 12px 14px;
  transform: translateY(12px); opacity: 0; transition: 180ms ease;
}
.reveal-item:hover .reveal-flap,
.reveal-item:focus-within .reveal-flap,
.reveal-item.is-revealed .reveal-flap { opacity: 1; transform: none; }
.reveal-item h3 { margin: 0 0 6px; font-size: 18px; }

.stepper {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.step-card, .data-card, .loose-card, .card {
  border: 1px solid var(--border); background: var(--surface); padding: 20px;
  border-radius: var(--radius); min-width: 0;
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent);
  color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 12px;
}
.process-map {
  display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 0 20px;
}
.process-map .spine { border-left: 2px solid var(--accent); padding-left: 20px; margin: 0; }
.process-map li { list-style: none; padding: 0 0 22px; }
.process-map strong { display: block; }

.dock {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px;
  align-items: start;
}
.dock-list { margin: 0; padding: 0; list-style: none; }
.dock-list li {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.dock-list span { font-weight: 800; color: var(--accent-deep); }

.split-edit {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px;
}
.split-edit img { aspect-ratio: 5/4; object-fit: cover; }

.gate {
  border: 2px solid var(--primary); background: #fff; padding: 28px;
}
.limiter {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.limiter article {
  background: var(--surface-2); border: 1px solid var(--border); padding: 18px;
}

.def-list { display: grid; gap: 0; }
.def-list div {
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.def-list dt { font-weight: 800; }

.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.data-table th, .data-table td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table th { background: var(--surface-2); }

.timeline { margin: 0; padding: 0; }
.timeline li {
  list-style: none; padding: 0 0 22px 22px; border-left: 2px solid var(--border);
}
.timeline strong { display: block; }

.faq-grid, .community { display: grid; gap: 10px; }
.q-item, details.faq-item {
  border: 1px solid var(--border); background: var(--surface); padding: 0 16px;
}
.q-item summary, .faq-item summary {
  cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none;
}
.q-item summary::-webkit-details-marker { display: none; }
.q-body, .faq-item p { color: var(--muted); padding-bottom: 14px; }

.register { margin: 0; padding: 0; }
.register li {
  list-style: none; display: grid; grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border);
}
.register time { font-weight: 800; color: var(--accent-deep); }

.term-rail {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.term-rail article { border-top: 3px solid var(--accent); padding-top: 12px; }

.colophon { font-size: 15px; color: var(--muted); max-width: 70ch; }
.omit-panel { background: var(--surface); border: 1px dashed var(--border); padding: 24px; }
.quote-band { font-size: 24px; line-height: 1.35; max-width: 28ch; margin: 0; color: var(--ink); }

.cta-banner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); padding: 28px;
}
.page-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px;
  padding: 48px 0 20px; align-items: center;
}
.page-hero img { aspect-ratio: 16/10; object-fit: cover; }
.page-hero h1 {
  font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 14px;
}
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: inherit; }
.prose { max-width: 70ch; }
.prose p { margin: 0 0 16px; }
.prose h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; margin: 36px 0 12px; }
.prose h3 { font-size: 20px; margin: 24px 0 8px; }
.inline-image-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px;
  margin: 28px 0; align-items: center;
}
.inline-image-row img {
  width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover;
  border: 1px solid var(--border);
}
figure { margin: 28px 0; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

.related-list { margin: 0; padding: 0; }
.related-list li {
  list-style: none; padding: 12px 0; border-bottom: 1px solid var(--border);
}
.related-list a { font-weight: 800; text-decoration: none; color: var(--ink); }

.site-footer {
  background: #2A1A14; color: #F3E4D6; padding: 48px 0 28px; margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 28px;
}
.site-footer a { color: #F3E4D6; text-decoration: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer h2 { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-note { margin-top: 28px; font-size: 13px; color: #D9C2B0; }

.mobile-sticky {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 260;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,248,242,0.96); border-top: 1px solid var(--border);
}
.mobile-sticky .play-now {
  display: flex; width: 100%; padding: 14px 16px; border-radius: 999px;
  justify-content: center; text-decoration: none; font-weight: 800;
  letter-spacing: 0.08em;
}

.band, .card, .data-card, .step-card, .loose-card { min-width: 0; }
.grid-child, .hero > *, .split-edit > *, .dock > *, .reveal-grid > *,
.photo-notes > *, .sheet-grid > *, .page-hero > *, .inline-image-row > * { min-width: 0; }

@media (max-width: 1023px) {
  .main-nav, .header-cta { display: none; }
  .hamburger { display: block; }
  html.is-drawer-open .site-header { position: static; z-index: auto; }
  html.is-drawer-open .hamburger span { opacity: 0; }
  html.is-drawer-open .hamburger { transition: background-color .18s ease; }
  html.is-drawer-open .hamburger:hover { background-color: rgba(31, 20, 15, 0.06); }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0; max-height: none;
  }
  .hero-media { order: -1; }
  .hero-media img { min-height: 220px; max-height: 280px; }
  .hero-copy { padding: 28px 20px 36px; }
  .hero { max-height: 720px; }
  .photo-notes, .sheet-grid, .stepper, .term-rail, .limiter, .footer-grid,
  .reveal-grid, .dock, .split-edit, .page-hero, .inline-image-row, .cta-banner {
    grid-template-columns: minmax(0, 1fr);
  }
  .note-card, .note-card:nth-child(2), .note-card:nth-child(3) {
    transform: none; margin-top: 0;
  }
  .def-list div, .dock-list li, .register li {
    grid-template-columns: minmax(0, 1fr);
  }
  .mobile-sticky { display: block; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .hero h1 { font-size: 32px; }
}

@media (max-width: 430px) {
  .hero { min-height: 480px; max-height: 720px; }
  .hero-copy { padding: 20px 16px 28px; }
  .container { width: min(var(--max), calc(100% - 24px)); }
}

@media (prefers-reduced-transparency: reduce) {
  .glass-chip, .ink-callout, .reveal-flap { background: #FFF8F2; backdrop-filter: none; }
}
