@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/manrope-400.woff2") format("woff2");
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/manrope-500.woff2") format("woff2");
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/manrope-600.woff2") format("woff2");
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/manrope-700.woff2") format("woff2");
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-800.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans Devanagari";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/noto-devanagari-400.woff2") format("woff2");
  unicode-range: U+0900-097F, U+A8E0-A8FF;
}

:root {
  --primary: #9f3f22;
  --primary-ink: #fff8f2;
  --accent: #0b6e69;
  --background: #fff8f2;
  --surface: #ffffff;
  --surface-2: #fce8d7;
  --text: #312019;
  --muted: #5c463c;
  --border: #ebcdba;
  --rule: #d9b49a;
  --header-h: 68px;
  --sticky-cta-h: 64px;
  --max: 1180px;
  --radius: 2px;
  --shadow: 0 10px 30px rgb(49 32 25 / 0.08);
  --z-header: 40;
  --z-drawer: 45;
  --z-sticky: 50;
}

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

html { scroll-behavior: smooth; }

html,
body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text);
  font-family: Manrope, "Noto Sans Devanagari", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  min-width: 0;
}

body {
  padding-top: var(--header-h);
  padding-bottom: calc(var(--sticky-cta-h) + 16px);
  background-image:
    linear-gradient(180deg, rgb(252 232 215 / 0.35), transparent 220px),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgb(235 205 186 / 0.18) 28px);
}

img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: var(--primary); text-underline-offset: 0.14em; }
a:hover { color: #7d3018; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 60;
  background: var(--text);
  color: var(--background);
  padding: 8px 12px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
  min-width: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  background: rgb(255 248 242 / 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  background: var(--primary);
  color: var(--primary-ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.brand-name {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
}
.primary-nav .drawer-cta,
.primary-nav .drawer-cta:hover {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--primary-ink);
}
.header-cta { display: none; }

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px 18px;
  flex-wrap: nowrap;
}
.primary-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  padding: 8px 0;
}
.primary-nav a[aria-current="page"],
.primary-nav a:hover { color: var(--primary); }

.header-cta {
  justify-self: end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
}
.btn-primary:hover { background: #7d3018; color: var(--primary-ink); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.drawer-backdrop {
  display: none;
}

.hero-score {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px;
  align-items: stretch;
  padding: 28px 0 36px;
  min-width: 0;
}
.hero-copy,
.hero-media,
.section > *,
.grid > * { min-width: 0; }

.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 18ch;
}
.lede {
  margin: 0 0 18px;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.02rem;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.score-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0 0;
}
.score-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 12px;
  min-width: 0;
}
.score-cell span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.score-cell strong {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.score-cell.is-proof strong { color: var(--accent); }
.score-cell.is-action strong { color: var(--primary); }

.frame {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-width: 0;
}
.frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}
.frame figcaption,
.caption {
  padding: 10px 12px 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: 52px 0;
  min-width: 0;
}
.section + .section { border-top: 1px solid var(--border); }
.band-sand { background: rgb(252 232 215 / 0.38); }
.band-paper { background: transparent; }
.band-white { background: var(--surface); }

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 22ch;
}
h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.prose p,
.stack p { margin: 0 0 14px; max-width: 68ch; color: var(--text); }
.prose p:last-child,
.stack p:last-child { margin-bottom: 0; }

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: 0 0 18px;
}
.filter-row button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}
.filter-row button[aria-pressed="true"] {
  background: var(--text);
  color: var(--background);
  border-color: var(--text);
}

.desk-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 22px;
}
.js .desk-panel { display: none; }
.js .desk-panel.is-active { display: grid; }
.no-js .desk-panel + .desk-panel { margin-top: 16px; }

.portrait-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}
.portrait-split.reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}
.callouts { list-style: none; margin: 16px 0 0; padding: 0; }
.callouts li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.callout-n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}
.ledger th,
.ledger td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
.ledger th {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
}
.ledger-mobile { display: none; }

.note {
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-list { margin: 0; padding: 0; list-style: none; }
.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p { margin: 8px 0 0; max-width: 68ch; }

.related-list,
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.related-list { display: grid; gap: 8px; }
.related-list a { font-weight: 700; text-decoration: none; }

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.footer-nav h2 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.footer-nav a {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  padding: 4px 0;
  white-space: nowrap;
}
.footer-nav a:hover { color: var(--primary); }
.colophon {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  display: none;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgb(255 248 242 / 0.96);
  border-top: 1px solid var(--border);
}
.sticky-cta .btn {
  width: 100%;
}

.article-hero img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
}
.meta-line {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 16px;
}

@media (max-width: 1023px) {
  .nav-toggle { display: inline-grid; place-items: center; justify-self: end; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .header-cta { display: none; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    transform: translateY(-120%);
    visibility: hidden;
    z-index: var(--z-drawer);
  }
  .primary-nav.is-open {
    transform: none;
    visibility: visible;
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .primary-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .drawer-cta,
  .primary-nav .drawer-cta { margin-top: 14px; display: block; width: 100%; }
  .sticky-cta { display: block; }
  body.is-nav-open { overflow: hidden; }
}

@media (max-width: 899px) {
  .hero-score,
  .desk-panel,
  .portrait-split,
  .portrait-split.reverse,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .score-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger { display: none; }
  .ledger-mobile { display: grid; gap: 10px; }
  .ledger-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 12px;
    min-width: 0;
  }
  .ledger-card div {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 8px;
    padding: 6px 0;
    border-top: 1px solid var(--border);
  }
  .ledger-card div:first-child { border-top: 0; }
  .ledger-card dt { color: var(--muted); font-size: 0.82rem; }
  h1 { max-width: none; }
}

@media (max-width: 430px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }
  body { font-size: 17px; }
  .section { padding: 36px 0; }
  .score-cell strong { font-size: 0.95rem; }
}

@media (min-width: 1024px) {
  .sticky-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

.frame.wide img{aspect-ratio:16/9;object-position:center;}
