/* ==========================================================================
   Kit Green Books — kitgreenbooks.com
   Brand fonts:  Rye (series title) · Rosario (author name + body)
                 Rocs One (subtitles/ribbons) · Bobby Jones (labels)
   Rocs One and Bobby Jones are commercial fonts, so the site ships with close
   free stand-ins (Corben Bold and Cabin Condensed Bold). If you hold WEB
   licences for the real ones: put rocs-one.woff2 / bobby-jones.woff2 in
   /assets/fonts/ and change the two file names marked SWAP below.
   ========================================================================== */

@font-face { font-family: "Rye"; src: url("../fonts/rye.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Rosario"; src: url("../fonts/rosario.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Rosario"; src: url("../fonts/rosario-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Rocs One"; src: url("../fonts/corben-bold.woff2") format("woff2"); /* SWAP: rocs-one.woff2 */ font-weight: 700; font-display: swap; }
@font-face { font-family: "Bobby Jones"; src: url("../fonts/cabin-condensed-bold.woff2") format("woff2"); /* SWAP: bobby-jones.woff2 */ font-weight: 700; font-display: swap; }

:root {
  --ink: #15120c;
  --cream: #fdf4da;
  --cream-deep: #fbe7b2;
  --paper: #fffaf0;
  --teal: #0097b2;
  --teal-deep: #0a6a7e;
  --teal-night: #073f4b;
  --gold-hi: #fedc58;
  --gold: #e9b93a;
  --gold-lo: #d2962a;
  --pine: #2a592f;
  --lime: #7bbf37;
  --red: #d8432b;
  --b2: #1fa971;
  --gold-grad: linear-gradient(180deg, #fff08a 0%, #fedc58 35%, #e0a52f 100%);
  --display: "Rye", "Rockwell", serif;
  --ribbon: "Rocs One", "Cooper Black", Georgia, serif;
  --label: "Bobby Jones", "Arial Narrow", sans-serif;
  --body: "Rosario", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
  --shadow: 6px 6px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--body); font-size: 1.125rem; line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
main { overflow-x: clip; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
p { margin: 0 0 1.1em; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- Type treatments ---------- */
.label {
  font-family: var(--label); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: .95rem; margin: 0 0 .8rem;
}
.h-display { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: .01em; }
.h-ribbon { font-family: var(--ribbon); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.lede { font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.5; }

/* Gold gradient lettering with a black comic outline (like the covers).
   The element itself draws the black outline; ::after lays the gradient on top. */
.gold {
  position: relative; display: inline-block;
  color: var(--ink); -webkit-text-fill-color: var(--ink);
  -webkit-text-stroke: .14em var(--ink); paint-order: stroke fill;
  text-shadow: .05em .06em 0 var(--ink), .08em .09em 0 var(--ink);
}
.gold::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; -webkit-text-stroke: 0; text-shadow: none;
}
.gold.green::after { background-image: linear-gradient(180deg, #1c8fa8 0%, #35c07a 100%); }
.gold.red::after { background-image: linear-gradient(180deg, #ef3b2d 0%, #e88a2e 100%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  font-size: 1.05rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  color: var(--ink); background: var(--gold-grad);
  border: 3px solid var(--ink); border-radius: 10px; padding: .85rem 1.3rem;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.alt { background: var(--paper); }
.btn.dark { background: var(--ink); color: var(--gold-hi); box-shadow: 4px 4px 0 var(--gold-lo); }
.btn.dark:hover { color: var(--gold-hi); box-shadow: 6px 6px 0 var(--gold-lo); }
.btn small { display: block; font-size: .72rem; letter-spacing: .1em; opacity: .75; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.center .btn-row, .btn-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 4px solid var(--gold); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { font-family: var(--body); font-weight: 700; font-size: 1.9rem; letter-spacing: .01em; text-decoration: none; line-height: 1; }
.brand .gold { -webkit-text-stroke: 0; text-shadow: none; -webkit-text-fill-color: transparent; }
.nav { display: flex; gap: .3rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav a {
  font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .95rem;
  color: #fff; text-decoration: none; padding: .55rem .8rem; border-radius: 6px; display: block;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-hi); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.nav .nav-cta a { background: var(--gold-grad); color: var(--ink); margin-left: .4rem; }
.nav .nav-cta a:hover { color: var(--ink); filter: brightness(1.06); }
.nav-toggle { display: none; background: none; border: 2px solid var(--gold); color: var(--gold-hi); border-radius: 8px; padding: .45rem .7rem; font: 700 .95rem var(--label); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1.2rem; border-bottom: 4px solid var(--gold); }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .4rem; font-size: 1.05rem; }
  .nav .nav-cta a { margin: .5rem 0 0; text-align: center; }
}

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.sky {
  color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(0,0,0,.2) 1.4px, transparent 1.6px) 0 0 / 9px 9px,
    linear-gradient(180deg, #0a7f97 0%, var(--teal) 55%, #35a9bd 100%);
}
.sky a:not(.btn) { color: var(--gold-hi); }
.cream-dots { background: radial-gradient(circle at center, rgba(210,150,42,.22) 1.4px, transparent 1.6px) 0 0 / 10px 10px, var(--cream-deep); }
.night { background: var(--teal-night); color: #fff; }
.night a:not(.btn), .pine a:not(.btn) { color: var(--gold-hi); }
.pine { background: radial-gradient(circle at center, rgba(0,0,0,.22) 1.4px, transparent 1.6px) 0 0 / 9px 9px, var(--pine); color: #fff; }
.rule-top { border-top: 4px solid var(--ink); }
.rule-bottom { border-bottom: 4px solid var(--ink); }

/* Comic clouds */
.cloud { position: absolute; background: var(--cream-deep); border: 4px solid var(--ink); border-radius: 999px; opacity: .96; pointer-events: none; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border: inherit; border-radius: 50%; }
.cloud::before { width: 46%; aspect-ratio: 1; left: 14%; top: -58%; border-bottom-color: transparent; border-right-color: transparent; transform: rotate(45deg); }
.cloud::after { width: 34%; aspect-ratio: 1; right: 16%; top: -36%; border-bottom-color: transparent; border-right-color: transparent; transform: rotate(45deg); }
.cloud.c1 { width: 210px; height: 62px; left: -50px; top: 70px; }
.cloud.c2 { width: 260px; height: 74px; right: -70px; bottom: 60px; }
.cloud.c3 { width: 150px; height: 46px; right: 38%; top: 40px; opacity: .85; }
@media (max-width: 860px) { .cloud.c3 { display: none; } .cloud.c1 { top: 24px; transform: scale(.7); } .cloud.c2 { transform: scale(.7); bottom: 10px; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; z-index: 1; }
.hero .series { font-family: var(--body); font-weight: 700; color: var(--gold-hi); font-size: 1.2rem; margin: 0 0 .6rem; text-shadow: 1px 2px 0 rgba(0,0,0,.7); }
.hero h1 { text-transform: uppercase; font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 7.4vw, 5.2rem); line-height: .98; margin: 0 0 1.1rem; }
.hero h1 .gold { display: block; width: fit-content; }
.ribbon {
  display: inline-block; position: relative; font-family: var(--ribbon); font-weight: 700; color: var(--ink);
  background: var(--cream-deep); border: 3px solid var(--ink); padding: .4em 1.3em .45em;
  font-size: clamp(1.25rem, 3vw, 1.9rem); line-height: 1.15; transform: rotate(-2deg); margin: 0 0 1.6rem 14px;
  box-shadow: 3px 4px 0 rgba(0,0,0,.35);
}
.ribbon::before, .ribbon::after {
  content: ""; position: absolute; top: 12px; width: 26px; height: 100%; background: #e6cf8e; border: 3px solid var(--ink); z-index: -1;
}
.ribbon::before { left: -20px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 45% 50%); }
.ribbon::after { right: -20px; clip-path: polygon(0 0, 100% 0, 55% 50%, 100% 100%, 0 100%); }
.hero .tagline { font-size: clamp(1.25rem, 2.5vw, 1.6rem); line-height: 1.4; font-weight: 600; max-width: 30ch; text-shadow: 2px 2px 0 rgba(0,0,0,.55); margin-bottom: 1.4rem; }
.release {
  display: inline-block; font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  background: var(--ink); color: var(--gold-hi); padding: .45rem .9rem; border-radius: 6px; font-size: 1rem; margin-bottom: 1.2rem;
}
.cover-frame { justify-self: center; position: relative; }
.cover {
  width: min(100%, 400px); border: 4px solid var(--ink); border-radius: 6px;
  box-shadow: 12px 12px 0 rgba(0,0,0,.55); transform: rotate(2.5deg); transition: transform .25s;
}
.cover:hover { transform: rotate(0deg) scale(1.02); }
.burst {
  position: absolute; left: -34px; bottom: -22px; width: 128px; aspect-ratio: 1; display: grid; place-items: center; text-align: center;
  font-family: var(--label); font-weight: 700; text-transform: uppercase; font-size: .95rem; line-height: 1.05; color: #fff; transform: rotate(-12deg);
  background: var(--red); border-radius: 50%;
  clip-path: polygon(50% 0%, 61% 12%, 75% 7%, 79% 21%, 93% 25%, 88% 39%, 100% 50%, 88% 61%, 93% 75%, 79% 79%, 75% 93%, 61% 88%, 50% 100%, 39% 88%, 25% 93%, 21% 79%, 7% 75%, 12% 61%, 0% 50%, 12% 39%, 7% 25%, 21% 21%, 25% 7%, 39% 12%);
}
.burst b { display: block; font-size: 1.55rem; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero h1 .gold { margin-inline: auto; }
  .hero .tagline { margin-inline: auto; }
  .hero .btn-row { justify-content: center; }
  .cover-frame { order: -1; }
  .cover { width: min(70vw, 300px); }
  .burst { left: -18px; width: 104px; font-size: .8rem; } .burst b { font-size: 1.25rem; }
  .ribbon { margin-left: 0; }
}

/* ---------- Cards ---------- */
.card { background: var(--paper); color: var(--ink); border: 4px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow); padding: clamp(1.4rem, 3vw, 2.2rem); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.4rem, 3vw, 2.4rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 3vw, 2.4rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* Hero vs hero */
.versus { position: relative; }
.versus .vs {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg); z-index: 2;
  font-family: var(--display); font-size: 2rem; background: var(--red); color: #fff; border: 4px solid var(--ink);
  width: 84px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; box-shadow: 4px 4px 0 var(--ink);
}
@media (max-width: 760px) { .versus .vs { position: static; transform: rotate(-8deg); margin: -1rem auto; } }
.dossier h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: .1em; }
.dossier .rank { font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; color: var(--teal-deep); margin-bottom: 1rem; }
.dossier.flark .rank { color: #9a3a12; }
.dossier dl { margin: 1.1rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; font-size: 1.02rem; line-height: 1.45; }
.dossier dt { font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; padding-top: .2rem; white-space: nowrap; }
.dossier dd { margin: 0; }
.dossier.loomis { background: #eaf6f8; }
.dossier.flark { background: #fff1d6; }

/* Books */
.book { text-align: center; }
.book img { width: min(100%, 300px); margin: 0 auto 1.3rem; border: 4px solid var(--ink); border-radius: 6px; box-shadow: 8px 8px 0 rgba(0,0,0,.5); }
.book .num { font-family: var(--label); text-transform: uppercase; letter-spacing: .14em; font-size: .9rem; margin-bottom: .3rem; }
.book h3 { font-family: var(--ribbon); font-size: 1.45rem; margin-bottom: .4rem; }
.book .when { display: inline-block; font-family: var(--label); text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; background: var(--ink); color: var(--gold-hi); padding: .3rem .7rem; border-radius: 5px; margin-bottom: .8rem; }
.book p { font-size: 1.02rem; line-height: 1.55; }
.book.soon img { filter: saturate(.92); }

.book-feature { display: grid; grid-template-columns: 340px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.book-feature .cover { transform: rotate(-2deg); width: 100%; }
.book-feature .sticky { position: sticky; top: 100px; }
@media (max-width: 860px) { .book-feature { grid-template-columns: minmax(0, 1fr); } .book-feature .sticky { position: static; max-width: 300px; margin-inline: auto; } }
.specs { list-style: none; padding: 0; margin: 1.5rem 0 0; font-size: 1rem; border-top: 3px solid var(--ink); }
.specs li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed rgba(0,0,0,.35); }
.specs li span:first-child { font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: .88rem; }

.pull {
  font-family: var(--ribbon); font-size: clamp(1.3rem, 2.8vw, 1.8rem); line-height: 1.35; margin: 2rem 0; padding: 1.4rem 1.6rem;
  background: var(--paper); border: 4px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); position: relative;
}
.pull::after { content: ""; position: absolute; left: 48px; bottom: -22px; width: 30px; height: 22px; background: var(--ink); clip-path: polygon(0 0, 100% 0, 20% 100%); }
.pull cite { display: block; font-family: var(--label); font-style: normal; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; margin-top: .7rem; color: var(--teal-deep); }

.checks { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.checks li { padding-left: 2rem; position: relative; margin-bottom: .6rem; }
.checks li::before { content: "★"; position: absolute; left: 0; top: -.05em; color: var(--gold-lo); font-size: 1.25rem; -webkit-text-stroke: 1px var(--ink); }

/* About */
.photo { border: 4px solid var(--ink); border-radius: 10px; box-shadow: var(--shadow); }
.photo.tilt-l { transform: rotate(-2deg); } .photo.tilt-r { transform: rotate(2deg); }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
@media (max-width: 860px) { .split, .split.flip { grid-template-columns: minmax(0, 1fr); } .split .photo { max-width: min(100%, 440px); margin-inline: auto; } }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.facts li { background: var(--paper); border: 3px solid var(--ink); border-radius: 10px; padding: .9rem 1.1rem; box-shadow: 4px 4px 0 var(--ink); color: var(--ink); }
.facts b { font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; display: block; color: var(--teal-deep); }

/* Freebies */
.file { display: flex; flex-direction: column; }
.file .top { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; margin-bottom: 1rem; }
.file .stamp {
  transform: rotate(7deg); font-family: var(--label); text-transform: uppercase; letter-spacing: .14em;
  font-size: .74rem; line-height: 1; color: var(--red); border: 3px solid var(--red); padding: .3rem .45rem; border-radius: 4px; opacity: .85; margin-top: .4rem;
}
.file .icon { width: 60px; height: 60px; flex: none; }
.file h3 { font-family: var(--ribbon); font-size: 1.3rem; line-height: 1.25; }
.file p { font-size: 1rem; line-height: 1.5; margin-bottom: 0; }
.file.compact h3 { font-size: 1.15rem; margin-bottom: 0; }
.redact { display: inline-block; background: var(--ink); color: transparent; border-radius: 3px; width: 5.2em; height: .95em; vertical-align: -.12em; overflow: hidden; user-select: none; }
.file .by { font-family: var(--label); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; line-height: 1.3; color: var(--teal-deep); margin-bottom: .5rem; }

/* Sign-up form */
.signup { display: grid; gap: .8rem; max-width: 560px; }
.center .signup, .signup.center { margin-inline: auto; }
.signup .fields { display: grid; grid-template-columns: 1fr 1.4fr; gap: .8rem; }
@media (max-width: 560px) { .signup .fields { grid-template-columns: minmax(0, 1fr); } }
.signup label { font-family: var(--label); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; display: block; margin-bottom: .25rem; text-align: left; }
.signup input[type="text"], .signup input[type="email"] {
  width: 100%; font: inherit; font-size: 1.05rem; padding: .8rem .9rem; border: 3px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink);
}
.signup .btn { width: 100%; font-size: 1.15rem; padding: 1rem; }
.signup .fine { font-size: .88rem; line-height: 1.45; opacity: .85; margin: 0; }
.signup .msg { font-weight: 700; margin: 0; min-height: 1.4em; }
.signup .hp { position: absolute; left: -5000px; }

/* Quiz */
.quiz-shell { max-width: 760px; margin-inline: auto; }
.quiz-card { min-height: 420px; }
.progress { height: 16px; border: 3px solid var(--ink); border-radius: 99px; background: #fff; overflow: hidden; margin-bottom: 1.4rem; }
.progress i { display: block; height: 100%; width: 0; background: var(--gold-grad); border-right: 3px solid var(--ink); transition: width .3s; }
.q-count { font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; color: var(--teal-deep); margin-bottom: .4rem; }
.q-text { font-family: var(--ribbon); font-size: clamp(1.35rem, 3.4vw, 1.9rem); line-height: 1.25; margin-bottom: 1.4rem; }
.answers { display: grid; gap: .9rem; }
.answer {
  font: inherit; font-size: 1.1rem; line-height: 1.4; text-align: left; cursor: pointer; color: var(--ink);
  background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 1rem 1.2rem; box-shadow: 4px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s, background .12s;
}
.answer:hover { background: #fff6c9; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.answer:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.quiz-back { background: none; border: 0; font: 700 .9rem var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); cursor: pointer; margin-top: 1.3rem; padding: .3rem 0; }
.result-name { text-transform: uppercase; font-family: var(--display); font-size: clamp(3rem, 11vw, 5.5rem); line-height: 1; margin: .1em 0 .25em; }
.meter { position: relative; height: 34px; border: 3px solid var(--ink); border-radius: 99px; overflow: hidden; background: #f6a94a; margin: 1.2rem 0 .4rem; }
.meter i { position: absolute; inset: 0 auto 0 0; background: #4db4c6; border-right: 3px solid var(--ink); transition: width .8s cubic-bezier(.2,.9,.3,1.2); }
.meter-legend { display: flex; justify-content: space-between; font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; margin-bottom: 1.4rem; }
.share-row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1rem; }
.share-row .btn { font-size: .9rem; padding: .65rem .9rem; }
[hidden] { display: none !important; }

/* Footer */
.site-footer { background: var(--ink); color: #e9e2cf; padding: 3.2rem 0 2rem; border-top: 4px solid var(--gold); font-size: 1rem; }
.site-footer a { color: var(--gold-hi); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.2rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr); text-align: center; } .foot-grid img { margin-inline: auto; } }
.site-footer h2 { font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; font-size: .95rem; color: #fff; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.site-footer .brand { font-size: 2.2rem; display: inline-block; margin-bottom: .6rem; }
.site-footer .pub img { width: 150px; margin-bottom: .6rem; }
.legal { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.2); font-size: .88rem; opacity: .8; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: space-between; }

/* Page header band */
.page-head { padding: clamp(2.4rem, 6vw, 4rem) 0; text-align: center; }
.page-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 7vw, 4.2rem); margin-bottom: .3em; }
.page-head p { max-width: 46ch; margin-inline: auto; font-size: clamp(1.15rem, 2.2vw, 1.35rem); font-weight: 600; text-shadow: 2px 2px 0 rgba(0,0,0,.45); position: relative; z-index: 1; }

.prose h2 { font-family: var(--ribbon); font-size: 1.5rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
#quiz { scroll-margin-top: 96px; }
.page-head .cloud.c3 { display: none; }
.h-ribbon, .ribbon, .file h3, .book h3, .q-text, .pull { font-variant-ligatures: none; font-feature-settings: "liga" 0, "dlig" 0; }
