/*
 * Attent landing: a page from the dictionary.
 *
 * Tokens mirror lib/core/theme (Woordenboek). If the app's tokens change,
 * change them here too. The signs are the app's signs and mean the same:
 *   yellow marker swipe  here, now
 *   red dot              the heads-up, and the plus
 *   blue handwriting     your own note, and ballpoint check marks
 *   dotted leader        a row you read across
 *   dagger               someone who has passed away
 * Flat: no rounded corners, no soft shadows, no gradients.
 *
 * Files under /assets are cached for a year. When this file changes, give it
 * a new name (site-3.css) and point the pages at it.
 */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Besley";
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/besley-900.woff2") format("woff2");
}
@font-face {
  font-family: "Besley";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/besley-800.woff2") format("woff2");
}
@font-face {
  font-family: "Besley";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/besley-400.woff2") format("woff2");
}
@font-face {
  font-family: "Besley";
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  src: url("../fonts/besley-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/schibsted-400.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/schibsted-500.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/schibsted-700.woff2") format("woff2");
}
@font-face {
  font-family: "Covered By Your Grace";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/covered-400.woff2") format("woff2");
}

/* ---------- Tokens ---------- */

:root {
  --ink: #16161a;
  --paper: #fafaf6;
  --marker: #ffe83d;
  --red: #e5352b;
  --pen: #2440c8;
  --pencil: #5c5c63;
  --aged: #efede3;

  --night: #16161a;
  --night-text: #fafaf6;
  --night-line: #8a8a90;
  --night-caption: #b9b9be;
  --night-pen: #9fb0ff;

  --serif: "Besley", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Covered By Your Grace", "Bradley Hand", cursive;

  --edge: 22px;
  --rule: 3px;
  --hair: 1px;
  --wide: 1160px;
  --head: 62px;

  /* Lines and captions follow the page they are on. */
  --line: var(--ink);
  --caption: var(--pencil);
  --note: var(--pen);
  --ease: cubic-bezier(0.6, 0.05, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head) + 20px);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

svg {
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
dt,
figure {
  margin: 0;
}

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

.wrap {
  width: min(100% - 2 * var(--edge), var(--wide));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: var(--edge);
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font: 700 15px/1 var(--sans);
  text-decoration: none;
}
.skip:focus {
  top: 8px;
}

/* ---------- Signs ---------- */

/* The yellow marker swipe behind a word: here, now. */
.mark,
.hl {
  position: relative;
  z-index: 0;
  display: inline-block;
}
.mark::before,
.hl::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.34em -0.08em 0.02em -0.08em;
  background: var(--marker);
  transform: skew(-8deg) rotate(-1.2deg);
}
.hl::before {
  inset: 0.08em -0.22em 0 -0.22em;
  transform: skew(-8deg);
}

/* The syllable point. Only in Attent's own words, never in a name. */
.dot {
  display: inline-block;
  width: 0.18em;
  height: 0.18em;
  margin: 0 0.035em;
  border-radius: 50%;
  background: var(--red);
  transform: translateY(-0.26em);
}

.label {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 12px/1.3 var(--sans);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.label .dot {
  width: 9px;
  height: 9px;
  margin: 0;
  transform: none;
}

.hand {
  font: 400 26px/1.05 var(--hand);
  color: var(--note);
  transform: rotate(-2deg);
  transform-origin: left center;
}

.dagger {
  font-family: var(--serif);
  font-weight: 400;
}

.tick {
  display: inline-block;
  flex: none;
  width: 20px;
  height: 20px;
  vertical-align: -4px;
}
.tick path {
  fill: none;
  stroke: var(--note);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 700 16px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.btn:hover {
  background: var(--marker);
}
.btn--solid {
  background: var(--ink);
  color: var(--paper);
}
.btn--solid:hover {
  background: var(--marker);
  color: var(--ink);
}
.btn--paper {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}
.btn--paper:hover {
  border-color: var(--marker);
}
.btn--block {
  display: flex;
  width: 100%;
  min-height: 48px;
  font-size: 15px;
}
a.btn:active,
.btn.is-pressed {
  transform: translateY(2px) scale(0.985);
}
.textlink {
  font: 700 14px/1.3 var(--sans);
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
a.textlink:hover {
  background: var(--marker);
}

/* ---------- Running head ---------- */

.head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: var(--rule) solid var(--ink);
}
.head__in {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--head);
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  padding: 8px 0;
  font: 900 28px/1 var(--serif);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.head__nav {
  display: none;
  margin-left: auto;
  gap: 24px;
}
.head__nav a {
  position: relative;
  z-index: 0;
  padding: 12px 0;
  font: 500 15px/1 var(--sans);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.head__nav a::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 9px -7px 8px -7px;
  background: var(--marker);
  transform: skew(-8deg) scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}
.head__nav a:hover::before,
.head__nav a[aria-current]::before {
  transform: skew(-8deg) scaleX(1);
}
.locale {
  display: flex;
  margin-left: auto;
  font: 700 13px/1 var(--sans);
}
.locale a {
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 44px;
  color: var(--pencil);
  text-decoration: none;
}
.locale a:hover {
  color: var(--ink);
}
.locale a[aria-current="true"] {
  color: var(--ink);
}
.locale a[aria-current="true"]::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 11px 5px;
  background: var(--marker);
  transform: skew(-8deg);
}
.menu {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu svg {
  width: 26px;
  height: 26px;
}
.mobile-nav {
  display: none;
  border-top: var(--hair) solid var(--ink);
  background: var(--paper);
}
.mobile-nav.open {
  display: block;
}
.mobile-nav .wrap {
  padding: 2px 0 12px;
}
.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 13px 0;
  border-bottom: var(--hair) solid var(--ink);
  font: 800 22px/1.2 var(--serif);
  color: var(--ink);
  text-decoration: none;
}
.mobile-nav a:last-child {
  border-bottom: 0;
}
.mobile-nav a::after {
  content: "\2192";
  margin-left: auto;
  font: 700 17px/1 var(--sans);
}

@media (max-width: 359px) {
  .head__in {
    gap: 6px;
  }
  .wordmark {
    font-size: 25px;
  }
  .locale a {
    min-width: 36px;
  }
}

@media (min-width: 960px) {
  .head__nav {
    display: flex;
  }
  .head__nav + .locale {
    margin-left: 12px;
  }
  .menu,
  .mobile-nav,
  .mobile-nav.open {
    display: none;
  }
}

/* ---------- Thumb index (wide screens) ---------- */

.thumbs {
  position: fixed;
  right: 0;
  top: calc(50% + var(--head) / 2);
  z-index: 40;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  transform: translateY(-50%);
}
.thumbs a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 42px;
  padding-left: 4px;
  border: 2px solid var(--paper);
  border-right: 0;
  border-radius: 20px 0 0 20px;
  background: var(--ink);
  color: var(--paper);
  font: 900 16px/1 var(--serif);
  text-transform: uppercase;
  text-decoration: none;
  transition: width 0.3s var(--ease), background-color 0.2s ease, color 0.2s ease;
}
.thumbs a:hover {
  width: 46px;
}
.thumbs a[aria-current="true"] {
  width: 56px;
  border-color: var(--ink);
  background: var(--marker);
  color: var(--ink);
}
@media (min-width: 1300px) and (min-height: 640px) {
  .thumbs {
    display: flex;
  }
}

/* ---------- Lemma: a headword and what it means ---------- */

.lemma__word {
  font: 900 clamp(42px, 12.4vw, 76px) / 1 var(--serif);
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.lemma__word--long {
  font-size: clamp(28px, 9.4vw, 76px);
}
.lemma__word--hero {
  font-size: min(21.6vw, 164px);
  letter-spacing: -0.02em;
}
.lemma__kind {
  margin-top: 10px;
  font: 400 italic 17px/1.3 var(--serif);
  color: var(--caption);
}
.senses {
  list-style: none;
  padding: 0;
  margin-top: 22px;
  counter-reset: sense;
  display: grid;
  gap: 10px;
  max-width: 31em;
}
.senses > li {
  counter-increment: sense;
  position: relative;
  padding-left: 32px;
  font: 400 19px/1.42 var(--serif);
}
.senses > li::before {
  content: counter(sense);
  position: absolute;
  left: 0;
  top: 0;
  font: 700 17px/1.6 var(--sans);
}
.senses em {
  font-style: italic;
}

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

.hero {
  padding: 34px 0 60px;
}
.hero__in {
  display: grid;
  gap: 44px;
}
.hero__lemma {
  min-width: 0;
}
.hero__lead {
  margin-top: 26px;
  max-width: 30em;
  font: 500 17px/1.45 var(--sans);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 22px;
}
.hero__status {
  margin-top: 16px;
  font: 500 14px/1.4 var(--sans);
  color: var(--pencil);
}

@media (min-width: 960px) {
  .hero {
    padding: 64px 0 96px;
  }
  .hero__in {
    grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
    gap: 64px;
    align-items: start;
  }
  .lemma__word--hero {
    font-size: min(12.2vw, 164px);
  }
}

/* ---------- Entries ---------- */

.entry {
  padding: 60px 0 64px;
  border-top: var(--hair) solid var(--ink);
}
.entry__in {
  display: grid;
  gap: 36px;
}
.entry__text {
  min-width: 0;
}
.entry__note {
  margin-top: 18px;
  max-width: 33em;
  padding-left: 32px;
  font: 400 16px/1.45 var(--sans);
  color: var(--caption);
}

@media (min-width: 960px) {
  .entry {
    padding: 96px 0 104px;
  }
  .entry__in {
    grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
    gap: 64px;
    align-items: start;
  }
  .entry__text {
    position: sticky;
    top: calc(var(--head) + 40px);
  }
}

/* The quiet day: the page turns dark, as it does in the app. */
.night {
  --line: var(--night-line);
  --caption: var(--night-caption);
  --note: var(--night-pen);
  background: var(--night);
  color: var(--night-text);
  border-top-color: var(--night);
}
.night .mark::before {
  background: #5a5220;
}
.night + .entry {
  border-top-color: var(--night);
}

/* What it costs: one band of marker. */
.band {
  --caption: var(--ink);
  background: var(--marker);
  border-top: var(--rule) solid var(--ink);
  border-bottom: var(--rule) solid var(--ink);
}
.band .mark::before {
  display: none;
}
.band + .entry {
  border-top: 0;
}

/* ---------- Figures ---------- */

.fig {
  min-width: 0;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}
.fig__cap {
  margin-top: 22px;
  font: 400 italic 14px/1.3 var(--serif);
  color: var(--caption);
}
@media (min-width: 960px) {
  .fig {
    margin-inline: auto 0;
  }
}

/* A page from the app. */
.page {
  position: relative;
  padding: 16px 20px 22px;
  border: var(--rule) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 9px 9px 0 0 var(--ink);
}
.night .page {
  border-color: var(--night-line);
  background: var(--night);
  color: var(--night-text);
  box-shadow: 9px 9px 0 0 #2b2b31;
}
.band .page {
  box-shadow: 9px 9px 0 0 var(--ink);
}
.page__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: var(--rule) solid var(--line);
  font: 700 13px/1.2 var(--sans);
}
.page__top--back {
  justify-content: flex-start;
  font: 800 15px/1.2 var(--serif);
}
.page__headword {
  margin-top: 16px;
  font: 900 42px/1 var(--serif);
  letter-spacing: -0.015em;
}
.page__name {
  margin-top: 14px;
  font: 900 40px/1.02 var(--serif);
  letter-spacing: -0.015em;
}
.page__sub {
  margin-top: 6px;
  font: 400 16px/1.35 var(--serif);
}
.page__when {
  margin-top: 2px;
  font: 700 13px/1.3 var(--sans);
  color: var(--caption);
}
.page .hand {
  margin-top: 8px;
}
.page .label {
  margin-top: 20px;
  padding-top: 14px;
  border-top: var(--hair) solid var(--line);
}
.page .label--bare {
  padding-top: 0;
  border-top: 0;
}
.page__text {
  margin-top: 8px;
  font: 400 17px/1.4 var(--serif);
}
.page__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 14px;
}
.page__links--center {
  justify-content: center;
}
.page__text--ruled {
  margin-top: 18px;
  padding-top: 16px;
  border-top: var(--hair) solid var(--line);
}
.page .btn--block {
  margin-top: 16px;
}

/* A table of what Attent knows: label left, value right, hairlines. */
.table {
  margin-top: 8px;
}
.table > div:first-child {
  border-top: var(--hair) solid var(--line);
}
.table > div {
  display: grid;
  grid-template-columns: 4.9em 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: var(--hair) solid var(--line);
}
.table dt {
  font: 400 13px/1.3 var(--sans);
  color: var(--caption);
}
.table dd {
  font: 400 16px/1.3 var(--serif);
}

/* A list you tap through: name and detail, the day, an arrow. */
.list {
  margin-top: 8px;
  border-top: var(--hair) solid var(--line);
}
.list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: var(--hair) solid var(--line);
}
.list dt {
  font: 800 19px/1.2 var(--serif);
}
.list dd {
  font: 700 13px/1.2 var(--sans);
  white-space: nowrap;
}
.list dd::after {
  content: "\2192";
  margin-left: 6px;
  font-size: 15px;
}
.list small {
  display: block;
  margin-top: 2px;
  font: 400 14px/1.3 var(--serif);
  color: var(--caption);
}

/* Leader rows: a label, a dotted line you read across, a value. */
.rows {
  margin-top: 8px;
}
.row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  font: 400 16px/1.3 var(--serif);
}
.row__k {
  flex: 0 1 auto;
}
.row__v {
  flex: none;
  font: 700 13px/1.3 var(--sans);
}
.row__dots {
  flex: 1;
  min-width: 18px;
  border-bottom: 2px dotted currentColor;
  opacity: 0.55;
  transform: translateY(-0.28em);
  transform-origin: left center;
}

/* Rows you tick with a ballpoint. */
.picks {
  margin-top: 8px;
  border-top: var(--hair) solid var(--line);
}
.picks > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  border-bottom: var(--hair) solid var(--line);
  font: 400 17px/1.3 var(--serif);
}
.picks .row {
  width: 100%;
  padding: 0;
  font-size: 17px;
}

/* The tabs at the foot of the app. */
.tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding-top: 12px;
  border-top: var(--rule) solid var(--line);
  font: 800 16px/1 var(--serif);
}
.tabs .hl::before {
  inset: -0.35em -0.45em;
}
.plus {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  font: 700 26px/1 var(--sans);
}

/* A draft, in the quotation marks of the app. */
.draft {
  margin-top: 8px;
  font: 400 italic 18px/1.42 var(--serif);
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  background: var(--pen);
  vertical-align: -0.16em;
}
.tones {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin-top: 16px;
  font: 700 14px/1.3 var(--sans);
}
.tones__lead {
  font-weight: 400;
  color: var(--caption);
}
.tones [data-tone] {
  position: relative;
  z-index: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.tones [data-tone]::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -4px -8px;
  background: var(--marker);
  transform: skew(-8deg) scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}
.tones [data-tone].is-on {
  text-decoration-color: transparent;
}
.tones [data-tone].is-on::before {
  transform: skew(-8deg) scaleX(1);
}

/* The heads-up, as it lands on your phone. */
.notif {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 2px 12px;
  padding: 13px 14px 14px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 6px 6px 0 0 var(--ink);
}
.notif__icon {
  grid-row: 1 / span 3;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  width: 40px;
  height: 40px;
  background: var(--marker);
  font: 900 21px/1 var(--serif);
  letter-spacing: -0.04em;
}
.notif__icon .dot {
  margin: 0 0.02em;
  transform: translateY(-0.2em);
}
.notif__app {
  font: 700 11px/1.4 var(--sans);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--pencil);
}
.notif__title {
  font: 700 16px/1.3 var(--sans);
}
.notif__body {
  font: 400 15px/1.35 var(--sans);
}

/* ---------- afb. 1: from one sentence to your message ---------- */

.demo {
  overflow: hidden;
}
.demo__stage {
  display: grid;
}
.demo__panel {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.demo__end {
  margin-top: auto;
  padding-top: 8px;
}
.demo__panel[hidden] {
  display: flex;
  visibility: hidden;
}
.typed {
  min-height: 2.3em;
  margin-top: 6px;
  padding: 4px 0 8px;
  border-bottom: 2px solid var(--ink);
  font: 400 italic clamp(17px, 5.2vw, 21px) / 1.35 var(--serif);
  white-space: nowrap;
}
.demo .draft {
  min-height: 4.3em;
}
.demo .label--gap {
  margin-top: 18px;
}
.notif[hidden],
.saved[hidden] {
  display: none;
}
.demo__foot {
  display: grid;
  margin-top: auto;
  padding-top: 16px;
}
.demo__foot > * {
  grid-area: 1 / 1;
  margin-top: 0 !important;
}
.saved {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font: 400 17px/1.3 var(--serif);
}
.saved .tick {
  vertical-align: 0;
}
.saved b {
  font: 700 12px/1.3 var(--sans);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.demo .notif {
  position: absolute;
  z-index: 3;
  left: 12px;
  right: 16px;
  top: 12px;
}
.demo__veil {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
}
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
  counter-reset: step;
  font: 700 13px/1.3 var(--sans);
}
.steps li {
  counter-increment: step;
  position: relative;
  z-index: 0;
  color: var(--pencil);
  transition: color 0.2s ease;
}
.steps li::before {
  content: counter(step) "\00a0\00a0";
}
.steps li::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -4px -8px;
  background: var(--marker);
  transform: skew(-8deg) scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}
.steps li.is-on {
  color: var(--ink);
}
.steps li.is-on::after {
  transform: skew(-8deg) scaleX(1);
}

/* ---------- afb. 2: what Attent makes of a sentence ---------- */

.cites {
  list-style: none;
  padding: 0;
  border-top: var(--rule) solid var(--ink);
}
.cites li {
  padding: 16px 0 10px;
  border-bottom: var(--hair) solid var(--ink);
}
.cites q {
  display: block;
  quotes: none;
  font: 400 italic 19px/1.35 var(--serif);
}
.cites .row {
  padding: 8px 0 4px;
  font: 700 14px/1.3 var(--sans);
}
.cites .row__k b {
  font-weight: 400;
  color: var(--pencil);
}

/* ---------- afb. 3: today ---------- */

.now {
  margin-top: 10px;
}
.now__name {
  font: 900 34px/1.05 var(--serif);
  letter-spacing: -0.015em;
}
.now .hand {
  display: inline-block;
  margin: 0 0 0 12px;
  font-size: 24px;
}

/* ---------- afb. 4: the heads-up ---------- */

.fig--seintje .notif {
  position: relative;
  z-index: 2;
  margin: 0 18px -18px 0;
}
.fig--seintje .page {
  margin-left: 18px;
  padding-top: 34px;
}

/* ---------- afb. 5: the draft ---------- */

.cycle {
  display: grid;
}
.cycle__item {
  grid-area: 1 / 1;
}
.fig--opzetje .cycle {
  min-height: 5.7em;
}

/* ---------- afb. 6: the day after ---------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline > li {
  position: relative;
  padding: 0 0 30px 30px;
}
.timeline > li:last-child {
  padding-bottom: 0;
}
.timeline > li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: -8px;
  width: var(--rule);
  background: var(--ink);
  transform-origin: center top;
}
.timeline > li:last-child::before {
  display: none;
}
.timeline > li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ink);
}
.timeline > li.is-now::after {
  background: var(--red);
}
.timeline__day {
  font: 700 12px/1.3 var(--sans);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.timeline__what {
  margin-top: 4px;
  font: 800 21px/1.25 var(--serif);
}
.timeline .notif {
  margin: 12px 8px 0 0;
}
.timeline .draft {
  margin-top: 6px;
  font-size: 20px;
}

/* ---------- afb. 9: what it costs ---------- */

.price {
  font: 900 clamp(120px, 38vw, 220px) / 0.9 var(--serif);
  letter-spacing: -0.04em;
  white-space: nowrap;
}
@media (min-width: 960px) {
  .price {
    font-size: min(220px, (100vw - 108px) * 0.23);
  }
}
.fig--gratis .rows {
  margin-top: 20px;
  border-top: var(--rule) solid var(--ink);
  padding-top: 8px;
}
.fig--gratis .row {
  font-size: 18px;
}
.fig--gratis .row__v {
  font-size: 15px;
}
.fig--gratis .row__dots {
  opacity: 1;
}

/* ---------- Questions ---------- */

.faq {
  border-top: var(--rule) solid var(--ink);
}
.faq details {
  border-bottom: var(--hair) solid var(--ink);
}
.faq summary {
  position: relative;
  padding: 17px 44px 17px 0;
  font: 800 19px/1.3 var(--serif);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  font: 700 22px/1 var(--sans);
  transition: transform 0.25s var(--ease), background-color 0.2s ease;
}
.faq details[open] summary::after {
  background: var(--ink);
  transform: rotate(45deg);
}
.faq summary:hover {
  background: linear-gradient(var(--aged), var(--aged)) no-repeat 0 0 / 100% 100%;
}
.faq details p {
  max-width: 36em;
  padding: 0 44px 20px 0;
  font: 400 17px/1.5 var(--serif);
}
.faq details[open] p {
  animation: rise 0.3s ease both;
}
.faq a {
  text-underline-offset: 3px;
}
@media (min-width: 960px) {
  .entry--faq .entry__in {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}
.faq-group + .faq-group {
  margin-top: 44px;
}
.nb {
  white-space: nowrap;
}
.faq-group__word {
  margin-bottom: 14px;
  font: 900 clamp(26px, 7vw, 34px) / 1.1 var(--serif);
  letter-spacing: -0.01em;
}

/* ---------- Closing ---------- */

.closing {
  padding: 76px 0 84px;
  background: var(--ink);
  color: var(--paper);
}
.closing__in {
  display: grid;
  gap: 18px;
  justify-items: start;
}
.closing__word {
  font: 900 min(21.6vw, 190px) / 1 var(--serif);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.closing__kind {
  font: 400 italic 19px/1.4 var(--serif);
  color: var(--night-caption);
}
.closing__line {
  max-width: 26em;
  font: 400 21px/1.4 var(--serif);
}
.closing__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 10px;
}
.closing .textlink:hover {
  color: var(--ink);
}
@media (min-width: 960px) {
  .closing {
    padding: 112px 0 120px;
  }
}

/* ---------- Colophon ---------- */

.colophon {
  padding: 30px 0 44px;
  background: var(--paper);
  font: 500 14px/1.4 var(--sans);
}
.closing + .colophon,
.colophon--ruled {
  border-top: var(--rule) solid var(--ink);
}
.colophon__in {
  display: grid;
  gap: 16px;
}
.colophon__mark {
  font: 900 28px/1 var(--serif);
  letter-spacing: -0.01em;
}
.colophon__line {
  margin-top: 6px;
  color: var(--pencil);
}
.colophon nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 22px;
}
.colophon nav a {
  padding: 9px 0;
  color: var(--ink);
  text-decoration: none;
}
.colophon nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 960px) {
  .colophon__in {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 32px;
  }
}

/* ---------- Support ---------- */

.hero--plain {
  padding: 40px 0 56px;
}
.hero--plain .lemma__word {
  font-size: min(15.4vw, 120px);
}
.howto {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 0;
  border-top: var(--rule) solid var(--ink);
}
.howto li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.4em 1fr;
  gap: 4px 0;
  padding: 18px 0 20px;
  border-bottom: var(--hair) solid var(--ink);
}
.howto li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  font: 900 34px/1 var(--serif);
}
.howto h3 {
  font: 800 20px/1.25 var(--serif);
}
.howto p {
  grid-column: 2;
  max-width: 34em;
  font: 400 17px/1.5 var(--serif);
}
.entry--single .entry__in {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}
.entry--single .entry__text {
  position: static;
}

/* ---------- Legal pages: the small print, set to be read ---------- */

.legal {
  padding: 36px 0 80px;
}
.reading {
  max-width: 66ch;
  overflow-wrap: break-word;
}
.reading .legal__meta {
  font: 500 13px/1.4 var(--sans);
  color: var(--pencil);
}
.reading .legal__meta strong {
  color: var(--ink);
  font-weight: 700;
}
.reading h1 {
  margin-top: 14px;
  font: 900 clamp(34px, 9.6vw, 72px) / 1.02 var(--serif);
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  /* A long word breaks only where the page says it may (&shy;). */
  hyphens: manual;
}
@media (min-width: 720px) {
  /* A long title may run wider than the reading column. */
  .reading h1 {
    width: max-content;
    max-width: min(var(--wide), calc(100vw - 2 * var(--edge)));
  }
}
.reading .lead {
  margin: 20px 0 30px;
  font: 400 20px/1.45 var(--serif);
}
.reading h2 {
  margin: 48px 0 12px;
  padding-top: 16px;
  border-top: var(--hair) solid var(--ink);
  font: 800 25px/1.2 var(--serif);
  letter-spacing: -0.01em;
  hyphens: auto;
}
.reading h3 {
  margin: 24px 0 6px;
  font: 700 17px/1.3 var(--sans);
}
.reading p {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.55;
}
.reading ul,
.reading ol {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.reading li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 1.6em;
  font-size: 17px;
  line-height: 1.55;
}
.reading ul > li::before {
  content: "";
  position: absolute;
  left: 0.3em;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}
.reading ol {
  counter-reset: item;
}
.reading ol > li {
  counter-increment: item;
}
.reading ol > li::before {
  content: counter(item);
  position: absolute;
  left: 0.15em;
  font: 700 15px/1.75 var(--sans);
}
.reading a {
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.reading a:hover {
  background: var(--marker);
}
.reading code {
  padding: 1px 5px;
  background: var(--aged);
  font: 500 0.86em/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}
.reading strong {
  font-weight: 700;
}
.reading table {
  width: 100%;
  margin: 0 0 16px;
  border-collapse: collapse;
  font-size: 15px;
}
.reading th,
.reading td {
  padding: 9px 10px 9px 0;
  border-bottom: var(--hair) solid var(--ink);
  text-align: left;
  vertical-align: top;
}
.legal__toc {
  display: grid;
  margin: 0 0 8px;
  border-top: var(--rule) solid var(--ink);
}
.legal__toc a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  border-bottom: var(--hair) solid var(--ink);
  font: 400 17px/1.3 var(--serif);
  color: var(--ink);
  text-decoration: none;
}
.legal__toc a::after {
  content: "";
  order: 1;
  flex: 1;
  min-width: 18px;
  border-bottom: 2px dotted var(--pencil);
  transform: translateY(-0.28em);
}
.legal__toc a::before {
  content: "\2193";
  order: 2;
  font: 700 14px/1 var(--sans);
}
.legal__toc a:hover {
  background: var(--marker);
}

/* ---------- Plain pages: the language door and the lost page ---------- */

.plain {
  min-height: 100vh;
  display: grid;
  align-items: center;
}
.plain__in {
  padding: 48px 0 72px;
}
.plain__num {
  font: 900 min(24vw, 190px) / 1 var(--serif);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.plain__kind {
  margin-top: 12px;
  font: 400 italic 19px/1.3 var(--serif);
  color: var(--pencil);
}
.plain__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* ---------- Motion ---------- */

/* Things rise into place when they come into view. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* The marker follows you down the page: it is on the word you are at. */
.js .entry .lemma .mark::before {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.55s var(--ease);
}
.js .entry.is-here .lemma .mark::before {
  clip-path: inset(0 0 0 0);
}

/* The hero word and the plain pages are marked once, as you arrive. */
.js .lemma__word--hero .mark::before,
.js .plain__num .mark::before {
  animation: swipe 0.75s var(--ease) 0.25s both;
}

/* The red point pops into a word, with a ring like a heads-up. */
.js .lemma__word .dot,
.js .plain__num .dot,
.js .closing__word .dot {
  animation: dot-pop 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) 0.75s both,
    dot-ring 0.9s ease-out 0.9s both;
}
.js .entry .lemma__word .dot,
.js .closing__word .dot {
  animation: none;
  transform: translateY(-0.26em) scale(0);
}
.js .entry .lemma.is-visible .dot,
.js .closing__word.is-visible .dot {
  animation: dot-pop 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) 0.35s both,
    dot-ring 0.9s ease-out 0.5s both;
}

/* Inside a figure, things happen in the order you would read them. */
.js [data-fig] .table > div,
.js [data-fig] .list > div,
.js [data-fig] .picks > div,
.js [data-fig] .cites li,
.js [data-fig] .timeline > li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s var(--ease);
  transition-delay: calc(0.15s + var(--i, 0) * 0.13s);
}
.js [data-fig].is-on .table > div,
.js [data-fig].is-on .list > div,
.js [data-fig].is-on .picks > div,
.js [data-fig].is-on .cites li,
.js [data-fig].is-on .timeline > li {
  opacity: 1;
  transform: none;
}
.js [data-fig] .timeline > li {
  transition-delay: calc(0.15s + var(--i, 0) * 0.7s);
}
.js [data-fig] .timeline > li::before {
  transform: scaleY(0);
  transition: transform 0.6s var(--ease);
  transition-delay: calc(0.4s + var(--i, 0) * 0.7s);
}
.js [data-fig].is-on .timeline > li::before {
  transform: scaleY(1);
}

/* Leader dots are drawn left to right; then the value is there. */
.js [data-fig] .row__dots {
  transform: translateY(-0.28em) scaleX(0);
  transition: transform 0.6s var(--ease);
  transition-delay: calc(0.35s + var(--i, 0) * 0.13s);
}
.js [data-fig] .row dd {
  opacity: 0;
  transition: opacity 0.3s ease;
  transition-delay: calc(0.8s + var(--i, 0) * 0.13s);
}
.js [data-fig].is-on .row__dots {
  transform: translateY(-0.28em) scaleX(1);
}
.js [data-fig].is-on .row dd {
  opacity: 1;
}

/* A ballpoint tick is drawn. */
.js [data-fig] .tick path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  transition: stroke-dashoffset 0.35s ease-out;
  transition-delay: calc(0.75s + var(--i, 0) * 0.28s);
}
.js [data-fig].is-on .tick path {
  stroke-dashoffset: 0;
}

/* A note is written, left to right. */
.js [data-fig] .hand {
  clip-path: inset(-20% 100% -20% 0);
  transition: clip-path 0.9s ease-out 0.7s;
}
.js [data-fig].is-on .hand {
  clip-path: inset(-20% -5% -20% 0);
}

/* The marker inside a figure. */
.js [data-fig] .hl::before {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.5s var(--ease) 0.5s;
}
.js [data-fig].is-on .hl::before {
  clip-path: inset(0 0 0 0);
}

/* The heads-up drops in from the top of your screen. */
.js [data-fig] .notif {
  opacity: 0;
  transform: translateY(-26px);
  transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.3, 1.35, 0.5, 1);
  transition-delay: 0.3s;
}
.js [data-fig].is-on .notif {
  opacity: 1;
  transform: none;
}
.js [data-fig] .timeline .notif {
  transition-delay: 1.3s;
}
.js [data-fig] .timeline .draft {
  opacity: 0;
  transition: opacity 0.5s ease 1.9s;
}
.js [data-fig].is-on .timeline .draft {
  opacity: 1;
}
.js [data-fig] .notif .dot {
  animation: none;
}
.js [data-fig].is-on .notif .dot {
  animation: dot-ring 1s ease-out 0.9s both;
}

/* The red plus breathes once when its page comes into view. */
.js [data-fig].is-on .plus {
  animation: dot-pop-flat 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) 1.1s both;
}

/* The price lands. */
.js [data-fig] .price {
  opacity: 0;
  transform: translateY(24px) rotate(-3deg);
  transition: opacity 0.4s ease, transform 0.7s cubic-bezier(0.3, 1.35, 0.5, 1);
}
.js [data-fig].is-on .price {
  opacity: 1;
  transform: none;
}

/* Drafts take turns. */
.js .cycle__item {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}
.js .cycle__item.is-current {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.45s ease 0.15s, transform 0.45s ease 0.15s, visibility 0s;
}

/* afb. 1 is driven by the script; these are its states. */
.js .demo.is-live .notif {
  opacity: 0;
  transform: translateY(-130%);
  transition: opacity 0.3s ease, transform 0.55s cubic-bezier(0.3, 1.3, 0.5, 1);
  transition-delay: 0s;
}
.js .demo.is-live .notif.is-on {
  opacity: 1;
  transform: none;
}
.js .demo.is-live .notif.is-tapped {
  transform: scale(0.97);
  transition-duration: 0.12s;
}
.js .demo.is-live .demo__veil {
  transition: opacity 0.4s ease;
}
.js .demo.is-live .demo__veil.is-on {
  opacity: 0.32;
}
.js .demo.is-live .demo__panel {
  transition: opacity 0.35s ease 0.2s, transform 0.4s var(--ease) 0.2s;
}
.js .demo.is-live .demo__panel.is-off {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0s linear 0.2s;
}
.js .demo.is-live .table > div {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
  transition-delay: 0s;
}
.js .demo.is-live .table > div.is-on {
  opacity: 1;
  transform: none;
}
.js .demo.is-live [data-fade] {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.js .demo.is-live [data-fade].is-on {
  opacity: 1;
}
.js .demo.is-live [data-save],
.js .demo.is-live .saved {
  transition: opacity 0.3s ease, transform 0.12s ease, background-color 0.18s ease;
}
.js .demo.is-live [data-save].is-off,
.js .demo.is-live .saved {
  opacity: 0;
}
.js .demo.is-live .saved.is-on {
  opacity: 1;
}
.js .demo.is-live .saved .tick path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  transition: stroke-dashoffset 0.35s ease-out 0.1s;
}
.js .demo.is-live .saved.is-on .tick path {
  stroke-dashoffset: 0;
}
.js .demo.is-live .hand {
  clip-path: inset(-20% 100% -20% 0);
  transition: clip-path 0.7s ease-out;
}
.js .demo.is-live .hand.is-on {
  clip-path: inset(-20% -5% -20% 0);
}
.js .caret {
  animation: blink 1s steps(1) infinite;
}
.caret[hidden] {
  display: none;
}

/* ---------- Keyframes ---------- */

@keyframes swipe {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes dot-pop {
  0% {
    transform: translateY(-0.26em) scale(0);
  }
  70% {
    transform: translateY(-0.26em) scale(1.3);
  }
  100% {
    transform: translateY(-0.26em) scale(1);
  }
}
@keyframes dot-pop-flat {
  0% {
    transform: scale(0.6);
  }
  70% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes dot-ring {
  from {
    box-shadow: 0 0 0 0 rgba(229, 53, 43, 0.55);
  }
  to {
    box-shadow: 0 0 0 0.24em rgba(229, 53, 43, 0);
  }
}
@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Reduced motion: everything is simply there ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal,
  .js [data-fig] .table > div,
  .js [data-fig] .list > div,
  .js [data-fig] .picks > div,
  .js [data-fig] .cites li,
  .js [data-fig] .timeline > li,
  .js [data-fig] .row dd,
  .js [data-fig] .notif,
  .js [data-fig] .timeline .draft,
  .js [data-fig] .price {
    opacity: 1;
    transform: none;
  }
  .js [data-fig] .timeline > li::before {
    transform: none;
  }
  .js [data-fig] .row__dots {
    transform: translateY(-0.28em);
  }
  .js [data-fig] .tick path {
    stroke-dashoffset: 0;
  }
  .js [data-fig] .hand,
  .js [data-fig] .hl::before,
  .js .entry .lemma .mark::before {
    clip-path: none;
  }
  .js .entry .lemma__word .dot,
  .js .closing__word .dot {
    transform: translateY(-0.26em);
  }
  .caret {
    display: none;
  }
}

/* ---------- Print ---------- */

@media print {
  .head,
  .thumbs,
  .skip,
  .hero__ctas,
  .closing__ctas {
    display: none;
  }
}
