/* goto — the dopecode house style, and what goto adds to it.
 *
 * The first part is house.css as the guide ships it (common/housestyle),
 * copied rather than linked: the role table, the two faces, the selection
 * and the focus ring. Everything after it names roles, never a hex.
 *
 * Amber goes to three places in goto: the mark, the one primary action on
 * a page, and the rail of the selected row. Data takes the series slots.
 */

:root {
  color-scheme: light dark;

  /* Amber, the only accent. The fill does not flip. */
  --house-amber-100: #FFE3B0; /* tint fills, documents and pages only */
  --house-amber-hi: #FFC65C;  /* Amber 300: focused hairline, text selection */
  --house-amber: #FFB224;     /* Amber 500: the mark, the primary button, the rail, a bar in flight */
  --house-amber-dn: #E89A12;  /* Amber 600: the primary button, pressed */
  --house-amber-ring: #8F5806; /* Amber 800: the 2px ring outside a focused control, in both */
  --house-on-amber: #17130F;  /* Ink 800 on an amber fill, in both */

  /* Objects, never chrome: one colour in either appearance. A page someone
     would print, with the ink on paper on it, and an instrument's
     faceplate. gust-ui draws them as materials; a page draws the fill. */
  --house-page: #FFFDFA;
  --house-page-line: #E0D8CB;
  --house-page-text: #17130F;
  --house-page-dim: #6B6055;
  --house-anodised: #241E18;

  /* Radii: r12 panels, r10 detail rows, r8 buttons and fields, r6 chips.
     List rows are flush and square. */
  --house-r-panel: 12px;
  --house-r-row: 10px;
  --house-r-button: 8px;
  --house-r-chip: 6px;
  --house-rail: 3px;

  /* Type: JetBrains Mono for what a machine said, the system face for what a
     person reads. */
  --house-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --house-sans: -apple-system, BlinkMacSystemFont, system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Light: the default, and what a page without a preference gets. */
  --house-canvas: #F7F4EF;     /* Paper */
  --house-card: #FFFDFA;       /* Surface */
  --house-hover: #F7F3EC;
  --house-raised: #F0EBE2;
  --house-line: #E0D8CB;       /* Hairline */
  --house-text: #17130F;       /* Ink 800 */
  --house-dim: #6B6055;
  --house-amber-text: #8F5806; /* Amber 800 */
  --house-ok: #23714E;
  --house-warn: #B23B00;
  --house-bad: #C70F34;

  /* Data: never amber and never a status colour. A scale with a direction
     runs cool-2 → warm-2 through neutral; series take 1–6 in order and
     never cycle; one series with no judgement is plain. */
  --house-cool-2: #2456BD;
  --house-cool-1: #5E93E8;
  --house-neutral: #9A8F82;
  --house-warm-1: #E5735F;
  --house-warm-2: #BF2F3B;
  --house-series-1: #2456BD;
  --house-series-2: #BF696A;
  --house-series-3: #1195B4;
  --house-series-4: #96872D;
  --house-series-5: #773F9B;
  --house-series-6: #2E9E52;
  --house-series-plain: #BDB2A3;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --house-canvas: #17130F;     /* Ink 800 */
    --house-card: #1B1712;       /* Ink 700 */
    --house-hover: #211C16;      /* Ink 650 */
    --house-raised: #241E18;     /* Ink 600 */
    --house-line: #3A322A;       /* Ink 500 */
    --house-text: #F4EFE8;       /* Bone */
    --house-dim: #9A8F82;        /* Ink 300 */
    --house-amber-text: #FFB224; /* Amber 500 */
    --house-ok: #48C78E;
    --house-warn: #FF8A3D;
    --house-bad: #F2555A;
    --house-cool-2: #6793E3;
    --house-cool-1: #3A63B8;
    --house-neutral: #7D7266;
    --house-warm-1: #A93F37;
    --house-warm-2: #EC5B63;
    --house-series-1: #6793E3;
    --house-series-2: #A74449;
    --house-series-3: #1F9BBA;
    --house-series-4: #8A7B1D;
    --house-series-5: #834BA8;
    --house-series-6: #1D7D3E;
    --house-series-plain: #54493E;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --house-canvas: #17130F;
  --house-card: #1B1712;
  --house-hover: #211C16;
  --house-raised: #241E18;
  --house-line: #3A322A;
  --house-text: #F4EFE8;
  --house-dim: #9A8F82;
  --house-amber-text: #FFB224;
  --house-ok: #48C78E;
  --house-warn: #FF8A3D;
  --house-bad: #F2555A;
  --house-cool-2: #6793E3;
  --house-cool-1: #3A63B8;
  --house-neutral: #7D7266;
  --house-warm-1: #A93F37;
  --house-warm-2: #EC5B63;
  --house-series-1: #6793E3;
  --house-series-2: #A74449;
  --house-series-3: #1F9BBA;
  --house-series-4: #8A7B1D;
  --house-series-5: #834BA8;
  --house-series-6: #1D7D3E;
  --house-series-plain: #54493E;
}

:root[data-theme="light"] {
  color-scheme: light;
}

/* The ground and the two faces. */

body {
  background: var(--house-canvas);
  color: var(--house-text);
  font-family: var(--house-sans);
}

code, kbd, samp, pre {
  font-family: var(--house-mono);
}

a {
  color: var(--house-amber-text);
}

/* Selected text is Amber 300 behind Ink 800 at full opacity, in both
   appearances: the one place amber is a background. */
::selection {
  background: var(--house-amber-hi);
  color: var(--house-on-amber);
}

/* Focus is a 2px Amber 800 ring outside the control's own edge, so the edge
   never moves and nothing below it shifts. */
:focus-visible {
  outline: 2px solid var(--house-amber-ring);
  outline-offset: 0;
}

/* ════════════════════════════════════════════════════════════════════════
 * goto
 * ════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/JetBrainsMono-Bold.woff2") format("woff2");
}

:root {
  /* goto's own, made from the roles: the first series slot as a fill for
     data at rest, and the steps of the week-by-hour. */
  --goto-fill: color-mix(in srgb, var(--house-series-1) 16%, transparent);
  --goto-fill-hi: color-mix(in srgb, var(--house-series-1) 26%, transparent);
  --goto-shadow: 0 1px 2px rgb(23 19 15 / 6%), 0 8px 24px rgb(23 19 15 / 6%);
  --goto-lift: 0 18px 48px rgb(23 19 15 / 18%), 0 2px 6px rgb(23 19 15 / 10%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --goto-shadow: 0 1px 2px rgb(0 0 0 / 30%);
    --goto-lift: 0 18px 48px rgb(0 0 0 / 50%), 0 2px 6px rgb(0 0 0 / 30%);
  }
}
:root[data-theme="dark"] {
  --goto-shadow: 0 1px 2px rgb(0 0 0 / 30%);
  --goto-lift: 0 18px 48px rgb(0 0 0 / 50%), 0 2px 6px rgb(0 0 0 / 30%);
}


/* Ink: the dark column of the role table, held whatever the appearance,
   for what is always on Ink — goto's hero, and code. */
.ink, .hero, pre.code {
  color-scheme: dark;
  --house-canvas: #17130F;
  --house-card: #1B1712;
  --house-hover: #211C16;
  --house-raised: #241E18;
  --house-line: #3A322A;
  --house-text: #F4EFE8;
  --house-dim: #9A8F82;
  --house-amber-text: #FFB224;
  --house-ok: #48C78E;
  --house-warn: #FF8A3D;
  --house-bad: #F2555A;
  --house-series-1: #6793E3;
  --house-series-plain: #54493E;
  color: var(--house-text);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
h1, h2 { text-wrap: balance; letter-spacing: -0.01em; }
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-size: 0.92em; overflow-wrap: anywhere; }
kbd {
  font: 500 10.5px/1 var(--house-mono); color: var(--house-dim);
  border: 1px solid var(--house-line); border-bottom-width: 2px; border-radius: 4px;
  padding: 2px 5px; background: var(--house-card); white-space: nowrap;
}
[hidden] { display: none !important; }
.mono { font-family: var(--house-mono); }
.dim { color: var(--house-dim); }
.small { font-size: 12px; }
.prose { color: var(--house-text); max-width: 64ch; text-wrap: pretty; }
.sr, .skip:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 8px 12px; background: var(--house-card); border-radius: var(--house-r-button); }
.ico { width: 16px; height: 16px; flex: none; }

/* ── the eyebrow, the head ───────────────────────────────────────────── */
.eyebrow {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font: 500 10px/1.4 var(--house-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--house-amber-text);
}
.eyebrow a { color: inherit; }
.eyebrow .state, .eyebrow .keep { letter-spacing: 0.02em; text-transform: none; font-size: 11px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.head > div:first-child { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.head h1 { font-size: 26px; line-height: 1.15; font-weight: 700; }
.lede { color: var(--house-dim); max-width: 70ch; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.head-actions form { margin: 0; }

/* ── controls: buttons, fields, the segmented control ───────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 32px; padding: 6px 14px; border-radius: var(--house-r-button);
  font: 500 13px/1.2 var(--house-sans); color: var(--house-text);
  background: var(--house-raised); border: 1px solid var(--house-line);
  cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--house-hover); text-decoration: none; }
.btn:active { transform: translateY(0.5px); }
.btn.primary { background: var(--house-amber); border-color: var(--house-amber); color: var(--house-on-amber); font-weight: 600; }
.btn.primary:hover { background: var(--house-amber-hi); border-color: var(--house-amber-hi); }
.btn.primary:active { background: var(--house-amber-dn); border-color: var(--house-amber-dn); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--house-card); color: var(--house-dim); cursor: default; }
.btn.small { min-height: 26px; padding: 3px 10px; font-size: 12px; }
.btn.small .ico { width: 14px; height: 14px; }
.btn.wide { width: 100%; min-height: 38px; }
.btn.done { color: var(--house-ok); }
.icon-btn {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: var(--house-r-button); border: 1px solid transparent; background: transparent;
  color: var(--house-dim); cursor: pointer;
}
.icon-btn:hover { background: var(--house-hover); color: var(--house-text); text-decoration: none; }
.icon-btn.done { color: var(--house-ok); }

.field {
  width: 100%; min-width: 0; min-height: 34px; padding: 7px 10px;
  border-radius: var(--house-r-button); border: 1px solid var(--house-line);
  background: var(--house-card); color: var(--house-text);
}
.field.mono { font: 13px/1.4 var(--house-mono); }
.field.big { min-height: 44px; font-size: 15px; padding: 10px 14px; }
.field::placeholder { color: var(--house-dim); opacity: 1; }
.field:focus, .field:focus-visible {
  outline: 2px solid var(--house-amber-ring); outline-offset: 0;
  background: var(--house-raised); border-color: var(--house-amber-hi);
}
.field[aria-invalid="true"] { border-color: var(--house-bad); }
textarea.field { resize: vertical; line-height: 1.5; }
select.field { appearance: none; padding-right: 30px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--house-dim) 50%), linear-gradient(135deg, var(--house-dim) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input[type="color"] { width: 38px; height: 30px; padding: 2px; border: 1px solid var(--house-line); border-radius: var(--house-r-chip); background: var(--house-card); cursor: pointer; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--house-amber-dn); width: 15px; height: 15px; margin: 0; }

/* A picker is a setting: the selected segment is raised with an amber
   hairline, never an amber slab. */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: var(--house-r-button); background: var(--house-card); border: 1px solid var(--house-line); }
.seg a, .seg label span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 10px;
  border-radius: var(--house-r-chip); color: var(--house-dim); font: 12.5px/1.2 var(--house-mono); white-space: nowrap; cursor: pointer;
}
.seg a:hover, .seg label:hover span { color: var(--house-text); background: var(--house-hover); text-decoration: none; }
.seg a[aria-current="true"], .seg input:checked + span {
  color: var(--house-text); background: var(--house-raised); font-weight: 600; box-shadow: inset 0 0 0 1px var(--house-amber);
}
.seg .n { color: var(--house-dim); font-weight: 400; }
.seg.radios { display: flex; width: fit-content; }
.seg.radios label { display: inline-flex; }
.seg.radios input { position: absolute; opacity: 0; pointer-events: none; }
.seg.radios input:focus-visible + span { outline: 2px solid var(--house-amber-ring); }
.seg.radios .dim { font-family: var(--house-sans); font-size: 11.5px; font-weight: 400; }

.chip {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
  padding: 1px 7px; border-radius: var(--house-r-chip); background: var(--house-raised); border: 1px solid var(--house-line);
  font: 11px/1.5 var(--house-mono); color: var(--house-text); white-space: nowrap;
}
a.chip:hover { background: var(--house-hover); text-decoration: none; }
.chip.on { padding: 3px 9px; font-size: 11.5px; }
.chip .ico { width: 12px; height: 12px; color: var(--house-dim); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }

/* A state is a dot and its word, together, and the colour says how loudly
   to read it. Amber is never one. */
.state { display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px/1.2 var(--house-mono); white-space: nowrap; color: var(--house-dim); }
.state i { width: 7px; height: 7px; border-radius: 50%; background: var(--house-neutral); flex: none; }
.state.ok { color: var(--house-ok); } .state.ok i { background: var(--house-ok); }
.state.warn { color: var(--house-warn); } .state.warn i { background: var(--house-warn); }
.state.bad { color: var(--house-bad); } .state.bad i { background: var(--house-bad); }
.state.live-on i { animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .state.live-on i { animation: none; } }

.problem { color: var(--house-bad); font-size: 12.5px; margin-top: 4px; }
.problem.lead { margin: -8px 0 16px; font-size: 13.5px; }
.notice { margin: -8px 0 18px; padding: 9px 14px; border-radius: var(--house-r-row); background: var(--house-card); border: 1px solid var(--house-line); color: var(--house-text); }
.notice::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--house-ok); margin-right: 9px; vertical-align: 1px; }

/* ── panels and tiles ───────────────────────────────────────────────── */
.panel { background: var(--house-card); border: 1px solid var(--house-line); border-radius: var(--house-r-panel); padding: 16px 18px; min-width: 0; }
.panel > .eyebrow { margin-bottom: 12px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head h2 { font-size: 14px; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--house-dim); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.sw.s1 { background: var(--house-series-1); }
.sw.dash { height: 0; width: 14px; border-top: 2px dashed var(--house-series-plain); border-radius: 0; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack.narrow { max-width: 360px; }
.link-side .stack form, .link-side .stack > .btn, .link-side .stack form .btn { width: 100%; justify-content: flex-start; }
.act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.row-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--house-card); border: 1px solid var(--house-line); border-radius: var(--house-r-panel); padding: 13px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile-k { font: 500 10px/1.4 var(--house-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--house-dim); }
.tile-v { font: 700 26px/1.15 var(--house-mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tile-d { font-size: 12px; color: var(--house-dim); line-height: 1.4; }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── the lockup ─────────────────────────────────────────────────────── */
.lockup { display: inline-flex; align-items: center; gap: 9px; color: var(--house-text); text-decoration: none; flex: none; }
.lockup:hover { text-decoration: none; }
.lockup .mark { width: 30px; height: 19px; color: var(--house-amber); flex: none; }
.lockup-text { display: flex; flex-direction: column; gap: 3px; }
.wordmark { font: 700 21px/1 var(--house-mono); letter-spacing: -0.04em; }
.subtitle { font: 11px/1 var(--house-sans); color: var(--house-dim); white-space: nowrap; }
.maker { display: block; color: var(--house-dim); opacity: 0.75; line-height: 0; width: fit-content; }
.maker:hover { opacity: 1; }
.maker svg { height: 14px; width: auto; }

/* ════ the dashboard ═══════════════════════════════════════════════════ */
body.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px;
  padding: 18px 0 16px; border-right: 1px solid var(--house-line); background: var(--house-canvas);
}
.side-top { display: flex; flex-direction: column; gap: 14px; padding: 0 16px; }
.palette-open {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px 6px 10px; min-height: 32px;
  border-radius: var(--house-r-button); border: 1px solid var(--house-line); background: var(--house-card);
  color: var(--house-dim); cursor: pointer; font-size: 13px;
}
.palette-open:hover { background: var(--house-hover); }
.palette-open span { flex: 1; text-align: left; }
.side-nav, .side-tags { display: flex; flex-direction: column; }
.side-nav a, .side-tags a {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 5px 16px 5px 19px;
  color: var(--house-text); text-decoration: none;
}
.side-nav a:hover, .side-tags a:hover { background: var(--house-hover); }
.side-nav .rail, .side-tags .rail, tr.row td:first-child::before, .palette-list li::before, .shot-row .rail {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--house-rail); background: transparent; content: "";
}
.side-nav a.on, .side-tags a.on { background: var(--house-raised); font-weight: 600; }
.side-nav a.on .rail { background: var(--house-amber); }
.side-nav .ico { color: var(--house-dim); }
.side-nav a.on .ico { color: var(--house-text); }
.side-nav .label, .side-tags .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count { font: 11px var(--house-mono); color: var(--house-dim); }
.side-k { padding: 0 16px 6px 19px; font: 500 10px/1.4 var(--house-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--house-dim); }
.side-tags a { font: 12.5px/1.3 var(--house-mono); min-height: 28px; }
.side-foot { margin-top: auto; padding: 14px 16px 0; border-top: 1px solid var(--house-line); display: flex; flex-direction: column; gap: 12px; }
.who { display: flex; flex-direction: column; min-width: 0; }
.who-name { font-weight: 600; font-size: 13px; }
.who-mail { font: 11px var(--house-mono); color: var(--house-dim); overflow: hidden; text-overflow: ellipsis; }
.side-actions { display: flex; gap: 2px; margin-left: -6px; }
.side-actions form { margin: 0; }
.side-maker { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-version { font: 11px var(--house-mono); color: var(--house-dim); }
.main { padding: 28px 36px 72px; min-width: 0; max-width: 1360px; width: 100%; }

@media (max-width: 900px) {
  body.app { display: block; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--house-line); }
  .side-top { flex-direction: row; align-items: center; padding: 0; flex: 1; }
  .side-top .subtitle { display: none; }
  .palette-open { width: auto; margin-left: auto; }
  .palette-open span, .palette-open kbd { display: none; }
  .side-nav { flex-direction: row; overflow-x: auto; width: 100%; order: 3; }
  .side-nav a { padding: 5px 12px; border-radius: var(--house-r-button); }
  .side-nav .rail, .side-nav .count { display: none; }
  .side-group { display: none; }
  .side-foot { margin: 0; padding: 0; border: 0; flex-direction: row; align-items: center; }
  .side-foot .who, .side-foot .maker { display: none; }
  .side-foot .side-maker { order: -1; }
  .main { padding: 20px 16px 56px; }
}

/* ── making a link ──────────────────────────────────────────────────── */
.make { padding: 14px; margin-bottom: 14px; box-shadow: var(--goto-shadow); }
.make-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.make-ends .field { min-height: 44px; font-size: 13px; }
.make-row .btn.primary { min-height: 44px; padding: 0 22px; font-size: 14px; }
.slug-field { display: flex; align-items: center; min-width: 0; border-radius: var(--house-r-button); border: 1px solid var(--house-line); background: var(--house-card); padding-right: 4px; }
.slug-field:focus-within { outline: 2px solid var(--house-amber-ring); background: var(--house-raised); border-color: var(--house-amber-hi); }
.slug-field .field { border: 0; background: transparent; outline: none; padding-left: 1px; min-height: 42px; }
.slug-field .field:focus { outline: none; background: transparent; }
.slug-prefix { padding-left: 12px; font: 13px var(--house-mono); color: var(--house-dim); white-space: nowrap; }
.make-hint { margin-top: 9px; font-size: 12.5px; color: var(--house-dim); }
.make-hint.ok { color: var(--house-ok); }
.make-hint.bad { color: var(--house-bad); }
@media (max-width: 760px) { .make-row { grid-template-columns: minmax(0, 1fr); } }

.made { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px 20px; align-items: center; margin-bottom: 14px; }
.made-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.made-link { font: 700 22px/1.2 var(--house-mono); letter-spacing: -0.02em; }
.made-link a { color: inherit; }
.made-dest { font-size: 12px; color: var(--house-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.made-act { display: flex; gap: 8px; flex-wrap: wrap; }
.made-qr { border-radius: var(--house-r-chip); border: 1px solid var(--house-line); }
@media (max-width: 760px) { .made { grid-template-columns: minmax(0, 1fr); } .made-qr { display: none; } }

.short { font-family: var(--house-mono); white-space: nowrap; }
.short-host { color: var(--house-dim); font-weight: 400; }
.short-slug { color: var(--house-text); font-weight: 600; }

/* ── the list ───────────────────────────────────────────────────────── */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search .ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--house-dim); pointer-events: none; }
.search .field { padding-left: 32px; }
.sort { margin-left: auto; }
.sort .field { min-height: 32px; font-size: 13px; }
.table-wrap { overflow-x: auto; background: var(--house-card); border: 1px solid var(--house-line); border-radius: var(--house-r-panel); }
.table-wrap.flush { border: 0; border-radius: 0; background: transparent; margin: 0 -18px -16px; }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 10px 12px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--house-line);
  font: 500 10px/1.4 var(--house-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--house-dim);
}
thead th.sorted { color: var(--house-text); }
th.num, td.num { text-align: right; }
table.links td { padding: 9px 12px; vertical-align: middle; }
table.links td:first-child { padding-left: 18px; }
tr.row { cursor: pointer; }
tr.row:hover { background: var(--house-hover); }
tr.row td:first-child { position: relative; }
tr.row.selected { background: var(--house-raised); }
tr.row.selected td:first-child::before { background: var(--house-amber); }
tr.row.selected .short-slug { font-weight: 700; }
.c-link { min-width: 0; max-width: 0; width: 56%; }
.row-main { display: inline-flex; align-items: center; gap: 6px; color: var(--house-text); max-width: 100%; overflow: hidden; }
.row-main .short { overflow: hidden; text-overflow: ellipsis; }
.row-main:hover { text-decoration: none; }
.row-main:hover .short-slug { text-decoration: underline; text-underline-offset: 3px; }
.glyph { color: var(--house-dim); display: inline-flex; }
.glyph .ico { width: 13px; height: 13px; }
.row-dest { display: block; font: 12px/1.45 var(--house-mono); color: var(--house-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 3px; }
.row-title { font-size: 12.5px; color: var(--house-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.row-note { display: block; margin-top: 3px; font: 11px/1.3 var(--house-mono); color: var(--house-dim); white-space: nowrap; }
.c-clicks { font: 600 13px var(--house-mono); font-variant-numeric: tabular-nums; }
.c-when { font: 12px var(--house-mono); color: var(--house-dim); white-space: nowrap; }
.c-act { white-space: nowrap; width: 1%; }
.c-act .icon-btn { width: 28px; height: 28px; }
.spark { width: 56px; height: 18px; overflow: visible; }
.spark-base { stroke: var(--house-line); stroke-width: 1; }
.spark-bars { fill: var(--house-series-1); }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; font-size: 12.5px; }
.pager .dim { margin-right: auto; font-family: var(--house-mono); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px 16px; text-align: center; color: var(--house-dim); background: var(--house-card); border: 1px solid var(--house-line); border-radius: var(--house-r-panel); }
.empty.slim { padding: 28px 16px; margin-bottom: 14px; }
.empty-mark { width: 64px; height: 41px; color: var(--house-line); }
.empty p { max-width: 52ch; }
@media (max-width: 760px) {
  .c-spark, .c-when, thead .c-when { display: none; }
  .c-link .short-domain { display: none; }
  .c-act .icon-btn + .icon-btn { display: none; }
  .sort { margin-left: 0; }
}

/* ── the form ───────────────────────────────────────────────────────── */
.link-form { display: flex; flex-direction: column; gap: 14px; max-width: 960px; }
.form-sec { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; }
.form-sec > .eyebrow { margin-bottom: -2px; }
.fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; border: 0; padding: 0; margin: 0; }
.fld.inline { flex-direction: row; align-items: center; gap: 8px; }
.fld.grow { flex: 1; }
.fld-k { font-size: 12px; font-weight: 600; color: var(--house-text); padding: 0; }
legend.fld-k { margin-bottom: 5px; }
.fld-hint { font-size: 12px; color: var(--house-dim); line-height: 1.45; }
.fld-hint.ok { color: var(--house-ok); }
.fld-hint.bad { color: var(--house-bad); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.check-fld { justify-content: flex-start; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: start; }
.add-person > div { padding-top: 23px; }
@media (max-width: 760px) { .grid2, .grid3, .grid4 { grid-template-columns: minmax(0, 1fr); } }
.presets { display: flex; flex-wrap: wrap; gap: 4px; }
button.chip { cursor: pointer; }
button.chip:hover { background: var(--house-hover); }
.once-fld { gap: 6px; }
.once-label { display: inline-flex; align-items: center; gap: 7px; }
.once-label .ico { width: 15px; height: 15px; color: var(--house-dim); }
.with-unit { display: flex; align-items: center; gap: 8px; }
.with-unit span { font-size: 12.5px; color: var(--house-dim); }
.with-unit.pct { flex: none; width: 96px; }
.pair { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; margin-bottom: 8px; align-items: center; }
.pair .cc { width: 64px; text-transform: uppercase; text-align: center; }
fieldset.fld > .btn { width: fit-content; }
details.utm { border-top: 1px solid var(--house-line); padding-top: 12px; }
details.utm summary { cursor: pointer; font-size: 13px; font-weight: 600; list-style: none; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
details.utm summary::before { content: "▸"; color: var(--house-dim); font-size: 11px; }
details.utm[open] summary::before { content: "▾"; }
details.utm summary .dim { font-weight: 400; font-size: 12px; }
details.utm > .grid3 { margin: 12px 0 8px; }
.form-foot { display: flex; gap: 8px; position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(to top, var(--house-canvas) 70%, transparent); }
.form-foot .btn { min-height: 38px; padding: 0 20px; }

.og { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.og-fields { display: flex; flex-direction: column; gap: 12px; }
.og-card { border: 1px solid var(--house-line); border-radius: var(--house-r-row); overflow: hidden; background: var(--house-canvas); }
.og-img { aspect-ratio: 1200 / 630; display: grid; place-items: center; background: var(--house-raised) center / cover no-repeat; color: var(--house-dim); }
.og-img.has { color: transparent; }
.og-img .ico { width: 28px; height: 28px; }
.og-card figcaption { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.og-host { font: 10.5px var(--house-mono); color: var(--house-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.og-title { font-weight: 600; font-size: 14px; line-height: 1.3; }
.og-desc { font-size: 12.5px; color: var(--house-dim); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
@media (max-width: 880px) { .og { grid-template-columns: minmax(0, 1fr); } }

/* ── one link ───────────────────────────────────────────────────────── */
.ended { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin: -8px 0 16px; }
.ended-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ended-say { font-size: 14px; max-width: 72ch; text-wrap: pretty; }
.link-head { align-items: flex-start; }
.link-id { gap: 8px !important; }
.link-title { font: 700 clamp(22px, 3.2vw, 32px)/1.15 var(--house-mono) !important; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.link-title .short { white-space: normal; }
.link-dest a { display: inline-flex; align-items: flex-start; gap: 6px; font: 13px/1.5 var(--house-mono); color: var(--house-dim); overflow-wrap: anywhere; }
.link-dest a:hover { color: var(--house-text); }
.link-dest .ico { margin-top: 2px; width: 14px; height: 14px; }
.link-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; }
.link-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.link-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; }
@media (max-width: 1180px) { .link-grid { grid-template-columns: minmax(0, 1fr); } .link-side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.drows { display: flex; flex-direction: column; gap: 2px; }
.drow { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 6px 8px; border-radius: var(--house-r-row); }
.drow:hover { background: var(--house-hover); }
.dk { font-size: 11.5px; color: var(--house-dim); }
.dv { font: 12px/1.45 var(--house-mono); overflow-wrap: anywhere; }
.dv .prose { font-family: var(--house-sans); font-size: 12.5px; }
.check-line { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 12px; margin-bottom: 4px; overflow-wrap: anywhere; }
.link-side .panel > form, .link-side .panel > .btn { margin-top: 10px; }
.qr { display: flex; flex-direction: column; gap: 12px; }
.qr-img { width: 168px; height: 168px; border-radius: var(--house-r-chip); border: 1px solid var(--house-line); background: var(--house-page); }
.qr-opts { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.qr-dl { display: flex; gap: 8px; }

/* ── the board ──────────────────────────────────────────────────────── */
.board { display: flex; flex-direction: column; gap: 14px; }
.board .tiles { margin: 0; }
.board-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.board-bar .btn { margin-left: auto; }
.board .filters { margin: 0; }
.live .state { font-size: 11px; }
.chart { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: 200px auto; }
.chart-y { position: relative; grid-row: 1; }
.chart-y span { position: absolute; right: 10px; transform: translateY(50%); font: 10.5px var(--house-mono); color: var(--house-dim); font-variant-numeric: tabular-nums; }
.chart-plot { position: relative; grid-row: 1; grid-column: 2; }
.chart-plot svg { width: 100%; height: 100%; overflow: visible; }
.chart .grid { stroke: var(--house-line); stroke-width: 1; }
.chart .area { fill: var(--goto-fill); }
.chart .line { fill: none; stroke: var(--house-series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .before { fill: none; stroke: var(--house-series-plain); stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart .guide { stroke: var(--house-dim); stroke-width: 1; opacity: 0; }
.chart.hover .guide { opacity: 0.5; }
.chart-x { grid-column: 2; position: relative; height: 22px; }
.chart-x span { position: absolute; top: 6px; transform: translateX(-50%); font: 10.5px var(--house-mono); color: var(--house-dim); white-space: nowrap; }
.chart-x span:first-child { transform: none; }
.chart-x span:last-child:not(:first-child) { transform: translateX(-100%); }
.chart-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--house-series-1); border: 2px solid var(--house-card); opacity: 0; pointer-events: none; }
.chart-tip {
  position: absolute; top: 0; z-index: 3; pointer-events: none; opacity: 0; min-width: 150px;
  background: var(--house-card); border: 1px solid var(--house-line); border-radius: var(--house-r-row); box-shadow: var(--goto-lift);
  padding: 8px 10px; font-size: 12px; transition: opacity 80ms;
}
.chart.hover .chart-tip, .chart.hover .chart-dot { opacity: 1; }
.chart-tip b { display: block; font-weight: 600; margin-bottom: 4px; }
.chart-tip .t { display: grid; grid-template-columns: 10px 1fr auto; gap: 2px 8px; align-items: center; }
.chart-tip .t span:nth-child(3n) { font-family: var(--house-mono); text-align: right; }
/* The breakdowns flow in two columns like a newspaper's, so a short list
   never leaves a hole beside a long one. */
.breakdowns { columns: 2; column-gap: 14px; }
.breakdowns > .panel { break-inside: avoid; margin-bottom: 14px; }
.breakdowns > .panel.span { column-span: all; }
@media (max-width: 1100px) { .breakdowns { columns: 1; } }
.bars { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 38px; gap: 10px; align-items: center; padding: 6px 8px; border-radius: var(--house-r-chip); color: var(--house-text); overflow: hidden; }
.bar:hover { text-decoration: none; background: var(--house-hover); }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--goto-fill); border-radius: var(--house-r-chip); transition: width 400ms cubic-bezier(.2,.7,.2,1); }
.bar:hover .bar-fill { background: var(--goto-fill-hi); }
.bar-label { position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.bar-label .k { color: var(--house-dim); font-size: 11.5px; margin-right: 2px; }
.bar-label .mono { font-size: 12.5px; }
.bar-n { position: relative; font: 600 12.5px var(--house-mono); font-variant-numeric: tabular-nums; }
.bar-p { position: relative; font: 11px var(--house-mono); color: var(--house-dim); text-align: right; }
.heat { display: flex; flex-direction: column; gap: 3px; }
.heat-row { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; }
.span .heat i { aspect-ratio: auto; height: 18px; }
.heat-k { font: 10.5px var(--house-mono); color: var(--house-dim); }
.heat i { display: block; aspect-ratio: 1; border-radius: 2px; background: var(--house-raised); }
.heat i.h1 { background: color-mix(in srgb, var(--house-series-1) 18%, var(--house-raised)); }
.heat i.h2 { background: color-mix(in srgb, var(--house-series-1) 36%, var(--house-raised)); }
.heat i.h3 { background: color-mix(in srgb, var(--house-series-1) 56%, var(--house-raised)); }
.heat i.h4 { background: color-mix(in srgb, var(--house-series-1) 78%, var(--house-raised)); }
.heat i.h5 { background: var(--house-series-1); }
.heat-hours span { font: 10px var(--house-mono); color: var(--house-dim); }
table.grid td { padding: 7px 12px; border-top: 1px solid transparent; vertical-align: top; }
table.grid tbody tr:hover { background: var(--house-hover); }
table.grid td.mono { font-size: 12px; }
.recent td:first-child, .recent th:first-child { padding-left: 18px; }
.recent tr.bot td { color: var(--house-dim); }
.recent tr.fresh { animation: fresh 2.4s ease-out; }
@keyframes fresh { from { background: var(--house-raised); } to { background: transparent; } }
.pad { padding: 14px 0 2px; }

/* ── settings, the API ──────────────────────────────────────────────── */
.settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.settings #people, .settings #import, .settings #keys { grid-column: 1 / -1; }
@media (max-width: 1000px) { .settings { grid-template-columns: minmax(0, 1fr); } }
.settings .panel { display: flex; flex-direction: column; gap: 12px; }
.settings .panel > .eyebrow { margin-bottom: 0; }
.key-once { padding: 12px 14px; border-radius: var(--house-r-row); background: var(--house-raised); border: 1px solid var(--house-line); display: flex; flex-direction: column; gap: 8px; }
.copy-field { display: flex; gap: 8px; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.report { padding: 10px 14px; border-radius: var(--house-r-row); background: var(--house-raised); }
.summary-line { font-size: 13px; }
.skipped { margin-top: 6px; padding-left: 18px; font-size: 12.5px; color: var(--house-dim); }
.maker-line { display: flex; align-items: center; gap: 12px; font: 11px var(--house-mono); color: var(--house-dim); }
.maker-line a { color: var(--house-dim); }
.docs { display: flex; flex-direction: column; gap: 12px; max-width: 980px; }
.endpoint h2 { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.method { font: 700 10.5px/1 var(--house-mono); letter-spacing: 0.06em; padding: 4px 6px; border-radius: var(--house-r-chip); background: var(--house-raised); border: 1px solid var(--house-line); }
.endpoint .prose { margin: 8px 0 10px; color: var(--house-dim); }
pre.code { margin: 0; padding: 12px 14px; border-radius: var(--house-r-row); background: var(--house-raised); font: 12px/1.6 var(--house-mono); overflow-x: auto; }
pre.code::selection, pre.code *::selection { background: var(--house-amber-hi); color: var(--house-on-amber); }

/* ── the palette, the shortcuts ─────────────────────────────────────── */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; justify-items: center; align-items: start; padding: 12vh 16px 16px; background: rgb(23 19 15 / 38%); backdrop-filter: blur(2px); }
.palette { width: min(640px, 100%); background: var(--house-card); border: 1px solid var(--house-line); border-radius: var(--house-r-panel); box-shadow: var(--goto-lift); overflow: hidden; }
.palette-field { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--house-line); color: var(--house-dim); }
.palette-input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 15px; color: var(--house-text); }
.palette-input:focus-visible { outline: none; }
.palette-list { list-style: none; padding: 6px 0; max-height: 52vh; overflow-y: auto; }
.palette-list li { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 16px 7px 15px; cursor: pointer; }
.palette-list li .ico-slot { font: 13px var(--house-mono); color: var(--house-dim); text-align: center; }
.palette-list li .t { display: flex; flex-direction: column; min-width: 0; }
.palette-list li .t span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-list li .t small { font: 11.5px var(--house-mono); color: var(--house-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-list li .meta { font: 11px var(--house-mono); color: var(--house-dim); }
.palette-list li[aria-selected="true"] { background: var(--house-raised); }
.palette-list li[aria-selected="true"]::before { background: var(--house-amber); }
.palette-list li[aria-selected="true"] .t span:first-child { font-weight: 600; }
.palette-list .none { padding: 14px 16px; color: var(--house-dim); cursor: default; display: block; }
.palette-foot { padding: 8px 14px; border-top: 1px solid var(--house-line); font-size: 11.5px; color: var(--house-dim); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.help { width: min(480px, 100%); box-shadow: var(--goto-lift); }
.help h2 { font-size: 18px; margin: 4px 0 14px; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center; font-size: 13px; }
.keys dt { display: flex; gap: 4px; }

/* ════ public pages ════════════════════════════════════════════════════ */
body.public { font-size: 15px; display: flex; flex-direction: column; min-height: 100vh; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; width: 100%; }
@media (max-width: 720px) { .wrap { padding: 0 16px; } }
.pub-top { border-bottom: 1px solid var(--house-line); background: var(--house-canvas); }
.pub-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.pub-main { flex: 1; }
.pub-center { display: grid; place-items: center; padding: 10vh 16px 56px; }
.pub-card { width: min(460px, 100%); padding: 28px 28px 24px; box-shadow: var(--goto-shadow); display: flex; flex-direction: column; gap: 10px; }
.pub-card.wide { width: min(640px, 100%); }
.pub-card h1 { font-size: 22px; line-height: 1.2; }
.pub-card .stack { margin-top: 10px; }
.short-h { font: 700 22px/1.25 var(--house-mono) !important; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.short-h .short { white-space: normal; }
.pub-dest { font: 14px/1.5 var(--house-mono); overflow-wrap: anywhere; padding: 12px 14px; border-radius: var(--house-r-row); background: var(--house-raised); }
.pub-stats { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.pub-stats .chart { grid-template-rows: 140px auto; }
.pub-foot { border-top: 1px solid var(--house-line); }
.pub-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; font: 11px var(--house-mono); color: var(--house-dim); }
.pub-foot .maker svg { height: 16px; }

/* ── goto's own page ───────────────────────────────────────────────── */
/* The hero is on Ink in both appearances. The product is drawn on it with
   the real components and stands over the hero's foot, where the page's
   own canvas shows through. */
.pub-top-act { display: flex; align-items: center; gap: 22px; }
.pub-nav { display: flex; gap: 22px; font-size: 13.5px; }
.pub-nav a { color: var(--house-dim); }
.pub-nav a:hover { color: var(--house-text); text-decoration: none; }
@media (max-width: 900px) { .pub-nav { display: none; } }
html:has(.hero) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(.hero) { scroll-behavior: auto; } }
[id] { scroll-margin-top: 24px; }

.hero {
  --hang: 190px;
  position: relative; isolation: isolate; padding: 88px 0 0;
  background: linear-gradient(to bottom, var(--house-canvas) calc(100% - var(--hang)), transparent 0);
}
/* a dotted ground behind the words, fading out; the mask is alpha only */
.hero::before {
  content: ""; position: absolute; inset: 0 0 var(--hang); z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--house-line) 1px, transparent 1.4px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 60% 70% at 78% 18%, black, transparent 72%);
}
.hero h1 { margin: 16px 0 0; font-size: clamp(34px, 5.6vw, 66px); line-height: 1.02; letter-spacing: -0.038em; font-weight: 750; max-width: 15.5em; }
.hero .lede { margin-top: 22px; font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.6; max-width: 680px; }
.hero .lede .mono { color: var(--house-text); font-size: 0.9em; }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 30px; }
.hero-act .btn { min-height: 44px; padding: 0 20px; font-size: 14px; }
.hero-act .btn.primary { padding: 0 26px; }
.hero-act .dim { font-size: 13px; margin-left: 6px; }
.hero-act .mono { color: var(--house-text); }

/* the one field on an organisation's page: where a link leads */
.peek { display: flex; gap: 8px; flex: 1 1 340px; max-width: 470px; }
.peek-field { display: flex; align-items: center; flex: 1; min-width: 0; border-radius: var(--house-r-button); border: 1px solid var(--house-line); background: var(--house-card); }
.peek-field:focus-within { outline: 2px solid var(--house-amber-ring); border-color: var(--house-amber-hi); background: var(--house-raised); }
.peek-field .field { border: 0; background: transparent; padding-left: 1px; min-height: 42px; }
.peek-field .field:focus { outline: none; background: transparent; }
@media (max-width: 560px) { .peek { flex-direction: column; } }

/* the product, drawn */
.shot {
  position: relative; margin-top: 60px; text-align: left; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--house-line); background: var(--house-canvas);
  box-shadow: 0 50px 100px -20px rgb(0 0 0 / 55%), 0 24px 48px -24px rgb(0 0 0 / 50%);
}
.shot-bar { display: flex; justify-content: center; padding: 9px 12px; border-bottom: 1px solid var(--house-line); }
.shot-addr { display: inline-flex; align-items: center; gap: 6px; min-width: min(320px, 70%); justify-content: center; padding: 4px 14px; border-radius: var(--house-r-chip); background: var(--house-raised); font: 11.5px var(--house-mono); color: var(--house-dim); }
.shot-addr .ico { width: 11px; height: 11px; }
.shot-body { display: grid; grid-template-columns: 178px minmax(0, 1fr); }
.shot-side { display: flex; flex-direction: column; padding: 14px 0; border-right: 1px solid var(--house-line); }
.shot-lockup { display: flex; align-items: center; gap: 7px; padding: 0 14px 14px; }
.shot-lockup .mark { width: 24px; height: 15px; color: var(--house-amber); }
.shot-lockup .wordmark { font-size: 16px; }
.shot-nav, .shot-tag { display: flex; align-items: center; gap: 9px; padding: 6px 14px; font-size: 12.5px; color: var(--house-text); }
.shot-nav .ico { width: 14px; height: 14px; color: var(--house-dim); }
.shot-nav .label, .shot-tag .label { flex: 1; }
.shot-nav.on { background: var(--house-raised); font-weight: 600; }
.shot-nav.on .ico { color: var(--house-text); }
.shot-side .side-k { padding: 16px 14px 4px; }
.shot-tag { font: 11.5px var(--house-mono); padding: 4px 14px; }
.shot-main { display: flex; flex-direction: column; gap: 12px; padding: 14px; min-width: 0; }
.shot-make { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 8px; padding: 10px; border: 1px solid var(--house-line); border-radius: var(--house-r-panel); background: var(--house-card); }
.shot-field { display: flex; align-items: center; min-width: 0; min-height: 36px; padding: 0 11px; border-radius: var(--house-r-button); border: 1px solid var(--house-line); background: var(--house-canvas); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-slug { font-weight: 600; }
.shot-slug .dim { font-weight: 400; }
.shot-make .btn { min-height: 36px; padding: 0 18px; }
.shot-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.shot-list { border: 1px solid var(--house-line); border-radius: var(--house-r-panel); background: var(--house-card); overflow: hidden; }
.shot-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 56px 58px; gap: 12px; align-items: center; padding: 11px 14px 11px 17px; border-bottom: 1px solid var(--house-line); }
.shot-row:last-child { border-bottom: 0; }
.shot-row.on { background: var(--house-raised); }
.shot-row.on .rail { background: var(--house-amber); }
.shot-link { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12.5px; }
.shot-link .short { overflow: hidden; text-overflow: ellipsis; }
.shot-link .row-dest { font-size: 11px; }
.shot-row .c-clicks { font-size: 12px; text-align: right; }
.shot-detail { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px 12px; border: 1px solid var(--house-line); border-radius: var(--house-r-panel); background: var(--house-card); }
.shot-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.shot .chart { grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: 104px auto; margin: 6px 0 0; }
.shot .chart-y span { right: 7px; }
.shot .chart-x span:nth-child(even) { display: none; }
.shot-k { margin-top: 4px; }
.shot .bars { gap: 1px; }
.shot .bar { grid-template-columns: minmax(0, 1fr) auto 32px; padding: 4px 6px; }
.shot .bar-label { font-size: 12px; }
@media (max-width: 1040px) { .shot-body { grid-template-columns: minmax(0, 1fr); } .shot-side { display: none; } }
@media (max-width: 780px) {
  .hero { --hang: 110px; padding-top: 56px; }
  .shot { margin-top: 40px; }
  .shot-cols { grid-template-columns: minmax(0, 1fr); }
  .shot-make { grid-template-columns: minmax(0, 1fr) auto; }
  .shot-make .shot-field:first-child { display: none; }
  .shot-row { grid-template-columns: minmax(0, 1fr) auto 58px; }
  .shot-row .spark { display: none; }
  .shot-detail .shot-k, .shot-detail .bars { display: none; }
}

/* the numbers under the picture */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 64px; }
.fact { display: flex; flex-direction: column; gap: 8px; padding: 2px 24px 2px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--house-line); }
.fact-v { font: 700 clamp(26px, 3vw, 36px)/1.1 var(--house-mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.fact-k { font-size: 13.5px; color: var(--house-dim); max-width: 30ch; text-wrap: pretty; }
@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
}

.home-sec { padding-top: 96px; }
.sec-head { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(25px, 3.1vw, 38px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 720; }
.sec-head .lede { font-size: 16px; }

/* one thing it does, with the product beside it */
.spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px 72px; align-items: center; padding: 44px 0; border-top: 1px solid var(--house-line); }
.spot.flip .spot-text { order: 2; }
.spot-text h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 14px; }
.spot-text p { color: var(--house-dim); font-size: 15px; max-width: 54ch; text-wrap: pretty; }
.spot-text p + p { margin-top: 12px; }
.spot-text .mono { color: var(--house-text); }
.spot-art { box-shadow: var(--goto-shadow); }
.spot-art.panel { padding: 18px 20px; }
.spot-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.spot-tiles > div { display: flex; flex-direction: column; gap: 3px; }
.spot-tiles .tile-v { font-size: 22px; }
.routes-from { font-size: 17px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--house-line); }
.routes ul { list-style: none; padding: 0; margin: 0; }
.routes li { display: grid; grid-template-columns: 16px 148px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--house-line); font-size: 13.5px; }
.routes li:last-child { border-bottom: 0; padding-bottom: 2px; }
.routes .ico { color: var(--house-dim); }
.routes-to { font-size: 12px; color: var(--house-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.handed { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; box-shadow: none; }
.handed-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 16px 14px; border-radius: var(--house-r-panel); background: var(--house-page); border: 1px solid var(--house-page-line); box-shadow: var(--goto-shadow); }
.handed-qr svg { width: 150px; height: 150px; }
.handed-qr .short { font-size: 12px; }
.handed-qr .short-host { color: var(--house-page-dim); }
.handed-qr .short-slug { color: var(--house-page-text); }
.handed .og-card { display: flex; flex-direction: column; background: var(--house-card); box-shadow: var(--goto-shadow); }
.handed .og-img { flex: 1; min-height: 120px; aspect-ratio: auto; color: var(--house-text);
  background: linear-gradient(140deg, color-mix(in srgb, var(--house-series-1) 42%, var(--house-raised)), color-mix(in srgb, var(--house-series-3) 30%, var(--house-raised))); }
.handed .og-img .ico { opacity: 0.45; }
.handed-plus { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 12px 16px; border-radius: var(--house-r-row); border: 1px solid var(--house-line); background: var(--house-card); font-size: 13px; box-shadow: var(--goto-shadow); }
@media (max-width: 900px) { .spot { grid-template-columns: minmax(0, 1fr); padding: 36px 0; } .spot.flip .spot-text { order: 0; } }
@media (max-width: 540px) {
  .handed { grid-template-columns: minmax(0, 1fr); }
  .routes li { grid-template-columns: 16px minmax(0, 1fr); }
  .routes-to { grid-column: 2; margin-top: -6px; }
}

.grid-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 44px; }
.spot + .grid-feats { padding-top: 44px; border-top: 1px solid var(--house-line); }
@media (max-width: 860px) { .grid-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-feats { grid-template-columns: minmax(0, 1fr); } }
.feature .ico { width: 20px; height: 20px; color: var(--house-dim); margin-bottom: 12px; }
.feature h3 { font-size: 15.5px; margin-bottom: 6px; }
.feature p { color: var(--house-dim); font-size: 14px; text-wrap: pretty; }

/* where it runs, and what it costs */
.band { margin-top: 96px; padding-bottom: 96px; background: var(--house-card); border-top: 1px solid var(--house-line); border-bottom: 1px solid var(--house-line); }
.band .home-sec { padding-top: 80px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 26px 26px 24px; border-radius: var(--house-r-panel); border: 1px solid var(--house-line); background: var(--house-canvas); }
.plan-k { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; }
.plan-k .ico { color: var(--house-dim); }
.plan-price { font: 700 clamp(20px, 2.2vw, 26px)/1.2 var(--house-mono); letter-spacing: -0.03em; }
.plan .btn { margin-top: auto; min-height: 40px; }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.ticks li { position: relative; padding-left: 24px; font-size: 14px; text-wrap: pretty; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 0.42em; width: 9px; height: 5px; border-left: 2px solid var(--house-dim); border-bottom: 2px solid var(--house-dim); transform: rotate(-45deg); }
.ticks.no li::before { top: 0.72em; width: 9px; height: 0; border-left: 0; transform: none; }

/* the second step holds the record, so it is the widest */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.step { display: flex; flex-direction: column; gap: 9px; padding: 20px 18px; border-radius: var(--house-r-panel); border: 1px solid var(--house-line); background: var(--house-card); min-width: 0; }
.step-n { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 4px; border-radius: 50%; border: 1px solid var(--house-line); background: var(--house-raised); font: 700 12px var(--house-mono); }
.step h3 { font-size: 15px; }
.step p { font-size: 13.5px; color: var(--house-dim); text-wrap: pretty; }
.step .mono { color: var(--house-text); }
table.dns { width: 100%; font: 11px/1.4 var(--house-mono); border: 1px solid var(--house-line); border-radius: var(--house-r-chip); border-collapse: separate; border-spacing: 0; overflow: hidden; }
table.dns th { padding: 5px 8px; text-align: left; font-weight: 500; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--house-dim); background: var(--house-raised); border-bottom: 1px solid var(--house-line); }
table.dns td { padding: 5px 8px; vertical-align: top; white-space: nowrap; }
table.dns tr.dim td:last-child { white-space: normal; }
table.dns tr.dim td { color: var(--house-dim); border-top: 1px dashed var(--house-line); }
@media (max-width: 1040px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.kept-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kept-col { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px; border-radius: var(--house-r-panel); border: 1px solid var(--house-line); background: var(--house-card); }
.kept .sec-head h2 { font-size: clamp(21px, 2.5vw, 30px); }
@media (max-width: 760px) { .kept-cols { grid-template-columns: minmax(0, 1fr); } }

.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; align-items: start; }
.faq details { border-top: 1px solid var(--house-line); padding: 16px 0; }
.faq summary { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 18px/1.1 var(--house-mono); color: var(--house-dim); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 10px; color: var(--house-dim); font-size: 14.5px; max-width: 62ch; text-wrap: pretty; }
@media (max-width: 760px) { .faq { grid-template-columns: minmax(0, 1fr); } }

.hero.closing { --hang: 0px; margin-top: 104px; padding: 88px 0 96px; }
.hero.closing::before { mask-image: radial-gradient(ellipse 50% 90% at 85% 50%, black, transparent 70%); }
.closing h2 { font-size: clamp(28px, 4.2vw, 48px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 750; max-width: 16em; }
.closing .lede { margin-top: 16px; }
.closing .lede a { color: var(--house-text); text-decoration: underline; text-decoration-color: var(--house-line); text-underline-offset: 4px; }

/* an organisation's page points to goto's own, once, at its foot */
.home-made { padding-top: 72px; padding-bottom: 36px; }
.home-made a { display: inline-flex; align-items: center; gap: 10px; color: var(--house-dim); font-size: 13px; }
.home-made a:hover { color: var(--house-text); text-decoration: none; }
.home-made .made-mark { width: 22px; height: 14px; color: var(--house-amber); }
.home-made .ico { width: 14px; height: 14px; }

/* ── an address that leads nowhere ───────────────────────────────────── */
/* The mark without its tunnel: the mountain in the raised fill, and a
   dashed outline where the short way through would be. No amber. */
.lost-art { width: 100%; height: auto; overflow: visible; }
.lost-hill { fill: var(--house-raised); stroke: var(--house-line); stroke-width: 8; stroke-linejoin: round; }
.lost-way { fill: none; stroke: var(--house-dim); stroke-width: 8; stroke-dasharray: 22 18; stroke-linecap: round; }
.lost-ground { stroke: var(--house-line); stroke-width: 8; stroke-linecap: round; }

.lost-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.lost-list a { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--house-r-row); color: var(--house-text); }
.lost-list a:hover { background: var(--house-hover); text-decoration: none; }
.lost-list a:hover .short-slug { text-decoration: underline; text-underline-offset: 3px; }
.lost-list .ico { color: var(--house-dim); }
.lost-list .t { display: flex; flex-direction: column; min-width: 0; }
.lost-list .t > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lost-list small { font: 11.5px var(--house-mono); color: var(--house-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* goto's own, under /-/ */
.lost { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 300px); gap: 24px 48px; align-items: center; margin: 8px 0 28px; }
.lost-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lost h1 { font-size: 26px; line-height: 1.2; font-weight: 700; overflow-wrap: anywhere; }
.lost-path { font-size: 0.86em; letter-spacing: -0.02em; }
.lost-find { display: flex; gap: 8px; margin-top: 10px; max-width: 580px; }
.lost-find .search { flex: 1; max-width: none; }
.lost-meant { margin-bottom: 16px; }
.lost-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 16px; }
.place { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; align-items: start; padding: 14px 16px; border-radius: var(--house-r-panel); background: var(--house-card); border: 1px solid var(--house-line); color: var(--house-text); }
.place:hover { background: var(--house-hover); text-decoration: none; }
.place .ico { grid-row: 1 / 3; color: var(--house-dim); margin-top: 2px; }
.place-name { grid-column: 2; grid-row: 1; font-weight: 600; }
.place-keys { grid-column: 3; grid-row: 1; display: flex; gap: 3px; }
.place-what { grid-column: 2 / 4; grid-row: 2; font-size: 12.5px; color: var(--house-dim); text-wrap: pretty; }
@media (max-width: 760px) {
  .lost { grid-template-columns: minmax(0, 1fr); }
  .lost .lost-art { order: -1; max-width: 200px; }
  .lost-find { flex-direction: column; }
}

/* on Ink, as the home page's hero: a visitor's at /{slug}, and the
   product page's for any path at its address */
.hero.lost-hero { --hang: 0px; padding: 64px 0 72px; }
.hero.lost-hero::before { mask-image: radial-gradient(ellipse 45% 80% at 82% 45%, black, transparent 70%); }
.lost-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 340px); gap: 32px 72px; align-items: center; }
.lost-hero .lost-text { gap: 12px; }
.lost-hero .lede { margin-top: 0; font-size: 16px; }
.lost-hero .peek, .lost-hero .hero-act { margin-top: 14px; }
.lost-hero .peek { flex: none; }
/* the address breaks between its host and its path, and inside either
   only when one alone is wider than the line */
.hero .lost-short { margin: 4px 0 0; font: 700 clamp(22px, 3.6vw, 36px)/1.15 var(--house-mono); letter-spacing: -0.035em; max-width: none; }
.lost-short .short { white-space: normal; }
.lost-short .short-host, .lost-short .short-slug { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.lost-say { font-size: clamp(19px, 2vw, 24px); line-height: 1.25; font-weight: 650; letter-spacing: -0.015em; }
.lost-there { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.lost-there > .eyebrow { margin-bottom: 0; }
.lost-there .act { margin-top: 6px; }
.lost-after { padding-top: 48px; padding-bottom: 32px; }
.lost-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: start; }
.lost-cols > div > .eyebrow { margin-bottom: 12px; }
.lost-try { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--house-dim); max-width: 60ch; }
.lost-try b { color: var(--house-text); font-weight: 600; }
.lost-own { display: flex; flex-direction: column; gap: 8px; box-shadow: var(--goto-shadow); }
.lost-own > .eyebrow { margin-bottom: 0; }
.lost-own .act { margin-top: 6px; }
.lost-note { margin-top: 32px; }
.lost-next { padding-top: 56px; padding-bottom: 24px; }
.lost-next > .eyebrow { margin-bottom: 14px; }
@media (max-width: 760px) {
  .lost-grid { grid-template-columns: minmax(0, 1fr); }
  .lost-grid .lost-art { order: -1; max-width: 180px; }
  .lost-cols { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .side, .board-bar, .head-actions, .link-side, .palette-open { display: none !important; }
  body.app { display: block; }
}
