/* Short Pencil: the website. The app's fonts, paper, green, gold and leather. */

@font-face { font-family: 'Cormorant Garamond'; font-weight: 300; font-style: normal; font-display: swap; src: url(fonts/cormorant-300.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/cormorant-400.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/cormorant-400i.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/cormorant-600.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/cormorant-700.woff2) format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/ebgaramond-400.woff2) format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/ebgaramond-400i.woff2) format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/ebgaramond-500.woff2) format('woff2'); }
@font-face { font-family: 'Covered By Your Grace'; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/grace.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --night: #100f0c;
  --night-2: #191712;
  --night-line: rgba(243, 238, 225, 0.13);
  --on-night: #efe9da;
  --on-night-soft: rgba(239, 233, 218, 0.68);
  --paper: #f3eee1;
  --paper-hi: #fbf8ef;
  --paper-line: rgba(31, 74, 48, 0.16);
  --ink: #1f2922;
  --ink-soft: #5c6056;
  --green: #1f4a30;
  --gold: #b8975a;
  --gold-soft: #a4864a;
  --graphite: #38383e;
  --display: 'Cormorant Garamond', Georgia, serif;
  --serif: 'EB Garamond', Georgia, serif;
  --hand: 'Covered By Your Grace', cursive;
  --wrap: min(1180px, calc(100% - 2 * var(--gutter)));
  --gutter: clamp(20px, 5vw, 56px);
  /* The app's leather (src/styles.css). */
  --leather: #7a4a2b;
  --leather-thread: #d6bd8a;
  --leather-pebble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E %3Cfilter id='p' x='-24' y='-24' width='288' height='288' filterUnits='userSpaceOnUse' primitiveUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='5' stitchTiles='stitch' x='0' y='0' width='240' height='240'/%3E %3CfeTile x='-24' y='-24' width='288' height='288'/%3E %3CfeDiffuseLighting surfaceScale='1.3' lighting-color='%23fff'%3E%3CfeDistantLight azimuth='225' elevation='52'/%3E%3C/feDiffuseLighting%3E %3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .04 0 0 0 0 0 -.9 0 0 0 .78'/%3E %3C/filter%3E%3Crect x='-24' y='-24' width='288' height='288' filter='url(%23p)'/%3E%3C/svg%3E");
  --leather-pebble-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E %3Cfilter id='q' x='-24' y='-24' width='288' height='288' filterUnits='userSpaceOnUse' primitiveUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='5' stitchTiles='stitch' x='0' y='0' width='240' height='240'/%3E %3CfeTile x='-24' y='-24' width='288' height='288'/%3E %3CfeDiffuseLighting surfaceScale='1.3' lighting-color='%23fff'%3E%3CfeDistantLight azimuth='225' elevation='52'/%3E%3C/feDiffuseLighting%3E %3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .04 0 0 0 0 0 -.5 0 0 0 .43'/%3E %3C/filter%3E%3Crect x='-24' y='-24' width='288' height='288' filter='url(%23q)'/%3E%3C/svg%3E");
  --leather-wear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E %3Cfilter id='w' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='.007 .013' numOctaves='3' seed='9' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .07 0 0 0 0 .02 1.5 0 0 0 -.6'/%3E %3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* Nothing decorative may make the page scroll sideways (or a phone zoom out to fit it). */
  overflow-x: clip;
  background: var(--night);
  color: var(--on-night);
  font-family: var(--serif);
  font-size: clamp(17px, 1.05vw + 12px, 20px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

/* ---------- type ---------- */

.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.label .num {
  font-variant-numeric: lining-nums;
  opacity: 0.85;
}

.label .num::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-left: 12px;
  vertical-align: middle;
  background: currentColor;
  opacity: 0.6;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 6.4vw, 6.4rem);
}

h2 {
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
}

h3 {
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  font-weight: 400;
}

em,
.amp {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

p {
  margin: 0 0 1.1em;
}

.lede {
  font-size: clamp(1.1rem, 1.3vw + 0.7rem, 1.4rem);
  line-height: 1.55;
  color: var(--on-night-soft);
  max-width: 34em;
}

/* ---------- buttons ---------- */

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 24px;
  font-family: var(--serif);
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.btn small {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
  line-height: 1.2;
}

.btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.btn svg {
  flex: none;
}

.btn.solid {
  background: var(--on-night);
  color: var(--night);
}

.btn.line {
  border-color: rgba(239, 233, 218, 0.45);
  color: var(--on-night);
}

.btn[aria-disabled='true'] {
  cursor: default;
}

.text-link {
  font-family: var(--serif);
  color: var(--on-night);
  text-decoration: none;
  border-bottom: 1px solid rgba(239, 233, 218, 0.4);
  padding-bottom: 2px;
}

.text-link:hover {
  border-color: var(--gold);
}

/* ---------- header ---------- */

.site-head {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  padding: 18px 0;
}

.site-head .wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--on-night);
}

/* The header's lockup: the badge, its caption centred beneath it like a club crest's. */
.site-head .brand {
  flex-direction: column;
  gap: 10px;
}

.brand-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.64rem;
  line-height: 1.55;
  letter-spacing: 0.24em;
  /* Tracking adds space after the last letter too: balance it so the words sit truly centred. */
  margin-right: -0.24em;
  text-transform: uppercase;
  color: #c9a96a;
  /* A soft dark halo: legible over any part of the sky, even its pink band. */
  text-shadow:
    0 0 6px rgba(10, 9, 7, 0.75),
    0 0 14px rgba(10, 9, 7, 0.5),
    0 1px 2px rgba(10, 9, 7, 0.6);
  white-space: nowrap;
}

.brand-caption span {
  font-variant-numeric: lining-nums;
}

/* The full badge: it brings its own cream disc, and its own name. */
.brand-mark {
  flex: none;
  display: block;
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.4));
}

.foot-mark {
  width: 120px;
  height: 120px;
}

@media (max-width: 720px) {
  .site-head .brand-mark {
    width: 76px;
    height: 76px;
  }
}

.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  /* Level with the middle of the badge (96 px), not the whole lockup. */
  margin-top: 26px;
}

@media (max-width: 720px) {
  .site-nav {
    margin-top: 16px;
  }
}

.site-nav a {
  padding: 10px 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.9;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.site-nav a:hover {
  opacity: 1;
  color: var(--gold);
}

@media (max-width: 720px) {
  .site-nav .wide-only {
    display: none;
  }
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero picture,
.hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero picture img {
  object-position: 50% 60%;
  animation: settle 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes settle {
  from {
    transform: scale(1.06);
    opacity: 0.4;
  }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 15, 12, 0.6) 0%, rgba(16, 15, 12, 0.25) 18%, rgba(16, 15, 12, 0) 32%),
    linear-gradient(0deg, rgba(16, 15, 12, 0.92) 0%, rgba(16, 15, 12, 0.5) 38%, rgba(16, 15, 12, 0.05) 70%);
}

.hero-copy {
  padding: 160px 0 clamp(56px, 9vh, 104px);
}

.hero h1 {
  max-width: 11.5em;
  margin-bottom: 26px;
}

.hero .lede {
  margin-bottom: 34px;
  color: rgba(239, 233, 218, 0.82);
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}

/* ---------- sections ---------- */

.section {
  padding: clamp(88px, 12vw, 160px) 0;
  position: relative;
}

.section.paper {
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .26 0 0 0 0 .16 .22 0 0 0 -.07'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
}

.section.paper .label {
  color: var(--gold-soft);
}

.section.paper .lede,
.section.paper p {
  color: var(--ink-soft);
}

.section.paper h2,
.section.paper h3 {
  color: var(--green);
}

.rule {
  border: 0;
  border-top: 1px solid var(--night-line);
  margin: 0;
}

/* The noise: two columns, the photograph framed like a print. */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

.story h2 {
  margin-bottom: 30px;
}

.story .turn {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--night-line);
  color: var(--on-night);
  font-size: 1.12em;
}

.print {
  position: relative;
  margin: 0;
}

.print img {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
}

.print figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-night-soft);
}

/* A real card, close up, lying a little askew on its leather holder. */
.shot-frame {
  position: relative;
  aspect-ratio: 6 / 5;
  overflow: hidden;
  background:
    var(--leather-pebble) center / 240px,
    var(--leather);
  box-shadow: inset 0 0 60px rgba(20, 9, 2, 0.55);
}

.shot-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--leather-wear) center / 260px;
  opacity: 0.45;
}

.print .shot-frame img {
  position: absolute;
  left: 4%;
  top: 9%;
  width: 116%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: fill;
  transform: rotate(-4deg);
  transform-origin: 0 0;
  box-shadow: 0 2px 3px rgba(20, 10, 2, 0.35), 0 22px 40px -12px rgba(20, 10, 2, 0.7);
}

/* Evening light from the upper left, falling off toward the edges. */
.shot-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 28% 22%, rgba(255, 236, 200, 0.16), transparent 55%),
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(12, 6, 2, 0.45) 100%);
  pointer-events: none;
}

@media (max-width: 860px) {
  .story {
    grid-template-columns: 1fr;
  }
}

/* Left in the bag: a plain list, each item struck out in gold. */
.without-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px 40px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.without-head p {
  max-width: 24em;
  color: var(--on-night-soft);
  margin: 0;
}

.without {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--night-line);
}

.without li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 40px;
  align-items: baseline;
  padding: clamp(20px, 2.4vw, 30px) 0;
  border-bottom: 1px solid var(--night-line);
}

.without .gone {
  position: relative;
  justify-self: start;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.05;
  color: rgba(239, 233, 218, 0.55);
}

.without .gone::after {
  content: '';
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  top: 55%;
  height: 2px;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(var(--strike, 1));
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1) var(--sd, 0ms);
}

.js .without li:not(.in) .gone::after {
  --strike: 0;
}

.without .why {
  color: var(--on-night-soft);
  margin: 0;
}

@media (max-width: 720px) {
  .without li {
    grid-template-columns: 1fr;
  }
}

/* ---------- the card, in its holder ---------- */

.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}

.card-grid h2 {
  margin-bottom: 28px;
}

.points {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--paper-line);
}

.points li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--paper-line);
}

.points .n {
  grid-row: span 2;
  font-family: var(--hand);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--graphite);
}

.points strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.32rem;
  color: var(--ink);
  line-height: 1.2;
}

.points span {
  color: var(--ink-soft);
  font-size: 0.98em;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* The holder: a stitched leather back, the card held at its corners, a cover that swings open. */
.holder {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  perspective: 1800px;
}

.holder-back,
.holder-cover {
  border-radius: 18px;
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 214, 160, 0.13), transparent 60%),
    var(--leather-pebble) center / 240px,
    var(--leather);
  box-shadow:
    inset 0 0 0 1px rgba(30, 14, 4, 0.5),
    inset 0 0 40px rgba(24, 11, 3, 0.45);
}

.holder-back {
  position: relative;
  padding: 26px;
  box-shadow:
    inset 0 0 0 1px rgba(30, 14, 4, 0.5),
    inset 0 0 40px rgba(24, 11, 3, 0.45),
    0 2px 4px rgba(30, 20, 8, 0.25),
    0 30px 60px -20px rgba(30, 20, 8, 0.55);
}

.holder-back::before,
.holder-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--leather-wear) center / 260px;
  opacity: 0.45;
  pointer-events: none;
}

.stitch {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  overflow: visible;
  pointer-events: none;
}

.stitch rect {
  fill: none;
}

.stitch .hole {
  stroke: rgba(20, 8, 0, 0.6);
  stroke-width: 2.4;
  stroke-dasharray: 6 4.5;
  stroke-linecap: round;
  transform: translate(0.5px, 1px);
}

.stitch .thread {
  stroke: rgba(205, 176, 124, 0.85);
  stroke-width: 1.5;
  stroke-dasharray: 6 4.5;
  stroke-linecap: round;
}

.held {
  position: relative;
}

.held img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(20, 10, 2, 0.4), 0 8px 18px rgba(20, 10, 2, 0.35);
}

.pocket {
  position: absolute;
  width: 46px;
  height: 46px;
  pointer-events: none;
  filter: drop-shadow(0 1.5px 1.5px rgba(30, 15, 0, 0.35)) drop-shadow(0 4px 6px rgba(30, 15, 0, 0.18));
}

.pocket.tl { top: -3px; left: -3px; }
.pocket.tr { top: -3px; right: -3px; }
.pocket.bl { bottom: -3px; left: -3px; }
.pocket.br { bottom: -3px; right: -3px; }

.pocket > span {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 214, 160, 0.16), transparent 70%),
    var(--leather-pebble),
    var(--leather-wear),
    var(--leather);
  background-size: auto, 240px, 420px, auto;
}

.pocket.tl > span { clip-path: polygon(0 0, 100% 0, 0 100%); border-top-left-radius: 5px; }
.pocket.tr > span { clip-path: polygon(0 0, 100% 0, 100% 100%); border-top-right-radius: 5px; }
.pocket.bl > span { clip-path: polygon(0 0, 100% 100%, 0 100%); border-bottom-left-radius: 5px; }
.pocket.br > span { clip-path: polygon(100% 0, 100% 100%, 0 100%); border-bottom-right-radius: 5px; }

.pocket svg {
  display: block;
  overflow: visible;
}

.pocket .seam,
.pocket .seam-hole {
  fill: none;
  stroke-dasharray: 3.2 2.6;
  stroke-linecap: round;
}

.pocket .seam { stroke: var(--leather-thread); stroke-width: 1.2; }
.pocket .seam-hole { stroke: rgba(25, 10, 0, 0.6); stroke-width: 2; transform: translate(0.4px, 0.8px); }
.pocket .edge { fill: none; stroke: #3b2313; stroke-width: 2.6; }
.pocket .edge-light { fill: none; stroke: rgba(255, 222, 176, 0.28); stroke-width: 5; }

.holder-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-origin: 0 50%;
  backface-visibility: hidden;
  transition: transform 1.3s cubic-bezier(0.55, 0, 0.3, 1), opacity 0.4s 1s;
}

.holder-cover .stamp {
  position: relative;
  width: 58%;
  aspect-ratio: 1;
}

.holder.open .holder-cover {
  transform: rotateY(-100deg);
  opacity: 0;
}

.holder-hint {
  margin-top: 18px;
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* Four card stocks. */
.stocks {
  margin-top: clamp(72px, 9vw, 120px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
}

.stocks figure {
  margin: 0;
}

.stocks img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(40, 30, 10, 0.18), 0 14px 26px -12px rgba(40, 30, 10, 0.35);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stocks figure:hover img {
  transform: translateY(-6px) rotate(-0.6deg);
}

.stocks figcaption {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

.stocks-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 32px;
  margin-top: clamp(72px, 9vw, 120px);
  padding-top: 28px;
  border-top: 1px solid var(--paper-line);
}

.stocks-head + .stocks {
  margin-top: 32px;
}

.stocks-head h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 300;
}

.stocks-head p {
  margin: 0;
}

@media (max-width: 720px) {
  .stocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- how it works ---------- */

.steps-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px 40px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.steps-head p {
  max-width: 24em;
  color: var(--on-night-soft);
  margin: 0;
}

/* The steps beside the phone; the one the video is showing lit, the others resting. */
.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 4px 18px;
  padding: 26px 0 30px;
  border-top: 1px solid var(--night-line);
  transition: opacity 0.5s ease;
}

.step:last-child {
  border-bottom: 1px solid var(--night-line);
}

.step .no {
  padding-top: 0.55em;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.step h3 {
  margin: 0 0 10px;
}

.step p {
  margin: 0;
  color: var(--on-night-soft);
}

/* Progress through the step, drawn along its top rule. */
.step-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  overflow: hidden;
}

.step-bar i {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

.how-grid.playing .step:not(.on) {
  opacity: 0.38;
}

.how-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone {
  position: relative;
  margin: 0 auto;
  width: min(100%, 340px);
  padding: 9px;
  border-radius: 50px;
  background: linear-gradient(145deg, #2a2924, #0b0b0a 60%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 80px -28px rgba(0, 0, 0, 0.85);
}

.phone img,
.phone video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 42px;
  aspect-ratio: 396 / 857;
  object-fit: cover;
  background: #f3eee1;
}

.how-video {
  cursor: pointer;
}

.film-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding: 10px 18px 10px 10px;
  border: 1px solid rgba(239, 233, 218, 0.3);
  border-radius: 999px;
  background: none;
  color: var(--on-night);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
}

.film-link:hover {
  border-color: var(--gold);
  background: rgba(184, 151, 90, 0.08);
}

.film-play {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--on-night);
  color: var(--night);
}

.film-play svg {
  margin-left: 2px;
}

.film-link strong {
  display: block;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
}

.film-link small {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--on-night-soft);
}

@media (max-width: 900px) {
  .how-grid {
    grid-template-columns: 1fr;
  }

  .how-phone {
    order: -1;
  }

  .phone {
    width: min(78%, 320px);
  }
}

/* The film, in a lightbox. */
.film {
  width: min(92vw, calc(84vh * 16 / 9), 1400px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.film::backdrop {
  background: rgba(8, 7, 5, 0.9);
}

.film[open] {
  animation: film-in 0.35s ease both;
}

@keyframes film-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}

.film-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.film-close {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(239, 233, 218, 0.12);
  color: var(--on-night);
  cursor: pointer;
}

.film-close:hover {
  background: rgba(239, 233, 218, 0.22);
}

/* ---------- craft ---------- */

.craft {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 82vh;
}

.craft-photo {
  position: relative;
  min-height: 420px;
}

.craft-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.craft-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 8vw, 120px) clamp(28px, 6vw, 96px);
  background: var(--night-2);
}

.craft-copy h2 {
  margin-bottom: 28px;
  max-width: 10em;
}

.craft-copy p {
  color: var(--on-night-soft);
  max-width: 30em;
}

@media (max-width: 860px) {
  .craft {
    grid-template-columns: 1fr;
  }
}

/* ---------- the closing line ---------- */

.interlude {
  position: relative;
  min-height: 86vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.interlude img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.interlude::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, rgba(16, 15, 12, 0.5), rgba(16, 15, 12, 0.25) 70%), linear-gradient(0deg, rgba(16, 15, 12, 0.6), transparent 40%);
}

.interlude blockquote {
  margin: 0;
  padding: 0 var(--gutter);
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 6.6rem);
  line-height: 1.02;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.soon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

.soon h2 {
  margin-bottom: 24px;
}

.soon .lede {
  margin-bottom: 36px;
}

/* The app, as it opens: its leather cover, in a phone, in a warm pool of light. */
#soon {
  /* The glow spreads past a phone's screen edge: keep it from widening the page. */
  overflow: clip;
}

.soon-phone {
  position: relative;
  text-align: center;
}

.soon-phone::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 46%;
  width: 150%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(184, 151, 90, 0.2), rgba(122, 74, 43, 0.08) 40%, transparent 68%);
  pointer-events: none;
}

.soon-phone .phone {
  width: min(78%, 320px);
  margin-top: 0;
  transform: rotate(3deg);
}

.soon-note {
  position: relative;
  margin: 34px auto 0;
  max-width: 20em;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--on-night-soft);
}

.soon .contact {
  margin-top: 34px;
  color: var(--on-night-soft);
}

@media (max-width: 860px) {
  .soon {
    grid-template-columns: 1fr;
  }
}

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

.site-foot {
  padding: 72px 0 0;
  border-top: 1px solid var(--night-line);
  overflow: hidden;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px 40px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
}

.foot-links a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.8;
}

.foot-links a:hover {
  opacity: 1;
  color: var(--gold);
}

.foot-small {
  margin-top: 30px;
  font-size: 0.86rem;
  color: rgba(239, 233, 218, 0.5);
}

.wordmark {
  margin: 40px 0 -0.24em;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(4rem, 15.6vw, 15rem);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-align: center;
  color: rgba(239, 233, 218, 0.07);
  user-select: none;
}

/* ---------- reading pages: privacy, support ---------- */

.page-head {
  position: relative;
  padding: 150px 0 64px;
  border-bottom: 1px solid var(--night-line);
}

.page-head h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.page-head .lede {
  margin-top: 18px;
}

.doc {
  padding: clamp(56px, 8vw, 96px) 0 clamp(80px, 10vw, 130px);
}

.doc .wrap {
  max-width: 760px;
}

.doc h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  font-weight: 400;
  margin: 2.2em 0 0.6em;
  color: var(--green);
}

.doc h2:first-child {
  margin-top: 0;
}

.doc p,
.doc li {
  color: var(--ink-soft);
}

.doc strong {
  color: var(--ink);
  font-weight: 500;
}

.doc ul {
  padding-left: 1.2em;
  margin: 0 0 1.1em;
}

.doc li {
  margin-bottom: 0.5em;
}

.doc a {
  color: var(--green);
  text-decoration-color: rgba(31, 74, 48, 0.35);
  text-underline-offset: 3px;
}

.doc .updated {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.faq details {
  border-bottom: 1px solid var(--paper-line);
  padding: 4px 0;
}

.faq details:first-of-type {
  border-top: 1px solid var(--paper-line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--gold-soft);
  transition: transform 0.25s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0 0 18px;
}

.contact-card {
  margin-top: 56px;
  padding: 34px;
  background: var(--paper-hi);
  border: 1px solid var(--paper-line);
}

.contact-card h2 {
  margin-top: 0;
}

/* ---------- arriving ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero picture img {
    animation: none;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .holder-cover {
    transition: opacity 0.6s;
  }

  .holder.open .holder-cover {
    transform: none;
  }
}
