:root {
    --bg: #141312; --ink: #EDE7DD; --ink-dim: #8C8579; --red: #C1272B; --rule: #2B2926;
    color-scheme: dark;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --bg: #141312; --ink: #EDE7DD; --ink-dim: #8C8579; --red: #C1272B; --rule: #2B2926; }
  }
  :root[data-theme="dark"] { --bg: #141312; --ink: #EDE7DD; --ink-dim: #8C8579; --red: #C1272B; --rule: #2B2926; }
  :root[data-theme="light"] { --bg: #F3EFE6; --ink: #1B1917; --ink-dim: #6F675A; --red: #B21E22; --rule: #DAD2C2; }

  * { box-sizing: border-box; }
  html { scroll-padding-top: 64px; height: 100%; scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: 'Space Grotesk', system-ui, sans-serif; line-height: 1.55;
    padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; }
  ::selection { background: var(--red); color: var(--bg); }
  .wrap { max-width: 640px; margin: 0 auto; padding: 0 28px; }

  header.top {
    position: sticky; top: 0; padding-top: env(safe-area-inset-top, 0px);
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); z-index: 20;
  }
  .top-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; max-width: 640px; margin: 0 auto; }
  .mark { font-family: 'Permanent Marker', cursive; color: var(--red); font-size: 1.3rem; }
  nav.links { display: none; }
  @media (min-width: 720px) {
    nav.links { display: flex; gap: 16px; font-size: 0.85rem; }
    nav.links a { text-decoration: none; color: var(--ink-dim); }
    nav.links a:hover { color: var(--ink); }
  }
  .top-actions { display: flex; align-items: center; gap: 10px; }
  .theme-toggle, .menu-btn {
    background: none; border: 1px solid var(--rule); color: var(--ink);
    font-size: 0.95rem; line-height: 1; padding: 6px 9px; border-radius: 2px; cursor: pointer;
  }
  .top-link { font-size: 0.82rem; color: var(--ink-dim); text-decoration: none; border: 1px solid var(--rule); padding: 6px 14px; border-radius: 2px; }
  .menu-btn { display: inline-block; }
  @media (min-width: 720px) { .menu-btn { display: none; } }

  #mobile-menu {
    display: none; position: fixed; inset: 0; background: var(--bg); z-index: 30;
    padding: 24px 28px; padding-top: calc(24px + env(safe-area-inset-top, 0px));
  }
  #mobile-menu.open { display: block; }
  #mobile-menu a {
    display: block; font-size: 1.6rem; padding: 14px 0; border-bottom: 1px solid var(--rule);
    text-decoration: none; color: var(--ink);
  }
  #mobile-menu .close-btn { position: absolute; top: 20px; right: 24px; top: calc(20px + env(safe-area-inset-top,0px)); background: none; border: none; color: var(--ink); font-size: 1.6rem; cursor: pointer; }

  section { padding: 64px 0; border-bottom: 1px solid var(--rule); }
  section:last-of-type { border-bottom: none; }
  .hero { padding-top: 72px; }
  .hero .mark-big { font-family: 'Permanent Marker', cursive; color: var(--red); font-size: clamp(3.2rem, 15vw, 4.8rem); line-height: 0.95; margin: 0 0 8px; }
  .hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); margin: 0 0 18px; font-weight: 600; }
  .hero p.lede { font-size: 1.1rem; max-width: 42ch; color: var(--ink-dim); margin: 0 0 32px; }
  .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
  .btn { display: inline-block; text-decoration: none; padding: 12px 22px; border-radius: 2px; font-size: 0.92rem; font-weight: 500; }
  .btn-primary { background: var(--red); color: #fff; }
  .btn-secondary { border: 1px solid var(--rule); color: var(--ink); }

  h2.kicker { font-size: 0.85rem; color: var(--ink-dim); font-weight: 600; margin: 0 0 22px; }
  h3 { font-size: 1.15rem; margin: 0 0 8px; font-weight: 600; }
  p { margin: 0 0 16px; max-width: 60ch; }
  p:last-child { margin-bottom: 0; }

  .drop-block { border-left: 2px solid var(--red); padding-left: 18px; margin-bottom: 32px; }
  .drop-block:last-child { margin-bottom: 0; }
  .drop-block .label { font-size: 0.75rem; color: var(--red); margin-bottom: 6px; letter-spacing: 0.03em; }
  .meta-row { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 12px; font-size: 0.85rem; color: var(--ink-dim); }

  .alte-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 24px; }
  .alte-tags span { border: 1px solid var(--rule); padding: 6px 14px; font-size: 0.85rem; border-radius: 2px; color: var(--ink-dim); }

  .steps { counter-reset: step; }
  .step { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid var(--rule); }
  .step:first-child { border-top: none; padding-top: 0; }
  .step-num { font-family: 'Permanent Marker', cursive; color: var(--red); font-size: 1.1rem; flex-shrink: 0; width: 1.4em; }
  .step-num::before { counter-increment: step; content: counter(step); }

  details.glossary { border-top: 1px solid var(--rule); padding: 12px 0; }
  details.glossary:first-child { border-top: none; }
  details.glossary summary { cursor: pointer; font-weight: 500; list-style: none; }
  details.glossary summary::-webkit-details-marker { display: none; }
  details.glossary summary::before { content: "+ "; color: var(--red); }
  details.glossary[open] summary::before { content: "− "; }
  details.glossary p { margin-top: 10px; color: var(--ink-dim); font-size: 0.92rem; }

  details.faq { border-top: 1px solid var(--rule); padding: 16px 0; }
  details.faq:first-child { border-top: none; }
  details.faq summary { cursor: pointer; font-weight: 500; font-size: 1rem; list-style: none; }
  details.faq summary::-webkit-details-marker { display: none; }
  details.faq summary::before { content: "+ "; color: var(--red); }
  details.faq[open] summary::before { content: "− "; }
  details.faq p { margin-top: 10px; color: var(--ink-dim); }

  .journal-item, .lookbook-note { border-top: 1px solid var(--rule); padding: 20px 0; }
  .journal-item:first-child, .lookbook-note:first-child { border-top: none; padding-top: 0; }
  .tag-soon { font-size: 0.75rem; color: var(--red); }

  .class-row { padding: 22px 0; border-top: 1px solid var(--rule); }
  .class-row:first-child { border-top: none; padding-top: 0; }
  .class-row .tag { font-size: 0.78rem; color: var(--red); margin-bottom: 6px; }

  .normie { background: var(--red); color: var(--bg); margin: 0 -28px; padding: 64px 28px; }
  .normie .wrap { padding: 0; max-width: 640px; }
  .normie h2.kicker { color: color-mix(in srgb, var(--bg) 70%, transparent); }
  .normie p.big { font-size: 1.5rem; font-weight: 600; max-width: 20ch; margin: 0 0 16px; }
  .normie p.small { color: color-mix(in srgb, var(--bg) 85%, transparent); font-size: 0.95rem; }

  .status-list { list-style: none; padding: 0; margin: 0; }
  .status-list li { padding: 10px 0; border-top: 1px solid var(--rule); color: var(--ink-dim); font-size: 0.92rem; }
  .status-list li:first-child { border-top: none; }
  .status-list b { color: var(--ink); font-weight: 500; }

  .socials { display: flex; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
  .socials a { text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; font-size: 0.92rem; color: var(--ink); }

  footer { padding: 48px 0 calc(48px + env(safe-area-inset-bottom, 0px)); }
  .foot-grid { display: flex; flex-wrap: wrap; gap: 32px; margin: 24px 0; }
  .foot-col a { display: block; text-decoration: none; color: var(--ink-dim); font-size: 0.85rem; margin-bottom: 8px; }
  .fine { color: var(--ink-dim); font-size: 0.8rem; margin-top: 24px; }

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

  .blur-wrap { position: relative; }
  .blur-content { filter: blur(7px); user-select: none; pointer-events: none; }
  .blur-caption { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-family: 'Permanent Marker', cursive; color: var(--red); font-size: 1.8rem; text-align: center; }
  .back-link { display: inline-block; margin-top: 28px; font-size: 0.9rem; color: var(--ink-dim); text-decoration: none; border-bottom: 1px solid var(--rule); }
  nav.links { gap: 16px; }
