/* squaredeyes.com — one stylesheet for every page.
 *
 * Look: squared paper and a cobalt "selected cell" outline, taken from the
 * world our clients work in (spreadsheets) and from the logo (squares). The
 * spiral eyes are the one loud element; everything else stays quiet.
 *
 * Motion hooks: html.js is set by the inline head script when JS runs,
 * html.motion only when the visitor has not asked for reduced motion. Anything
 * that starts hidden for an animation is hidden ONLY under .motion, so without
 * JS (or with reduced motion) every section reads in normal flow.
 */

/* ---------- fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- tokens: the one place for colour, type and spacing ---------- */
:root {
  --paper: #F7F3EC;      /* warm paper white */
  --paper-2: #EEE7DC;    /* a shade down, for bands */
  --ink: #1E1A16;        /* warm near-black text */
  --ink-2: #5B5249;      /* secondary text, 6.9:1 on paper, 6.2:1 on paper-2 */
  --grid: #E0D6C8;       /* graph-paper rule */
  --cell-l: #2B3F8F;     /* light-mode accent, also on the light product mockups */
  --cell: var(--cell-l); /* accent: selected cell, links, buttons */
  --cell-ink: #FFFFFF;   /* text on cobalt */
  --mark: #FFE45C;       /* highlighter: focus ring and button hover only */

  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;

  /* 1.25 scale from an 18px body */
  --t-sm: 0.9rem; --t-base: 1.125rem; --t-md: 1.4rem; --t-lg: 1.75rem;
  --t-xl: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);
  --t-hero: clamp(2.5rem, 1.2rem + 5.2vw, 5.25rem);

  --space: clamp(4rem, 2rem + 7vw, 8rem);  /* between sections */
  --gutter: clamp(1rem, 0.4rem + 3vw, 2.5rem);
  --measure: 62ch;
  --sq: 24px;            /* squared-paper cell */
  --line: 2px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1A1714; --paper-2: #24201B; --ink: #F2ECE4; --ink-2: #BFB5A8;
    --grid: #3a332c; --cell: #A3B1EE; --cell-ink: #14110E; --mark: #FFE45C;
  }
}
/* Three accent schemes. The head script gives each new visitor one at random
   (stored as se_accent, value a, b or c only). Without JS: A.
   All pass 4.5:1 as text on paper and paper-2, and white or --cell-ink on them. */
html[data-accent="b"] { --cell-l: #A8401C; }   /* brick */
html[data-accent="c"] { --cell-l: #1F5C4A; }   /* deep green */
@media (prefers-color-scheme: dark) {
  html[data-accent="b"] { --cell: #EE9670; }
  html[data-accent="c"] { --cell: #7CC7AA; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--t-base)/1.6 var(--f-body);
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 {
  font-family: var(--f-display); font-weight: 600; line-height: 1.08;
  letter-spacing: -0.015em; margin: 0 0 0.5em; text-wrap: balance;
}
h1 { font-size: var(--t-hero); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: var(--t-xl); }
h3, .h3 { font-size: var(--t-md); letter-spacing: -0.005em; }
p, ul, ol { margin: 0 0 1em; }
p { max-width: var(--measure); text-wrap: pretty; }
a { color: var(--cell); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 7px var(--mark); border-radius: 2px; }
.wrap { width: 100%; max-width: 74rem; margin-inline: auto; padding-inline: var(--gutter); }
.lede { font-size: var(--t-md); line-height: 1.5; color: var(--ink); max-width: 34ch; }
.muted { color: var(--ink-2); }
.skip { position: absolute; left: -999px; top: 0.5rem; z-index: 10; background: var(--paper); padding: 0.5rem 1rem; }
.skip:focus { left: 0.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- buttons: the cobalt "selected cell" ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font: 700 1.05rem/1.2 var(--f-body); text-decoration: none;
  background: var(--cell); color: var(--cell-ink);
  padding: 0.95em 1.4em; border: var(--line) solid var(--cell); border-radius: 0;
  /* Flat, like a selected cell: a small neutral shadow, no colour spill. */
  box-shadow: 0 1px 2px rgb(22 27 38 / 0.18);
  transition: background-color 0.15s var(--out, ease-out), color 0.15s var(--out, ease-out),
              border-color 0.15s var(--out, ease-out), transform 0.15s var(--out, ease-out);
}
/* The final button: after the line's lap closes round it, it is marked like a
   selected cell: a paper gap and a cobalt outline. Faded by opacity only. */
[data-finale] { position: relative; }
[data-finale]::after {
  content: ''; position: absolute; inset: calc(-1 * var(--line)); pointer-events: none;
  opacity: 0; transition: opacity 0.4s var(--out, ease-out);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--cell);
}
.motion [data-finale].is-lit::after { opacity: 1; }
.calm [data-finale]::after { opacity: 0.6; transition: none; }   /* reduced motion: static */
.btn:hover { background-color: var(--mark); color: #1E1A16; border-color: var(--ink); text-decoration: none; }
/* The click: pressed into the page. Light, occlusion and colour spill go. */
.btn:active {
  transform: scale(0.98);
  box-shadow: none;
  transition-duration: 0.15s, 0.15s, 0.15s, 0.05s;
}
.btn:focus-visible { box-shadow: 0 0 0 7px var(--mark); }
.btn-ghost { background-color: transparent; color: var(--ink); border-color: var(--ink);
  box-shadow: none; }   /* unslop: flat, so the cobalt button is the one that stands out */
.btn-ghost:hover { box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:active { transition: background-color 0.15s, color 0.15s; } .btn:active { transform: none; } }
.btn-small { padding: 0.6em 1em; font-size: 0.95rem; }
.btn .ext { width: 0.9em; height: 0.9em; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; margin-top: 2rem; }

/* ---------- header / footer ---------- */
.site-header { border-bottom: 1px solid var(--grid); background: var(--paper); position: sticky; top: 0; z-index: 20; }
/* The header stays in view, so in-page jumps land below it. */
section[id] { scroll-margin-top: 5rem; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; }
.brand-mark svg { width: 3.4rem; height: auto; }
.brand-mark .eye { stroke-width: 26; }   /* thicker at small size so it does not go spidery */
.brand-name { font: 600 1.2rem/1 var(--f-display); letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.75rem); }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; padding: 0.4rem 0; }
.nav a:not(.btn):hover, .nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 640px) {
  .nav .btn { display: none; }   /* the hero carries the button on small screens */
  .brand-name { font-size: 1.05rem; }
}
.site-footer { border-top: 1px solid var(--grid); padding-block: 2.5rem 3rem; margin-top: var(--space); font-size: var(--t-sm); }
.foot { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 0.6rem; margin: 0; font: 600 1rem/1 var(--f-display); }
.foot-brand svg { width: 2.4rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; list-style: none; padding: 0; margin: 0; }
.foot-links a { color: var(--ink); }
.foot-note { margin: 0; color: var(--ink-2); flex-basis: 100%; }

/* ---------- squared paper ---------- */
/* 2026-11-30, Jurian: no grid lines on the background any more. The class stays as a hook. */
.paper { background-color: transparent; }

/* ---------- sections ---------- */
.section { padding-block: var(--space) 0; }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.band { background: var(--paper-2); padding-block: var(--space); margin-top: var(--space); }
.band + .section { padding-top: var(--space); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.5rem, 1rem + 6vw, 6rem); border-bottom: 1px solid var(--grid); }
/* The first screen is the hero alone: the files below come in only after a scroll. */
.hero { min-height: calc(100svh - 4.5rem); display: grid; align-content: center; position: relative; }
/* Pinned to the bottom of the first screen, whatever its height; fades out
   as soon as the visitor scrolls (main.js sets .scrolled). */
.scroll-cue { position: fixed; z-index: 5; left: 50%; bottom: 1rem; translate: -50% 0; display: grid; justify-items: center; gap: 0.2rem;
  padding: 0.5rem 0.9rem 0.4rem; background: color-mix(in srgb, var(--paper) 88%, transparent); border-radius: 0;   /* unslop: square like every other surface */
  color: var(--ink-2); text-decoration: none; font: 700 0.875rem/1 var(--f-body);
  transition: opacity 0.4s, visibility 0.4s; }
.scrolled .scroll-cue { opacity: 0; visibility: hidden; }
.scroll-cue svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--cell); stroke-width: 2.5; }
.scroll-cue:hover { color: var(--ink); }
.motion .scroll-cue svg { animation: cue 1.8s cubic-bezier(0.45, 0, 0.55, 1) 3; }   /* unslop: three bounces, then still */
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.hero-grid { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; grid-template-columns: 1fr; }
.hero-eyes { color: var(--ink); width: min(100%, 34rem); }
.hero-eyes svg { width: 100%; height: auto; overflow: visible; }
.hero-copy .lede { margin-top: 1.5rem; }
.hero-copy h1 { max-width: 14ch; margin-left: -0.04em; }   /* unslop: optical alignment at display size */
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .hero-eyes { order: 2; justify-self: end; }
}

/* ---------- problem: loose files snapping into one table ---------- */
.problem-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 900px) { .problem-grid { grid-template-columns: 0.9fr 1.1fr; } }
.sheet-wrap { position: relative; }
.sheet { list-style: none; margin: 0; padding: 0; background: var(--paper); }
/* The frame is its own element so it can fade in (opacity) once the loose
   rows have landed; the rows carry a 1px ring so they read as cards in flight. */
.sheet-frame { position: absolute; inset: 0; border: 3px solid var(--cell); pointer-events: none; }
.sheet-caption { font: 700 var(--t-sm)/1 var(--f-body); color: var(--ink-2); margin: 0 0 0.75rem; }
.sheet li {
  display: grid; grid-template-columns: 2rem 1fr auto; gap: 0.75rem; align-items: center;
  padding: 0.85rem 1rem; background: var(--paper);
  box-shadow: 0 0 0 1px var(--grid); position: relative;
}
.sheet .kind { width: 1.6rem; height: 1.6rem; color: var(--ink-2); }
.sheet .name { font-weight: 700; overflow-wrap: anywhere; }
.sheet .where { font-size: var(--t-sm); color: var(--ink-2); white-space: nowrap; }
.sheet-note { margin: 1rem 0 0; color: var(--cell); }

/* ---------- how we work: three steps (a real sequence, so numbered) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; counter-reset: step; }
/* Wide: one rule across the whole row, so it stays whole while steps 2 and 3
   are still hidden during the pinned reveal. Narrow: a rule above each step. */
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 0; border-top: var(--line) solid var(--ink); } .steps .step { border-top: 0; } }
.step { counter-increment: step; padding: 1.75rem 1.5rem 1.5rem; border-top: var(--line) solid var(--ink); position: relative; }
@media (min-width: 900px) { .step + .step { border-left: 1px solid var(--grid); } }
.step::before {
  content: counter(step); display: block;
  font: 800 clamp(3rem, 2rem + 3vw, 4.5rem)/1 var(--f-display); color: var(--cell); margin-bottom: 1rem;
  margin-left: -0.06em;   /* unslop: optical alignment, cancel the numeral's side bearing */
}
.step p { color: var(--ink-2); margin: 0; }
.step-node { display: none; position: absolute; top: -9px; left: 1.5rem; width: 16px; height: 16px; background: var(--cell); z-index: 2; }
@media (min-width: 900px) { .motion .step-node { display: block; } }

/* ---------- what we have built ---------- */
.built-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .built-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
.link-line { font: 700 var(--t-lg)/1.2 var(--f-display); margin: 0; }
.link-line a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 0.6rem; border-bottom: 3px solid var(--cell); padding-bottom: 0.2rem; }
.link-line a:hover { color: var(--cell); }
.link-line .arrow { width: 1.2em; height: 1.2em; fill: none; stroke: var(--cell); stroke-width: 2.5; }
.built-link { padding-block: calc(var(--space) * 0.6); }
.built-link .link-line { text-align: center; font-size: var(--t-xl); }
.built-link .link-line a { border-bottom-width: 4px; padding-bottom: 0.3rem; }
@media (max-width: 599px) { .built-link .link-line { font-size: var(--t-lg); } }
.app-card {
  display: flex; flex-direction: column; border: var(--line) solid var(--ink); background: var(--paper);
  color: var(--ink); text-decoration: none; position: relative;
}
.app-card:hover { outline: 3px solid var(--cell); outline-offset: -1px; }
.app-card:hover .h3, .app-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.app-art { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--grid); display: grid; place-items: center; padding: 1.5rem; color: var(--ink); }
.app-art svg { width: 100%; height: 100%; }
.app-body { padding: 1.5rem 1.5rem 1.75rem; }
.app-body p { color: var(--ink-2); margin-bottom: 0.75rem; }
.app-status { font: 700 var(--t-sm)/1 var(--f-body); color: var(--ink); display: inline-block; padding: 0.35em 0.6em; border: 1px solid var(--ink); }
.app-status.soon { border-style: dashed; color: var(--ink-2); }

/* line drawings inside cards share the logo's stroke language */
.art-line { fill: none; stroke: currentColor; stroke-width: 6; stroke-linejoin: miter; }
.art-thin { fill: none; stroke: var(--grid); stroke-width: 2; }
.art-cell { fill: none; stroke: var(--cell); stroke-width: 6; }
.art-fill { fill: currentColor; }

/* ---------- maintenance ---------- */
.watch { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .watch { grid-template-columns: auto 1fr; gap: 4rem; } }
.watch h2 { max-width: 18ch; }

/* ---------- about strip and people ---------- */
.people { display: grid; gap: 1.5rem; list-style: none; padding: 0; margin: 0 0 2rem; }
@media (min-width: 700px) { .people { grid-template-columns: 1fr 1fr; } }
.person { border-left: var(--line) solid var(--ink); padding: 0.25rem 0 0.25rem 1.25rem; }
.person h3 { margin-bottom: 0.25rem; }
.person .role { font-weight: 700; color: var(--cell); margin-bottom: 0.5rem; }
.person p:last-child { margin-bottom: 0; color: var(--ink-2); }

/* ---------- final call to action ---------- */
.cta { border: var(--line) solid var(--ink); padding: clamp(2rem, 1rem + 4vw, 4rem); position: relative; }
.cta h2 { max-width: 20ch; }
.cta .fallback { margin: 1.25rem 0 0; color: var(--ink-2); }

/* ---------- inner pages ---------- */
.page-head { padding-block: clamp(2.5rem, 1rem + 5vw, 5rem) clamp(2rem, 1rem + 3vw, 3.5rem); border-bottom: 1px solid var(--grid); }
.page-head h1 { font-size: clamp(2.25rem, 1.2rem + 4vw, 4rem); max-width: 18ch; }
.page-head .lede { max-width: 40ch; }
.prose { max-width: 46rem; }
.page-head + .section { padding-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.prose h2 { font-size: var(--t-lg); margin-top: 2.5rem; }
.prose ol, .prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.two-col { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.figure-frame { border: var(--line) solid var(--ink); padding: 1.5rem; background: var(--paper); }
.figure-frame figcaption { font-size: var(--t-sm); color: var(--ink-2); margin-top: 1rem; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.facts li { padding-left: 2.25rem; position: relative; }
.facts li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 1.1rem; height: 1.1rem;
  border: 3px solid var(--cell);
}
.legal dl { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: 0.5rem 1.5rem; margin: 0 0 2rem; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 0.75rem; } }
.notfound { min-height: 55vh; display: grid; align-content: center; gap: 1rem; }
.notfound .hero-eyes { width: min(22rem, 70vw); }

/* ---------- the line (home page, drawn by main.js) ---------- */
/* Behind the content, above the section backgrounds: the text column sits on
   z-index 1, the line on 0. */
main.has-thread { position: relative; }
main.has-thread .wrap { position: relative; z-index: 1; }
.thread { position: absolute; top: 0; left: 0; z-index: 0; pointer-events: none; overflow: visible; max-width: none; }
.thread path { fill: none; stroke: var(--cell); stroke-width: 4; stroke-linejoin: miter; stroke-linecap: square; }
@media (max-width: 899.98px) { .thread path { stroke-width: 3; } }
/* The arrow at the front of the line: a small cobalt triangle, turned by line.js to the way the line runs */
.thread-tip { position: absolute; top: 0; left: 0; z-index: 0; width: 18px; height: 12px; margin: 2px 0 0 -9px; pointer-events: none; transform-origin: 50% -2px;
  background: var(--cell); clip-path: polygon(0 0, 100% 0, 50% 100%); opacity: 0; transition: opacity 0.2s; }
.thread-tip.is-on { opacity: 1; }
@media (max-width: 899.98px) { .thread-tip { width: 14px; height: 10px; margin-left: -7px; } }

/* ---------- headings split into lines (SplitText, main.js) ---------- */
.line-mask { padding-bottom: 0.06em; margin-bottom: -0.06em; }  /* room for descenders inside the mask */

/* ---------- how we work: a node per step, on the line ---------- */
.steps-wrap { position: relative; }

/* ---------- maintenance: the hourly sweep ---------- */
.sweep { display: flex; gap: 1.75rem; align-items: center; }
.sweep-dial { width: clamp(7rem, 14vw, 10rem); flex: none; color: var(--ink); }
.sweep-dial .dial { fill: none; stroke: currentColor; stroke-width: 6; }
.sweep-dial .tick { stroke: currentColor; stroke-width: 4; }
.sweep-dial .hand { stroke: var(--cell); stroke-width: 6; stroke-linecap: square; }
.sweep-dial .hub { fill: var(--cell); }
.sweep-log { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; font-weight: 700; }
.sweep-log li { display: flex; align-items: center; gap: 0.6rem; }
.sweep-log svg { width: 1.3rem; height: 1.3rem; flex: none; color: var(--cell); }
.sweep-log .when { font-variant-numeric: tabular-nums; }

/* ---------- about: one eye per brother ---------- */
.person-eye { width: 7.5rem; color: var(--ink); margin-bottom: 1.25rem; position: relative; z-index: 1; }
.person-eye svg { width: 100%; height: auto; overflow: visible; }

/* ---------- motion start states (only with JS and without reduced motion) ---------- */
.motion [data-intro] { opacity: 0; }
.motion .hero-eyes .eye { opacity: 0; }
.motion .app-art svg { transform-origin: 50% 60%; }
.motion .page-head h1 { opacity: 0; }           /* revealed line by line by main.js */

/* Header link to /built/: the full wording, shortened where the header is narrow. */
.nav-short { display: none; }
@media (max-width: 640px) { .nav-full { display: none; } .nav-short { display: inline; } .nav-wide { display: none; } }

/* Home, wide: the table is the left column, so the line can wrap it from the
   left margin before crossing right at the steps. */
@media (min-width: 900px) {
  .page-index .problem-grid { grid-template-columns: 1.1fr 0.9fr; }
  .page-index .problem-grid > div:last-child { order: -1; }
}

/* Home, narrow: wider side gutters, so the line has room beside the text
   (about 16px clear on each side of it). */
@media (max-width: 899.98px) { .page-index .wrap { padding-inline: max(var(--gutter), 2.25rem); } }

/* Blog */
.post-list { list-style: none; padding: 0; margin: 0; max-width: 46rem; display: grid; gap: 1px; background: var(--grid); border: 1px solid var(--grid); }
.post-list a { display: grid; gap: 0.35rem; padding: 1.25rem 1.5rem; background: var(--paper); color: inherit; text-decoration: none; }
.post-list a:hover .post-title, .post-list a:focus-visible .post-title { color: var(--cell); text-decoration: underline; }
.post-list time, .post-meta { font-size: var(--t-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; }   /* unslop: dates line up */
.post-title { font-family: var(--f-display); font-weight: 700; font-size: var(--t-lg); line-height: 1.2; }
.post-desc { color: var(--ink-2); }
.post-meta { margin-bottom: 1rem; }
.post-meta a { color: inherit; }
.post-draft { display: inline-block; margin-left: 0.5rem; padding: 0 0.4rem; border: 1px solid currentColor; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; vertical-align: middle; }
.page-post .prose p, .page-post .prose li { max-width: 65ch; }
.post-cta { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--grid); }

/* ---------- product screenshots (det/) ---------- */
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: var(--line) solid var(--ink); background: var(--paper); }
.shot figcaption { font-size: var(--t-sm); color: var(--ink-2); margin-top: 0.75rem; }
.shots { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .shots { grid-template-columns: 1fr 1fr; } .shots .shot:first-child { grid-column: 1 / -1; } }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem 3rem; }
@media (min-width: 900px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-list li { display: grid; gap: 0.35rem; padding-left: 2.25rem; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 1.1rem; height: 1.1rem; background: var(--cell); }
.feature-list b { font-family: var(--f-display); font-size: var(--t-md); line-height: 1.2; }
.feature-list span { color: var(--ink-2); }
.feature-list-tight { gap: 1rem 3rem; }
.feature-list-tight b { font-size: var(--t-base); }
.setup-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .setup-grid { grid-template-columns: 1fr 1fr; } }
.setup { border: var(--line) solid var(--ink); padding: clamp(1.25rem, 3vw, 2rem); background: var(--paper); display: grid; gap: 1rem; align-content: start; }
.setup h3 { margin: 0; font-size: var(--t-lg); }
.setup p { margin: 0; }

.shot-link { display: block; cursor: zoom-in; }
.shot-link:hover img, .shot-link:focus-visible img { outline: 3px solid var(--cell); outline-offset: 2px; }
.zoom { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: clamp(0.5rem, 2vw, 2rem);
  border: 0; background: #1E1A16; cursor: zoom-out; display: none; }
.zoom[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; gap: 0.75rem; }
.zoom::backdrop { background: transparent; }
.zoom img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; background: var(--paper); }
.zoom-caption { margin: 0; color: #F2ECE4; font-size: var(--t-sm); text-align: center; }
.zoom-close { position: fixed; top: 0.75rem; right: 0.75rem; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 0;   /* unslop: square, not a round chip */
  background: #F2ECE4; color: var(--ink); font-size: 1.75rem; line-height: 1; cursor: pointer; }
@media (max-width: 899px) {   /* phones: open at readable size and pan with a finger */
  .zoom[open] { display: block; overflow: auto; padding: 0; }
  .zoom img { max-width: none; max-height: none; width: 250vw; height: auto; }
  .zoom-caption { position: fixed; left: 0; right: 0; bottom: 0; padding: 0.5rem 1rem; background: #1E1A16; }
}


/* The visitor-cookie notice (assets/js/track.js showNotice): bottom left, until the cookie is there. */
.visit-note {
  position: fixed; z-index: 30; left: var(--gutter); bottom: 1rem; width: min(21rem, calc(100vw - 2 * var(--gutter)));
  padding: 0.9rem 2.6rem 0.9rem 1rem; background: var(--paper); color: var(--ink); border: var(--line) solid var(--ink);
  box-shadow: 4px 4px 0 var(--grid); font: 400 var(--t-sm)/1.45 var(--f-body);
}
.visit-note p { margin: 0; }
.visit-note .visit-note__t { font: 700 1rem/1.3 var(--f-display); margin-bottom: 0.25rem; }
.visit-note__x {
  position: absolute; top: 0.35rem; right: 0.35rem; width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  border: 0; background: none; color: var(--ink); font: 400 1.5rem/1 var(--f-body); cursor: pointer;
}
.visit-note__x:hover { color: var(--cell); }
.visit-note__x:focus-visible { outline: 3px solid var(--mark); outline-offset: 0; }
