/* The 1499 Edit — brand tokens from BRAND.md (locked: oatmeal/ink/camel, Fraunces/Archivo).
   Editorial-premium pass: large serif display type, spacious rhythm, subtle motion. */

@font-face {
  font-family: "Fraunces";
  src: url("/static/fonts/Fraunces-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/static/fonts/Archivo-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --oat: #F0EAE0;
  --ink: #1C1B18;
  --camel: #A97E4F;
  --bone: #FAF7F2;
  --olive: #6B6A4F;
  --hairline: rgba(28, 27, 24, 0.14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Archivo", system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.6, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: var(--camel); color: var(--bone); }

html { scroll-behavior: smooth; }
body {
  background: var(--oat);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

a { cursor: pointer; }
:focus-visible { outline: 2px solid var(--camel); outline-offset: 3px; border-radius: 2px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--bone); padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

main, .topbar-inner, .site-footer-inner {
  max-width: 680px;
  margin: 0 auto;
  padding-left: 1.4rem;
  padding-right: 1.4rem;
}

/* ── Top bar ────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(240, 234, 224, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 3.6rem;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.topbar-cta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.topbar-cta:hover { background: var(--ink); color: var(--bone); }

/* ── Masthead (home) ────────────────────────────────────── */
.masthead { padding: 4.5rem 0 3.5rem; text-align: center; }
.masthead h1 {
  font-family: var(--serif);
  font-weight: 640;
  font-size: clamp(2.1rem, 6.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 16ch;
  margin: 0 auto;
}
.masthead h1 em { font-style: italic; color: var(--camel); }
.masthead .lede {
  margin: 1.1rem auto 0;
  max-width: 38ch;
  color: var(--olive);
  font-size: 1.02rem;
}

/* ── Sections ───────────────────────────────────────────── */
section { margin-bottom: 4.5rem; }
.kicker {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--camel);
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.kicker::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}

/* ── Fit card ───────────────────────────────────────────── */
.fit-card {
  background: var(--bone);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(28, 27, 24, 0.05), 0 12px 32px -18px rgba(28, 27, 24, 0.25);
}
.fit-hero { display: block; position: relative; overflow: hidden; }
.fit-hero img {
  width: 100%; height: auto; display: block;
  transition: transform 0.5s var(--ease);
}
.fit-hero:hover img { transform: scale(1.02); }
.hero-badge {
  position: absolute; bottom: 1rem; left: 1rem;
  color: var(--ink);
  background: var(--bone);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  box-shadow: 0 2px 10px rgba(28, 27, 24, 0.18);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex; align-items: baseline; gap: 0.45rem;
}
.hero-badge strong {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}
.hero-badge .rupee { color: var(--camel); }

.fit-body { padding: 1.8rem 1.5rem 1.9rem; }
.fit-title {
  font-family: var(--serif);
  font-weight: 640;
  font-size: clamp(1.55rem, 4.5vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
}
.fit-title a { color: var(--ink); text-decoration: none; }
.fit-hook { color: var(--olive); font-size: 1rem; max-width: 46ch; margin-bottom: 1.6rem; }

.item-list { list-style: none; border-top: 1px solid var(--hairline); }
.item-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--hairline);
}
.item-name { font-size: 0.95rem; font-weight: 500; }
.item-store {
  display: block;
  color: var(--olive);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(28, 27, 24, 0.5); }
.btn:active { transform: translateY(0); }
.btn .rupee { color: var(--camel); }
.btn-buy {
  background: var(--ink);
  color: var(--bone);
  font-size: 0.86rem;
  padding: 0.55rem 1.1rem;
  font-variant-numeric: tabular-nums;
}
.btn-primary {
  background: var(--ink);
  color: var(--bone);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.7rem;
}
.btn-ghost {
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
}
.btn-ghost:hover { background: var(--ink); color: var(--bone); }

/* ── Capture ────────────────────────────────────────────── */
.capture {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 3rem 0;
  text-align: center;
}
.capture h2 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin-bottom: 0.5rem;
}
.capture p { margin: 0 auto 1.5rem; font-size: 0.98rem; color: var(--olive); max-width: 40ch; }
.capture .fineprint { margin: 0.9rem auto 0; }
.email-embed { width: 100%; min-height: 120px; border: none; }

/* ── Archive grid ───────────────────────────────────────── */
.drop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.drop-tile {
  background: var(--bone);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(28, 27, 24, 0.05);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.drop-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -16px rgba(28, 27, 24, 0.3); }
.drop-tile .tile-img { overflow: hidden; }
.drop-tile img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.drop-tile:hover img { transform: scale(1.04); }
.drop-title {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  padding: 0.85rem 0.95rem 1rem;
  font-size: 0.95rem;
  line-height: 1.3;
}

/* ── Start page / prose ─────────────────────────────────── */
.page-title {
  font-family: var(--serif);
  font-weight: 640;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 0.8rem;
}
.check-list { list-style: none; margin: 1.6rem 0 2rem; border-top: 1px solid var(--hairline); }
.check-list li {
  padding: 0.8rem 0 0.8rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--hairline);
}
.check-list li::before {
  content: ""; position: absolute; left: 0.2rem; top: 1.15rem;
  width: 0.85rem; height: 0.45rem;
  border-left: 2px solid var(--camel); border-bottom: 2px solid var(--camel);
  transform: rotate(-45deg);
}
.prose h2 { margin-top: 2.2rem; }
.prose p { margin-bottom: 0.9rem; max-width: 62ch; }
.prose a, .starter-push a { color: var(--ink); text-decoration-color: var(--camel); text-underline-offset: 3px; }

.next-drop { text-align: center; }
.starter-push { text-align: center; color: var(--olive); }
.starter-push h2 { color: var(--ink); margin-bottom: 0.4rem; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--hairline); }
.site-footer-inner { padding-top: 2.6rem; padding-bottom: 3.2rem; text-align: center; }
.site-footer .wordmark { font-size: 0.9rem; }
.site-footer nav { margin: 1.1rem 0 0.9rem; display: flex; justify-content: center; gap: 1.6rem; flex-wrap: wrap; }
.site-footer nav a {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.site-footer nav a:hover { border-color: var(--camel); }
.fineprint { font-size: 0.78rem; color: var(--olive); max-width: 52ch; margin: 0 auto; }

/* ── Reveal on scroll (JS adds .reveal; no-JS stays visible) ── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@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; }
}

/* ── Desktop ────────────────────────────────────────────── */
@media (min-width: 900px) {
  main, .topbar-inner, .site-footer-inner { max-width: 960px; }
  .masthead { padding: 6rem 0 4.5rem; }
  section { margin-bottom: 6rem; }

  .fit-card { display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; }
  .fit-hero img { height: 100%; object-fit: cover; }
  .fit-body { padding: 2.6rem 2.4rem; display: flex; flex-direction: column; justify-content: center; }

  .drop-grid { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
  .capture { padding: 4rem 0; }
}
