/* Marthinus Strydom · author site
   Concrete and paper: the greys of the novel's cover, a paper white for reading,
   and one accent taken from the rust streaks under the chute. The covers carry
   the colour. */

:root {
  --ink: #121211;
  --night: #191917;
  --concrete: #262521;
  --ash: #3b3a35;
  --stone: #8c887e;
  --fog: #c8c3b7;
  --bone: #ebe7de;
  --paper: #f6f4ef;
  --rust: #9c5d3c;
  --rust-deep: #7d4a2f;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Futura", "Helvetica Neue", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem);
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--rust); color: var(--paper); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 1.4rem;
  display: flex; align-items: center; gap: .9rem;
}
.eyebrow .num { color: var(--rust); letter-spacing: .12em; }
.eyebrow .num::after { content: ""; display: inline-block; width: 2.2rem; height: 1px; background: currentColor; opacity: .6; margin-left: .9rem; vertical-align: middle; }
.eyebrow--light { color: var(--fog); }
.dot { margin: 0 .6em; opacity: .55; }

.section__title {
  font-weight: 300;
  font-size: clamp(2.3rem, 1.6rem + 3vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  margin: 0;
}
.section__title em { font-style: italic; color: var(--stone); }
.section__title--light { color: var(--paper); }

/* ---------- preview flag ---------- */
.preview-flag {
  position: fixed; left: 1rem; bottom: 1rem;
  z-index: 60;
  font-family: var(--sans); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  background: rgba(18,18,17,.82); color: var(--fog);
  padding: .55rem 1rem; border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  pointer-events: none; white-space: nowrap;
}

/* ---------- masthead ---------- */
.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; gap: 2.5rem;
  padding: 1.6rem max(var(--gutter), calc((100vw - var(--max)) / 2));
  color: var(--paper);
  transition: background .5s var(--ease), padding .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.masthead.is-solid {
  background: rgba(18,18,17,.9);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  padding-top: 1rem; padding-bottom: 1rem;
  border-color: rgba(255,255,255,.06);
}
.wordmark {
  font-family: var(--sans); font-weight: 300;
  font-size: .9rem; letter-spacing: .5em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  margin-right: auto;
}
.nav { display: flex; gap: 2.2rem; }
.nav a, .cart-button {
  font-family: var(--sans); font-size: .74rem; letter-spacing: .26em; text-transform: uppercase;
  text-decoration: none; color: var(--fog);
  position: relative; padding: .3rem 0;
  transition: color .3s;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: var(--rust); transition: right .4s var(--ease); }
.nav a:hover { color: var(--paper); }
.nav a:hover::after { right: 0; }
.cart-button {
  background: none; border: 1px solid rgba(255,255,255,.22); cursor: pointer;
  padding: .55rem .95rem; display: inline-flex; align-items: center; gap: .7rem;
}
.cart-button:hover { border-color: var(--fog); color: var(--paper); }
.cart-count {
  min-width: 1.35rem; height: 1.35rem; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: .66rem; letter-spacing: 0;
  background: rgba(255,255,255,.1); color: var(--fog);
  transition: background .3s, color .3s;
}
.cart-count.is-on { background: var(--rust); color: var(--paper); }
.menu-button { display: none; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .85rem;
  font-family: var(--sans); font-size: .76rem; font-weight: 400; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  padding: 1.05rem 1.6rem;
  border: 1px solid var(--b);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s, transform .35s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn__price { font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0; text-transform: none; opacity: .85; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--rust-deep); border-color: var(--rust-deep); }
.btn--bone { background: var(--bone); color: var(--ink); --b: var(--bone); }
.btn--bone:hover { background: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ghost-light { background: transparent; color: var(--paper); --b: rgba(255,255,255,.35); }
.btn--ghost-light:hover { --b: var(--paper); background: rgba(255,255,255,.06); }
.btn--rust { background: var(--rust); color: var(--paper); --b: var(--rust); }
.btn--rust:hover { background: var(--rust-deep); --b: var(--rust-deep); }
.btn--rust:disabled { opacity: .4; cursor: not-allowed; }
.btn--block { width: 100%; }

/* ---------- the book object ---------- */
.book {
  position: relative;
  border-radius: 1px 3px 3px 1px;
  box-shadow:
    0 1px 1px rgba(0,0,0,.12),
    0 10px 20px -8px rgba(0,0,0,.35),
    0 40px 70px -30px rgba(0,0,0,.55);
  overflow: hidden;
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.book img { width: 100%; height: auto; }
.book::after { /* the spine fold and a soft sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.42) 0, rgba(255,255,255,.22) .9%, rgba(0,0,0,.12) 2.4%, rgba(255,255,255,.05) 4.5%, transparent 9%),
    linear-gradient(115deg, rgba(255,255,255,.08) 0%, transparent 38%);
}
.photo { box-shadow: 0 30px 60px -32px rgba(0,0,0,.5); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__backdrop {
  position: absolute; inset: -8%; z-index: -2;
  background-size: cover; background-position: center 30%;
  filter: blur(42px) grayscale(.5) brightness(.55);
  transform: scale(1.1);
  opacity: .75;
}
.hero::before { /* darken towards the text, and a film of grain */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(18,18,17,.96) 0%, rgba(18,18,17,.82) 42%, rgba(18,18,17,.35) 100%),
    linear-gradient(0deg, rgba(18,18,17,.9) 0%, transparent 30%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .09; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner {
  width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding: 8.5rem var(--gutter) 6rem;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 7rem); align-items: center;
}
.hero__title {
  font-weight: 300;
  font-size: clamp(3rem, 1.6rem + 5.4vw, 6.6rem);
  line-height: .98; letter-spacing: -.025em;
  margin: 0 0 2rem;
}
.hero__title em { font-style: italic; color: var(--fog); }
.hero__lede { max-width: 31rem; color: #d9d5cb; margin: 0 0 2.6rem; }
.hero__buy { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.4rem; }
.hero__meta {
  font-family: var(--sans); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--stone); margin: 0;
  padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); max-width: 31rem;
}
.hero__cover { display: flex; justify-content: center; perspective: 1600px; }
.book--hero { width: min(100%, 25rem); transform: rotateY(-9deg) rotateX(2deg); transform-origin: left center; }
.book--hero:hover { transform: rotateY(-3deg) rotateX(1deg); }
.scroll-cue { position: absolute; left: 50%; bottom: 2.2rem; width: 1px; height: 3.2rem; background: rgba(255,255,255,.15); overflow: hidden; }
.scroll-cue span { position: absolute; inset: 0; background: var(--fog); animation: cue 2.6s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- sections ---------- */
.section { padding: clamp(5rem, 11vw, 10rem) var(--gutter); }
.section--paper { background: var(--paper); }
.section--night { background: var(--night); color: var(--paper); }
.section__head { max-width: var(--max); margin: 0 auto clamp(3.5rem, 8vw, 7rem); }

/* ---------- books ---------- */
.books { max-width: var(--max); margin: 0 auto; display: grid; gap: clamp(5rem, 10vw, 9rem); }
.bookrow { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2.5rem, 7vw, 7.5rem); align-items: start; }
.bookrow__text { align-self: center; }
.bookrow--flip .bookrow__stage { order: 2; }
.bookrow__stage {
  position: sticky; top: 7rem;
  background: var(--bone);
  aspect-ratio: 4 / 4.6;
  display: grid; place-items: center;
  padding: 12% 16%;
}
.bookrow__stage .book { width: 100%; max-width: 21rem; }
.bookrow__stage:hover .book { transform: translateY(-6px); box-shadow: 0 1px 1px rgba(0,0,0,.12), 0 16px 26px -10px rgba(0,0,0,.35), 0 50px 80px -30px rgba(0,0,0,.55); }
.bookrow__stage--the-dumping-chutes { background: linear-gradient(160deg, #d4d0c7, #b9b5ab); }
.bookrow__stage--the-stoic-way { background: linear-gradient(160deg, #e7e1d6, #d6cfc2); }
.bookrow__stage--taste-the-world { background: linear-gradient(160deg, #e4ddd0, #cfc6b6); padding: 9% 14%; }
.bookrow__stage--taste-the-world .photo { width: 100%; max-width: 19rem; border: .6rem solid var(--paper); }
.bookrow__stage--taste-the-world .photo img { height: auto; }
.stamp {
  position: absolute; top: 1.4rem; left: 1.4rem;
  font-family: var(--sans); font-size: .66rem; letter-spacing: .3em; text-transform: uppercase;
  background: var(--paper); color: var(--ink); padding: .55rem .85rem;
}
.bookrow__text { max-width: 34rem; }
.bookrow__title {
  font-weight: 300; font-size: clamp(2.4rem, 1.7rem + 2.6vw, 4rem);
  line-height: 1; letter-spacing: -.02em; margin: 0 0 .8rem;
}
.bookrow__subtitle { font-style: italic; color: var(--stone); margin: 0 0 2rem; font-size: 1.15em; line-height: 1.35; }
.bookrow__tagline {
  font-family: var(--sans); font-size: .8rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--rust); margin: 0 0 1.4rem;
}
.bookrow__text > p:not([class]) { margin: 0 0 1.1rem; color: #2f2e2a; }
.details {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  margin: 2.2rem 0 2.4rem; padding: 1.3rem 0 0; border-top: 1px solid rgba(0,0,0,.12);
  gap: 1rem 1.5rem;
}
.details dt, .facts dt {
  font-family: var(--sans); font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--stone);
  margin-bottom: .25rem;
}
.details dd { margin: 0; font-size: .95rem; }
.bookrow__buy { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- about ---------- */
.about {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 7vw, 7.5rem); align-items: start;
}
.about__portrait { margin: 0; position: relative; }
.about__portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%;
  filter: grayscale(1) contrast(1.08) brightness(.95);
}
.about__portrait::after { content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; border: 1px solid rgba(255,255,255,.14); z-index: -1; }
.about__portrait { isolation: isolate; }
.about__text .section__title { margin-bottom: 2.4rem; }
.about__bio p { color: #d6d2c8; margin: 0 0 1.2rem; max-width: 36rem; }
.about__bio p:first-child::first-letter {
  float: left; font-size: 4.4em; line-height: .82; padding: .08em .12em 0 0; color: var(--paper); font-weight: 300;
}
.facts { margin: 3rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.facts > div { padding: 1.05rem 0; border-top: 1px solid rgba(255,255,255,.1); }
.facts dd { margin: 0; color: var(--bone); font-size: .98rem; line-height: 1.45; }

/* ---------- ventures ---------- */
.ventures { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.venture {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 2.4rem 2.2rem 2.6rem 0; margin-right: 2.2rem;
  text-decoration: none; position: relative;
  transition-delay: var(--d, 0ms);
}
.venture + .venture { padding-left: 2.2rem; margin-right: 0; border-left: 1px solid rgba(0,0,0,.12); }
.venture__role { font-family: var(--sans); font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--stone); }
.venture__name { font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.7rem); font-weight: 300; letter-spacing: -.015em; line-height: 1.05; }
.venture__line { color: #4a4843; flex: 1; }
.venture__domain { font-family: var(--sans); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); display: inline-flex; gap: .6rem; }
.venture .arrow { transition: transform .35s var(--ease); color: var(--rust); }
.venture:hover .arrow { transform: translateX(6px); }
.venture::before { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--rust); transition: width .6s var(--ease); }
.venture + .venture::before { left: 2.2rem; }
.venture:hover::before { width: 3.5rem; }

/* ---------- letters ---------- */
.letters { background: var(--bone); padding: clamp(5rem, 10vw, 8.5rem) var(--gutter); text-align: center; }
.letters__inner { max-width: 40rem; margin: 0 auto; }
.letters .eyebrow { justify-content: center; }
.letters__text { color: #4a4843; margin: 1.4rem auto 2.6rem; max-width: 30rem; }
.letters__form { display: flex; max-width: 30rem; margin: 0 auto; border: 1px solid var(--ink); }
.letters__form input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 1rem 1.2rem;
  font-family: var(--serif); font-size: 1.05rem; color: var(--ink); outline: none;
}
.letters__form input::placeholder { color: var(--stone); font-style: italic; }
.letters__form .btn { border: 0; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--fog); padding: 5rem var(--gutter) 2rem; }
.footer__top { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; padding-bottom: 4rem; }
.wordmark--footer { color: var(--paper); align-self: start; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer h3 { font-family: var(--sans); font-weight: 400; font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--stone); margin: 0 0 1.1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer a { text-decoration: none; transition: color .3s; }
.footer a:hover { color: var(--paper); }
.footer p { margin: 0; font-size: .95rem; }
.footer__base {
  max-width: var(--max); margin: 0 auto; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--sans); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--stone);
}

/* ---------- order drawer ---------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(10,10,9,.55); opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
  width: min(100%, 27rem);
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .55s var(--ease);
  box-shadow: -30px 0 60px -30px rgba(0,0,0,.4);
}
.cart-open .drawer { transform: none; }
.cart-open .drawer-scrim { opacity: 1; pointer-events: auto; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.8rem 2rem 1.4rem; border-bottom: 1px solid rgba(0,0,0,.1); }
.drawer__head h2 { font-family: var(--sans); font-weight: 400; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; margin: 0; }
.drawer__close { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--stone); }
.drawer__close:hover { color: var(--ink); }
.drawer__lines { flex: 1; overflow-y: auto; padding: .5rem 2rem; }
.drawer__empty { color: var(--stone); font-style: italic; margin: 2rem 0; }
.line { display: grid; grid-template-columns: 3.6rem 1fr auto; gap: 1.1rem; align-items: start; padding: 1.4rem 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.line img { width: 3.6rem; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 8px 16px -8px rgba(0,0,0,.4); }
.line__info { display: grid; gap: .15rem; }
.line__info strong { font-weight: 400; font-size: 1.08rem; line-height: 1.25; }
.line__info > span { font-family: var(--sans); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); }
.qty { display: inline-flex; align-items: center; gap: .8rem; margin-top: .6rem; border: 1px solid rgba(0,0,0,.15); width: max-content; }
.qty button { background: none; border: 0; width: 2rem; height: 2rem; cursor: pointer; color: var(--stone); }
.qty button:hover { color: var(--ink); }
.qty span { font-family: var(--sans); font-size: .85rem; min-width: 1ch; text-align: center; }
.line__price { font-size: 1.05rem; }
.drawer__foot { padding: 1.6rem 2rem 2rem; border-top: 1px solid rgba(0,0,0,.1); background: var(--bone); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .8rem; }
.drawer__total span { font-family: var(--sans); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; }
.drawer__total strong { font-weight: 400; font-size: 1.6rem; }
.drawer__note { font-size: .92rem; color: #4a4843; margin: 0 0 1.3rem; line-height: 1.5; }
.drawer__fine { font-size: .82rem; color: #5a5852; margin: .9rem 0 0; line-height: 1.5; }
.drawer__fine--muted { color: var(--stone); font-style: italic; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 4rem; z-index: 90; transform: translate(-50%, 1rem);
  max-width: min(92vw, 34rem); text-align: center;
  background: var(--ink); color: var(--bone); padding: 1rem 1.4rem;
  font-family: var(--sans); font-size: .8rem; letter-spacing: .06em;
  opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal--late { transition-delay: .18s; }
.reveal.is-in { opacity: 1; transform: none; }
.venture.reveal { transition-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 960px) {
  .masthead { gap: 1.4rem; }
  .menu-button { display: grid; gap: 6px; background: none; border: 0; padding: .5rem; cursor: pointer; }
  .menu-button span { display: block; width: 22px; height: 1px; background: var(--paper); transition: transform .35s var(--ease); }
  .menu-open .menu-button span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-open .menu-button span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: -1; background: var(--ink);
    flex-direction: column; justify-content: center; align-items: center; gap: 2.2rem;
    opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
  }
  .nav a { font-size: .95rem; }
  .menu-open .nav { opacity: 1; pointer-events: auto; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 7.5rem; gap: 3.5rem; }
  .hero__cover { order: -1; }
  .book--hero { width: min(62vw, 17rem); transform: none; }
  .book--hero:hover { transform: none; }
  .hero::before { background: linear-gradient(0deg, rgba(18,18,17,.97) 0%, rgba(18,18,17,.82) 55%, rgba(18,18,17,.55) 100%); }
  .scroll-cue { display: none; }
  .bookrow, .bookrow--flip { grid-template-columns: 1fr; }
  .bookrow--flip .bookrow__stage { order: 0; }
  .bookrow__stage { position: relative; top: auto; }
  .about { grid-template-columns: 1fr; }
  .about__portrait { max-width: 26rem; }
  .ventures { grid-template-columns: 1fr; }
  .venture, .venture + .venture { padding: 2rem 0; margin: 0; border-left: 0; border-bottom: 1px solid rgba(0,0,0,.12); }
  .venture + .venture::before { left: 0; }
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .masthead { padding-top: 1.1rem; padding-bottom: 1.1rem; }
  .wordmark { font-size: .74rem; letter-spacing: .38em; }
  .cart-button > span:first-child { display: none; }
  .cart-button { padding: .45rem; border: 0; }
  .bookrow__stage { aspect-ratio: 1 / 1.05; }
  .facts { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .letters__form { flex-direction: column; border: 0; gap: .7rem; }
  .letters__form input { border: 1px solid var(--ink); }
  .preview-flag { font-size: .56rem; letter-spacing: .12em; right: 1rem; white-space: normal; text-align: center; }
}

/* backdrop-filter makes the masthead the frame for fixed children: drop it while the phone menu is open */
.menu-open .masthead { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ======================================================================
   The shop (29 Nov 2026): book pages, checkout and the order pages.
   Same look: paper, ink, one rust accent.
   ====================================================================== */
.masthead__spacer { margin-left: auto; }
.nav { margin-left: auto; }
.cart-button.is-hidden { display: none; }
.page--plain main { padding-top: 4.6rem; }
.hero__book { margin: -0.6rem 0 1.6rem; font-style: italic; color: var(--fog); }
.hero__book a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); transition: border-color .3s; }
.hero__book a:hover { border-color: var(--rust); }
.bookrow__title a { text-decoration: none; transition: color .3s; }
.bookrow__title a:hover { color: var(--rust-deep); }
.bookrow__cover { display: block; width: 100%; max-width: 21rem; }
.bookrow__stage .photo { width: 100%; max-width: 19rem; border: .6rem solid var(--paper); }
.bookrow__stage .photo img { height: auto; }
.more-link {
  display: inline-flex; gap: .6rem; margin-top: 1.6rem;
  font-family: var(--sans); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--ink);
}
.more-link .arrow { color: var(--rust); transition: transform .35s var(--ease); }
.more-link:hover .arrow { transform: translateX(5px); }
.buy-note { flex-basis: 100%; margin: .4rem 0 0; font-size: .92rem; line-height: 1.5; color: var(--rust-deep); max-width: 34rem; }
.hero .buy-note { color: #e2c2ad; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.is-disabled { opacity: .4; pointer-events: none; }

/* A book with no cover yet: a quiet typographic one */
.book--plain { aspect-ratio: 2 / 3; width: 100%; max-width: 21rem; background: var(--concrete); color: var(--bone); }
.book__plain { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 12% 10%; text-align: center; }
.book__plain span { font-family: var(--sans); font-size: .62rem; letter-spacing: .4em; text-transform: uppercase; color: var(--fog); }
.book__plain strong { font-weight: 300; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); line-height: 1.1; }

/* The book page */
.crumbs { max-width: var(--max); margin: 0 auto 3rem; font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.bookpage { padding-top: clamp(3rem, 6vw, 5rem); }
.bookpage .bookrow__title { font-size: clamp(2.8rem, 1.9rem + 3.2vw, 4.8rem); }
.bookpage__terms { max-width: var(--max); margin: clamp(3rem, 6vw, 5rem) auto 0; padding-top: 1.6rem; border-top: 1px solid rgba(0,0,0,.12);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; font-size: .92rem; color: #5a5852; }
.bookpage__terms p { margin: 0; }
.section--bone { background: var(--bone); }
.more-books .section__head { margin-bottom: 2.6rem; }
.more-books__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 3rem 2.5rem; }
.mini { display: grid; gap: .5rem; text-decoration: none; }
.mini__cover { display: block; max-width: 11rem; margin-bottom: .8rem; transition: transform .6s var(--ease); }
.mini__cover .book--plain { max-width: 11rem; }
.mini__cover .photo { border: .4rem solid var(--paper); }
.mini:hover .mini__cover { transform: translateY(-4px); }
.mini__label { font-family: var(--sans); font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--stone); }
.mini__title { font-size: 1.5rem; font-weight: 300; line-height: 1.15; }

/* The mailing list's consent line */
.letters__consent { margin: 1.1rem auto 0; max-width: 30rem; font-size: .82rem; color: var(--stone); line-height: 1.5; }

/* Checkout and the order pages */
.orderpage { min-height: 70vh; }
.orderpage__inner { max-width: var(--max); margin: 0 auto; }
.orderpage .section__title { margin-bottom: 2.4rem; }
.orderpage__lede { max-width: 38rem; color: #3d3b37; margin: 0 0 2.4rem; }
.orderpage__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.orderpage__lines { max-width: 30rem; margin-bottom: 2.4rem; }
.orderpage__track { margin: 0 0 2.4rem; }
.checkout { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.checkout[hidden], .checkout__empty[hidden] { display: none; }
.checkout__form fieldset { border: 0; margin: 0 0 2.4rem; padding: 0; display: grid; gap: 1.2rem; }
.checkout__form fieldset[hidden] { display: none; }
.checkout__form legend { font-family: var(--sans); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--stone); padding: 0; margin-bottom: 1.2rem; }
.checkout__form label { display: grid; gap: .35rem; font-family: var(--sans); font-size: .78rem; letter-spacing: .06em; color: #3d3b37; }
.checkout__form small { font-family: var(--serif); font-size: .85rem; letter-spacing: 0; color: var(--stone); font-style: italic; }
.checkout__form small[hidden] { display: none; }
.checkout__form .optional { color: var(--stone); text-transform: none; }
.checkout__form input, .checkout__form select, .checkout__form textarea {
  font: inherit; font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0; color: var(--ink);
  background: #fff; border: 1px solid rgba(0,0,0,.2); border-radius: 0; padding: .75rem .9rem; width: 100%; box-sizing: border-box;
}
.checkout__form input:focus, .checkout__form select:focus, .checkout__form textarea:focus { outline: 2px solid var(--rust); outline-offset: -1px; border-color: var(--rust); }
.checkout__row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1rem; }
.checkout__form .checkout__consent { grid-template-columns: auto 1fr; align-items: start; gap: .8rem; margin: 0 0 1.8rem; font-family: var(--serif); font-size: .95rem; letter-spacing: 0; }
.checkout__consent input { width: 1.1rem; height: 1.1rem; margin: .25rem 0 0; accent-color: var(--rust); }
.checkout__fine { font-size: .84rem; color: #5a5852; line-height: 1.55; margin: 1rem 0 0; }
.form-error { background: #f3e6dd; border-left: 3px solid var(--rust); color: var(--rust-deep); padding: .9rem 1.1rem; margin: 0 0 1.4rem; font-size: .95rem; }
.form-error[hidden] { display: none; }
.checkout__summary { background: var(--bone); padding: 1.6rem 2rem 2rem; position: sticky; top: 6.5rem; }
.checkout__summary .line:last-of-type { border-bottom: 0; }
.checkout__totals { margin: 1rem 0 0; display: grid; }
.checkout__totals > div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid rgba(0,0,0,.1); }
.checkout__totals > div[hidden] { display: none; }
.checkout__totals dt { font-family: var(--sans); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: #3d3b37; }
.checkout__totals dd { margin: 0; }
.checkout__grand dd { font-size: 1.5rem; }
.checkout__empty p { color: var(--stone); font-style: italic; }
.line--refused img { opacity: .45; }
.line__why { margin: .5rem 0 0; font-size: .85rem; line-height: 1.45; color: var(--rust-deep); }
.line__remove { background: none; border: 0; padding: 0; margin-top: .5rem; font-family: var(--sans); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); cursor: pointer; text-align: left; }
.line__remove:hover { color: var(--ink); }
.line__nocover { width: 3.6rem; aspect-ratio: 2 / 3; background: var(--concrete); }
.footer__contact { margin-top: .8rem !important; }

@media (max-width: 960px) {
  .checkout { grid-template-columns: 1fr; }
  .checkout__summary { position: static; order: -1; }
  .bookpage__terms { grid-template-columns: 1fr; }
}
/* The closed drawer casts no shadow onto the page edge */
.drawer { box-shadow: none; }
.cart-open .drawer { box-shadow: -30px 0 60px -30px rgba(0,0,0,.4); }
/* Order lines on the thank-you page read as titles, not labels */
.orderpage__lines .checkout__totals dt { font-family: var(--serif); font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--ink); }
.orderpage__lines .checkout__grand dt, .orderpage__lines .is-label dt { font-family: var(--sans); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: #3d3b37; }
.more-books { padding-top: clamp(4rem, 7vw, 6rem); padding-bottom: clamp(4rem, 7vw, 6rem); }
.btn--soon { opacity: .55; cursor: default; font-style: normal; }
/* A format that comes differently from the page (a first edition with its original cover) */
.format-note { flex-basis: 100%; display: flex; gap: .9rem; align-items: center; margin: .6rem 0 0; font-size: .9rem; line-height: 1.45; color: #4a4843; max-width: 34rem; }
.format-note img { width: 2.6rem; height: auto; flex: none; box-shadow: 0 6px 12px -6px rgba(0,0,0,.45); }
.format-note strong { font-weight: 500; }
.hero .format-note { color: var(--fog); }
.line__note { display: block; font-size: .82rem; color: var(--stone); font-style: italic; margin-top: .2rem; }
