:root {
  --paper: #fffdf7;
  --cream: #fff6e3;
  --tint: #e6f2f5;
  --ink: #2b2723;
  --ink-soft: #62594f;
  --rule: #e6ddcb;
  --teal: #2f7e76;
  --teal-dark: #23615b;
  --sun: #f0c419;
  --sun-soft: #fdf0c4;
  --sun-ink: #7a5f08;
  --blob-1: #bfe3ef;
  --blob-2: #a5d3e2;

  --display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 60ch;
  --gutter: 1.25rem;
  --section-scroll-offset: 1rem;
  --stickybuy-height: 4.125rem;
  --scroll-clear-bottom: calc(var(--stickybuy-height) + 1rem);
}

/* Self-hosted, Latin subset. Two weights: Baloo 2 600 for display, Nunito Sans 400 (with its italic) for text.
   Licences in assets/fonts/OFL-*.txt. */
@font-face {
  font-family: "Baloo 2"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/baloo2-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/nunitosans-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/nunitosans-400italic-latin.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  scroll-padding-top: var(--section-scroll-offset);
  scroll-padding-bottom: var(--scroll-clear-bottom);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
/* <picture> only chooses WebP or the fallback; the <img> inside keeps the layout. */
picture { display: contents; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .45em;
}
h1 { font-size: clamp(2.25rem, 7vw, 3.75rem); font-weight: 600; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

a { color: var(--teal-dark); }
a:hover { color: var(--teal-dark); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 60; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: 100%; max-width: 68rem; margin-inline: auto; padding-inline: var(--gutter); }

/* wavy section dividers -------------------------------------------------- */

.wave { display: block; width: 100%; height: 42px; margin-bottom: -1px; }
.wave-flip { transform: scaleY(-1); }
.w-cream  { fill: var(--cream); }
.w-tint   { fill: var(--tint); }
.w-paper  { fill: var(--paper); }
.w-sun    { fill: var(--sun-soft); }
.w-ink    { fill: var(--ink); }

/* masthead --------------------------------------------------------------- */

.masthead {
  position: static; z-index: 30;
  background: var(--cream);
  border-bottom: 1px solid rgba(43, 39, 35, .12);
}

.masthead-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: .75rem 1.25rem; min-height: 4rem; padding-block: .7rem;
  max-width: 62rem;
}
.wordmark {
  display: inline-flex; align-items: center; gap: .7rem;
  margin-right: auto;
  font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.1;
  color: var(--ink); text-decoration: none;
}
.wordmark img {
  width: 4.5rem; height: auto;
  border: 0; border-radius: 0; background: transparent; padding: 0;
  box-shadow: none;
}
@media (max-width: 47.9375rem) {
  .masthead { position: static; }
  .wordmark { font-size: 1.25rem; }
  .wordmark img { width: 3.25rem; }
  .masthead-inner { min-height: 3.5rem; }
}
/* Tablet: the full-size wordmark plus the nav is just too wide for one row, so use the compact one. */
@media (min-width: 48rem) and (max-width: 63.9375rem) {
  .wordmark { font-size: 1.25rem; }
  .wordmark img { width: 3.25rem; }
  .nav a { padding-inline: .7rem; }
}
.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .45rem;
  list-style: none; margin: 0 0 0 auto; padding: 0; font-size: .9375rem;
}
.nav li { margin: 0; }
.nav a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: .55rem .9rem; border-radius: 999px;
  color: var(--ink); font-family: var(--display); font-weight: 600; text-decoration: none;
  border: 1px solid transparent; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--ink); text-decoration: underline wavy var(--sun) 2px; text-underline-offset: 4px; border-color: rgba(43, 39, 35, .08);
  background: var(--sun-soft); transform: translateY(-1px);
}

/* hero ------------------------------------------------------------------- */

.hero {
  position: relative; overflow: clip;
  background-image: url("../img/doodles/pattern.svg"), linear-gradient(180deg, var(--paper) 0%, var(--paper) 68%, var(--cream) 100%);
  background-repeat: repeat, no-repeat;
  background-size: 480px 480px, cover;
}
.hero-grid { position: relative; z-index: 2; display: grid; gap: 2rem; padding-block: 1rem; }

.blob {
  position: absolute; z-index: 1;
  width: 30rem; height: 30rem; border-radius: 50%;
  background: var(--blob-1);
  top: 1.5rem; left: 50%; transform: translateX(-50%);
  box-shadow: none;
}
.blob::after {
  content: ""; position: absolute;
  left: 50%; top: 50%; width: 68%; height: 68%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--blob-2);
}

.hero-cover {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; min-height: calc(min(26rem, 62vh, 78vw) + 7rem);
}
.thumbs {
  display: grid; grid-template-columns: repeat(4, minmax(44px, 3.5rem));
  gap: .5rem; width: 100%; max-width: 26rem;
  list-style: none; margin: 0; padding: 0; justify-content: center;
}
.thumbs button {
  display: block; width: 100%; height: 3.5rem; min-width: 44px; min-height: 44px; padding: .2rem;
  background: var(--paper); border: 2px solid transparent; border-radius: 6px;
  cursor: pointer; box-shadow: 0 3px 8px rgba(43, 39, 35, .16);
  transition: transform .15s ease, border-color .15s ease;
}
.thumbs li:nth-child(1) button { transform: rotate(-1.5deg); }
.thumbs li:nth-child(2) button { transform: rotate(1deg); }
.thumbs li:nth-child(3) button { transform: rotate(-.8deg); }
.thumbs li:nth-child(4) button { transform: rotate(1.2deg); }
.thumbs button[aria-current="true"] { transform: rotate(0deg); }
.thumbs button:hover,
.thumbs button:focus-visible,
.thumbs button[aria-current="true"] { border-color: var(--teal); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.cover {
  display: block;
  height: min(26rem, 62vh, 78vw);
  width: auto;
  max-width: 100%;
  border-radius: 6px;
  filter: drop-shadow(0 14px 18px rgba(43, 39, 35, 0.22));
}
.cover.is-spread {
  background: #fff; padding: .6rem; border-radius: 4px;
  filter: none; box-shadow: 0 14px 26px -16px rgba(43, 39, 35, .55);
}
.cover.is-map {
  width: min(100%, 26rem); height: min(26rem, 62vh, 78vw);
  object-fit: contain; background: #fff; padding: .6rem; border-radius: 4px;
  filter: none; box-shadow: 0 14px 26px -16px rgba(43, 39, 35, .55);
}
.thumbs button[data-full$="world-map-1000.jpg"] img { object-fit: contain; }
#hero-image.is-spread[data-tilt="1"] { transform: rotate(-1.8deg); }
#hero-image.is-spread[data-tilt="2"] { transform: rotate(1.4deg); }
#hero-image.is-spread[data-tilt="3"] { transform: rotate(-.9deg); }
@media (prefers-reduced-motion: no-preference) {
  .cover {
    animation: settle .7s cubic-bezier(.22,1,.36,1) both;
    transition: opacity .18s ease, transform .18s ease;
  }
  .cover.is-swapping { opacity: 0; transform: translateY(.35rem); }
  @keyframes settle {
    from { transform: translateY(-14px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }
}
.shelf-note {
  font-family: var(--display); font-size: 1rem; color: var(--sun-ink);
  background: var(--sun-soft); padding: .3rem 1rem; border-radius: 999px;
  transform: rotate(2deg); margin: 0;
}

.edition {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1rem;
  color: var(--sun-ink); background: var(--sun-soft);
  padding: .2rem .9rem; border-radius: 999px; transform: rotate(-2deg);
  margin: 0 0 .9rem;
}
.standfirst { font-size: 1.25rem; line-height: 1.5; max-width: 32ch; margin-bottom: .6em; }
.byline { font-size: .9375rem; color: var(--ink-soft); margin-bottom: 1.5rem; }

.buybox {
  background: var(--cream);
  border: 2px solid var(--rule);
  border-radius: 20px;
  padding: 1.25rem 1.5rem 1.5rem;
  max-width: 30rem;
  scroll-margin-top: 1rem;
}
.buybox-title { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; }
.buybox-hint { margin: .25rem 0 1rem; color: var(--ink-soft); font-size: .9375rem; }
.price { margin: 0; display: flex; align-items: baseline; gap: .45rem; }
.amount { font-family: var(--display); font-weight: 600; font-size: 2.375rem; line-height: 1; }
.price-note { color: var(--ink-soft); font-size: .875rem; }

.buy {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .7rem 2.25rem;
  background: var(--teal); color: #fff;
  font-family: var(--display); font-weight: 600; font-size: 1.125rem;
  text-decoration: none; border-radius: 999px;
  box-shadow: 0 4px 0 var(--teal-dark);
  transition: transform .12s ease, box-shadow .12s ease;
}
.buy:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 0 var(--teal-dark); }
.buy:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--teal-dark); }
/* After .buy, so the zone sizing wins over the generic button padding. */
.buy-zones { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.buy-zone { width: 100%; padding: .55rem 1.25rem; font-size: 1rem; }
.buy-choice { max-width: 30rem; }
.buy-note { margin: 1rem 0 0; color: var(--ink-soft); font-size: .9375rem; }

.assurances { list-style: none; margin: 1.75rem 0 0; padding: 0; font-size: .9375rem; color: var(--ink-soft); max-width: 40ch; }
.assurances li { padding-left: 1.75rem; margin-bottom: .5rem; position: relative; }
.assurances li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: .75rem; height: .75rem; border-radius: 50%;
  background: var(--sun); box-shadow: 0 0 0 3px var(--sun-soft);
}

/* bands ------------------------------------------------------------------ */

.band { padding-block: 3rem; }
.band-cream { background: var(--cream); }
.band-tint  { background: var(--tint); }
.prose { max-width: var(--measure); }
.lede { color: var(--ink-soft); max-width: var(--measure); }

.squiggled { position: relative; padding-bottom: .5rem; }
.squiggled::after {
  content: ""; display: block; width: 7.5rem; height: .625rem; margin-top: .35rem;
  background: url("../img/doodles/squiggle.svg") left center / contain no-repeat;
}
.section-heading {
  display: flex; align-items: center; gap: .7rem; margin-bottom: .75rem;
}
.section-heading .section-doodle {
  display: block; flex: none; width: 2.5rem; height: 2.5rem; opacity: .9;
  transform: rotate(-8deg);
}
.section-heading h2 { margin: 0; }
.faq-h { margin: 0 0 1.5rem; }

.story-grid { display: grid; gap: 2.5rem; }

.spec {
  margin: 0; padding: 1.25rem 1.5rem;
  background: var(--paper);
  border: 2px dashed var(--sun);
  border-radius: 18px;
  align-self: start;
}
.spec div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dotted var(--rule); }
.spec div:last-child { border-bottom: 0; }
.spec dt { color: var(--ink-soft); font-size: .9375rem; }
.spec dd { margin: 0; font-family: var(--display); font-weight: 600; text-align: right; }

blockquote {
  margin: 2rem 0 0; padding: 1.25rem 1.5rem;
  background: var(--sun-soft); border-radius: 18px;
}
blockquote p { font-size: 1.125rem; font-style: italic; line-height: 1.55; margin-bottom: .4em; }
cite { font-style: normal; font-size: .875rem; color: var(--ink-soft); }

.review-grid {
  display: grid; gap: 1.25rem; margin-top: 2rem;
}
.review-card {
  margin: 0; padding: 1.25rem 1.5rem; border-radius: 18px; background: var(--paper);
  border: 1px solid rgba(43, 39, 35, .08); box-shadow: 0 8px 18px -16px rgba(43, 39, 35, .45);
}
.review-card p {
  margin-bottom: .65em; font-size: 1.0625rem; line-height: 1.6;
}
.review-card cite {
  display: block; font-size: .875rem; text-transform: none; color: var(--ink-soft);
}

/* reviews map (brief section 14) ---------------------------------------- */
/* Off by default: main.js adds .js-map-active. With JavaScript off the grid above is all there is. */

.reviews-map { display: none; position: relative; }
.js-map-active .reviews-map { display: block; margin-top: 2rem; }
.map-band { position: relative; }
.map-frame { position: relative; width: 100%; aspect-ratio: 1100 / 576; }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
/* Leader lines: the site's ink over a pale casing, so they read over ocean, land and lettering. */
.map-leaders line { stroke: var(--ink); stroke-opacity: .9; stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.map-leaders--casing line { stroke: var(--paper); stroke-opacity: .9; stroke-width: 4.5; }
.map-anchors circle { fill: var(--ink); stroke: var(--paper); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* Connector from the active pin to its review below the map, drawn by main.js (from 48rem only:
   on phones the carousel does this job). Above the artwork, below the pins and the review. */
.map-connector { display: none; position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: 0; }
.map-connector.is-visible { opacity: 1; }
.map-connector path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map-connector-casing { stroke: var(--paper); stroke-opacity: .95; stroke-width: 6; }
.map-connector-line { stroke: var(--teal-dark); stroke-width: 2.5; }
@media (min-width: 48rem) {
  .map-connector { display: block; }
}
@media (prefers-reduced-motion: no-preference) {
  .map-connector { transition: opacity .3s ease; }
}

/* Pins: 44px buttons with a small marker drawn inside, from 48rem. Positions are percentages
   of Heather's artwork, hand-placed in open sea and clear of every piece of
   lettering, at least 44px apart at 768. The leader lines in index.html use the same numbers. */
.map-pin {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem;
  padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
}
.map-pin::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 1rem; height: 1rem; margin: -.5rem 0 0 -.5rem; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 2px var(--paper), 0 2px 4px rgba(43, 39, 35, .25);
}
.map-pin.is-current::before { transform: scale(1.35); box-shadow: 0 0 0 2px var(--paper), 0 0 0 7px rgba(240, 196, 25, .55); }
.map-pin:focus-visible { outline-offset: 0; border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .map-pin::before { transition: transform .25s ease; }
}
.map-pin--laura  { --x: 85.5; --y: 91; }
.map-pin--howard { --x: 89.5; --y: 80; }
.map-pin--fenyi  { --x: 96;   --y: 78; }
.map-pin--lisa   { --x: 95.5; --y: 90; }
.map-pin--hattie { --x: 42.5; --y: 16; }
.map-pin--joy    { --x: 26;   --y: 19.5; }

/* With the map on, every review is moved into the stage under the map. */
.js-map-active .review-grid { display: none; }

/* Previous / Next and a position count, under the review. From 48rem always shown; on phones
   only while the rotation is paused (.map-paused, set by main.js), e.g. after a tap. */
.map-controls { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.map-step {
  min-height: 2.75rem; min-width: 2.75rem; padding: .5rem 1.1rem; border-radius: 999px;
  border: 2px solid var(--teal); background: var(--paper); color: var(--teal-dark);
  font-family: var(--display); font-weight: 600; font-size: 1rem; cursor: pointer;
}
.map-step:hover { background: var(--tint); }
.map-count { color: var(--ink-soft); font-size: .9375rem; min-width: 4.5ch; text-align: center; }
.map-popup .map-controls { margin-top: .9rem; }

/* Popups: the pinned cards, moved here by main.js, in one slot under the map at every width
   from 48rem (stacked in a single grid cell, so the slot is as tall as the longest review and
   nothing below shifts). They never cover the artwork or its lettering. */
.map-stage { display: grid; margin-top: 1.25rem; }
.map-popup { grid-area: 1 / 1; align-self: start; position: relative; margin: 0; padding-right: 3rem; max-width: 40rem; }
.map-popup {
  opacity: 0; transform: scale(.6); visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.map-popup.is-open {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity .3s ease, transform .3s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .map-popup, .map-popup.is-open { transition: none; }
}
@media (max-width: 47.9375rem) and (prefers-reduced-motion: no-preference) {
  .map-frame { transition: transform .6s ease-in-out; }
  .map-marker { transition: transform .6s ease-in-out; }
  .map-controls { transition: transform .3s ease; }
}
.map-no-anim .map-popup, .map-no-anim .map-popup.is-open, .map-no-anim .map-frame, .map-no-anim .map-marker,
.map-no-anim .map-controls { transition: none; }
.map-popup-close {
  position: absolute; top: .25rem; right: .25rem; width: 2.75rem; height: 2.75rem;
  padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: var(--ink-soft);
}
.map-popup-close:hover { color: var(--ink); background: var(--tint); }
/* The review's tail, on its top edge, aimed up the connector at the pin (main.js sets --tail-x). */
.map-popup.has-tail::before {
  content: ""; position: absolute; top: -.5625rem; left: var(--tail-x, 2rem);
  width: 1rem; height: 1rem; margin-left: -.5rem;
  background: var(--paper); border: 1px solid rgba(43, 39, 35, .08); border-right: 0; border-bottom: 0;
  border-top-left-radius: 3px; transform: rotate(45deg);
}

/* Below 48rem the map travels. The band is a fixed window onto the artwork, which main.js pans
   and zooms with a transform so the current review's town sits at the centre, under one large
   pin that stays put (its tip is the town, so the town's label stays readable). No other pins,
   lines or connector. The pins stay decorative here: main.js also removes them from the
   accessibility tree. The carousel below holds all six reviews and is the only control: swipe
   it, or focus it and use the arrow keys. */
.map-marker { display: none; }
@media (max-width: 47.9375rem) {
  .map-band { height: 13.5rem; overflow: hidden; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(43, 39, 35, .08); }
  .map-frame { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
  .map-svg, .map-pin { display: none; }
  /* The marker is a zero-size point at the window's centre, which is the town. The pin hangs off
     it, so leaning it (--lean, from main.js) keeps the tip on the town. */
  .map-marker { display: block; position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--lean, 0deg)); }
  .map-marker::before {
    content: ""; position: absolute; left: -1.125rem; top: -2.72rem; width: 2.25rem; height: 2.25rem;
    border-radius: 50% 50% 50% 0; background: var(--teal); box-shadow: 0 0 0 2px var(--paper), -2px 3px 6px rgba(43, 39, 35, .3); transform: rotate(-45deg);
  }
  .map-marker::after { content: ""; position: absolute; left: -.375rem; top: -2.03rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--sun); }

  /* One review at a time: each slide is the full column, and the gap is twice the gutter,
     so no neighbour ever shows at the screen edge. */
  .map-stage {
    position: relative; display: flex; gap: calc(2 * var(--gutter)); overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter)); padding: .25rem var(--gutter) .5rem;
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .map-stage::-webkit-scrollbar { display: none; }
  .map-stage:focus-visible { outline-offset: -3px; }
  .map-popup, .map-popup.is-open {
    flex: 0 0 100%; align-self: start; scroll-snap-align: start; scroll-snap-stop: always; max-width: none;
    opacity: 1; transform: none; visibility: visible; transition: none; padding-right: 1.5rem;
  }
  .map-controls { display: none; justify-content: space-between; }
  .map-paused .map-controls { display: flex; }
  .map-popup-close { display: none; }
  .map-popup.has-tail::before { display: none; }
}

/* look inside ------------------------------------------------------------ */

.spreads { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.75rem; }
.spreads li {
  background: #fff; padding: .75rem .75rem 2.25rem;
  border-radius: 4px;
  box-shadow: 0 14px 26px -16px rgba(43,39,35,.55);
  min-width: 0;
}
.spreads img { border-radius: 2px; }
.spread-caption { margin: .65rem 0 0; color: var(--ink-soft); font-family: var(--display); font-size: .9375rem; text-align: center; }

/* makers ----------------------------------------------------------------- */

.makers { display: grid; gap: 2.5rem; margin-top: 2rem; }
.portrait {
  width: 7.5rem; height: 7.5rem; object-fit: cover; object-position: 50% 35%; border-radius: 50%;
  outline: 3px dashed var(--sun); outline-offset: 7px;
  margin-bottom: 1.25rem;
}
.maker h3 { margin-bottom: .1em; }
.maker .role {
  display: inline-block; font-family: var(--display); font-size: .9375rem;
  color: var(--teal-dark); background: var(--tint);
  padding: .1rem .75rem; border-radius: 999px; margin-bottom: .9em;
}
.maker > p:not(.role) { max-width: 40ch; }
.maker > p:last-child { margin-bottom: 0; }
@media (max-width: 47.9375rem) {
  .makers { gap: 3.5rem; }
  .maker { text-align: center; }
  .maker .portrait { margin-inline: auto; }
  .maker > p:not(.role) { width: calc(100% - 1rem); max-width: 34ch; margin-inline: auto; text-align: left; }
}

.catalogue { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.75rem; }
.catalogue li { display: grid; grid-template-columns: 5rem 1fr; gap: 1.25rem; align-items: start; }
.catalogue h3 { margin-bottom: .25rem; }
.catalogue p { font-size: .9375rem; color: var(--ink-soft); margin-bottom: .75em; }

/* delivery --------------------------------------------------------------- */

.delivery-layout, .faq-layout { display: grid; gap: 2rem; }
.faq-layout { grid-template-areas: "art" "content"; margin-top: 3rem; }
.delivery-content, .faq-content, .faq-art { min-width: 0; }
.delivery-art { width: 100%; max-width: 34rem; margin: 0; justify-self: center; text-align: center; }
.delivery-art-stage { position: relative; padding-bottom: 1.5rem; }
.delivery-map { width: 100%; height: auto; transform: rotate(-2deg); }
.delivery-suitcase { display: none; }
.delivery-art figcaption { display: inline-block; margin-top: .75rem; }
.delivery-rates { width: 100%; max-width: var(--measure); margin: 2rem 0 1rem; border-collapse: collapse; background: var(--paper); }
.delivery-rates th, .delivery-rates td { padding: .6rem .45rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; font-size: .875rem; }
.delivery-rates thead th { color: var(--ink-soft); font-size: .875rem; font-family: var(--display); font-weight: 600; }
.delivery-rates tbody th { font-family: var(--display); font-weight: 600; }
.delivery-rates td:nth-child(2) { color: var(--teal-dark); font-family: var(--display); font-weight: 600; }
.delivery-note { max-width: var(--measure); font-size: .9375rem; color: var(--ink-soft); }
.faq-art { grid-area: art; }
.faq-content { grid-area: content; }
.faq-art-sticky { position: relative; display: grid; justify-items: center; }
.question-bubble { position: relative; z-index: 1; justify-self: start; margin: 0 0 -.25rem; transform: rotate(-2deg); }
.question-bubble::after {
  content: ""; position: absolute; left: 1.25rem; bottom: -.35rem;
  border-top: .45rem solid var(--sun-soft); border-right: .4rem solid transparent;
}
.faq-margot { width: min(100%, 220px); height: auto; }
.faq-octopus { display: none; }
.faq { max-width: var(--measure); }
.faq details { border-bottom: 1px dotted var(--rule); }
.faq summary {
  cursor: pointer; padding: 1rem 0; font-family: var(--display); font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
  min-height: 3rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--sun-soft); color: var(--sun-ink);
  font-family: var(--display); font-size: 1.25rem; line-height: 1.75rem; text-align: center;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1rem; margin: 0; color: var(--ink-soft); }

/* closer ----------------------------------------------------------------- */

.closer { background: var(--sun-soft); padding-block: 3rem 3.5rem; }
.closer-grid { display: grid; gap: 1.25rem; justify-items: start; }
.closer-globe { width: 4.5rem; height: 4.5rem; transform: rotate(-8deg); }

/* placeholders awaiting the client --------------------------------------- */

.needs-johnathan { color: var(--ink); background: #fff0f0; box-shadow: inset 3px 0 0 #d95757; padding: .1rem .4rem; border-radius: 3px; }
.footer .needs-johnathan { color: var(--ink); }
/* One flagged line under each group of Buy buttons until the Stripe links exist. */

/* footer ----------------------------------------------------------------- */

.footer {
  background: linear-gradient(180deg, #1c1a19 0%, #221f1d 100%);
  color: #f2ece1; padding-block: 2.5rem 3rem; font-size: .9375rem;
  border-top: 3px solid rgba(240, 196, 25, .8);
}
@media (max-width: 47.9375rem) {
  .footer { padding-bottom: calc(3rem + var(--stickybuy-height)); }
}
.footer a { color: #fff; }
.footer-inner {
  display: grid; gap: 1.5rem;
}
.footer-brand {
  display: flex; align-items: center; gap: .8rem; margin: 0;
  font-family: var(--display); font-weight: 600; color: #fff; font-size: 1.125rem;
}
.footer-brand img {
  width: clamp(2.8rem, 7vw, 4rem); height: auto; border-radius: 50%;
  background: rgba(255,255,255,.08); padding: .35rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.footer-brand span { display: block; }
.footer-brand em {
  display: block; font-style: normal; font-family: var(--sans); font-weight: 400;
  font-size: .875rem; color: #b8afa1; margin-top: .15rem;
}
.footer-links {
  list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem;
}
.footer-links li {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; overflow: hidden;
}
.footer-links a {
  min-height: 2.9rem; display: inline-flex; align-items: center; width: 100%;
  padding: .7rem .9rem; text-decoration: none;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  background: rgba(240, 196, 25, .08); color: #fff; text-decoration: underline;
}
.colophon { color: #b8afa1; margin: 0; font-size: .875rem; line-height: 1.7; }

@media (min-width: 48rem) {
  .footer-inner { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .colophon { grid-column: 1 / -1; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* sticky mobile buy ------------------------------------------------------ */

.stickybuy {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--stickybuy-height);
  padding: .625rem var(--gutter);
  background: var(--paper); border-top: 2px solid var(--rule);
}
.stickybuy[hidden] { display: none; }
.stickybuy p { margin: 0; font-size: .9375rem; }
.stickybuy strong { font-family: var(--display); }
.stickybuy span { color: var(--ink-soft); }
.buy-sm { min-height: 2.75rem; padding: .45rem 1.5rem; font-size: 1rem; }
.stickybuy .buy { flex-shrink: 0; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.stickybuy .buy small { display: block; font-size: .875rem; line-height: 1.2; }

/* policy pages ----------------------------------------------------------- */

.doc { padding-block: 2.5rem 4rem; }
.doc .prose h1 { font-size: clamp(1.875rem, 5vw, 2.375rem); }
.doc .prose h2 { font-size: 1.25rem; margin-top: 2rem; }
.doc .prose ul { padding-left: 1.1rem; }
.doc .prose li { margin-bottom: .4em; }
.updated { font-size: .875rem; color: var(--ink-soft); }
.back { display: inline-block; margin-top: 2rem; }
.back a, .maker-link { display: inline-flex; align-items: center; min-height: 2.75rem; }

.confirm { max-width: var(--measure); padding-block: 4rem 5rem; }
.confirm .tick {
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--sun-soft); color: var(--sun-ink);
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1.25rem;
}

/* wider screens ---------------------------------------------------------- */

@media (min-width: 48rem) {
  :root { --section-scroll-offset: 7rem; --scroll-clear-bottom: 1rem; }
  .masthead { position: sticky; top: 0; }
  .wave { height: 60px; }
  .band { padding-block: 4.5rem; }
  .delivery-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 3rem; }
  .faq-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); grid-template-areas: "content art"; gap: 3rem; align-items: stretch; }
  .faq-art-sticky { position: sticky; top: 1.5rem; }
  .faq-margot { width: min(100%, 22.5rem); }
  .delivery-suitcase { display: block; position: absolute; left: .25rem; bottom: 0; width: 140px; height: auto; }
  .faq-octopus { display: block; position: absolute; right: 0; bottom: 0; width: 110px; height: auto; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 1.5rem; padding-block: 1.25rem 1rem; }
  .blob { width: 32rem; height: 32rem; top: 1rem; left: 50%; }
  .cover { height: min(26rem, 62vh, 78vw); width: auto; filter: drop-shadow(0 14px 18px rgba(43, 39, 35, 0.22)); }
  .story-grid { grid-template-columns: 1fr 18rem; gap: 3.5rem; }
  .spreads { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .spec { transform: rotate(-1.2deg); }
  blockquote { transform: rotate(.8deg); }
  .spreads li:nth-child(1) { transform: rotate(-1.8deg); }
  .spreads li:nth-child(2) { transform: rotate(1.2deg); }
  .spreads li:nth-child(3) { transform: rotate(-.8deg); }
  .rates { grid-template-columns: repeat(3, 1fr); }
  .makers { grid-template-columns: repeat(2, 1fr); gap: 3.5rem; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 30rem; }
  .stickybuy { display: none; }
  .catalogue { grid-template-columns: repeat(2, 1fr); }
  .closer-grid { grid-template-columns: auto 1fr; align-items: center; gap: 2.5rem; }
  .closer-globe { width: 6rem; height: 6rem; }
  .review-grid { display: block; columns: 2; column-gap: 1.25rem; }
  .review-card { break-inside: avoid; margin-bottom: 1.25rem; transform: none; }
  .delivery-rates th, .delivery-rates td { padding: .7rem .8rem; font-size: 1rem; }
  .delivery-rates thead th { font-size: .875rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .delivery-map, .faq-margot { transition: transform .2s ease; }
  .delivery-art:hover .delivery-map { transform: rotate(-2deg) translateY(-4px); }
  .faq-art-sticky:hover .faq-margot { transform: translateY(-4px); }
}

@media (min-width: 64rem) {
  .hero-grid { gap: 4.5rem; }
  .buybox { padding-inline: 1.25rem; }
  .review-grid { columns: 3; }
  .footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
  .colophon { grid-column: 1 / -1; }
}

@media (prefers-contrast: more) {
  :root { --ink-soft: #4a423a; --rule: #a89e92; }
  .needs-johnathan { box-shadow: inset 4px 0 0 #a32d2d; }
}

/* print ------------------------------------------------------------------ */

@media print {
  .masthead nav, .stickybuy, .doodle, .blob, .wave, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .band, .hero-grid { padding-block: 1rem; }
  .cover, .spec, blockquote, .spreads li { transform: none !important; box-shadow: none !important; }
  .buy { border: 1px solid #000; box-shadow: none; color: #000; background: #fff; }
  .buy::after { content: " \2014 silverliningstudio.co.nz"; }
  a { text-decoration: underline; }
  .needs-johnathan { background: none; box-shadow: none; }
}

/* HERO CORRECTIONS */
.blob { display: none; }
.hero-cover { position: relative; }
.hero-cover::before, .hero-cover::after { content: ""; position: absolute; top: 50%; left: 50%; border-radius: 50%; aspect-ratio: 1; pointer-events: none; }
.hero-cover::after { z-index: -2; width: min(36rem, 132%); transform: translate(-50%, -54%); background: #d9edf4; }
.hero-cover::before { z-index: -1; width: min(28rem, 104%); transform: translate(-50%, -54%); background: var(--blob-1); }
