  /* Layout: an official-looking colonial office file that the twins have scribbled all over.
     Ledger columns, rubber stamps and margin notes; one Diwali string of brass lights as the only ornament. */
  :root {
    --ground: #eef0ee;
    --sheet: #f9faf8;
    --sheet-2: #e3e7e3;
    --ink: #1c2430;
    --ink-soft: #4d5867;
    --rule: #c5ccc8;
    --brass: #a9781f;
    --brass-soft: #f1e3c4;
    --shani: #2f5fa8;
    --udara: #c8641f;
    --red: #a2434a;
    --on-ink: #f9faf8;
    --focus: #2f5fa8;
    --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
    --hand: 'Caveat', 'Bradley Hand', 'Comic Sans MS', cursive;
    --body: 'Public Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --ground: #121820; --sheet: #19212c; --sheet-2: #222c39; --ink: #e9ece9; --ink-soft: #a9b3bf;
      --rule: #344152; --brass: #dcac52; --brass-soft: #3a2f1a; --shani: #86aef0; --udara: #f0985a;
      --red: #e2848a; --on-ink: #121820; --focus: #86aef0; color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --ground: #121820; --sheet: #19212c; --sheet-2: #222c39; --ink: #e9ece9; --ink-soft: #a9b3bf;
    --rule: #344152; --brass: #dcac52; --brass-soft: #3a2f1a; --shani: #86aef0; --udara: #f0985a;
    --red: #e2848a; --on-ink: #121820; --focus: #86aef0; color-scheme: dark;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
  body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
  .wrap { max-width: 1040px; margin: 0 auto; padding-inline: 16px; }
  @media (min-width: 720px) { .wrap { padding-inline: 32px; } }

  /* Top bar */
  .bar { border-bottom: 1.5px solid var(--ink); background: var(--ground); position: sticky; top: 0; z-index: 5; }
  .bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
  .mark { font-family: var(--display); font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
  .mark small { font-family: var(--hand); font-weight: 700; font-size: 18px; color: var(--udara); margin-left: 6px; }
  .bar nav { display: flex; gap: 18px; font-size: 14px; font-weight: 600; }
  .bar nav a { text-decoration: none; }
  .bar nav a:hover { color: var(--shani); }
  .bar .cta-mini { display: inline-flex; align-items: center; padding: 7px 12px; border: 1.5px solid var(--ink); border-radius: 3px; font-size: 14px; font-weight: 700; text-decoration: none; background: var(--brass-soft); white-space: nowrap; }
  @media (max-width: 760px) { .bar nav { display: none; } }

  /* Diwali lights: the page's single ornament */
  .lights { height: 22px; position: relative; overflow: hidden; }
  .lights::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 10px; border-bottom: 1.5px solid var(--rule); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
  .lights span { position: absolute; top: 9px; width: 8px; height: 10px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--brass); box-shadow: 0 0 8px 1px color-mix(in srgb, var(--brass) 55%, transparent); animation: glow 2.6s ease-in-out infinite; }
  .lights span:nth-child(3n) { background: var(--udara); animation-delay: .7s; }
  .lights span:nth-child(4n) { background: var(--shani); animation-delay: 1.3s; box-shadow: 0 0 8px 1px color-mix(in srgb, var(--shani) 50%, transparent); }
  @keyframes glow { 50% { opacity: .45; } }

  /* Hero */
  .hero { padding-block: 40px 56px; display: grid; gap: 36px; align-items: center; }
  @media (min-width: 880px) { .hero { grid-template-columns: 1.25fr .9fr; padding-block: 64px 80px; } }
  .eyebrow { font-family: var(--hand); font-size: 24px; font-weight: 700; color: var(--red); transform: rotate(-1.5deg); display: inline-block; margin: 0 0 6px; }
  h1 { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 9vw, 74px); line-height: .98; letter-spacing: -.02em; margin: 0 0 18px; text-wrap: balance; }
  h1 .blue { color: var(--shani); } h1 .orange { color: var(--udara); }
  .lede { font-size: clamp(17px, 2.2vw, 19px); color: var(--ink-soft); max-width: 54ch; margin: 0 0 26px; }
  .lede b { color: var(--ink); font-weight: 600; }
  .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border: 2px solid var(--ink); border-radius: 3px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .08s ease, box-shadow .08s ease; }
  .btn-primary { background: var(--ink); color: var(--on-ink); box-shadow: 4px 4px 0 var(--brass); }
  .btn-primary:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--brass); }
  .btn-ghost { background: transparent; color: var(--ink); }
  .btn-ghost:hover { background: var(--sheet-2); }
  .fine { font-size: 14px; color: var(--ink-soft); margin: 14px 0 0; }

  /* Gift tag */
  .tag-holder { position: relative; display: grid; justify-items: center; padding-bottom: 104px; }
  .cover { margin: 0; }
  .cover img { display: block; width: min(76vw, 340px); height: auto; border: 2px solid var(--ink); border-radius: 3px; box-shadow: 7px 7px 0 var(--ink); transform: rotate(-2deg); }
  .tag-holder .tag { position: absolute; bottom: 14px; right: max(0px, calc(50% - 215px)); width: min(88%, 300px); padding: 18px 16px 40px 46px; transform: rotate(3deg); }
  .tag-holder .stamp { bottom: -18px; right: -6px; }
  .tag-holder .tag dd { font-size: 21px; }
  .tag-holder .tag::before { left: 14px; width: 16px; height: 16px; margin-top: -8px; }
  .tag-holder .tag::after { display: none; }
  .tag { position: relative; width: min(100%, 360px); background: var(--sheet); border: 2px solid var(--ink); border-radius: 6px 6px 6px 6px; padding: 30px 24px 24px 56px; transform: rotate(2deg); box-shadow: 6px 6px 0 var(--ink); }
  .tag::before { content: ""; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid var(--ink); background: var(--ground); }
  .tag::after { content: ""; position: absolute; left: -46px; top: 50%; width: 66px; height: 2px; background: var(--brass); transform: rotate(-14deg); transform-origin: right; }
  .tag dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: baseline; }
  .tag dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
  .tag dd { margin: 0; font-family: var(--hand); font-size: 25px; line-height: 1.15; }
  .tag dd.blank { border-bottom: 1.5px dashed var(--rule); min-height: 28px; }
  .stamp { position: absolute; right: -10px; bottom: -22px; font-family: var(--body); font-weight: 800; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); border: 2.5px solid var(--red); border-radius: 4px; padding: 6px 9px; transform: rotate(-9deg); background: var(--sheet); line-height: 1.25; text-align: center; opacity: .92; }

  /* Sections */
  section { padding-block: 56px; border-top: 1.5px solid var(--ink); }
  .sec-head { display: grid; gap: 6px; margin-bottom: 28px; }
  .file-no { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
  h2 { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 5.5vw, 46px); line-height: 1.05; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
  .sec-lede { color: var(--ink-soft); max-width: 62ch; margin: 6px 0 0; }
  h3 { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; margin: 0 0 6px; }

  /* Why it works as a gift */
  .reasons { display: grid; gap: 0; border: 1.5px solid var(--ink); background: var(--sheet); }
  @media (min-width: 760px) { .reasons { grid-template-columns: 1fr 1fr; } }
  .reason { padding: 22px 22px 24px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 36px 1fr; gap: 4px 14px; }
  @media (min-width: 760px) { .reason:nth-child(odd) { border-right: 1px solid var(--rule); } .reason:nth-last-child(-n+2) { border-bottom: 0; } }
  @media (max-width: 759px) { .reason:last-child { border-bottom: 0; } }
  .reason .tick { grid-row: span 2; width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-family: var(--hand); font-weight: 700; font-size: 20px; color: var(--shani); margin-top: 2px; }
  .reason p { margin: 0; color: var(--ink-soft); }
  .honest { margin-top: 18px; font-family: var(--hand); font-size: 23px; line-height: 1.3; color: var(--red); max-width: 60ch; }

  /* Story */
  .story { display: grid; gap: 28px; }
  @media (min-width: 880px) { .story { grid-template-columns: 1.1fr .9fr; gap: 48px; } }
  .blurb { background: var(--sheet); border: 1.5px solid var(--ink); padding: 26px 24px; }
  .blurb .shout { font-family: var(--display); font-weight: 900; font-size: 19px; letter-spacing: .02em; line-height: 1.3; margin: 0 0 14px; }
  .blurb p { margin: 0 0 14px; }
  .blurb .shout:last-child { margin: 0; color: var(--red); }
  .facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; border-top: 1.5px solid var(--ink); }
  .facts dt, .facts dd { padding: 11px 0; border-bottom: 1px solid var(--rule); margin: 0; }
  .facts dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); padding-right: 18px; padding-top: 14px; }
  .chapters { margin-top: 22px; }
  .chapters p { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 8px; }
  .chapters ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
  .chapters li { font-family: var(--hand); font-size: 20px; line-height: 1.1; padding: 6px 10px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--sheet); }
  .chapters li:nth-child(odd) { transform: rotate(-1deg); } .chapters li:nth-child(3n) { transform: rotate(1.2deg); }

  /* Cast */
  .cast { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
  .card { background: var(--sheet); border: 1.5px solid var(--ink); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 6px; position: relative; }
  .card .role { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
  .card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
  .card q { font-family: var(--hand); font-size: 22px; line-height: 1.15; color: var(--ink); quotes: "“" "”"; margin-top: auto; padding-top: 6px; }
  .card.spirit-blue { border-color: var(--shani); box-shadow: inset 0 4px 0 var(--shani); }
  .card.spirit-orange { border-color: var(--udara); box-shadow: inset 0 4px 0 var(--udara); }
  .card.spirit-blue h3 { color: var(--shani); } .card.spirit-orange h3 { color: var(--udara); }

  /* Buy */
  .buy { display: grid; gap: 18px; }
  @media (min-width: 880px) { .buy { grid-template-columns: 1.15fr 1fr; align-items: start; } }
  /* The India card keeps one dark "official file" look in both themes. */
  .india { --card-ink: #1c2430; --card-text: #f9faf8; --card-brass: #dcac52; background: var(--card-ink); color: var(--card-text); padding: 28px 24px; border-radius: 3px; border: 1.5px solid var(--ink); }
  .india .status { display: block; font-family: var(--hand); font-size: 23px; color: var(--card-brass); transform: rotate(-2deg); transform-origin: left; margin-bottom: 6px; }
  .india .file-no { display: block; color: color-mix(in srgb, var(--card-text) 70%, transparent); }
  .india h3 { font-size: clamp(26px, 4vw, 32px); font-weight: 900; margin: 6px 0 10px; color: var(--card-text); }
  .india p { margin: 0 0 14px; color: color-mix(in srgb, var(--card-text) 84%, transparent); }
  .india strong { color: var(--card-text); font-weight: 700; }
  .india ol { margin: 0 0 20px; padding-left: 20px; display: grid; gap: 6px; color: color-mix(in srgb, var(--card-text) 90%, transparent); }
  .india .btn-primary { background: var(--card-brass); color: var(--card-ink); border-color: var(--card-brass); box-shadow: 4px 4px 0 color-mix(in srgb, var(--card-text) 30%, transparent); }
  .india .btn-ghost { color: var(--card-text); border-color: color-mix(in srgb, var(--card-text) 60%, transparent); }
  .india .btn-ghost:hover { background: color-mix(in srgb, var(--card-text) 10%, transparent); }
  .stores { background: var(--sheet); border: 1.5px solid var(--ink); padding: 22px 22px 18px; }
  .stores h3 { margin-bottom: 4px; }
  .stores > p { margin: 0 0 14px; color: var(--ink-soft); font-size: 15.5px; }
  .store-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
  .store-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
  .store-list a { font-weight: 700; text-decoration: none; color: var(--shani); }
  .store-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .store-list span { font-size: 14px; color: var(--ink-soft); }

  /* Quiz band */
  .quiz { display: grid; gap: 20px; align-items: center; background: var(--brass-soft); border: 1.5px solid var(--ink); padding: 28px 24px; }
  @media (min-width: 760px) { .quiz { grid-template-columns: 1fr auto; padding: 32px 36px; } }
  .quiz h2 { font-size: clamp(26px, 4.4vw, 36px); }
  .quiz p { margin: 8px 0 0; color: var(--ink-soft); }

  /* About + AI */
  .two { display: grid; gap: 22px; }
  @media (min-width: 880px) { .two { grid-template-columns: 1fr 1fr; gap: 36px; } }
  .about p { margin: 0 0 12px; max-width: 60ch; }
  .about .pull { font-family: var(--hand); font-size: 26px; line-height: 1.2; color: var(--udara); }
  .notice { background: var(--sheet); border: 1.5px dashed var(--ink); padding: 22px 22px 20px; }
  .notice p { margin: 0 0 12px; color: var(--ink-soft); font-size: 15.5px; }
  .notice blockquote { margin: 0 0 12px; padding-left: 14px; border-left: 3px solid var(--brass); font-size: 15.5px; color: var(--ink); }

  /* Footer */
  footer { border-top: 1.5px solid var(--ink); padding-block: 36px 48px; }
  footer .wrap { display: grid; gap: 18px; }
  @media (min-width: 760px) { footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
  .next { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0; }
  .next span { display: block; font-family: var(--hand); font-weight: 700; font-size: 22px; color: var(--shani); }
  .links { display: flex; flex-wrap: wrap; gap: 16px; font-weight: 600; font-size: 15px; }
  .links a { text-underline-offset: 3px; }
  .copy { font-size: 13px; color: var(--ink-soft); grid-column: 1 / -1; margin: 0; }

  /* Added for the live site */
  .peek { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
  @media (min-width: 880px) { .peek { grid-template-columns: repeat(4, 1fr); } }
  .peek figure { margin: 0; background: var(--sheet); border: 1.5px solid var(--ink); padding: 8px; }
  .peek img { display: block; width: 100%; height: auto; }
  .peek figcaption { font-size: 13px; color: var(--ink-soft); padding: 6px 2px 0; }
  .pay-note { font-size: 14px; color: color-mix(in srgb, var(--card-text) 75%, transparent); margin: 14px 0 0 !important; }
  .policy { max-width: 760px; padding-block: 40px 64px; }
  .policy h1 { font-size: clamp(34px, 7vw, 52px); }
  .policy h2 { font-size: 24px; margin: 32px 0 8px; }
  .policy p, .policy li { color: var(--ink-soft); }
  .policy strong { color: var(--ink); }
  .fill { background: var(--brass-soft); padding: 0 4px; border-radius: 2px; color: var(--ink); }
  .links-small { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; grid-column: 1 / -1; }
  .links-small a { color: var(--ink-soft); }
  @media (max-width: 480px) { .mark small { display: none; } .mark { font-size: 16px; } .bar .cta-mini { padding: 6px 10px; font-size: 13px; } }

  /* Restore defaults that Tailwind's preflight resets on the home page */
  .india ol, .policy ol { list-style: decimal; }
  .policy ul { list-style: disc; padding-left: 22px; }
  .pay-note a, .notice a, .policy a, .links a, .links-small a, .sec-lede a, .lede a { text-decoration: underline; text-underline-offset: 3px; }
