/* distractinglife: a scrapbook of good distractions. Squared notebook paper,
   washi tape, passport stamps, sticky notes and a receipt, in the cream,
   graphite and coral of the Distracting app icon. Follows light/dark setting. */
:root {
  --bg: #f4efe4;
  --surface: #fffcf5;
  --text: #232522;
  --muted: #5a564e;
  --border: #d9d1c1;
  --grid: rgba(120, 140, 170, 0.14);
  --link: #a8381f;
  --coral: #ff8f79;
  --focus: #a8381f;
  --marker: rgba(255, 143, 121, 0.6);
  --tape: rgba(255, 143, 121, 0.55);
  --tape-2: rgba(120, 190, 220, 0.5);
  --tape-3: rgba(240, 205, 90, 0.6);
  --sticky: #fff1a6;
  --sticky-text: #2d2a1f;
  --shadow: 0 1px 2px rgba(35, 37, 34, 0.12), 0 10px 24px -14px rgba(35, 37, 34, 0.35);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --hand: "Bradley Hand", "Segoe Print", "Ink Free", "Noteworthy", "Comic Neue", cursive;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1b18;
    --surface: #282723;
    --text: #f4efe4;
    --muted: #b8b1a4;
    --border: #3d3b35;
    --grid: rgba(200, 210, 230, 0.06);
    --link: #ffa08d;
    --focus: #ffa08d;
    --marker: rgba(255, 143, 121, 0.4);
    --tape: rgba(255, 143, 121, 0.4);
    --tape-2: rgba(120, 190, 220, 0.32);
    --tape-3: rgba(240, 205, 90, 0.35);
    --sticky: #e8d77c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 26px -14px rgba(0, 0, 0, 0.7);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

/* Squared notebook paper */
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: anywhere;
}

a { color: var(--link); text-underline-offset: 0.15em; }

::selection { background: var(--coral); color: #232522; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  z-index: 1;
}
.skip:focus { top: 1rem; }

.site-header, main, .site-footer {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* A strip of washi tape: used on headings, cards and the sticky note. */
.section > h2, .now::before, .product::before, .focus .card::before, .thought::before {
  background:
    repeating-linear-gradient(-45deg, transparent 0 6px, rgba(255, 255, 255, 0.18) 6px 12px),
    var(--tape);
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.brand {
  color: var(--text);
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
}

.dot {
  display: inline-block;
  width: 0.36em;
  height: 0.36em;
  margin-left: 0.1em;
  border-radius: 50%;
  background: var(--coral);
}

nav ul, .links, .cards, .highlights, .actions {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
nav a {
  color: var(--muted);
  font-family: var(--hand);
  font-size: 1.05rem;
  text-decoration: none;
}
nav a:hover { color: var(--text); text-decoration: underline wavy var(--coral); text-underline-offset: 0.25em; }

/* Intro */
.intro { padding: 2.5rem 0 1rem; display: grid; gap: 2.5rem; align-items: center; }
.intro > * { max-width: 42rem; }
@media (min-width: 56rem) {
  .intro.has-now { grid-template-columns: minmax(0, 1fr) 19rem; }
}

/* Handwritten margin note pointing at the headline */
.kicker {
  margin: 0 0 0.75rem;
  color: var(--link);
  font-family: var(--hand);
  font-size: 1.25rem;
  transform: rotate(-2deg);
  transform-origin: left;
}
.kicker::after { content: " \2198"; }

h1 {
  font-size: clamp(2.5rem, 8.5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 0 0 1.25rem;
}

/* The headline's *word*: a highlighter stroke, slightly crooked */
.hl {
  background: linear-gradient(176deg, transparent 52%, var(--marker) 52%, var(--marker) 88%, transparent 88%);
  color: inherit;
  padding: 0 0.06em;
  border-radius: 0.2em;
}

.lede { color: var(--muted); font-size: 1.2rem; margin: 0; }

.links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
/* Buttons with a slightly hand-drawn outline */
.links a, .button {
  display: inline-block;
  padding: 0.5rem 1.05rem;
  border: 2px solid var(--text);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.links a:hover, .button:hover { background: var(--text); color: var(--bg); }

/* Now: a sticky note, taped on */
.now {
  position: relative;
  background: var(--sticky);
  color: var(--sticky-text);
  padding: 1.6rem 1.35rem 0.6rem;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.now::before {
  content: "";
  position: absolute;
  top: -0.7rem;
  left: 50%;
  width: 6.5rem;
  height: 1.5rem;
  transform: translateX(-50%) rotate(-3deg);
}
.now-head {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  font-family: var(--hand);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}
.now-head .meta { margin-left: auto; color: inherit; opacity: 0.75; font-family: var(--hand); font-size: 0.95rem; font-weight: 400; }
.pulse {
  flex: none;
  align-self: center;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--coral);
}
.now dl { margin: 0; }
.now dt {
  font-family: var(--hand);
  font-size: 1.05rem;
  font-weight: 700;
}
.now dd { margin: 0 0 0.8rem; line-height: 1.4; }

/* In numbers: ticket stubs */
.stats {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}
.stats li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1.4rem 0.75rem 1.6rem;
  background:
    radial-gradient(circle at 0 50%, var(--bg) 0.55rem, transparent 0.6rem),
    radial-gradient(circle at 100% 50%, var(--bg) 0.55rem, transparent 0.6rem),
    var(--surface);
  border-top: 1.5px dashed var(--border);
  border-bottom: 1.5px dashed var(--border);
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}
.stats li:nth-child(2) { transform: rotate(1deg); }
.stats li:nth-child(3) { transform: rotate(-0.5deg); }
.stat-value { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--link); }
.stat-label { font-family: var(--hand); font-size: 1.05rem; line-height: 1.2; max-width: 11rem; }

/* Sections: the heading is a piece of washi tape */
.section { margin-top: 5rem; }

h2 { font-size: 1.6rem; letter-spacing: -0.02em; margin: 0 0 1.5rem; }

.section > h2 {
  display: inline-block;
  padding: 0.3rem 1.1rem 0.25rem;
  font-family: var(--hand);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  transform: rotate(-1.5deg);
  box-shadow: 0 1px 2px rgba(35, 37, 34, 0.12);
}
.section:nth-of-type(3n + 2) > h2 { --tape: var(--tape-2); transform: rotate(1deg); }
.section:nth-of-type(3n) > h2 { --tape: var(--tape-3); transform: rotate(-0.5deg); }

/* The section's intro line, written in the margin */
.section-intro {
  max-width: 42rem;
  margin: -0.4rem 0 1.75rem;
  color: var(--muted);
  font-family: var(--hand);
  font-size: 1.2rem;
  line-height: 1.35;
}

h3 { font-size: 1.1rem; margin: 0; letter-spacing: -0.01em; }
h3 a { color: var(--text); }

/* About: the big idea, then the rest */
.prose { max-width: 44rem; font-size: 1.1rem; }
.prose p { margin: 0 0 1rem; }
.prose p:first-child {
  font-size: clamp(1.4rem, 3.6vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* Places: one passport stamp per country, on a passport page */
.stamps {
  list-style: none;
  margin: 0;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px 18px 18px 6px;
  box-shadow: var(--shadow), inset 14px 0 18px -16px rgba(35, 37, 34, 0.45);
}
.stamp {
  --tone: var(--coral);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 7.5rem;
  max-width: 15rem;
  padding: 0.9rem 1.1rem;
  text-align: center;
  color: var(--text);
  border: 2.5px solid var(--tone);
  border-radius: 12px;
  outline: 1.5px dashed var(--tone);
  outline-offset: -7px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: rotate(-3deg);
}
.stamp:nth-child(5n + 2) { --tone: #d99a17; transform: rotate(2.5deg); border-radius: 50%; padding: 1.4rem 1.2rem; }
.stamp:nth-child(5n + 3) { --tone: #2f9e5c; transform: rotate(-1.5deg); }
.stamp:nth-child(5n + 4) { --tone: #4c8dff; transform: rotate(4deg); border-radius: 4px; }
.stamp:nth-child(5n + 5) { --tone: #a77bf3; transform: rotate(-4.5deg); border-radius: 50%; padding: 1.4rem 1.2rem; }
.stamp-country { font-weight: 700; font-size: 0.9rem; }
.stamp-visits { color: var(--link); }
.stamp-cities, .stamp-note {
  margin-top: 0.35rem;
  color: var(--muted);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}
.stamp-note { color: var(--text); font-family: var(--hand); font-size: 1rem; }
.stamp-favorite { border-width: 3.5px; }
/* "Favourite": a heart sticker */
.stamp-flag {
  position: absolute;
  top: -0.9rem;
  right: -0.8rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--coral);
  color: #232522;
  font-family: var(--hand);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  transform: rotate(8deg);
  box-shadow: var(--shadow);
}
.stamp-flag::before { content: "\2665  "; }

/* Thoughts: sticky notes */
.thoughts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem 1.25rem; }
.thought {
  position: relative;
  flex: 1 1 15rem;
  max-width: 21rem;
  margin: 0;
  padding: 1.4rem 1.25rem 0.9rem;
  background: var(--sticky);
  color: var(--sticky-text);
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}
.thought:nth-child(even) { transform: rotate(1.5deg); }
.thought::before {
  content: "";
  position: absolute;
  top: -0.6rem;
  left: 50%;
  width: 4.5rem;
  height: 1.3rem;
  transform: translateX(-50%) rotate(2deg);
}
.thought blockquote { margin: 0; }
.thought blockquote p {
  margin: 0 0 0.6rem;
  font-family: var(--hand);
  font-size: 1.3rem;
  line-height: 1.35;
}
.thought .meta { margin: 0; color: inherit; opacity: 0.75; }

/* Side projects: taped-in panels */
.products { display: grid; gap: 2.5rem; }

.product {
  --item: var(--coral);
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(-0.4deg);
}
.product::before {
  content: "";
  position: absolute;
  top: -0.75rem;
  left: 1.5rem;
  width: 7rem;
  height: 1.5rem;
  transform: rotate(-4deg);
}

@media (min-width: 52rem) {
  .product:has(.product-shot) { grid-template-columns: 1fr 1.15fr; align-items: center; padding: 2.25rem 2rem 2rem; }
}

.product-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.product-icon {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--border);
}
.product-mono {
  display: grid;
  place-items: center;
  background: var(--item);
  color: #232522;
  font-weight: 800;
  font-size: 1.5rem;
}
.product h3 { font-size: 1.6rem; letter-spacing: -0.03em; line-height: 1.1; }
.product h3 a { text-decoration: none; }
.product h3 a:hover { text-decoration: underline; }

.kind {
  margin: 0 0 0.1rem;
  color: var(--muted);
  font-family: var(--hand);
  font-size: 1.05rem;
}

.tagline {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.6rem;
}
.product p { margin: 0 0 0.75rem; }

.highlights { margin: 1rem 0 0; display: grid; gap: 0.45rem; }
.highlights li { position: relative; padding-left: 1.5rem; }
.highlights li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: -0.05em;
  color: var(--link);
  font-family: var(--hand);
  font-size: 1.15rem;
  font-weight: 700;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.button.primary { background: var(--text); color: var(--bg); }
.button.primary:hover { background: transparent; color: var(--text); }

/* The screenshot: a print, taped at two corners */
.product-shot {
  position: relative;
  margin: 0;
  padding: 0.6rem 0.6rem 2.2rem;
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}
.product-shot img { display: block; width: 100%; height: auto; background: var(--item); }
.product-shot::before, .product-shot::after {
  content: "";
  position: absolute;
  width: 4.5rem;
  height: 1.3rem;
  background: var(--tape-3);
}
.product-shot::before { top: -0.5rem; left: -1.2rem; transform: rotate(-35deg); }
.product-shot::after { bottom: -0.3rem; right: -1.2rem; transform: rotate(-35deg); }

/* Built at work: a till receipt */
#built .products { max-width: 32rem; }
#built .product {
  --surface: #fbf8f0;
  --border: #d4ccbb;
  --muted: #5a564e;
  --link: #a8381f;
  color: #232522;
  padding: 1.75rem 1.5rem 2rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  transform: rotate(0.8deg);
}
#built .product::before { display: none; }
#built .product::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 12px;
  background:
    linear-gradient(135deg, var(--surface) 50%, transparent 50%) 0 0 / 16px 12px,
    linear-gradient(-135deg, var(--surface) 50%, transparent 50%) 0 0 / 16px 12px;
}
#built .product-head { justify-content: center; text-align: center; border-bottom: 2px dashed var(--border); padding-bottom: 1rem; }
#built .product-mono { width: 3rem; height: 3rem; border-radius: 50%; font-family: system-ui, sans-serif; }
#built .product h3, #built .product h3 a { color: #232522; }
#built .product h3 { font-family: var(--mono); font-size: 1.4rem; letter-spacing: 0.15em; text-transform: uppercase; }
#built .kind { font-size: 1rem; }
#built .tagline { font-family: var(--hand); font-size: 1.35rem; letter-spacing: 0; text-align: center; }
#built .highlights { gap: 0.55rem; border-top: 2px dashed var(--border); padding-top: 1rem; }
#built .highlights li::before { content: "*"; font-family: var(--mono); font-size: 1rem; top: 0; }

/* Cards (videos, articles, things) */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }

.card {
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
}
.card p { margin: 0.35rem 0 0; }
.meta { color: var(--muted); font-family: var(--mono); font-size: 0.8rem; }
.note { font-size: 0.95rem; }

/* Work: ruled index cards, taped on */
.focus { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); counter-reset: step; gap: 1.75rem 1.5rem; padding-top: 0.5rem; }
.focus .card {
  position: relative;
  padding: 1.5rem 1.3rem 1.25rem;
  counter-increment: step;
  border-top: 3px solid rgba(229, 72, 77, 0.55);
  background:
    repeating-linear-gradient(transparent 0 1.55rem, rgba(76, 141, 255, 0.16) 1.55rem calc(1.55rem + 1px)) 0 3.1rem / 100% calc(100% - 3.1rem) no-repeat,
    var(--surface);
  transform: rotate(-0.8deg);
}
.focus .card:nth-child(even) { transform: rotate(0.9deg); }
.focus .card::before {
  content: "";
  position: absolute;
  top: -0.8rem;
  right: 1.2rem;
  width: 4rem;
  height: 1.3rem;
  transform: rotate(5deg);
}
.focus .card:nth-child(3n + 2)::before { --tape: var(--tape-2); }
.focus .card:nth-child(3n)::before { --tape: var(--tape-3); }
.focus h3::before {
  content: counter(step) ". ";
  color: var(--link);
  font-family: var(--hand);
  font-size: 1.3rem;
}
.focus p { margin-top: 0.5rem; line-height: 1.55rem; }

.chips {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chips li {
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.78rem;
}

/* Videos */
.hint { color: var(--muted); font-size: 0.9rem; margin: -0.75rem 0 1rem; }

.video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 0.85rem;
  border: 0;
  overflow: hidden;
  background: #000;
}
.video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 4rem;
  height: 2.8rem;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.75);
}
.play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 0.65rem 0 0.65rem 1.1rem;
  border-color: transparent transparent transparent #fff;
}
.video:hover .play, .video:focus-visible .play { background: #c4302b; }

/* Experiments log and things I use */
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }

.card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin: 0 0 0.6rem;
}
.card h3 + p { margin-top: 0.5rem; }

.label {
  margin-right: 0.35rem;
  color: var(--muted);
  font-family: var(--hand);
  font-size: 1rem;
}

/* Badges: text stays in the body color; the colored dot carries the state. */
.badge {
  --tone: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.15rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--tone);
}
.status-running { --tone: var(--coral); }
.status-planned::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.status-done, .verdict-love { --tone: #3fae6a; }
.verdict-complicated { --tone: #e0a526; }
.verdict-regret { --tone: #e5484d; }
.verdict-testing::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }

/* Footer: the bottom of the notebook page */
.site-footer {
  margin-top: 6rem;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  color: var(--muted);
  font-family: var(--hand);
  font-size: 1.05rem;
  border-top: 2px dashed var(--border);
}
.site-footer p { margin: 0.2rem 0; }
.site-footer p:last-child { font-family: var(--mono); font-size: 0.8rem; }

@media (prefers-reduced-motion: no-preference) {
  .links a, .button, .play { transition: background-color 0.15s, color 0.15s; }

  /* The brand dot wanders off and snaps back: once on load, and on hover. */
  .dot { animation: wander 1.1s 1.2s both; }
  .brand:hover .dot, .brand:focus-visible .dot { animation: wander-again 1.1s; }
  .pulse { animation: pulse 2.4s ease-out infinite; }

  /* Things on the page lift a little when you touch them. */
  .stamp, .thought, .now, .stats li, .focus .card, .product-shot { transition: transform 0.25s, box-shadow 0.25s; }
  .stamp:hover { transform: rotate(0) scale(1.08); }
  .thought:hover, .now:hover, .stats li:hover, .focus .card:hover, .product-shot:hover {
    transform: rotate(0) translateY(-3px);
    box-shadow: 0 2px 4px rgba(35, 37, 34, 0.12), 0 18px 30px -14px rgba(35, 37, 34, 0.45);
  }
}

@keyframes wander {
  0%, 100% { transform: none; }
  30% { transform: translate(0.8em, -0.6em); }
  50% { transform: translate(1.2em, -0.3em); }
  80% { transform: translate(-0.1em, 0.05em); }
}
@keyframes wander-again {
  0%, 100% { transform: none; }
  30% { transform: translate(0.8em, -0.6em); }
  50% { transform: translate(1.2em, -0.3em); }
  80% { transform: translate(-0.1em, 0.05em); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 143, 121, 0.6); }
  70%, 100% { box-shadow: 0 0 0 0.5rem rgba(255, 143, 121, 0); }
}

/* Standalone article pages (/getset): a clean sheet on the notebook */
.doc { max-width: 46rem; padding: 2.5rem 0 1rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
.doc .kicker::after { content: none; }
.byline { margin: 0 0 1rem; }
.doc-shot { margin: 2.5rem 0; }
.doc-shot.product-shot { transform: rotate(-0.6deg); }
.doc section { margin-top: 3rem; scroll-margin-top: 1.5rem; }
.doc h2 { font-size: 1.6rem; letter-spacing: -0.03em; line-height: 1.2; margin: 0 0 0.75rem; }
.doc h3 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; }
.doc p { margin: 0 0 0.9rem; }
.answer { font-size: 1.15rem; border-left: 4px solid var(--coral); padding-left: 1rem; }
.toc { background: var(--sticky); color: var(--sticky-text); box-shadow: var(--shadow); padding: 1.1rem 1.3rem; transform: rotate(-0.5deg); }
.toc a { color: inherit; }
.toc .label { color: inherit; font-size: 1.25rem; font-weight: 700; }
.toc ol { margin: 0.5rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.steps { padding-left: 1.3rem; display: grid; gap: 0.45rem; }
.demo { display: block; width: 100%; height: auto; margin-top: 1.25rem; background: var(--surface); box-shadow: var(--shadow); }
.doc pre {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.doc code { font-family: var(--mono); font-size: 0.9em; }
.doc :not(pre) > code { background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 0.05em 0.35em; }
.doc-cta { border-top: 2px dashed var(--border); padding-top: 2rem; }

/* Generated from content files */
.product-getset { --item: #f7f95f; }
.product-maya { --item: #a77bf3; }
