/* Is There a Meaning, Dammit? : Ember poster
   Layout is measured from the approved 1440px comp. On desktop every length is
   N * --u, where --u is 1px once the 1104px content column fits and shrinks in
   proportion below that, so the composition holds from 1024px to wide screens. */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Caveat Brush";
  src: url("../fonts/caveat-brush.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #120b09;
  --cream: #f4dcc4;
  --body: #e9d2ba;
  --muted: rgb(244 220 196 / 0.72);
  --ember: #e0763a;
  --ember-hi: #ec8a50;
  --ink: #120b09;
  --strip-ink: #1a100e;
  --card: #f4dcc4;
  --rule: rgb(244 220 196 / 0.34);

  --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-title: "Instrument Serif", "Times New Roman", serif;
  --f-italic: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --f-body: "EB Garamond", Garamond, "Times New Roman", serif;
  --f-brush: "Caveat Brush", "Impact", sans-serif;

  --gutter: 48px;
  --u: min(1px, calc((100vw - 2 * var(--gutter)) / 1104));
  --wrap: calc(1104 * var(--u));
  /* --hu scales the first screen (header + hero, 917 comp px tall) to fit short windows */
  --hu: max(calc(0.6 * var(--u)), min(var(--u), calc(100svh / 980)));
  --header-h: calc(98 * var(--hu));
  --footer-h: calc(248 * var(--u));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: #5b3a28 var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--f-body);
  font-size: 21px;
  line-height: 32px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure,
h1,
h2,
h3,
p,
ul {
  margin: 0;
}

a {
  color: inherit;
}

cite {
  font-style: normal;
}

::selection {
  background: var(--ember);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ember);
  color: var(--ink);
  font: 800 15px/1 var(--f-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus {
  top: 16px;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* The comp's content column sits 8px left of centre (160px / 176px margins at 1440). */
@media (min-width: 1024px) {
  .wrap {
    margin-left: calc((100% - var(--wrap)) / 2 - 8 * var(--u));
    margin-right: auto;
  }
  .site-footer .wrap {
    margin-inline: auto;
  }
}

.ember {
  color: var(--ember);
}

/* Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    background-color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    color 0.25s var(--ease-out),
    transform 0.25s var(--ease-out);
}
.btn:active {
  transform: translateY(1px);
}

.btn--ember {
  background: var(--ember);
  color: var(--ink);
}
.btn--ember:hover {
  background: var(--ember-hi);
}

.btn--outline {
  color: var(--cream);
  border-color: rgb(224 118 58 / 0.4);
}
.btn--outline:hover {
  border-color: var(--ember);
  background: rgb(224 118 58 / 0.12);
}

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

.btn--nav {
  height: calc(50 * var(--hu));
  padding: 0 calc(24 * var(--hu)) 0 calc(27 * var(--hu));
  font-size: calc(17 * var(--hu));
  letter-spacing: 0.2em;
}

.btn--hero {
  height: calc(56 * var(--hu));
  padding: 0 calc(31 * var(--hu)) 0 calc(34 * var(--hu));
  font-size: calc(19 * var(--hu));
  letter-spacing: 0.145em;
}

/* Header ---------------------------------------------------------------- */

.site-header {
  padding-top: calc(24 * var(--hu));
  padding-bottom: calc(24 * var(--hu));
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: calc(23 * var(--hu));
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s var(--ease-out);
}
.brand:hover {
  color: #fff3e6;
}
@media (max-width: 1023px) {
  .brand {
    padding-block: 12px; /* comfortable tap target on touch screens */
    margin-block: -12px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: calc(34 * var(--hu));
}

.nav__link {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: calc(17 * var(--hu));
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  padding-block: 10px 6px;
  background: linear-gradient(var(--ember), var(--ember)) left bottom / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease-out), color 0.25s var(--ease-out);
}
.nav__link:hover {
  color: #fff3e6;
  background-size: calc(100% - 0.2em) 1px;
}

/* Hero ------------------------------------------------------------------ */

.hero__grid {
  display: grid;
  grid-template-columns: auto calc(400 * var(--hu));
  column-gap: calc(64 * var(--hu));
  justify-content: start;
  align-items: center;
  padding-block: calc(56 * var(--hu)) calc(64 * var(--hu));
  /* when the first screen shrinks to fit a short window, keep the pair centred */
  padding-left: max(0px, calc((var(--wrap) - 1104 * var(--hu)) / 2));
}

.lockup {
  font-weight: 400;
}

.lockup__kicker {
  display: block;
  font-family: var(--f-title);
  font-style: italic;
  font-size: calc(48 * var(--hu));
  line-height: 1;
  color: var(--cream);
  margin-left: calc(75 * var(--hu));
}

.lockup__mark {
  width: calc(588 * var(--hu));
  margin-top: calc(13 * var(--hu));
  margin-left: calc(1 * var(--hu));
}

.hero__sub {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: calc(32 * var(--hu));
  line-height: calc(40 * var(--hu));
  color: var(--cream);
  max-width: calc(420 * var(--hu));
  margin-top: calc(31 * var(--hu));
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(15 * var(--hu));
  margin-top: calc(39 * var(--hu));
}

.hero__art {
  width: calc(400 * var(--hu));
}

/* Orange canvas strips ---------------------------------------------------- */

.strip,
.buy,
.site-footer {
  background-color: #b45f31;
  background-image: url("../images/canvas.webp");
  background-size: max(100%, calc(1860 * var(--u))) auto;
  background-position: center;
}

.strip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px var(--gutter);
  color: var(--strip-ink);
  overflow: hidden;
}

.strip__line {
  font-family: var(--f-title);
  font-style: italic;
  font-size: calc(53.5 * var(--u));
  line-height: 1;
}

/* The questions ticker: the book's own questions run slowly across the strip that
   closes the first screen. Each ends with the brush "?" from the cover lettering.
   Two identical sets loop seamlessly; it pauses on hover and stands still, centred,
   for reduced motion. Screen readers get the questions once, from the sr-only line. */
.strip--questions {
  height: calc(132 * var(--u));
  padding-inline: 0;
}

.ticker {
  width: 100%;
  overflow: hidden;
}

.ticker__track {
  display: flex;
  width: max-content;
}

.ticker__set {
  display: flex;
  align-items: baseline;
  flex: none;
}

.ticker__item {
  display: inline-flex;
  align-items: baseline;
  padding-right: calc(110 * var(--u));
  font-family: var(--f-title);
  font-style: italic;
  font-size: calc(53.5 * var(--u));
  line-height: 1;
  white-space: nowrap;
}

.ticker__item img {
  height: 0.8em;
  width: auto;
  margin-left: 0.1em;
}

@media (prefers-reduced-motion: no-preference) {
  .ticker__track {
    animation: ticker 48s linear infinite;
  }
  .strip--questions:hover .ticker__track {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    width: 100%;
    justify-content: center;
  }
  .ticker__set + .ticker__set {
    display: none;
  }
  .ticker__set {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: calc(6 * var(--u));
  }
  .ticker__item {
    padding-inline: calc(26 * var(--u));
    font-size: calc(36 * var(--u));
  }
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.strip--seekers {
  height: calc(174 * var(--u));
}

.strip__line {
  text-align: center;
  padding-inline: 24px;
  /* the comp sets this line 20px left of centre */
  margin-left: calc(-40 * var(--u));
}

.strip__seekers {
  /* The cover's DAMMiT? is hand-painted, not a font. Caveat Brush is the nearest
     brush face; a same-colour stroke brings it to the cover's paint weight and a
     slight horizontal squeeze to its tall, narrow letters. Caps match the strip's
     DAMMiT? height. */
  display: inline-block;
  font-family: var(--f-brush);
  font-style: normal;
  font-weight: 400;
  font-size: calc(79 * var(--u));
  line-height: 1;
  letter-spacing: 0.01em;
  -webkit-text-stroke: calc(2.2 * var(--u)) currentColor;
  text-transform: uppercase;
  transform: scaleX(0.9);
  transform-origin: left center;
  margin-left: calc(6 * var(--u));
  margin-right: -0.49em;
  vertical-align: -0.04em;
}

/* Is there more to life? ------------------------------------------------- */

.more__grid {
  padding-top: calc(102 * var(--u));
  padding-bottom: calc(108 * var(--u));
  display: grid;
  grid-template-columns: 1fr calc(565 * var(--u));
  align-items: center;
}

.more__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: calc(112 * var(--u));
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--cream);
  max-width: 4.2em;
}

.more__tagline {
  margin-top: calc(25 * var(--u));
  font-style: italic;
  font-size: calc(31 * var(--u));
  line-height: 1.2;
  color: var(--cream);
}

.more__art {
  padding: calc(12 * var(--u));
  margin-right: calc(-12 * var(--u));
}

/* About the book ---------------------------------------------------------- */

.about__side {
  margin-top: calc(-5 * var(--u));
}

.about__grid {
  padding-top: calc(132 * var(--u));
  padding-bottom: calc(128 * var(--u));
  display: grid;
  grid-template-columns: 1fr calc(481 * var(--u));
  column-gap: calc(72 * var(--u));
  align-items: start;
}

.lockup--about .lockup__kicker {
  font-size: calc(40.8 * var(--u));
  margin-left: calc(67 * var(--u));
  margin-top: calc(-8 * var(--u));
}

.lockup--about .lockup__mark {
  width: calc(520 * var(--u));
  margin-top: calc(17 * var(--u));
}

.about__sub {
  margin-top: calc(22 * var(--u));
  font-family: var(--f-italic);
  font-style: italic;
  font-size: calc(24.6 * var(--u));
  line-height: 1.25;
  color: var(--ember);
}

.prose {
  font-size: calc(21.2 * var(--u));
  line-height: calc(32 * var(--u));
  color: var(--body);
}

.about .prose {
  margin-top: calc(30 * var(--u));
  margin-right: calc(-8 * var(--u));
}

.prose p + p {
  margin-top: calc(28 * var(--u));
}

.dare {
  margin-top: calc(38 * var(--u));
  font-family: var(--f-display);
  font-weight: 900;
  font-size: calc(38 * var(--u));
  line-height: calc(44 * var(--u));
  text-transform: uppercase;
  color: var(--cream);
}

.dare em {
  font-style: normal;
  color: var(--ember);
}

/* Get your copy --------------------------------------------------------- */

.buy {
  padding-top: calc(100 * var(--u));
  padding-bottom: calc(104 * var(--u));
  color: var(--ink);
}

.buy__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: calc(88 * var(--u));
  line-height: 1;
  text-transform: uppercase;
}

/* One purchase card: the flat cover, a format switch, the price and facts for the
   chosen format, and both Amazon stores (the visitor's own store first). */
.purchase {
  display: grid;
  grid-template-columns: calc(220 * var(--u)) 1fr;
  column-gap: calc(48 * var(--u));
  align-items: center;
  margin-top: calc(46 * var(--u));
  padding: calc(36 * var(--u)) calc(44 * var(--u)) calc(36 * var(--u)) calc(36 * var(--u));
  background: var(--card);
  max-width: calc(900 * var(--u));
}

.purchase__cover {
  width: 100%;
  box-shadow: 0 calc(14 * var(--u)) calc(30 * var(--u)) rgb(18 11 9 / 0.28);
}

.purchase__byline {
  font-size: calc(19 * var(--u));
  line-height: 1.3;
  color: #3a2a22;
}
.purchase__byline cite {
  font-style: italic;
}

.formats {
  display: inline-flex;
  margin-top: calc(18 * var(--u));
  border: 2px solid var(--ink);
}

.formats__tab {
  appearance: none;
  border: 0;
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: calc(18 * var(--u));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  height: calc(44 * var(--u));
  padding: 0 calc(22 * var(--u)) 0 calc(24 * var(--u));
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.formats__tab + .formats__tab {
  border-left: 2px solid var(--ink);
}
.formats__tab:hover {
  background: rgb(18 11 9 / 0.08);
}
.formats__tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--cream);
}

.format {
  margin-top: calc(22 * var(--u));
}
.format[hidden],
.js .format:not(.is-active) {
  display: none; /* with the script, only the chosen format shows; without it, both do */
}
.js .format:not([hidden]) {
  animation: format-in 0.45s var(--ease-out);
}
@keyframes format-in {
  from { opacity: 0.4; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.format__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: calc(14 * var(--u));
}

.format__amount {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: calc(64 * var(--u));
  line-height: 1;
  color: var(--ink);
}

.format__note {
  font-size: calc(19 * var(--u));
  line-height: 1.3;
  color: #3a2a22;
}

.format__mrp {
  margin-left: calc(6 * var(--u));
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  color: #6b5446;
}

.format__facts {
  display: flex;
  flex-wrap: wrap;
  gap: calc(6 * var(--u)) calc(22 * var(--u));
  margin-top: calc(14 * var(--u));
  padding: 0;
  list-style: none;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: calc(16 * var(--u));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3a2a22;
}

.format__stores {
  display: flex;
  flex-wrap: wrap;
  gap: calc(12 * var(--u));
  margin-top: calc(24 * var(--u));
}

.format__stores .btn {
  height: calc(51 * var(--u));
  padding: 0 calc(24 * var(--u)) 0 calc(26 * var(--u));
  font-size: calc(19 * var(--u));
  letter-spacing: 0.1em;
}

.btn--ink-line {
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn--ink-line:hover {
  background: rgb(18 11 9 / 0.08);
}

.buy :focus-visible {
  outline-color: var(--ink);
}

/* Author ------------------------------------------------------------------ */

.author__grid {
  padding-top: calc(124 * var(--u));
  padding-bottom: calc(130 * var(--u));
  display: grid;
  grid-template-columns: calc(361 * var(--u)) 1fr;
  column-gap: calc(63 * var(--u));
  align-items: start;
}

.author__photo {
  margin-top: calc(3 * var(--u));
}

.author__name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: calc(80 * var(--u));
  line-height: 1;
  text-transform: uppercase;
  color: var(--cream);
}

.author__line {
  margin-top: calc(18 * var(--u));
  font-family: var(--f-italic);
  font-style: italic;
  font-size: calc(22.7 * var(--u));
  line-height: calc(34 * var(--u));
  color: var(--ember);
  max-width: calc(670 * var(--u));
}

.author .prose {
  margin-top: calc(26 * var(--u));
}

.author .prose p + p {
  margin-top: calc(24 * var(--u));
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: calc(28 * var(--u));
  margin-top: calc(47 * var(--u));
  padding: 0;
  list-style: none;
}

.social a {
  display: inline-block;
  padding-bottom: calc(10 * var(--u));
  border-bottom: 2px solid var(--rule);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: calc(21 * var(--u));
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.social a:hover {
  border-color: var(--ember);
  color: #fff3e6;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  padding-block: calc(48 * var(--u)) calc(46 * var(--u));
  /* deepen the canvas a touch so the cream credit clears WCAG contrast */
  background-image: linear-gradient(rgb(18 11 9 / 0.16), rgb(18 11 9 / 0.16)), url("../images/canvas.webp");
}

.site-footer .wrap {
  width: min(calc(1190 * var(--u)), calc(100% - 2 * var(--gutter)));
}

.site-footer__inner {
  display: flex;
  align-items: center;
  gap: calc(31 * var(--u));
}

.site-footer__logo {
  width: calc(125 * var(--u));
}

.site-footer__text {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: max(24px, calc(24 * var(--u)));
  line-height: 1.3;
  color: var(--cream);
}

.site-footer :focus-visible {
  outline-color: var(--ink);
}

/* Section-by-section scrolling ------------------------------------------
   Each panel is a stop. On desktop every panel fills one screen and centres its
   content, so the next section never peeks in; the first screen (header, hero and
   the title strip) is sized to fit the window. The strips close the hero and the
   "Is there more to life?" panels. A panel taller than the screen still scrolls
   freely inside, so no copy is ever skipped. */

.panel {
  scroll-snap-align: start;
}
.hero {
  scroll-margin-top: var(--header-h);
}

@media (min-width: 1024px) and (min-height: 600px) {
  .panel {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
  }
  .hero.panel {
    min-height: calc(100svh - var(--header-h));
  }
  .hero .strip {
    --u: var(--hu); /* the title strip shrinks with the rest of the first screen */
  }
  .panel > .wrap {
    flex: 1 0 auto;
  }
  .hero__grid {
    padding-block: calc(32 * var(--hu));
  }
  .more__grid {
    align-content: center;
    padding-block: min(calc(56 * var(--u)), 6svh);
  }
  .about__grid,
  .author__grid {
    align-content: center;
    padding-block: min(calc(64 * var(--u)), 7svh);
  }
  .buy.panel {
    justify-content: center;
    padding-block: min(calc(72 * var(--u)), 8svh);
  }
  .buy.panel > .wrap {
    flex: 0 0 auto;
  }
  .buy.panel {
    background-size: cover; /* a full-screen panel is taller than the texture tile */
  }
}

/* Without the script, desktop falls back to CSS snapping; with it, js/main.js glides
   between sections and CSS snapping is switched off so the two never fight. */
@media (min-width: 1024px) and (min-height: 600px) {
  html {
    scroll-snap-type: y mandatory;
  }
}
@media (max-width: 1023px), (max-height: 599px) {
  html {
    scroll-snap-type: y proximity;
  }
}
html.pager {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

/* Motion: the book settles onto the page once; figures rise in as they arrive;
   each strip's line drifts into place as its section scrolls in. */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .strip__line {
      animation: strip-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
    .strip--seekers {
      --drift: -14vw;
    }
  }
}

@keyframes strip-drift {
  from {
    translate: var(--drift, 0) 0;
    opacity: 0.25;
  }
  to {
    translate: 0 0;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__art img {
    animation: book-settle 1.1s var(--ease-out) both;
  }
  .hero .lockup__mark {
    animation: mark-press 0.9s 0.15s var(--ease-out) both;
  }
  .js .reveal {
    transition:
      opacity 1s var(--ease-out),
      transform 1.1s var(--ease-out);
  }
  .js .reveal:not(.is-in) {
    opacity: 0.55;
    transform: translateY(18px) scale(0.985);
  }
}

/* Phones (and phones turned sideways) scroll freely: the page never moves itself on
   to the next section. Figures and the seekers line still animate in as they arrive. */
@media (max-width: 767px), (pointer: coarse) and (max-height: 599px) {
  html {
    scroll-snap-type: none;
  }
}

@media print {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}

@keyframes book-settle {
  from {
    opacity: 0.001;
    transform: translate3d(0, 26px, 0) rotate(1.5deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mark-press {
  from {
    opacity: 0.001;
    transform: scale(1.04);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Tablet ------------------------------------------------------------------ */

@media (max-width: 1023px) {
  :root {
    --gutter: 32px;
    --u: min(1px, calc((100vw - 2 * var(--gutter)) / 860));
    --hu: var(--u);
    --wrap: calc(100vw - 2 * var(--gutter));
  }

  .hero__grid {
    grid-template-columns: 1fr calc(300 * var(--u));
    column-gap: calc(40 * var(--u));
  }
  .hero__art {
    width: calc(300 * var(--u));
    margin-right: 0;
  }
  .lockup__mark {
    width: calc(470 * var(--u));
  }
  .lockup__kicker {
    font-size: calc(40 * var(--u));
    margin-left: calc(58 * var(--u));
  }
  .more__grid {
    grid-template-columns: 1fr calc(440 * var(--u));
  }
  .about__grid {
    grid-template-columns: 1fr calc(380 * var(--u));
    column-gap: calc(48 * var(--u));
  }
  .author__grid {
    grid-template-columns: calc(280 * var(--u)) 1fr;
    column-gap: calc(48 * var(--u));
  }
  .strip__line,
  .ticker__item {
    font-size: calc(40 * var(--u));
  }
  .strip__seekers {
    font-size: calc(58 * var(--u));
  }
  .strip--questions {
    height: calc(112 * var(--u));
  }
  .strip--seekers {
    height: calc(140 * var(--u));
  }
  .strip__line {
    margin-left: 0;
  }
  .site-footer .wrap {
    width: var(--wrap);
  }
  .purchase {
    grid-template-columns: calc(190 * var(--u)) 1fr;
    column-gap: calc(36 * var(--u));
    max-width: none;
  }
}

/* Phone ------------------------------------------------------------------- */

@media (max-width: 767px) {
  :root {
    --gutter: 22px;
    --u: 1px;
    --hu: 1px;
    --header-h: 72px;
    --footer-h: 172px;
  }

  body {
    font-size: 19px;
    line-height: 29px;
  }

  .site-header {
    padding-block: 16px;
  }
  .brand {
    font-size: 15px;
    letter-spacing: 0.05em;
    padding-block: 13px; /* a 41px tap target without moving the line */
    margin-block: -13px;
  }
  .nav__link {
    display: none;
  }
  .btn--nav {
    height: 40px;
    padding: 0 14px 0 16px;
    font-size: 14px;
    letter-spacing: 0.14em;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    padding-block: 28px 44px;
  }
  .lockup__kicker {
    font-size: 30px;
    margin-left: 12vw;
  }
  .lockup__mark,
  .lockup--about .lockup__mark {
    width: 100%;
    max-width: 440px;
    margin-top: 8px;
  }
  .lockup--about .lockup__kicker {
    font-size: 28px;
    margin-left: 11vw;
  }
  .hero__sub {
    font-size: 25px;
    line-height: 32px;
    margin-top: 20px;
    max-width: 20ch;
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 26px;
  }
  .btn--hero {
    height: 54px;
    font-size: 18px;
  }
  .hero__art {
    justify-self: center;
    width: min(62vw, 280px);
    margin: 36px 0 0;
  }

  .strip--questions {
    height: 78px;
  }
  .ticker__item {
    font-size: 30px;
    padding-right: 64px;
  }
  .ticker__track {
    animation-duration: 34s;
  }
  @media (prefers-reduced-motion: reduce) {
    .ticker__item {
      padding-inline: 12px;
      font-size: 26px;
    }
    .strip--questions {
      height: auto;
      padding-block: 18px;
    }
  }
  .strip__seekers {
    display: block;
    width: max-content;
    margin: 8px auto 0;
    font-size: 52px;
    transform-origin: center;
  }
  .strip--seekers {
    height: auto;
    padding-block: 30px;
  }
  .strip__line {
    font-size: 34px;
    line-height: 1.15;
    margin-left: 0;
  }
  .strip__line .nw {
    display: inline-block;
  }

  .more__grid {
    padding-block: 64px;
    grid-template-columns: 1fr;
    row-gap: 36px;
  }
  .more__title {
    font-size: clamp(64px, 21vw, 96px);
  }
  .more__tagline {
    margin-top: 16px;
    font-size: 25px;
  }
  .more__art {
    margin: 0 -12px;
  }

  .about__grid {
    padding-block: 64px 72px;
    grid-template-columns: 1fr;
    row-gap: 48px;
  }
  .about__sub {
    font-size: 21px;
    margin-top: 18px;
  }
  .prose {
    font-size: 19px;
    line-height: 29px;
  }
  .about .prose {
    margin-top: 20px;
  }
  .prose p + p {
    margin-top: 20px;
  }
  .dare {
    margin-top: 32px;
    font-size: 32px;
    line-height: 36px;
  }

  .buy {
    padding-block: 64px;
  }
  .buy__title {
    font-size: 60px;
  }
  .purchase {
    grid-template-columns: 1fr;
    row-gap: 22px;
    margin-top: 28px;
    padding: 24px 22px 26px;
  }
  .purchase__cover {
    width: 150px;
    justify-self: center;
  }
  .purchase__byline {
    font-size: 17px;
    text-align: center;
  }
  .formats {
    display: flex;
    margin-top: 16px;
  }
  .formats__tab {
    flex: 1;
    height: 46px;
    font-size: 17px;
    padding: 0 10px;
  }
  .format__amount {
    font-size: 52px;
  }
  .format__note {
    font-size: 17px;
  }
  .format__facts {
    font-size: 14px;
    gap: 4px 16px;
  }
  .format__stores {
    flex-direction: column;
    gap: 10px;
  }
  .format__stores .btn {
    width: 100%;
    height: 50px;
    font-size: 17px;
  }

  .author__grid {
    padding-block: 64px 72px;
    grid-template-columns: 1fr;
    row-gap: 28px;
  }
  .author__photo {
    width: 240px;
    margin-top: 0;
  }
  .author__name {
    font-size: clamp(48px, 14vw, 64px);
  }
  .author__line {
    margin-top: 14px;
    font-size: 20px;
    line-height: 28px;
  }
  .social {
    gap: 18px 22px;
    margin-top: 36px;
  }
  .social a {
    font-size: 19px;
  }

  .site-footer {
    padding-block: 32px;
  }
  .site-footer__inner {
    gap: 20px;
  }
  .site-footer__logo {
    width: 88px;
  }
  .site-footer__text {
    font-size: 24px;
  }
}
