/* Shared style for every Fun Books book page.
   Part 1 is the original book-page layout. Part 2 (below the big line) gives it the
   "Home of Tomorrow" look: turquoise, coral, chrome and starbursts, to match the rest of the site. */
/* Layout: an oxblood title band like the cover, then parchment "pages" with chapter paintings, sample pages and a closing buy band. Single vintage look in every theme. */
:root {
  --parch: #EFE4CC;
  --parch-2: #E4D5B5;
  --ink: #2B1F17;
  --ink-soft: #5C4A3B;
  --oxblood: #7E1F24;
  --oxblood-deep: #4E1316;
  --navy: #1E2D4F;
  --sage: #A9C1A6;
  --sage-deep: #2F5233;
  --cream: #F7EEDB;
  --night: #24160F;
  --display: "Playfair Display", "Georgia", serif;
  --body: "Libre Caslon Text", "Georgia", "Times New Roman", serif;
  --label: "Cinzel", "Trajan Pro", "Georgia", serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--parch);
  color: var(--ink);
  font: 17px/1.65 var(--body);
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oxblood); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); text-wrap: balance; line-height: 1.1; margin: 0; }
p { margin: 0; }
.label {
  font-family: var(--label);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- top bar ---------- */
.top {
  background: var(--night);
  color: var(--cream);
}
.top .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 12px;
}
.top .brand { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 1.1rem; }
.top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.top nav a { color: var(--cream); text-decoration: none; font-family: var(--label); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.top nav a:hover { opacity: 1; text-decoration: underline; }

/* ---------- hero ---------- */
.hero {
  background:
    repeating-linear-gradient(-8deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 6px),
    linear-gradient(160deg, var(--oxblood) 0%, var(--oxblood-deep) 100%);
  color: var(--cream);
  overflow: hidden;
  border-bottom: 6px solid var(--navy);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-block: 64px 72px;
}
.hero-copy { min-width: 0; display: grid; gap: 22px; }
.hero .label { color: var(--sage); }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.2rem); font-weight: 900; letter-spacing: -0.01em; }
.hero h1 em { font-weight: 700; font-size: 0.6em; display: block; }
.strap {
  background: var(--navy);
  font-family: var(--label); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 0.85rem;
  padding: 8px 16px;
  justify-self: start;
  transform: rotate(-2deg);
  box-shadow: 0 3px 0 rgba(0,0,0,0.25);
}
.hero .lede { font-size: 1.15rem; max-width: 34em; color: var(--cream); opacity: 0.95; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--label); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--parch-2); }
.facts b { font-family: var(--display); font-size: 1.6rem; letter-spacing: 0; color: var(--cream); display: block; line-height: 1; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.9rem;
  padding: 15px 24px;
  border-radius: 3px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-main { background: var(--cream); color: var(--oxblood-deep); box-shadow: 0 4px 0 var(--night); }
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--night); }
.btn-ghost { color: var(--cream); border: 2px solid rgba(247,238,219,0.6); }
.btn-ghost:hover { border-color: var(--cream); }
.cover-wrap { position: relative; justify-self: center; max-width: 420px; width: 100%; }
.cover-wrap img {
  width: 100%;
  border-radius: 2px 6px 6px 2px;
  box-shadow: -10px 0 0 -4px var(--night), 0 30px 60px rgba(0,0,0,0.5);
  transform: rotate(2.5deg);
}
.seal {
  position: absolute; left: -26px; bottom: 34px;
  width: 104px; height: 104px; border-radius: 50%;
  background: var(--cream); color: var(--oxblood);
  display: grid; place-content: center; text-align: center;
  border: 3px double var(--oxblood);
  font-family: var(--label); font-size: 0.62rem; letter-spacing: 0.12em; font-weight: 700; line-height: 1.2;
  transform: rotate(-10deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.seal b { font-family: var(--display); font-size: 2.2rem; line-height: 1; letter-spacing: 0; }

/* ---------- section basics ---------- */
section { padding-block: 80px; }
.sec-head { display: grid; gap: 12px; max-width: 46em; margin-bottom: 40px; }
.sec-head .label { color: var(--oxblood); }
.sec-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; }
.sec-head p { color: var(--ink-soft); font-size: 1.08rem; }
.rule { height: 0; border-top: 1px solid var(--ink-soft); border-bottom: 1px solid var(--ink-soft); padding-top: 3px; opacity: 0.35; margin: 0; }

/* ---------- why ---------- */
.why .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.why .quote {
  font-family: var(--display); font-style: italic; font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.25; color: var(--oxblood-deep);
  border-left: 5px solid var(--oxblood); padding-left: 24px;
}
.why .quote small { display: block; margin-top: 14px; font-family: var(--label); font-style: normal; font-size: 0.75rem; letter-spacing: 0.14em; color: var(--ink-soft); }
.why-copy { display: grid; gap: 18px; min-width: 0; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-top: 10px; }
.why-list div { display: grid; gap: 4px; }
.why-list h3 { font-size: 1.2rem; color: var(--sage-deep); }
.why-list p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- chapters ---------- */
.chapters { background: var(--parch-2); }
.ch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ch {
  background: var(--cream);
  border: 1px solid rgba(43,31,23,0.18);
  box-shadow: 0 2px 0 rgba(43,31,23,0.08);
  display: grid; grid-template-rows: auto 1fr;
  min-width: 0;
}
.ch-art { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-bottom: 5px solid var(--c); }
.ch-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ch:hover .ch-art img { transform: scale(1.04); }
.ch-num {
  position: absolute; top: 10px; left: 10px;
  background: var(--c); color: var(--cream);
  font-family: var(--label); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.14em;
  padding: 5px 10px;
}
.ch-body { padding: 18px 20px 22px; display: grid; gap: 8px; align-content: start; }
.ch-body h3 { font-size: 1.45rem; color: var(--ink); }
.ch-body .sub { font-style: italic; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.45; }
.ch-body ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; font-size: 0.9rem; }
.ch-body li { padding-left: 16px; position: relative; line-height: 1.4; }
.ch-body li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 7px; height: 7px; background: var(--c); transform: rotate(45deg); }

/* ---------- inside pages ---------- */
.inside .wrap > .anatomy { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; margin-bottom: 70px; }
.anatomy figure { margin: 0; position: relative; }
.anatomy figure img { box-shadow: 0 20px 50px rgba(43,31,23,0.3); border: 1px solid rgba(43,31,23,0.2); }
.anatomy ol { list-style: none; counter-reset: a; padding: 0; margin: 0; display: grid; gap: 22px; }
.anatomy li { counter-increment: a; display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.anatomy li::before {
  content: counter(a); width: 42px; height: 42px; border-radius: 50%;
  background: var(--sage-deep); color: var(--cream);
  display: grid; place-content: center;
  font-family: var(--display); font-weight: 900; font-size: 1.15rem;
}
.anatomy li h3 { font-size: 1.2rem; margin-bottom: 3px; }
.anatomy li p { font-size: 0.95rem; color: var(--ink-soft); }
.pin {
  position: absolute; width: 34px; height: 34px; border-radius: 50%;
  background: var(--sage-deep); color: var(--cream); border: 2px solid var(--cream);
  display: grid; place-content: center; font-family: var(--display); font-weight: 900; font-size: 0.95rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}
.shelf {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr);
  gap: 22px; overflow-x: auto; padding: 8px 4px 26px;
  scroll-snap-type: x mandatory;
}
.shelf button {
  all: unset; cursor: zoom-in; scroll-snap-align: start;
  display: grid; gap: 10px;
}
.shelf img { aspect-ratio: 17 / 22; object-fit: cover; border: 1px solid rgba(43,31,23,0.2); box-shadow: 0 10px 24px rgba(43,31,23,0.25); transition: transform .2s ease; }
.shelf button:hover img, .shelf button:focus-visible img { transform: translateY(-4px) rotate(-0.6deg); }
.shelf span { font-family: var(--label); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }
.shelf-hint { font-size: 0.85rem; color: var(--ink-soft); font-style: italic; }

/* ---------- also inside ---------- */
.extras { background: var(--sage); }
.extras .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.extras h2 { grid-column: 1 / -1; font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 900; color: var(--sage-deep); }
.extras div { border-top: 3px solid var(--sage-deep); padding-top: 14px; display: grid; gap: 6px; min-width: 0; }
.extras h3 { font-size: 1.15rem; color: var(--ink); }
.extras p { font-size: 0.93rem; color: var(--ink); opacity: 0.85; }

/* ---------- get it ---------- */
.get { background: var(--night); color: var(--cream); }
.get .wrap { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 56px; align-items: center; }
.get img { max-width: 340px; width: 100%; justify-self: center; box-shadow: 0 24px 50px rgba(0,0,0,0.6); transform: rotate(-2deg); }
.get-copy { display: grid; gap: 20px; min-width: 0; }
.get .label { color: var(--sage); }
.get h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; }
.get p { color: var(--parch-2); max-width: 36em; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(247,238,219,0.25); max-width: 520px; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(247,238,219,0.25); font-size: 0.92rem; }
.specs div:nth-child(odd) { margin-right: 22px; }
.specs dt { color: var(--parch-2); opacity: 0.8; }
.specs dd { margin: 0; font-variant-numeric: tabular-nums; }
.get .btn-main { background: var(--oxblood); color: var(--cream); box-shadow: 0 4px 0 #000; }
.get .btn-main:hover { box-shadow: 0 6px 0 #000; }

footer { background: var(--night); color: var(--parch-2); border-top: 1px solid rgba(247,238,219,0.15); }
footer .wrap { padding-block: 22px; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; opacity: 0.75; }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(20,12,8,0.92);
  display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.lb img { max-height: calc(100vh - 90px); width: auto; box-shadow: 0 20px 60px #000; }
.lb-bar { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); display: flex; gap: 8px; }
.lb-bar button {
  font: 700 0.8rem var(--label); letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--cream); color: var(--ink); border: 0; padding: 10px 14px; border-radius: 3px; cursor: pointer;
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .cover-wrap img { animation: settle 0.9s cubic-bezier(.2,.8,.2,1) both; }
  .seal { animation: stamp 0.5s 0.7s cubic-bezier(.3,1.6,.5,1) both; }
  @keyframes settle { from { transform: rotate(8deg) translateY(16px); } to { transform: rotate(2.5deg); } }
  @keyframes stamp { from { transform: rotate(-30deg) scale(1.5); } to { transform: rotate(-10deg) scale(1); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .why .wrap, .inside .wrap > .anatomy, .get .wrap { grid-template-columns: 1fr; gap: 40px; }
  .cover-wrap { max-width: 340px; }
  .ch-grid { grid-template-columns: repeat(2, 1fr); }
  .extras .wrap { grid-template-columns: repeat(2, 1fr); }
  .get img { max-width: 260px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top nav { display: none; }
  section { padding-block: 56px; }
  .hero .wrap { padding-block: 40px 56px; }
  .ch-grid, .extras .wrap, .why-list { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .specs div:nth-child(odd) { margin-right: 0; }
  .seal { left: -6px; width: 86px; height: 86px; }
  .seal b { font-size: 1.8rem; }
}

/* ==========================================================================
   Part 2: Home of Tomorrow look
   ========================================================================== */
:root {
  --cream: #FFF6E2;
  --parch: #FFF6E2;
  --parch-2: #F3DDB2;
  --ink: #2A2220;
  --ink-soft: #5E4D42;
  --aqua: #5CC8C0;
  --aqua-pale: #BFE8E2;
  --aqua-deep: #1E7C78;
  --teal-night: #123D47;
  --coral: #F2705C;
  --coral-deep: #C9452F;
  --cherry: #C8323A;
  --mustard: #F4B63C;
  --mint: #D5EEDB;
  --oxblood: var(--cherry);
  --oxblood-deep: #8E1F27;
  --navy: var(--teal-night);
  --sage: var(--aqua-pale);
  --sage-deep: var(--aqua-deep);
  --night: #1B1513;
  --display: "Shrikhand", "Cooper Black", Georgia, serif;
  --title: "Playfair Display", Georgia, serif;
  --label: "Righteous", "Futura", "Trebuchet MS", sans-serif;
  --script: "Yellowtail", "Brush Script MT", cursive;
  --sparkle: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  --burst: polygon(50% 0%, 61% 13%, 77% 6%, 79% 22%, 95% 23%, 88% 38%, 100% 50%, 88% 62%, 95% 77%, 79% 78%, 77% 94%, 61% 87%, 50% 100%, 39% 87%, 23% 94%, 21% 78%, 5% 77%, 12% 62%, 0% 50%, 12% 38%, 5% 23%, 21% 22%, 23% 6%, 39% 13%);
}
body {
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg opacity='.28'%3E%3Cpath d='M30 14l2.6 8.4 8.4 2.6-8.4 2.6L30 36l-2.6-8.4-8.4-2.6 8.4-2.6z' fill='%23F4B63C'/%3E%3Cpath d='M142 112l1.8 5.2 5.2 1.8-5.2 1.8-1.8 5.2-1.8-5.2-5.2-1.8 5.2-1.8z' fill='%23F2705C'/%3E%3Cpath d='M116 36c10-10 26-10 34 2-10-5-22-4-34-2z' fill='%235CC8C0'/%3E%3Cpath d='M24 150c8-12 24-14 34-4-11-3-22-1-34 4z' fill='%23F2705C'/%3E%3Ccircle cx='86' cy='90' r='2.4' fill='%235CC8C0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 200px 200px;
}
a { color: var(--coral-deep); }
:focus-visible { outline-color: var(--aqua-deep); }
h1, h2 { font-family: var(--display); font-weight: 400 !important; letter-spacing: 0.005em; }
h3 { font-family: var(--title); }
.label { font-family: var(--label); font-weight: 400; letter-spacing: 0.14em; }

/* top bar: turquoise with chrome trim */
.top { background: var(--aqua); color: var(--teal-night); position: relative; z-index: 2; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: linear-gradient(180deg, #fff 0%, #D9DEE2 35%, #9AA3AA 52%, #E8ECEF 70%, #B8C0C6 100%); }
.top .wrap { padding-block: 12px; }
.top .brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--script); font-style: normal; font-weight: 400; font-size: 1.9rem; line-height: 1; color: var(--cream) !important; text-shadow: 2px 2px 0 var(--coral-deep), 4px 4px 0 var(--teal-night); }
.top .brand svg { width: 34px; height: 34px; flex: none; }
.top nav { gap: 8px; }
.top nav a { opacity: 1; color: var(--teal-night); background: var(--cream); padding: 7px 14px; border-radius: 999px; font-size: 0.78rem; letter-spacing: 0.08em; box-shadow: 0 3px 0 var(--teal-night); transition: transform .15s ease; }
.top nav a:hover { text-decoration: none; transform: translateY(-2px) rotate(-2deg); }

/* hero: a starry night sky with an atomic orbit */
.hero {
  position: relative;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%235CC8C0' stroke-width='1.2' opacity='.45'%3E%3Cellipse cx='100' cy='100' rx='92' ry='30'/%3E%3Cellipse cx='100' cy='100' rx='92' ry='30' transform='rotate(60 100 100)'/%3E%3Cellipse cx='100' cy='100' rx='92' ry='30' transform='rotate(120 100 100)'/%3E%3C/g%3E%3C/svg%3E") no-repeat right -160px center / 760px 760px,
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.45) 0 1.2px, transparent 1.8px) 0 0 / 120px 120px,
    radial-gradient(circle at 15% 25%, rgba(92,200,192,0.3), transparent 45%),
    linear-gradient(170deg, var(--teal-night) 0%, #1A5260 100%);
  border-bottom: 0;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--coral) 0 40px, var(--mustard) 40px 80px, var(--aqua) 80px 120px); }
.hero .label { color: var(--mustard); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); color: var(--cream); text-shadow: 4px 4px 0 var(--coral-deep); line-height: 1.05; }
.hero h1 em { font-family: var(--script); font-style: normal; font-size: 0.62em; color: var(--aqua); text-shadow: none; transform: rotate(-3deg); transform-origin: left; margin-bottom: 6px; }
.strap { background: var(--coral); color: var(--cream); font-family: var(--label); font-weight: 400; border-radius: 999px; padding: 8px 18px; box-shadow: 0 4px 0 var(--night); }
.facts { font-family: var(--label); color: var(--aqua-pale); letter-spacing: 0.08em; }
.facts b { font-family: var(--display); font-weight: 400; color: var(--mustard); font-size: 1.9rem; }
.facts span { background: rgba(255,255,255,0.07); border-radius: 18px; padding: 8px 14px; box-shadow: inset 0 0 0 2px rgba(92,200,192,0.4); }
.btn { font-family: var(--label); font-weight: 400; letter-spacing: 0.08em; border-radius: 999px; }
.btn-main { background: var(--coral); color: var(--cream); box-shadow: inset 0 -4px 0 rgba(0,0,0,0.14), 0 5px 0 var(--night); }
.btn-main:hover { box-shadow: inset 0 -4px 0 rgba(0,0,0,0.14), 0 7px 0 var(--night); }
.btn-ghost { color: var(--cream); border: 2px solid var(--aqua); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(92,200,192,0.15); }
.cover-wrap img { box-shadow: -10px 0 0 -4px var(--night), 0 0 0 6px #E8ECEF, 0 30px 60px rgba(0,0,0,0.5); }
.seal {
  border: 0; border-radius: 0; clip-path: var(--burst); width: 124px; height: 124px; left: -34px; bottom: 26px;
  background: var(--mustard); color: var(--teal-night); box-shadow: none;
  font-family: var(--label); font-weight: 400; letter-spacing: 0.08em;
}
.seal b { font-family: var(--display); color: var(--cherry); }

/* section heads */
.sec-head .label { color: var(--coral-deep); display: inline-flex; align-items: center; gap: 10px; }
.sec-head .label::before { content: ""; width: 16px; height: 16px; background: var(--mustard); clip-path: var(--sparkle); flex: none; }
.sec-head h2 { color: var(--teal-night); font-size: clamp(2rem, 4.2vw, 3.1rem); }

/* why */
.why .quote { font-family: var(--script); font-style: normal; font-weight: 400; font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--coral-deep); border-left: 0; padding: 26px 28px; background: var(--cream); border-radius: 30px 30px 30px 6px; box-shadow: 0 0 0 3px var(--teal-night), 8px 10px 0 3px var(--aqua); line-height: 1.15; }
.why .quote small { font-family: var(--label); color: var(--aqua-deep); }
.why-list h3 { color: var(--aqua-deep); padding-left: 24px; position: relative; }
.why-list h3::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 16px; height: 16px; background: var(--coral); clip-path: var(--sparkle); }

/* chapters: rounded cards on a mint counter */
.chapters { background: var(--mint); border-block: 3px solid var(--teal-night); }
.ch { background: var(--cream); border: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 3px var(--teal-night), 6px 8px 0 3px var(--c); transition: transform .2s ease; }
.ch:hover { transform: translateY(-4px) rotate(-0.6deg); }
.ch-num { font-family: var(--label); font-weight: 400; border-radius: 999px; padding: 5px 12px; letter-spacing: 0.08em; box-shadow: 0 2px 0 rgba(0,0,0,0.3); }
.ch-body h3 { color: var(--teal-night); }
.ch-body li::before { width: 10px; height: 10px; top: 0.4em; transform: none; clip-path: var(--sparkle); }

/* look inside */
.anatomy figure img { border-radius: 10px; box-shadow: 0 0 0 3px var(--teal-night), 10px 12px 0 3px var(--coral); }
.anatomy li::before, .pin { background: var(--coral); font-family: var(--display); font-weight: 400; box-shadow: 0 3px 0 var(--teal-night); }
.pin { border-color: var(--cream); }
.shelf img { border-radius: 6px; border: 0; box-shadow: 0 0 0 2px var(--teal-night), 5px 7px 0 2px var(--aqua); }
.shelf span { font-family: var(--label); color: var(--teal-night); letter-spacing: 0.06em; }

/* the back of the book */
.extras { background: var(--aqua); border-top: 3px solid var(--teal-night); }
.extras h2 { color: var(--teal-night); text-shadow: 3px 3px 0 var(--aqua-pale); }
.extras .wrap > div { background: var(--cream); border-top: 0; border-radius: 20px 20px 20px 6px; padding: 18px; box-shadow: 0 0 0 3px var(--teal-night), 5px 6px 0 3px var(--mustard); }
.extras h3 { color: var(--teal-night); }

/* get it */
.get {
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.55) 0 1.2px, transparent 1.8px) 0 0 / 110px 110px,
    radial-gradient(circle at 80% 70%, rgba(242,112,92,0.22), transparent 45%),
    var(--teal-night);
  border-top: 10px solid var(--coral);
}
.get .label { color: var(--mustard); }
.get h2 { color: var(--cream); text-shadow: 3px 3px 0 var(--coral-deep); }
.get img { border-radius: 4px; box-shadow: 0 0 0 6px #E8ECEF, 0 24px 50px rgba(0,0,0,0.6); }
.get p { color: var(--aqua-pale); }
.specs { border-top-color: rgba(92,200,192,0.4); }
.specs div { border-bottom-color: rgba(92,200,192,0.4); }
.specs dt { color: var(--aqua-pale); }
.get .btn-main { background: var(--coral); box-shadow: inset 0 -4px 0 rgba(0,0,0,0.14), 0 5px 0 #000; }

/* footer with the Googie skyline (drawn by tomorrow.js) */
footer { background: var(--teal-night); color: var(--aqua-pale); border-top: 0; position: relative; margin-top: 0; }
.get + footer, main + footer { margin-top: 0; }
footer .wrap { opacity: 1; }
.skyline { display: none; }

/* lightbox */
.lb { background: rgba(18,61,71,0.94); }
.lb img { border-radius: 6px; }
.lb-bar button { font-family: var(--label); font-weight: 400; border-radius: 999px; background: var(--cream); color: var(--teal-night); box-shadow: 0 3px 0 var(--coral); }

/* flying saucer and its speech bubble (from tomorrow.js) */
.saucer { position: fixed; z-index: 40; left: 0; top: 0; width: 120px; cursor: pointer; border: 0; padding: 0; background: none; -webkit-tap-highlight-color: transparent; }
.saucer svg { display: block; width: 100%; height: auto; }
.saucer-say { position: fixed; z-index: 41; max-width: 260px; background: var(--cream); color: var(--ink); padding: 12px 16px; border-radius: 18px 18px 18px 4px; box-shadow: 0 0 0 3px var(--teal-night), 5px 6px 0 3px var(--coral); font-size: 0.95rem; line-height: 1.35; }
.saucer-say b { font-family: var(--label); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; color: var(--coral-deep); display: block; margin-bottom: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .top .brand svg { animation: bspin 14s linear infinite; }
  @keyframes bspin { to { transform: rotate(360deg); } }
}
@media (prefers-reduced-motion: reduce) { .saucer { display: none; } }
@media (max-width: 600px) {
  .hero { background-size: 0 0, 120px 120px, auto, auto; }
  .top .brand { font-size: 1.6rem; }
  .facts { gap: 10px; }
  .facts span { padding: 6px 10px; }
  .seal { width: 96px; height: 96px; left: -8px; }
  .hero h1 { text-shadow: 3px 3px 0 var(--coral-deep); }
  .saucer { width: 90px; }
}
