/*
 * ternnotes.app — "Atelier" (8 Oct 2026; was "Desk")
 *
 * Paper on a limewashed desk under window light by day, walnut under a lamp
 * at night. Everything that matters is an object resting on it — cloth,
 * cotton paper, ink, glass — and the interface is glass laid over it.
 * The ink is warm near-black, never blue-grey. It is the same palette as the
 * app — someone arriving here and then opening Tern should not feel they have
 * gone somewhere else.
 *
 * Two rules run through all of it, both taken from the app:
 *   An edge is a hairline, never a rule.
 *   A shadow is ink, never black, and is two shadows — one tight enough to say
 *   the thing is resting on something, one wide enough to say how far off.
 */

/* ---- tokens ------------------------------------------------------------ */

:root {
  --paper: #ded6c9;
  --paper-sunk: #d2c9ba;
  --paper-raised: #fbf8f1;
  --ink: #1a1712;
  --ink-soft: #4e483e;
  --ink-faint: #7b7365;
  --accent: #0e536b;
  --accent-deep: #093a4c;
  --accent-wash: #d9e7ea;
  --on-accent: #fbf8f1;
  --line: rgba(26, 23, 18, 0.09);
  --line-strong: rgba(26, 23, 18, 0.18);
  --frame: rgba(25, 23, 19, 0.035);
  --shadow-rgb: 42, 32, 18;
  --grain: 0.045;
  --lamp: rgba(255, 255, 255, 0.5);
  --glass: rgba(255, 253, 248, 0.58);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --copper-1: #7e4b2a;
  --copper-2: #c98e5c;
  --copper-3: #f1d2ae;
  --hand: 'Caveat', 'Segoe Print', cursive;
  --harbour: #1c3a57;
  --peat: #2c2620;
  --kelp: #2e4b36;
  --clay: #8e4a2e;
  --tidal: #2d6c86;
  --plum: #4a2f4d;
  --graphite: #55534f;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Motion with mass behind it. Nothing here moves on a browser default. */
  --settle: cubic-bezier(0.16, 0.84, 0.24, 1);
  --exit: cubic-bezier(0.3, 0, 1, 1);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 1120px;
  /* Doubled from what felt sufficient. Cramped spacing is the single most
     common tell of an unfinished page. */
  --section: clamp(5.5rem, 11vw, 9.5rem);

  /* The bar sits *above* the overlay: the hamburger morphs into the X that
     closes it, so it has to stay reachable while the menu is open. */
  --z-overlay: 30;
  --z-nav: 40;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #151210;
    --paper-sunk: #0a0807;
    --paper-raised: #221e1a;
    --ink: #efe8da;
    --ink-soft: #b4ab9b;
    --ink-faint: #8c8476;
    --accent: #8cc6d8;
    --accent-deep: #cde6ee;
    --accent-wash: #173039;
    --on-accent: #151210;
    --line: rgba(237, 231, 218, 0.1);
    --line-strong: rgba(237, 231, 218, 0.22);
    --frame: rgba(237, 231, 218, 0.035);
    --shadow-rgb: 0, 0, 0;
    --grain: 0.06;
    --lamp: rgba(255, 196, 128, 0.1);
    --glass: rgba(52, 46, 40, 0.6);
    --glass-edge: rgba(255, 240, 220, 0.12);
  }
}

:root[data-theme='dark'] {
  --paper: #151210;
  --paper-sunk: #0a0807;
  --paper-raised: #221e1a;
  --ink: #efe8da;
  --ink-soft: #b4ab9b;
  --ink-faint: #8c8476;
  --accent: #8cc6d8;
  --accent-deep: #cde6ee;
  --accent-wash: #173039;
  --on-accent: #151210;
  --line: rgba(237, 231, 218, 0.1);
  --line-strong: rgba(237, 231, 218, 0.22);
  --frame: rgba(237, 231, 218, 0.035);
  --shadow-rgb: 0, 0, 0;
  --grain: 0.06;
  --lamp: rgba(255, 196, 128, 0.1);
    --glass: rgba(52, 46, 40, 0.6);
    --glass-edge: rgba(255, 240, 220, 0.12);
}

/* ---- ground ------------------------------------------------------------ */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The desk is lit from above. Fixed, like the grain, so it never repaints. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(70% 60% at 16% 6%, rgba(255, 246, 228, 0.5), transparent 62%),
    linear-gradient(104deg, transparent 0 6%, rgba(255, 244, 222, 0.34) 12% 19%, rgba(42, 32, 18, 0.1) 21.5%, rgba(255, 244, 222, 0.34) 24% 33%, rgba(42, 32, 18, 0.1) 35.5%, rgba(255, 244, 222, 0.3) 38%, rgba(255, 244, 222, 0.2) 46%, transparent 60%),
    radial-gradient(130% 110% at 50% 115%, var(--paper-sunk), transparent 62%);
  mix-blend-mode: soft-light;
}
/* At night, one lamp a little right of centre. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) body::after {
    background: radial-gradient(52% 58% at 54% 40%, var(--lamp), transparent 76%), radial-gradient(130% 110% at 50% 115%, var(--paper-sunk), transparent 62%);
    mix-blend-mode: normal;
  }
}
:root[data-theme='dark'] body::after {
  background: radial-gradient(52% 58% at 54% 40%, var(--lamp), transparent 76%), radial-gradient(130% 110% at 50% 115%, var(--paper-sunk), transparent 62%);
  mix-blend-mode: normal;
}

/* The grain is fixed and untouchable, so it never repaints with a scroll. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.narrow {
  max-width: 44rem;
}

/* Four rungs side by side need more room than a column of prose does. The
   measure is set for reading, and this row is not for reading. */
.wrap--wide {
  max-width: 1280px;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: 'opsz' 96, 'SOFT' 24;
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.9rem, 7.2vw, 5rem);
}
h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-variation-settings: 'opsz' 48, 'SOFT' 20;
  letter-spacing: -0.018em;
}
h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  font-variation-settings: 'opsz' 24, 'SOFT' 16;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 0.2em;
  transition: color 180ms var(--settle);
}
a:hover {
  color: var(--accent-deep);
}

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 34rem;
}

.muted {
  color: var(--ink-soft);
}
.small {
  font-size: 0.9375rem;
}

/* A running head above a heading — spaced serif small capitals after a short
   rule: hierarchy for no visual weight, and no accent spent on a label. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 500;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: '';
  width: 1.1rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms var(--settle),
    background-color 180ms var(--settle),
    border-color 180ms var(--settle);
}

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

/* Pressed, it gives, the way a physical thing does. Only transform moves. */
.btn:active {
  transform: scale(0.975);
}

/* Primary is ink: dark by day, light at night. The accent stays rare. */
.btn--primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 86%, var(--paper-raised)), var(--ink));
  color: var(--paper-raised);
  border-color: transparent;
  padding-left: 0.4rem;
  box-shadow:
    0 2px 6px rgba(var(--shadow-rgb), 0.1),
    0 12px 28px rgba(var(--shadow-rgb), 0.14);
}
.btn--primary:hover {
  background: var(--ink);
  color: var(--paper-raised);
}

/* The icon gets its own circle flush inside the edge, so it reads as a piece
   nested in the button rather than a glyph floating next to the label. */
.btn__chip {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper-raised) 16%, transparent);
  transition: transform 240ms var(--settle);
}
.btn--primary:hover .btn__chip {
  transform: translateX(2px);
}
.btn__chip svg {
  width: 1rem;
  height: 1rem;
}

/* ---- the navigation bar ------------------------------------------------ */

.nav {
  position: sticky;
  top: 0.85rem;
  z-index: var(--z-nav);
  margin-top: 0.85rem;
}

.nav__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.55rem 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  border-top-color: var(--glass-edge);
  /* Glass. Blur is confined to this: it is sticky, so it never repaints on scroll. */
  background: var(--glass);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  box-shadow:
    0 1px 3px rgba(var(--shadow-rgb), 0.05),
    0 10px 30px rgba(var(--shadow-rgb), 0.07);
}

.nav__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.nav__mark svg {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--ink);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  transition:
    background-color 180ms var(--settle),
    color 180ms var(--settle);
}
.nav__link:hover {
  color: var(--ink);
  background: var(--frame);
}
.nav__link[aria-current='page'] {
  color: var(--ink);
  background: var(--paper-raised);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--line);
}

.nav__cta {
  padding: 0.7rem 1.15rem;
  font-size: 0.9375rem;
}

/* The hamburger's lines morph into an X rather than simply vanishing. */
.nav__toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 280ms var(--settle), opacity 160ms var(--settle);
}
.nav__toggle span + span {
  margin-top: 0.3rem;
}
/* The travel is the gap between two lines' centres — 1.5px of line plus
   4.8px of margin — so the three of them actually meet in the middle and
   make an X rather than a chevron. */
.nav__toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6.3px) rotate(45deg);
}
.nav__toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6.3px) rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: grid;
  align-content: center;
  gap: 0.5rem;
  padding: var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms var(--settle), visibility 260ms;
}
.menu[data-open='true'] {
  opacity: 1;
  visibility: visible;
}
.menu a {
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 2.75rem);
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 420ms var(--settle),
    transform 420ms var(--settle);
}
.menu[data-open='true'] a {
  opacity: 1;
  transform: none;
}
/* Each item follows the one before it rather than all arriving at once. */
.menu[data-open='true'] a:nth-child(1) { transition-delay: 60ms; }
.menu[data-open='true'] a:nth-child(2) { transition-delay: 110ms; }
.menu[data-open='true'] a:nth-child(3) { transition-delay: 160ms; }
.menu[data-open='true'] a:nth-child(4) { transition-delay: 210ms; }
.menu[data-open='true'] a:nth-child(5) { transition-delay: 260ms; }
.menu[data-open='true'] a:nth-child(6) { transition-delay: 310ms; }

@media (max-width: 860px) {
  .nav__links {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }
}

/* ---- arrival ----------------------------------------------------------- */

/*
 * Sections arrive rather than simply being there. The class is added by
 * script only once an observer is known to work — with no JavaScript, or a
 * browser that never reports, everything is visible from the start. A
 * decoration must never be able to hide the page.
 */
.js-arrive {
  opacity: 0;
  transform: translateY(18px);
}
.js-arrive.is-here {
  opacity: 1;
  transform: none;
  transition:
    opacity 700ms var(--settle),
    transform 700ms var(--settle);
}

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

section {
  position: relative;
  z-index: 2;
}

.section {
  padding-block: var(--section);
}
.section--sunk {
  background: var(--paper-sunk);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__head p {
  margin-top: 1.1rem;
}

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

.hero {
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: var(--section);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero h1 {
  margin-bottom: 1.5rem;
}
.hero .lede {
  max-width: 32rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero__note {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--ink-faint);
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__art {
    order: -1;
  }
}

/* A sheet on a desk is never perfectly square to it. */
.hero__art {
  transform: rotate(-1.6deg);
}

/* ---- the nested frame -------------------------------------------------- */

/*
 * Nothing important lies flat on the background. A tinted shell with a
 * hairline ring holds a core with its own surface, and the inner radius is the
 * outer one minus the padding so the two curves are concentric. When they are
 * not, the corner reads as a mistake that nobody can name.
 */
.framed {
  --pad: 0.6rem;
  --outer-radius: 1.6rem;
  padding: var(--pad);
  border-radius: var(--outer-radius);
  background: var(--frame);
  border: 1px solid var(--line);
  box-shadow:
    0 2px 6px rgba(var(--shadow-rgb), 0.05),
    0 24px 60px rgba(var(--shadow-rgb), 0.1);
}

/*
 * A card that is also a frame keeps the frame's padding, not the card's.
 * Taking both leaves the core with its own padding inside the card's — which
 * gave the one highlighted tier two thirds of the text width of the plain
 * ones beside it, and a column that much narrower sets the height of the
 * whole row.
 */
.card.framed {
  padding: var(--pad);
}

.framed__core {
  border-radius: calc(var(--outer-radius) - var(--pad));
  background: var(--paper-raised);
  overflow: hidden;
  position: relative;
}

/* A highlight along the top edge, the way light lands on a raised surface. */
.framed__core::before {
  content: '';
  position: absolute;
  inset-inline: 12%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink) 12%, transparent), transparent);
}

/* ---- the uneven grid --------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.card {
  position: relative;
  grid-column: span 2;
  padding: clamp(1.6rem, 2.5vw, 2.25rem);
  border-radius: 1.4rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 3px rgba(var(--shadow-rgb), 0.04),
    0 14px 40px rgba(var(--shadow-rgb), 0.06);
  transition: transform 320ms var(--settle), box-shadow 320ms var(--settle);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 6px rgba(var(--shadow-rgb), 0.05),
    0 22px 55px rgba(var(--shadow-rgb), 0.1);
}
.card--wide {
  grid-column: span 3;
}
.card--half {
  grid-column: span 3;
}
.card--full {
  grid-column: span 6;
}

.card h3 {
  margin-bottom: 0.7rem;
}
.card p {
  color: var(--ink-soft);
}

.card__mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  background: var(--accent-wash);
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.card__mark svg {
  width: 1.35rem;
  height: 1.35rem;
}

@media (max-width: 960px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card,
  .card--wide,
  .card--half,
  .card--full {
    grid-column: span 2;
  }
  .card--half {
    grid-column: span 1;
  }
}

/* Below the fold of a phone every size override is dropped and the blocks
   stack in one column with room between them. */
@media (max-width: 720px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .card,
  .card--wide,
  .card--half,
  .card--full {
    grid-column: span 1;
  }
}

/* ---- split rows -------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split + .split {
  margin-top: var(--section);
}
.split--flip .split__art {
  order: -1;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .split--flip .split__art,
  .split__art {
    order: 0;
  }
}

.checks {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.85rem;
}
.checks li {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--ink-soft);
}
.checks svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--accent);
  margin-top: 0.25rem;
}

/* ---- accordion (FAQ) --------------------------------------------------- */

.qa {
  border-top: 1px solid var(--line);
}
.qa details {
  border-bottom: 1px solid var(--line);
}
.qa summary {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.35;
  color: var(--ink);
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary::after {
  content: '';
  flex: none;
  margin-left: auto;
  margin-top: 0.4rem;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 1.5px solid var(--ink-faint);
  border-bottom: 1.5px solid var(--ink-faint);
  transform: rotate(45deg);
  transition: transform 280ms var(--settle);
}
.qa details[open] summary::after {
  transform: rotate(-135deg);
}
.qa__body {
  padding-bottom: 1.6rem;
  color: var(--ink-soft);
  max-width: 44rem;
}
.qa__body p + p {
  margin-top: 0.9rem;
}

/* ---- prose (privacy, terms, help articles) ----------------------------- */

.prose {
  max-width: 42rem;
}
.prose h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin-top: 3rem;
  margin-bottom: 0.9rem;
}
.prose h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}
.prose p,
.prose ul {
  color: var(--ink-soft);
  margin-top: 1rem;
}
.prose ul {
  padding-left: 1.2rem;
}
.prose li + li {
  margin-top: 0.5rem;
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}

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

.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  position: relative;
  z-index: 2;
}
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  align-items: flex-start;
  justify-content: space-between;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
}
.footer__links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9375rem;
}
.footer__links a:hover {
  color: var(--accent);
}
.footer__fine {
  color: var(--ink-faint);
  font-size: 0.875rem;
  margin-top: 1.25rem;
}

/* ---- odds -------------------------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 1rem;
  z-index: 40;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/*
 * Four rungs: all four across a wide screen, two across a tablet, one on a
 * phone. A ladder you have to scroll to compare is not a ladder.
 */
.cards--four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cards--four > .card {
  grid-column: auto;
}
@media (min-width: 1180px) {
  .cards--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .cards--four {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- the comparison table ---------------------------------------------- */

/*
 * A plain table, given room. The paid column is tinted down its whole height
 * so the eye can follow one column without tracking a row by hand, and on a
 * phone the whole thing scrolls sideways rather than squeezing nineteen rows
 * of words into 340px.
 */
.t {
  border-radius: 1.4rem;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  box-shadow:
    0 1px 3px rgba(var(--shadow-rgb), 0.04),
    0 14px 40px rgba(var(--shadow-rgb), 0.06);
}

.t table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  text-align: left;
}

.t thead th {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  padding: 1.5rem 1.25rem 1.1rem;
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
  vertical-align: bottom;
}

.t__price {
  display: block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-faint);
  margin-top: 0.2rem;
}

.t tbody th {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ink-soft);
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.t td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  width: 7.5rem;
}

.t tbody tr:last-child th,
.t tbody tr:last-child td {
  border-bottom: 0;
}

/* The tint runs the height of the column, so a row can be read straight
   across without losing which column it landed in. */
.t__paid {
  background: color-mix(in srgb, var(--accent-wash) 60%, transparent);
}
.t thead th.t__paid {
  background: var(--accent-wash);
}

.t__yes {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent);
}
.t__yes svg {
  width: 0.95rem;
  height: 0.95rem;
}
.t__no {
  color: var(--ink-faint);
  font-size: 1.1rem;
  padding-left: 0.45rem;
}
.t__note {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.price {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- the recommended tier ---------------------------------------------- */

.card__top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/*
 * Anchored to the corner rather than sitting in the flow beside the tier's
 * name. In the flow it wraps to a line of its own on a narrow card, which
 * pushes that one price out of line with the other three — and a row of
 * prices you cannot read straight across is the one thing a pricing page
 * must not do.
 */
.badge {
  position: absolute;
  /* The card's own padding, so the badge starts on the same line as the tier
     name opposite it rather than floating above it. */
  top: clamp(1.6rem, 2.5vw, 2.25rem);
  right: clamp(1.6rem, 2.5vw, 2.25rem);
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
}

/* ---- grouped table rows ------------------------------------------------ */

.t__group th {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--paper-sunk);
  padding: 0.85rem 1rem 0.7rem;
  border-bottom: 1px solid var(--line);
}

/*
 * The header follows you down a tall table — but only where the table is not
 * itself a scroll container. `overflow-x: auto` makes a box that scrolls in
 * both directions, and a sticky header inside one sticks to the box rather
 * than to the window, which is to say it does nothing at all.
 */
@media (min-width: 901px) {
  .t thead th {
    position: sticky;
    /* Clear of the floating nav, which is the other thing that does not scroll. */
    top: 5.25rem;
    z-index: 1;
  }
}

@media (max-width: 900px) {
  .t {
    overflow-x: auto;
  }
}

/* ==== Atelier: the objects ================================================
   Cloth, cotton paper, ink and glass, drawn in CSS so they scale, re-theme and
   cost nothing to load. They are illustrations and read as such — never a
   screenshot of software. */

.hand {
  font-family: var(--hand);
  font-weight: 500;
  color: var(--harbour);
  filter: url(#bleed);
  white-space: nowrap;
  line-height: 1;
}
.hand--sheen {
  text-shadow: 0.35px 0.3px 0 rgba(150, 72, 48, 0.38);
}
.hit {
  background: linear-gradient(180deg, transparent 22%, rgba(232, 196, 92, 0.62) 22% 88%, transparent 88%);
  border-radius: 3px 6px 3px 7px;
  padding: 0 3px;
  margin: 0 -3px;
}
.fibre {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55 .09' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .26 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23f)'/%3E%3C/svg%3E");
}

/* A notebook: back board, page block, front board — thickness is --t. */
.nb {
  position: relative;
  display: block;
  width: var(--w, 160px);
  aspect-ratio: 3 / 4;
  transform: rotate(var(--r, 0deg));
  flex: none;
}
.nb > * {
  position: absolute;
}
.nb__shadow {
  left: 4%;
  right: -6%;
  top: 6%;
  bottom: -7%;
  border-radius: 8px;
  background: rgba(var(--shadow-rgb), 0.5);
  filter: blur(calc(var(--t, 8px) * 1.3 + 8px));
  transform: translate(calc(var(--t, 8px) * 0.9), calc(var(--t, 8px) * 1.1));
}
.nb__back {
  inset: 0;
  border-radius: 3px 7px 7px 3px;
  background: var(--cloth);
  filter: brightness(0.62);
  transform: translate(calc(var(--t, 8px) * 0.45), var(--t, 8px));
}
.nb__block {
  left: 5px;
  right: 2px;
  top: 3px;
  bottom: 3px;
  border-radius: 1px 4px 4px 1px;
  transform: translate(calc(var(--t, 8px) * 0.3), calc(var(--t, 8px) * 0.68));
  background: repeating-linear-gradient(0deg, #efe7d7 0 1px, #fbf7ee 1px 2.2px);
}
.nb__ribbon {
  left: 44%;
  bottom: calc(-1 * var(--t, 8px) - 18px);
  width: calc(var(--w, 160px) * 0.055);
  height: calc(var(--t, 8px) + 26px);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.15), transparent 40%, rgba(255, 255, 255, 0.2) 60%, rgba(0, 0, 0, 0.12)), var(--rib, #9e3b2b);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  transform: rotate(4deg);
  transform-origin: top;
}
.nb__front {
  inset: 0;
  border-radius: 3px 7px 7px 3px;
  overflow: hidden;
  background: var(--cloth);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.nb__front::before {
  /* the weave */
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.55;
  mix-blend-mode: overlay;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 2.4px), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 2.1px);
}
.nb__front::after {
  /* spine, hinge and the light falling from the upper left */
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.08) 7%, rgba(255, 255, 255, 0.12) 9%, transparent 11%, rgba(0, 0, 0, 0.2) 11.5%, transparent 12.2%),
    linear-gradient(128deg, rgba(255, 250, 240, 0.26), rgba(255, 250, 240, 0) 38%),
    radial-gradient(90% 70% at 100% 100%, rgba(0, 0, 0, 0.22), transparent 60%);
}
.nb__foil {
  position: absolute;
  z-index: 1;
  left: 20%;
  right: 22%;
  top: 15%;
  font-family: var(--serif);
  font-weight: 600;
  font-size: calc(var(--w, 160px) * 0.118);
  line-height: 1.08;
  letter-spacing: -0.008em;
  font-variation-settings: 'opsz' 36, 'SOFT' 30;
  background-image: linear-gradient(172deg, var(--copper-3) 10%, var(--copper-2) 42%, var(--copper-1) 58%, var(--copper-2) 78%, var(--copper-3));
  background-size: 100% 1.08em;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 -0.5px 0 rgba(0, 0, 0, 0.45)) drop-shadow(0 0.6px 0 rgba(255, 255, 255, 0.12));
}
.nb__foil::before {
  content: '';
  display: block;
  height: 1px;
  margin-bottom: calc(var(--w, 160px) * 0.05);
  background: linear-gradient(90deg, var(--copper-2), var(--copper-3), var(--copper-1));
  opacity: 0.7;
}
.nb__foil--silver {
  background-image: linear-gradient(172deg, #fbf8f2 10%, #cfcac0 45%, #8e8a82 58%, #ddd8ce 80%, #fbf8f2);
}
.nb__foil--dark {
  background-image: linear-gradient(172deg, #3a332b 10%, #1e1a16 50%, #463e34 80%);
  filter: drop-shadow(0 0.6px 0 rgba(255, 255, 255, 0.35));
}
.nb__band {
  z-index: 1;
  right: 13%;
  top: -1px;
  bottom: -1px;
  width: calc(var(--w, 160px) * 0.042);
  background: linear-gradient(90deg, #141210, #2b2621 45%, #0e0c0a);
  box-shadow: 1px 0 2px rgba(0, 0, 0, 0.35);
}

/* An open notebook: two cotton pages on their cover, gutter shadow between. */
.spread {
  position: absolute;
  width: 540px;
  height: 310px;
}
.spread > * {
  position: absolute;
}
.spread__shadow {
  inset: 0 -10px -20px 0;
  background: rgba(var(--shadow-rgb), 0.55);
  filter: blur(26px);
  transform: translate(18px, 22px);
  border-radius: 10px;
}
.spread__cover {
  inset: -8px -10px -14px -10px;
  border-radius: 5px 7px 7px 5px;
  background: #3d5341;
  overflow: hidden;
}
.spread__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 2.4px), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 2.1px);
}
.spread__edge {
  left: -3px;
  right: -3px;
  bottom: -8px;
  height: 9px;
  border-radius: 0 0 3px 3px;
  background: repeating-linear-gradient(0deg, #e9e0ce 0 1px, #faf6ec 1px 2px);
}
.spread__page {
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  background: #f6f1e6 repeating-linear-gradient(180deg, transparent 0 23px, rgba(34, 70, 96, 0.12) 23px 24px) 0 26px;
}
.spread__page--l {
  left: 0;
}
.spread__page--r {
  right: 0;
}
.spread__page--l::after,
.spread__page--r::after {
  content: '';
  position: absolute;
  inset: 0;
}
.spread__page--l::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent 30%, transparent 80%, rgba(var(--shadow-rgb), 0.12) 92%, rgba(var(--shadow-rgb), 0.3));
}
.spread__page--r::after {
  background: linear-gradient(90deg, rgba(var(--shadow-rgb), 0.32), rgba(var(--shadow-rgb), 0.1) 7%, transparent 20%);
}
.spread .hand {
  position: absolute;
  font-size: 16px;
  line-height: 24px;
}

.pen {
  position: absolute;
  width: 15px;
  height: 300px;
  border-radius: 8px;
  background: linear-gradient(90deg, #0e0c0a, #3b342c 40%, #1d1915 60%, #0b0908);
  box-shadow: 14px 18px 18px -6px rgba(var(--shadow-rgb), 0.5);
}
.pen::before {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  top: -30px;
  height: 34px;
  background: linear-gradient(90deg, var(--copper-1), var(--copper-3) 45%, var(--copper-2));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.pen::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 46px;
  height: 3px;
  background: linear-gradient(90deg, var(--copper-1), var(--copper-3) 45%, var(--copper-2));
}
.sticky {
  position: absolute;
  width: 150px;
  padding: 13px 13px 16px;
  background: linear-gradient(175deg, #f4e3a4, #edd88f);
  border-radius: 1px;
  box-shadow: 0 1px 1px rgba(60, 44, 20, 0.25), 0 14px 22px -10px rgba(60, 40, 10, 0.55);
  font-family: var(--hand);
  font-size: 16px;
  line-height: 1.2;
  color: #3c3216;
}
.mark-hi {
  position: absolute;
  border-radius: 3px 6px 4px 7px;
  background: rgba(232, 196, 92, 0.5);
  mix-blend-mode: multiply;
}

/* ---- the landing page --------------------------------------------------- */

/* The still life is composed at 720 × 600 and scaled to whatever room its
   column has, so it is the same picture at every width. */
.still {
  position: relative;
  min-width: 0;
  container-type: inline-size;
  aspect-ratio: 720 / 600;
}
.still__frame {
  position: absolute;
  left: 0;
  top: 0;
  width: 720px;
  height: 600px;
  transform-origin: top left;
}
@container (max-width: 719px) { .still__frame { transform: scale(0.94); } }
@container (max-width: 660px) { .still__frame { transform: scale(0.86); } }
@container (max-width: 600px) { .still__frame { transform: scale(0.78); } }
@container (max-width: 540px) { .still__frame { transform: scale(0.7); } }
@container (max-width: 480px) { .still__frame { transform: scale(0.62); } }
@container (max-width: 420px) { .still__frame { transform: scale(0.54); } }
@container (max-width: 360px) { .still__frame { transform: scale(0.46); } }

.hero h1 em,
.manifesto h2 em,
.chap h2 em,
.night h2 em,
h1 em,
h2 em {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}

.manifesto {
  text-align: center;
  padding-block: var(--section) 1rem;
}
.manifesto h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 900px;
  margin-inline: auto;
}
.manifesto .lede {
  margin: 1.6rem auto 0;
  max-width: 38rem;
}

.chap {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem) 0;
}
.chap--flip {
  flex-direction: row-reverse;
}
.chap__text {
  flex: 1 1 340px;
  min-width: 0;
}
.chap__num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-faint);
  font-variation-settings: 'opsz' 18, 'SOFT' 100, 'WONK' 1;
}
.chap__text h2 {
  margin-top: 0.6rem;
}
.chap__text .lede {
  margin-top: 1.2rem;
}
.chap__art {
  flex: 1.4 1 520px;
  min-width: 0;
  position: relative;
}
.macro {
  position: relative;
  height: clamp(220px, 30vw, 380px);
  border-radius: 4px;
  overflow: hidden;
  background: #f6f1e6;
  box-shadow: 0 1px 2px rgba(var(--shadow-rgb), 0.1), 0 18px 40px -14px rgba(var(--shadow-rgb), 0.34), 0 50px 90px -40px rgba(var(--shadow-rgb), 0.34);
}
.macro__word {
  position: absolute;
  left: 6%;
  top: 6%;
  font-size: clamp(110px, 17vw, 220px);
  font-weight: 600;
  text-shadow: 1.4px 1px 0 rgba(150, 72, 48, 0.42);
}
.macro__note {
  position: absolute;
  right: 1.2rem;
  bottom: 1rem;
  font-family: var(--serif);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.1em;
  color: #7b7365;
}
.slip {
  position: relative;
  height: 290px;
  border-radius: 2px;
  overflow: hidden;
  transform: rotate(-1deg);
  background: #f6f1e6 repeating-linear-gradient(180deg, transparent 0 35px, rgba(40, 70, 92, 0.13) 35px 36px) 0 14px;
  box-shadow: 0 1px 2px rgba(var(--shadow-rgb), 0.1), 0 18px 40px -14px rgba(var(--shadow-rgb), 0.34);
}
.slip .hand {
  position: absolute;
  left: 7%;
  font-size: 25px;
  line-height: 36px;
}
.lens {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  background: #f6f1e6;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    inset 0 -14px 30px rgba(var(--shadow-rgb), 0.1),
    0 0 0 8px rgba(255, 253, 248, 0.55),
    0 0 0 9px rgba(var(--shadow-rgb), 0.12),
    0 24px 44px -12px rgba(var(--shadow-rgb), 0.55);
}
.lens .hand {
  position: absolute;
  font-size: 58px;
}
.lens::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(80% 60% at 30% 18%, rgba(255, 255, 255, 0.55), transparent 50%);
}
.query {
  position: absolute;
  left: 1.5rem;
  top: -1.6rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 3.2rem;
  padding: 0 1.2rem;
  border-radius: 1.1rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  background: var(--glass);
  border: 1px solid var(--line);
  border-top-color: var(--glass-edge);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 26px -10px rgba(var(--shadow-rgb), 0.28);
}
.query svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ink-faint);
}
.device {
  position: absolute;
  border-radius: 20px;
  padding: 8px;
  background: linear-gradient(160deg, #3a3631, #141210);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 24px 40px -18px rgba(var(--shadow-rgb), 0.8);
}
.device__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 13px;
  overflow: hidden;
  background: #d8d0c2;
}
.device__page {
  position: absolute;
  background: #f6f1e6;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.4);
}
.handoff svg {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
  color: var(--ink-soft);
}
.handoff {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 1.2rem;
  font-size: 0.9rem;
  background: var(--glass);
  border: 1px solid var(--line);
  border-top-color: var(--glass-edge);
  box-shadow: 0 14px 30px -12px rgba(var(--shadow-rgb), 0.35);
}

.more {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: clamp(3rem, 7vw, 5rem);
}
@media (max-width: 900px) {
  .more {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .more {
    grid-template-columns: 1fr;
  }
}
.more article {
  padding: 1.4rem 1.4rem 1.5rem;
  border-radius: 1.4rem;
  background: var(--glass);
  border: 1px solid var(--line);
  border-top-color: var(--glass-edge);
  box-shadow: 0 1px 1px rgba(var(--shadow-rgb), 0.06), 0 12px 26px -12px rgba(var(--shadow-rgb), 0.25);
}
.more h3 {
  font-size: 1.2rem;
  margin: 0.9rem 0 0.4rem;
}
.more p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.more svg {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--ink-soft);
}

/* The night band: walnut under the lamp, whatever the time of day. */
.night {
  --ink: #efe8da;
  --ink-soft: #b4ab9b;
  --ink-faint: #8c8476;
  --line: rgba(239, 232, 218, 0.09);
  background: #151210;
  color: var(--ink);
  text-align: center;
  overflow: hidden;
}
.night::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(48% 54% at 54% 46%, rgba(255, 196, 128, 0.2), rgba(255, 170, 96, 0.06) 55%, transparent 75%), radial-gradient(90% 90% at 54% 46%, transparent 40%, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}
.night .wrap {
  position: relative;
}
.night .lede {
  margin: 1.4rem auto 0;
  max-width: 38rem;
}
.shelf {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.2rem 2rem;
  margin-top: 3.5rem;
}
.shelf figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.inks {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 3rem;
}
.drop {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(60% 50% at 35% 28%, rgba(255, 255, 255, 0.55), transparent 60%), var(--c);
  box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ---- pricing: each rung is a set of notebooks ---------------------------- */

.vignette {
  position: relative;
  height: 128px;
  margin-bottom: 1.4rem;
  border-radius: 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.3rem;
  padding: 0 0.6rem 1.2rem;
  background: rgba(var(--shadow-rgb), 0.05);
  box-shadow: inset 0 2px 8px rgba(var(--shadow-rgb), 0.12);
  overflow: hidden;
}
.badge {
  background: linear-gradient(180deg, #2a251f, #16130f) !important;
  color: #f3e2c6 !important;
}

/* The devices picture, composed at 520 × 380 and scaled to its column. */
.stage {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 520 / 380;
  max-width: 520px;
}
.stage__frame {
  position: absolute;
  left: 0;
  top: 0;
  width: 520px;
  height: 380px;
  transform-origin: top left;
}
@container (max-width: 519px) { .stage__frame { transform: scale(0.9); } }
@container (max-width: 460px) { .stage__frame { transform: scale(0.8); } }
@container (max-width: 400px) { .stage__frame { transform: scale(0.7); } }
@container (max-width: 350px) { .stage__frame { transform: scale(0.6); } }
@container (max-width: 300px) { .stage__frame { transform: scale(0.52); } }
