/* ==========================================================================
   Anvika Rohan — Official Author Site
   style.css

   Design direction: "Big ideas, brave heart."
   Every colour on this page is sampled from Anvika's own illustration —
   the cream background, the gold sparkle halo, and the five book spines
   (STORIES, ADVENTURES, DREAMS, MAGIC, FUN & IMAGINATION).

   The spine colours are not decoration: they mark sections in the same
   order as the stack in the picture, so the page is literally built out
   of her bookshelf.

   Signature element: the halo. Anvika sits inside a golden glow with
   drifting sparkles. That is the one loud thing; everything else is quiet.

   Contents
   01. Design tokens
   02. Reset & base
   03. Typography
   04. Utilities & layout
   05. Buttons
   06. Header / navigation
   07. Hero (signature: the halo)
   08. Section surfaces
   09. Books
   10. Author
   11. Steps / delivery
   12. Reviews
   13. Forms & panels
   14. FAQ
   15. Footer
   16. Dialog, toast, cookie bar
   17. Blog
   18. Prose / legal pages
   19. Motion, focus, print
   ========================================================================== */

/* ---------- 01. Design tokens ------------------------------------------ */
:root {
  /* Surfaces — sampled from the illustration's background */
  --cream:    #fcf6ea;
  --cream-2:  #f6ecd9;
  --card:     #fffdf8;

  /* Ink — her outfit */
  --ink:      #1e1813;
  --ink-soft: #6b5d50;
  --ink-faint:#9c8f81;

  /* The halo */
  --gold:      #f0b429;
  --gold-warm: #ffd67a;
  --gold-deep: #c98f16;

  /* The five book spines, in stack order */
  --spine-1: #e4547e;  /* STORIES            — pink   */
  --spine-2: #6d9e46;  /* ADVENTURES         — green  */
  --spine-3: #8a5aa6;  /* DREAMS             — purple */
  --spine-4: #e8792b;  /* MAGIC              — orange */
  --spine-5: #3e8ac2;  /* FUN & IMAGINATION  — blue   */

  --line:  #e6d9c2;
  --error: #cf3b3b;

  /* Type */
  --display: "Eczar", "Iowan Old Style", Georgia, serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system,
          "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.85rem, 0.82rem + 0.14vw, 0.92rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --step-3:  clamp(1.9rem, 1.6rem + 1.45vw, 2.9rem);
  --step-4:  clamp(2.3rem, 1.8rem + 2.5vw, 4.1rem);

  /* Space */
  --s-1: 0.5rem;  --s-2: 0.85rem; --s-3: 1.25rem; --s-4: 2rem;
  --s-5: 3rem;    --s-6: 4.5rem;  --s-7: 7rem;

  --wrap: 1140px;
  --radius: 18px;
  --radius-s: 11px;

  --shadow-soft: 0 14px 34px -20px rgb(90 66 30 / 0.35);
  --shadow-lift: 0 22px 50px -26px rgb(90 66 30 / 0.5);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 02. Reset & base ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--s-3); top: -100px; z-index: 999;
  background: var(--ink); color: var(--cream); font-weight: 600;
  padding: var(--s-2) var(--s-3); border-radius: 0 0 var(--radius-s) var(--radius-s);
  text-decoration: none;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- 03. Typography --------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.22; }
p { text-wrap: pretty; }

/* Eyebrow carries a spine bar in the colour of the section it opens */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--s-2);
}
.eyebrow::before {
  content: ""; width: 30px; height: 7px; border-radius: 4px;
  background: var(--spine, var(--gold)); flex: none;
}

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }

/* Caveat is used only for asides in Anvika's voice — never for UI text */
.hand {
  font-family: var(--hand);
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.9rem);
  line-height: 1.3; color: var(--gold-deep);
}

/* ---------- 04. Utilities & layout ------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--s-6); }
@media (min-width: 800px) { .section { padding-block: var(--s-7); } }

.stack > * + * { margin-top: var(--s-3); }
.center { text-align: center; }
.section-head { max-width: 56ch; margin-bottom: var(--s-5); }
.section-head.center { margin-inline: auto; }

.split { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

/* ---------- 05. Buttons ------------------------------------------------- */
a { color: var(--gold-deep); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.55em;
  padding: 0.82em 1.6em;
  border-radius: 999px;
  font-weight: 600; font-size: var(--step--1);
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              border-color 0.18s var(--ease), color 0.18s var(--ease),
              box-shadow 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.btn--gold { background: var(--gold); color: var(--ink); box-shadow: var(--shadow-soft); }
.btn--gold:hover { background: var(--gold-warm); box-shadow: var(--shadow-lift); }

.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: #33291f; }

.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--cream); }

.btn--quiet { border-color: var(--line); color: var(--ink-soft); }
.btn--quiet:hover { border-color: var(--ink); color: var(--ink); }

.btn--sm { padding: 0.62em 1.15em; font-size: 0.82rem; border-width: 1.5px; }
.btn--wide { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* ---------- 06. Header / navigation ------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgb(252 246 234 / 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3); padding-block: 0.6rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--display); font-size: 1.18rem; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.brand img { width: 38px; height: 38px; border-radius: 50%; flex: none; }

.nav { display: flex; align-items: center; gap: var(--s-3); }
.nav a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.16s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { color: var(--ink); }

.nav-toggle { display: none; padding: 0.5rem; color: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 58px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    padding: var(--s-2) 1.25rem var(--s-4);
    transform: translateY(-130%);
    transition: transform 0.32s var(--ease);
  }
  .nav[data-open="true"] { transform: none; }
  .nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: var(--s-3); border-bottom: 0; }
}

/* ---------- 07. Hero — signature: the halo ----------------------------- */
.hero { position: relative; overflow: hidden; padding-block: var(--s-5) var(--s-6); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(58% 52% at 78% 34%,
              rgb(255 214 122 / 0.34) 0%, rgb(255 214 122 / 0.10) 42%, transparent 72%);
}
.hero__inner {
  position: relative;
  display: grid; gap: var(--s-4); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: var(--s-5); }
}

.hero__text { position: relative; z-index: 2; }
.hero h1 { margin-bottom: var(--s-3); }
.hero h1 span { display: block; color: var(--gold-deep); }
.hero .lede { max-width: 36ch; margin-bottom: var(--s-4); }
.hero__meta {
  margin-top: var(--s-4); font-size: var(--step--1); color: var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center;
}
.hero__meta b { color: var(--ink); font-weight: 600; }

/* The halo itself */
.halo { position: relative; justify-self: center; width: min(100%, 480px); }
.halo::before {
  content: ""; position: absolute;
  inset: 6% 4% 18% 4%;
  border-radius: 50%;
  background: radial-gradient(circle,
              rgb(255 214 122 / 0.5) 0%, rgb(255 214 122 / 0.2) 48%, transparent 70%);
  animation: breathe 7s ease-in-out infinite alternate;
}
@keyframes breathe {
  from { transform: scale(0.97); opacity: 0.8; }
  to   { transform: scale(1.04); opacity: 1; }
}
.halo img { position: relative; width: 100%; }

/* Drifting sparkles, echoing the ones in the illustration */
.halo__sparks { position: absolute; inset: 0; pointer-events: none; }
.halo__sparks span {
  position: absolute; display: block;
  width: 12px; height: 12px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
  opacity: 0; animation: sparkle 4.5s ease-in-out infinite;
}
.halo__sparks span:nth-child(1) { top: 12%; left: 6%;  animation-delay: 0s;   }
.halo__sparks span:nth-child(2) { top: 30%; right: 2%; animation-delay: 0.9s; width: 16px; height: 16px; }
.halo__sparks span:nth-child(3) { top: 58%; left: 0%;  animation-delay: 1.8s; width: 9px;  height: 9px;  }
.halo__sparks span:nth-child(4) { top: 6%;  right: 22%;animation-delay: 2.6s; width: 10px; height: 10px; }
.halo__sparks span:nth-child(5) { top: 72%; right: 8%; animation-delay: 3.4s; }
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  40%      { opacity: 1; transform: scale(1)   rotate(35deg); }
  70%      { opacity: 0; transform: scale(0.7) rotate(70deg); }
}

/* Handwritten sticker pinned to the halo, straight out of the picture */
.halo__note {
  position: absolute; left: 2%; bottom: 8%; z-index: 3;
  background: var(--card); color: var(--ink);
  font-family: var(--hand); font-size: 1.28rem; line-height: 1.15;
  padding: 0.7rem 1rem; border-radius: 14px;
  border: 2px solid var(--ink);
  transform: rotate(-4deg);
  box-shadow: var(--shadow-soft);
  max-width: 11rem;
}
@media (max-width: 560px) { .halo__note { font-size: 1.1rem; max-width: 9rem; } }

/* ---------- 08. Section surfaces --------------------------------------- */
.band {
  background: var(--cream-2);
  border-block: 1px solid var(--line);
}
.band--card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  width: min(100% - 2.5rem, calc(var(--wrap) + 3rem));
  margin-inline: auto;
  box-shadow: var(--shadow-soft);
}
.band--card > .wrap { width: min(100% - 3rem, var(--wrap)); }

/* ---------- 09. Books --------------------------------------------------- */
.books-grid {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  align-items: start;
}
.book {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
/* The spine stripe: the same device as the stack in the illustration */
.book::before {
  content: ""; display: block; height: 9px;
  background: var(--spine, var(--gold));
}
.book:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.book__cover {
  position: relative; background: var(--cream-2);
  aspect-ratio: 5.5 / 8.5; overflow: hidden;
}
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book__body { padding: var(--s-3); display: flex; flex-direction: column; flex: 1; }
.book__title { margin-bottom: 0.35rem; }
.book__desc { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: var(--s-3); }
.book__specs {
  margin: 0 0 var(--s-3); font-size: 0.82rem; color: var(--ink-soft);
  display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.9rem;
}
.book__specs dt { font-weight: 600; color: var(--ink); }
.book__specs dd { margin: 0; }
.book__price {
  font-family: var(--display); font-size: var(--step-2); font-weight: 600;
  line-height: 1; margin-bottom: 0.15rem;
}
.book__price small {
  font-family: var(--body); font-size: 0.72rem; font-weight: 500; color: var(--ink-soft);
}
.book__actions { margin-top: auto; display: grid; gap: 0.5rem; }
.book__actions .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

.tag {
  position: absolute; top: 0.7rem; left: 0.7rem; z-index: 2;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; padding: 0.34em 0.75em; border-radius: 999px;
  background: var(--spine-2); color: #fff;
}
.tag--soon { background: var(--ink-faint); }

/* ---------- 10. Author -------------------------------------------------- */
.author { display: grid; gap: var(--s-5); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .author { grid-template-columns: 0.85fr 1.15fr; } }
.author__pic { position: relative; justify-self: center; width: min(100%, 400px); }
.author__pic::before {
  content: ""; position: absolute; inset: 4% 2% 14% 2%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 214 122 / 0.42) 0%, transparent 68%);
}
.author__pic img { position: relative; width: 100%; }

.author blockquote {
  border-left: 4px solid var(--gold);
  padding-left: var(--s-3);
  font-family: var(--display); font-size: var(--step-1); line-height: 1.35;
}
.author blockquote footer {
  font-family: var(--body); font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.6rem;
}

/* ---------- 11. Steps / delivery ---------------------------------------- */
.steps {
  display: grid; gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  counter-reset: step;
}
.step {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s-3);
  position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--ink);
  margin-bottom: var(--s-2);
}
.step h3 { font-size: 1.04rem; margin-bottom: 0.3rem; }
.step p { font-size: var(--step--1); color: var(--ink-soft); }

.ticks { display: grid; gap: var(--s-2); margin-top: var(--s-4); list-style: none; padding: 0; }
@media (min-width: 720px) { .ticks { grid-template-columns: 1fr 1fr; } }
.ticks li { display: flex; gap: 0.6rem; font-size: var(--step--1); color: var(--ink-soft); }
.ticks li::before { content: "✓"; color: var(--spine-2); font-weight: 800; flex: none; }

/* ---------- 12. Reviews ------------------------------------------------- */
.reviews {
  display: grid; gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
}
.review {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s-3);
}
.review p { font-size: var(--step--1); }
.review cite {
  display: block; margin-top: var(--s-2); font-size: 0.8rem;
  font-style: normal; color: var(--ink-soft);
}
.empty-state {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: var(--s-4); text-align: center; color: var(--ink-soft);
  background: var(--card);
}
.empty-state h3 { margin-bottom: 0.4rem; }

/* ---------- 13. Forms & panels ------------------------------------------ */
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s-4);
  box-shadow: var(--shadow-soft);
}

.field { display: grid; gap: 0.35rem; margin-bottom: var(--s-3); }
.field label { font-size: 0.82rem; font-weight: 600; }
.field .hint { font-size: 0.75rem; color: var(--ink-soft); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.72rem 0.9rem;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--ink);
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: #fff;
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: var(--error); }
.field .error { font-size: 0.75rem; color: var(--error); min-height: 1em; }
.field-row { display: grid; gap: var(--s-2); grid-template-columns: 1fr 1fr; }

/* Honeypot: invisible to people, tempting to naive bots */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.79rem; line-height: 1.45; }
.consent input { width: auto; margin-top: 0.22rem; flex: none; accent-color: var(--gold-deep); }

/* ---------- 14. FAQ ----------------------------------------------------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: var(--s-3) 0; }
.faq summary {
  cursor: pointer; font-family: var(--display); font-size: var(--step-1);
  list-style: none; display: flex; justify-content: space-between;
  gap: var(--s-3); align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-deep); font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: var(--s-2); color: var(--ink-soft); font-size: var(--step--1); }

/* ---------- 15. Footer -------------------------------------------------- */
.site-footer {
  background: var(--ink); color: #cfc4b6;
  padding-block: var(--s-5) var(--s-4);
  font-size: var(--step--1);
  margin-top: var(--s-6);
}
.site-footer .brand { color: #fff; }
.site-footer h4 {
  font-family: var(--body); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #fff; margin-bottom: var(--s-2);
}
.footer-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; margin: 0; }
.site-footer a { color: #cfc4b6; text-decoration: none; }
.site-footer a:hover { color: var(--gold-warm); text-decoration: underline; }
.footer-legal {
  margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: 1px solid #3a2f25;
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  justify-content: space-between; font-size: 0.8rem; color: #a2968a;
}

/* ---------- 16. Dialog, toast, cookie bar ------------------------------- */
dialog {
  border: 0; padding: 0; background: transparent; color: inherit;
  max-width: min(100% - 2rem, 520px); width: 100%;
}
dialog::backdrop { background: rgb(30 24 19 / 0.6); backdrop-filter: blur(4px); }
.modal {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: var(--s-4); position: relative;
  box-shadow: var(--shadow-lift);
}
.modal__close {
  position: absolute; top: 0.6rem; right: 0.9rem;
  font-size: 1.6rem; color: var(--ink-faint); line-height: 1;
}
.modal__close:hover { color: var(--ink); }

#toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 200;
  transform: translate(-50%, 180%);
  background: var(--ink); color: var(--cream);
  padding: 0.85rem 1.3rem; border-radius: 999px;
  font-size: 0.86rem; font-weight: 600;
  box-shadow: var(--shadow-lift);
  transition: transform 0.36s var(--ease);
  max-width: calc(100% - 2rem); text-align: center;
}
#toast[data-show="true"] { transform: translate(-50%, 0); }
#toast[data-tone="error"] { background: var(--error); color: #fff; }

.cookie {
  position: fixed; z-index: 150; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 640px; margin-inline: auto;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s-3);
  box-shadow: var(--shadow-lift);
  display: none; gap: var(--s-3); align-items: center; flex-wrap: wrap;
  font-size: 0.82rem; line-height: 1.5;
}
.cookie[data-show="true"] { display: flex; }
.cookie p { flex: 1 1 260px; }

/* ---------- 17. Blog ---------------------------------------------------- */
.post-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); }
.post-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.post-card::before { content: ""; display: block; height: 9px; background: var(--spine, var(--gold)); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.post-card__body { padding: var(--s-3); display: flex; flex-direction: column; flex: 1; }
.post-card h3 { margin-bottom: 0.4rem; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--gold-deep); }
.post-card p { font-size: var(--step--1); color: var(--ink-soft); }
.post-meta {
  font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 0.6rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: var(--s-3); }
.chip {
  font-size: 0.72rem; padding: 0.28em 0.75em; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft); text-decoration: none;
}
a.chip:hover { border-color: var(--ink); color: var(--ink); }

.breadcrumbs { font-size: 0.78rem; color: var(--ink-soft); padding-top: var(--s-3); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.5; }
.breadcrumbs a { color: var(--ink-soft); }

.share { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-top: var(--s-4); }

/* ---------- 18. Prose / legal pages ------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin-top: var(--s-5); margin-bottom: var(--s-2); }
.prose h3 { margin-top: var(--s-4); margin-bottom: var(--s-1); }
.prose p, .prose li { color: var(--ink-soft); }
.prose p + p { margin-top: var(--s-2); }
.prose ul, .prose ol { margin: var(--s-2) 0; padding-left: 1.3rem; display: grid; gap: 0.45rem; }
.prose table { width: 100%; border-collapse: collapse; margin: var(--s-3) 0; font-size: var(--step--1); }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 700; }
.prose td { color: var(--ink-soft); }
.page-head { padding-block: var(--s-4) var(--s-4); border-bottom: 1px solid var(--line); }
.updated { font-size: 0.8rem; color: var(--ink-soft); margin-top: var(--s-2); }

/* ---------- 19. Motion, focus, print ------------------------------------ */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .halo__sparks { display: none; }
}

@media print {
  .site-header, .site-footer, .cookie, .halo__sparks, .halo__note { display: none; }
  body { background: #fff; color: #000; }
  .band--card { box-shadow: none; }
}
