/* ========================================================================
   linkring v2 — sticker / scrapbook design system
   isolated from styles.css while we iterate. nothing here touches
   the live site until we're done.
   ======================================================================== */

/* fonts ---------------------------------------------------------------- */

@font-face {
  font-family: "Object Sans";
  src: url("/public/fonts/PPObjectSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Object Sans";
  src: url("/public/fonts/PPObjectSans-Slanted.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Object Sans";
  src: url("/public/fonts/PPObjectSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Object Sans";
  src: url("/public/fonts/PPObjectSans-BoldSlanted.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Object Sans";
  src: url("/public/fonts/PPObjectSans-Heavy.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  color-scheme: light dark;

  /* paper — canonical brand cream in light, warm midnight in dark.
     dark paper holds enough warmth to read as zine-stock without tipping
     into muddy-brown; chroma stays low so it doesn't compete with the stickers. */
  --paper:        light-dark(#FFF8E7,                oklch(0.18 0.012 70));
  --paper-soft:   light-dark(oklch(0.95 0.030 92),   oklch(0.22 0.012 70));
  --paper-fixed:  #FFF8E7;  /* never theme-swaps — for logo specimens that must always sit on canonical cream */
  --dot:          light-dark(oklch(0.78 0.05 80 / 0.28), oklch(0.88 0.06 80 / 0.48));

  /* ink — pure black on light per brand kit; cream on dark.
     used for body text, headings outside stickers, and sticker borders/shadows
     (the high-contrast outline that pops a sticker off whatever paper it's on). */
  --ink:          light-dark(#000,                   #FFF8E7);
  --ink-fixed:    #000;     /* never theme-swaps — for logo specimens */
  --ink-soft:     light-dark(oklch(0.36 0.010 60),   oklch(0.86 0.020 90));
  --ink-faint:    light-dark(oklch(0.55 0.008 60),   oklch(0.74 0.015 90));

  /* sticker-ink — fixed warm near-black for text INSIDE pastel/white stickers.
     never theme-swaps because sticker fills don't change between modes;
     the same dark text reads on a yellow chip whether the page is cream or midnight. */
  --sticker-ink:       oklch(0.18 0.020 60);
  --sticker-ink-soft:  oklch(0.36 0.012 60);
  --sticker-ink-faint: oklch(0.50 0.010 60);
  /* sticker-paper — fixed warm cream for text on DARK sticker fills (pink-deep, ink) */
  --sticker-paper:     oklch(0.97 0.020 90);

  /* edge — the dark outline that pops a light-fill sticker off the paper.
     never theme-swaps: a yellow chip wants a dark outline whether the page
     is cream or midnight, otherwise the outline merges into the fill in dark mode.
     dark-fill variants (.sticker--ink, .sticker--pink-deep) locally override
     `--edge` back to cream so their light edge contrasts the dark fill. */
  --edge:              var(--sticker-ink);

  /* shadow-ink — the hard offset shadow under every sticker. always darker
     than any paper so the offset reads as depth (a real shadow), not as
     a second card peeking out from behind. */
  --shadow-ink:        oklch(0.06 0.010 70);

  /* sticker fills — anchored to the logo's six node colors.
     hex values are the canonical source; oklch in dark mode is derived. */
  --pink:         light-dark(#FF4FA0,                oklch(0.62 0.22 5));
  --pink-deep:    light-dark(oklch(0.55 0.24 5),     oklch(0.50 0.24 5));
  --yellow:       light-dark(#FFE34D,                oklch(0.78 0.16 92));
  --green:        light-dark(#7CD68C,                oklch(0.68 0.15 145));
  --blue:         light-dark(#B8E6FF,                oklch(0.70 0.10 230));
  --lavender:     light-dark(#E8B5FF,                oklch(0.66 0.14 320));
  --peach:        light-dark(#FFB088,                oklch(0.68 0.13 50));
  /* white-card — a real white chip, not a theme-aware surface. brand kit
     describes "small white-or-yellow chips"; they're physical objects. */
  --white-card:   oklch(0.99 0.005 90);

  /* highlighter — for <mark> */
  --highlighter:  light-dark(oklch(0.91 0.18 95),   oklch(0.85 0.18 95));
  --highlighter-ink: light-dark(oklch(0.20 0.020 60), oklch(0.20 0.020 60));

  /* link */
  --link:         light-dark(oklch(0.50 0.18 250),  oklch(0.78 0.16 245));
  --link-hover:   light-dark(oklch(0.40 0.20 250),  oklch(0.88 0.14 245));

  /* error */
  --error:        light-dark(oklch(0.62 0.22 25),   oklch(0.72 0.20 25));

  /* sticker geometry — the offset shadow distance & border weight */
  --border-w:     2.5px;
  --shadow-x:     6px;
  --shadow-y:     6px;
  --shadow-x-sm:  3px;
  --shadow-y-sm:  3px;
  --shadow-x-lg:  10px;
  --shadow-y-lg:  10px;

  /* radius */
  --r-sticker: 14px;
  --r-chip:    8px;
  --r-pill:    999px;

  /* dot grid */
  --dot-gap:   24px;
  --dot-size:  1.5px;

  /* spacing — 4pt scale */
  --space-2xs: 0.25rem;  /*  4 */
  --space-xs:  0.5rem;   /*  8 */
  --space-sm:  0.75rem;  /* 12 */
  --space-md:  1rem;     /* 16 */
  --space-lg:  1.5rem;   /* 24 */
  --space-xl:  2rem;     /* 32 */
  --space-2xl: 3rem;     /* 48 */
  --space-3xl: 4rem;     /* 64 */
  --space-4xl: 6rem;     /* 96 */

  /* type — modular scale, fixed rems for app UI */
  --t-display: clamp(2.75rem, 6vw + 1rem, 4.5rem);
  --t-h1:      clamp(1.875rem, 2.4vw + 1rem, 2.75rem);
  --t-h2:      1.625rem;
  --t-h3:      1.25rem;
  --t-body:    1rem;
  --t-small:   0.875rem;
  --t-label:   0.75rem;

  /* easing */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
}

/* base ----------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: "Object Sans", system-ui, sans-serif;
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, var(--dot) var(--dot-size), transparent 0);
  background-size: var(--dot-gap) var(--dot-gap);
  background-attachment: fixed;
  min-height: 100vh;
}

/* respect reduced motion --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* typography --------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: "Object Sans", system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
}

h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }

p { margin: 0 0 var(--space-md); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in oklch, var(--link) 40%, transparent);
  transition: color 0.15s var(--ease-out), text-decoration-color 0.15s var(--ease-out);
}
a:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-hover);
}

mark {
  background: var(--highlighter);
  color: var(--highlighter-ink);
  padding: 0.05em 0.3em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

code, kbd, pre, samp {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

::selection {
  background: var(--highlighter);
  color: var(--ink);
}

/* focus — sticker-style ring -------------------------------------- */
:focus-visible {
  /* theme-aware so the ring contrasts whichever paper it sits on */
  outline: var(--border-w) solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* layout primitives -------------------------------------------------- */

.container {
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: var(--space-lg);
  padding-block: var(--space-lg);
}

.stack > * + * { margin-top: var(--gap, var(--space-md)); }
.stack-lg > * + * { margin-top: var(--space-xl); }
.stack-xl > * + * { margin-top: var(--space-2xl); }

.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap, var(--space-md));
  align-items: var(--align, flex-start);
}

/* header ------------------------------------------------------------- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--space-md) var(--space-2xl);
  gap: var(--space-md);
  flex-wrap: wrap;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.site-header__logo svg {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}

/* logo with tagline (hero version) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
}
.brand__mark {
  width: 64px;
  height: 64px;
  display: block;
  flex-shrink: 0;
}
.brand__name {
  font-size: clamp(2rem, 3vw + 1rem, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand__tagline {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.4rem;
  display: block;
}

.site-header__nav {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  font-weight: 700;
}

.site-header__nav a {
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding-block: 4px;
}

.site-header__nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px 0;
  height: 3px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease-out);
}

.site-header__nav a:hover::after,
.site-header__nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* the sticker primitive --------------------------------------------- */
/*
  the foundational shape: thick ink border, hard offset shadow.
  composes with size + color modifiers + tilt utilities + corner badges.
*/

.sticker {
  --bg: var(--white-card);
  --sx: var(--shadow-x);
  --sy: var(--shadow-y);
  position: relative;
  display: block;
  background: var(--bg);
  /* sticker interior uses fixed dark ink — pastel/white fills don't theme-swap,
     so neither should the text on them. shadow muted vars locally so descendants
     (e.g. .row-sticker__meta, .muted text inside cards) stay legible. */
  color: var(--sticker-ink);
  --ink-soft: var(--sticker-ink-soft);
  --ink-faint: var(--sticker-ink-faint);
  /* border + shadow stay theme-aware — they outline the sticker against paper */
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-sticker);
  box-shadow: var(--sx) var(--sy) 0 0 var(--shadow-ink);
  padding: var(--space-lg);
  text-decoration: none;
  transition:
    transform 0.15s var(--ease-out),
    box-shadow 0.15s var(--ease-out);
}

/* headings inside stickers inherit the sticker's color (overrides global h1-h6) */
.sticker :where(h1, h2, h3, h4, h5, h6) { color: inherit; }

/* color variants */
.sticker--pink     { --bg: var(--pink); }
.sticker--pink-deep{
  --bg: var(--pink-deep);
  color: var(--sticker-paper);
  --ink-soft: oklch(0.85 0.020 90);
  --ink-faint: oklch(0.72 0.020 90);
  /* dark fill wants a LIGHT edge to contrast its own surface */
  --edge: var(--sticker-paper);
}
.sticker--yellow   { --bg: var(--yellow); }
.sticker--green    { --bg: var(--green); }
.sticker--blue     { --bg: var(--blue); }
.sticker--lavender { --bg: var(--lavender); }
.sticker--peach    { --bg: var(--peach); }
.sticker--ink      {
  --bg: var(--ink);
  color: var(--paper);
  --ink-soft: var(--paper-soft);
  --ink-faint: var(--paper-soft);
  /* dark fill wants a LIGHT edge to contrast its own surface */
  --edge: var(--sticker-paper);
}

/* tilt utilities */
.tilt-l   { transform: rotate(-1.5deg); }
.tilt-l-2 { transform: rotate(-3deg); }
.tilt-r   { transform: rotate(1.5deg); }
.tilt-r-2 { transform: rotate(3deg); }

/* size variants */
.sticker--sm { --sx: var(--shadow-x-sm); --sy: var(--shadow-y-sm); padding: var(--space-md); }
.sticker--lg { --sx: var(--shadow-x-lg); --sy: var(--shadow-y-lg); padding: var(--space-xl) var(--space-2xl); }

/* press-down interaction (only on interactive stickers) */
@media (prefers-reduced-motion: no-preference) {
  a.sticker:hover,
  button.sticker:hover {
    transform: translate(2px, 2px) var(--tilt, );
    box-shadow: calc(var(--sx) - 2px) calc(var(--sy) - 2px) 0 0 var(--shadow-ink);
  }
  a.sticker:active,
  button.sticker:active {
    transform: translate(var(--sx), var(--sy)) var(--tilt, );
    box-shadow: 0 0 0 0 var(--shadow-ink);
  }
  /* the tilt utilities for interactive variants need to compose */
  a.sticker.tilt-l,   button.sticker.tilt-l   { --tilt: rotate(-1.5deg); transform: var(--tilt); }
  a.sticker.tilt-l-2, button.sticker.tilt-l-2 { --tilt: rotate(-3deg);   transform: var(--tilt); }
  a.sticker.tilt-r,   button.sticker.tilt-r   { --tilt: rotate(1.5deg);  transform: var(--tilt); }
  a.sticker.tilt-r-2, button.sticker.tilt-r-2 { --tilt: rotate(3deg);    transform: var(--tilt); }
  a.sticker.tilt-l:hover,   button.sticker.tilt-l:hover   { transform: translate(2px, 2px) rotate(-1.5deg); }
  a.sticker.tilt-l-2:hover, button.sticker.tilt-l-2:hover { transform: translate(2px, 2px) rotate(-3deg); }
  a.sticker.tilt-r:hover,   button.sticker.tilt-r:hover   { transform: translate(2px, 2px) rotate(1.5deg); }
  a.sticker.tilt-r-2:hover, button.sticker.tilt-r-2:hover { transform: translate(2px, 2px) rotate(3deg); }
  a.sticker.tilt-l:active,   button.sticker.tilt-l:active   { transform: translate(var(--sx), var(--sy)) rotate(-1.5deg); }
  a.sticker.tilt-l-2:active, button.sticker.tilt-l-2:active { transform: translate(var(--sx), var(--sy)) rotate(-3deg); }
  a.sticker.tilt-r:active,   button.sticker.tilt-r:active   { transform: translate(var(--sx), var(--sy)) rotate(1.5deg); }
  a.sticker.tilt-r-2:active, button.sticker.tilt-r-2:active { transform: translate(var(--sx), var(--sy)) rotate(3deg); }
}

/* dashed empty-state sticker */
.sticker--dashed {
  background: transparent;
  border-style: dashed;
  border-width: var(--border-w);
  /* empty-state lives on the page itself — dashed line wants to be visible
     against whatever paper it sits on, so use the theme-aware ink. */
  border-color: var(--ink);
  box-shadow: none;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  min-height: 100%;
}

/* hero sticker — the big pasted title --------------------------------- */

.hero-sticker {
  display: inline-block;
  background: var(--pink);
  color: oklch(0.99 0.005 90);
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-sticker);
  box-shadow: var(--shadow-x-lg) var(--shadow-y-lg) 0 0 var(--shadow-ink);
  padding: var(--space-md) var(--space-xl);
  font-weight: 900;
  font-size: clamp(2.25rem, 5vw + 1rem, 4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  transform: rotate(-2.5deg);
  text-shadow: 0 1px 0 oklch(0.20 0.020 60 / 0.15);
}

.hero-sticker--yellow   { background: var(--yellow); color: var(--sticker-ink); }
.hero-sticker--green    { background: var(--green); color: var(--sticker-ink); }
.hero-sticker--blue     { background: var(--blue); color: var(--sticker-ink); }
.hero-sticker--pink     { background: var(--pink); color: var(--sticker-paper); }
.hero-sticker--lavender { background: var(--lavender); color: var(--sticker-ink); }
.hero-sticker--peach    { background: var(--peach); color: var(--sticker-ink); }
.hero-sticker--paper    { background: var(--white-card); color: var(--sticker-ink); }
.hero-sticker--ink      { background: var(--ink); color: var(--paper); --edge: var(--sticker-paper); }

/* date-label sticker — corners of cards ------------------------------- */

.label-sticker {
  position: absolute;
  display: inline-block;
  background: var(--white-card);
  color: var(--sticker-ink);
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-chip);
  box-shadow: var(--shadow-x-sm) var(--shadow-y-sm) 0 0 var(--shadow-ink);
  padding: 0.25rem 0.55rem;
  font-size: var(--t-label);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-3deg);
}

.label-sticker--top-left {
  top: -12px;
  left: 16px;
}
.label-sticker--top-right {
  top: -12px;
  right: 16px;
  transform: rotate(3deg);
}
.label-sticker--yellow { background: var(--yellow); }
.label-sticker--pink   { background: var(--pink-deep); color: var(--sticker-paper); --edge: var(--sticker-paper); }
.label-sticker--green  { background: var(--green); }
.label-sticker--blue   { background: var(--blue); }

/* color-swatch chip — small filled square w/ border ------------------- */

.swatch {
  display: inline-block;
  width: 1.75rem;
  height: 1.75rem;
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-chip);
  box-shadow: 2px 2px 0 0 var(--shadow-ink);
  vertical-align: middle;
}
.swatch--sm { width: 1.25rem; height: 1.25rem; box-shadow: 1.5px 1.5px 0 0 var(--shadow-ink); }
.swatch--pink     { background: var(--pink); }
.swatch--yellow   { background: var(--yellow); }
.swatch--green    { background: var(--green); }
.swatch--blue     { background: var(--blue); }
.swatch--lavender { background: var(--lavender); }
.swatch--peach    { background: var(--peach); }
.swatch--ink      { background: var(--ink); }
.swatch--paper    { background: var(--paper); }
.swatch--white    { background: var(--white-card); }

.swatch-row {
  display: inline-flex;
  gap: var(--space-xs);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: var(--t-body);
  font-weight: 700;
  line-height: 1;
  /* fixed dark — bg is the always-white card, so text doesn't theme-swap either */
  color: var(--sticker-ink);
  background: var(--white-card);
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-chip);
  box-shadow: var(--shadow-x-sm) var(--shadow-y-sm) 0 0 var(--shadow-ink);
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.12s var(--ease-out),
    box-shadow 0.12s var(--ease-out),
    background 0.12s var(--ease-out);
}

@media (prefers-reduced-motion: no-preference) {
  .btn:hover {
    transform: translate(1.5px, 1.5px);
    box-shadow: calc(var(--shadow-x-sm) - 1.5px) calc(var(--shadow-y-sm) - 1.5px) 0 0 var(--shadow-ink);
  }
  .btn:active {
    transform: translate(var(--shadow-x-sm), var(--shadow-y-sm));
    box-shadow: 0 0 0 0 var(--shadow-ink);
  }
}

.btn--primary {
  background: var(--pink);
  /* theme-aware: black on hot pink in light, cream on dark pink in dark */
  color: var(--ink);
}
.btn--secondary {
  background: var(--white-card);
}
.btn--ghost {
  /* on the page itself, so text follows the page (theme-aware) */
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: none;
}
.btn--ghost:hover {
  background: var(--white-card);
  color: var(--sticker-ink);
}
.btn--danger {
  background: var(--error);
  color: var(--sticker-paper);
}
.btn--small {
  padding: 0.4rem 0.8rem;
  font-size: var(--t-small);
}
.btn--icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: var(--shadow-x-sm) var(--shadow-y-sm) 0 0 var(--shadow-ink) !important;
}

/* form fields --------------------------------------------------------- */

.field {
  display: block;
}
.field + .field { margin-top: var(--space-md); }

.field__label {
  display: block;
  font-weight: 700;
  font-size: var(--t-small);
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.field__hint {
  display: block;
  margin-top: 0.4rem;
  font-size: var(--t-small);
  color: var(--ink-soft);
}

.field__error {
  display: block;
  margin-top: 0.4rem;
  font-size: var(--t-small);
  color: var(--error);
  font-weight: 700;
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
  /* fields sit on the always-white card, so ink must not theme-swap —
     otherwise text/placeholder go cream-on-white in dark mode. mirrors
     the .sticker / .atmo-input pattern. */
  --ink: var(--sticker-ink);
  --ink-soft: var(--sticker-ink-soft);
  --ink-faint: var(--sticker-ink-faint);
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: var(--t-body);
  color: var(--ink);
  background: var(--white-card);
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-chip);
  box-shadow: 3px 3px 0 0 var(--shadow-ink);
  transition: box-shadow 0.12s var(--ease-out), transform 0.12s var(--ease-out);
}

textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 5px 5px 0 0 var(--shadow-ink);
  transform: translate(-1px, -1px);
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-faint);
  opacity: 1;
}

/* checkbox + radio — chunky, sticker-style ---------------------------- */

input[type="checkbox"],
input[type="radio"] {
  /* mark sits on white-card; pin ink so the checkmark/dot stays dark in dark mode */
  --ink: var(--sticker-ink);
  appearance: none;
  -webkit-appearance: none;
  width: 1.4rem;
  height: 1.4rem;
  margin: 0;
  border: var(--border-w) solid var(--edge);
  background: var(--white-card);
  box-shadow: 2px 2px 0 0 var(--shadow-ink);
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  vertical-align: -0.25rem;
}
input[type="checkbox"] { border-radius: 5px; }
input[type="radio"]    { border-radius: 50%; }

input[type="checkbox"]::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  background: var(--ink);
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 20%, 84% 6%, 38% 70%);
  transform: scale(0);
  transition: transform 0.12s var(--ease-out);
}
input[type="checkbox"]:checked::before { transform: scale(1); }

input[type="radio"]::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--ink);
  transform: scale(0);
  transition: transform 0.12s var(--ease-out);
}
input[type="radio"]:checked::before { transform: scale(1); }

.check-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  cursor: pointer;
}

/* tabs — pill-shaped sticker tabs ------------------------------------ */

.tabs {
  /* pill sits on white-card; scope ink so inactive/hover text doesn't go
     cream-on-white in dark mode. */
  --ink: var(--sticker-ink);
  --ink-soft: var(--sticker-ink-soft);
  --ink-faint: var(--sticker-ink-faint);
  display: inline-flex;
  gap: var(--space-xs);
  padding: 6px;
  background: var(--white-card);
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-x-sm) var(--shadow-y-sm) 0 0 var(--shadow-ink);
}
.tabs__tab {
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: var(--t-small);
  color: var(--ink-soft);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.tabs__tab:hover {
  color: var(--ink);
}
.tabs__tab[aria-selected="true"],
.tabs__tab--active {
  /* dark pill on white card in both modes — sticker-paper is fixed cream so
     the text stays legible on the (now-fixed-dark) pill in dark mode too. */
  background: var(--ink);
  color: var(--sticker-paper);
}

/* code block ---------------------------------------------------------- */

.codeblock {
  display: block;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-chip);
  padding: var(--space-md) var(--space-lg);
  border: var(--border-w) solid var(--edge);
  box-shadow: var(--shadow-x-sm) var(--shadow-y-sm) 0 0 var(--shadow-ink);
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre;
  margin: 0;
}
.codeblock code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}
/* inline `<code>` inside paragraphs — small chip treatment */
:where(p, li, h1, h2, h3, h4) > code {
  background: var(--paper-soft);
  color: var(--ink);
  padding: 0.05em 0.35em;
  border-radius: 4px;
  font-size: 0.92em;
  border: 1px solid var(--ink-faint);
}

/* composite patterns — repeated across pages, promoted from inline ---- */

/* hero-row — hero-sticker + caption beside it, baseline-aligned */
.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-2xl);
  padding-block: var(--space-md) var(--space-2xl);
}
.hero-row__caption {
  max-width: 38ch;
  padding-bottom: 0.5rem;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

/* hero-sticker size variant — for section-level headlines */
.hero-sticker--sm {
  font-size: clamp(1.5rem, 2vw + 0.75rem, 2.25rem);
  padding: var(--space-sm) var(--space-lg);
  box-shadow: var(--shadow-x) var(--shadow-y) 0 0 var(--shadow-ink);
}

/* section-head — h2 on left, action on right, wraps */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

/* prose — long-form text container with comfortable measure */
.prose {
  max-inline-size: 65ch;
}
.prose > * + * { margin-top: var(--space-md); }
.prose h2 { margin-top: var(--space-2xl); }
.prose h3 { margin-top: var(--space-xl); }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose li + li { margin-top: 0.4rem; }

/* avatar — circular sticker. three sizes */
.avatar {
  display: inline-block;
  border: var(--border-w) solid var(--edge);
  border-radius: 50%;
  box-shadow: var(--shadow-x-sm) var(--shadow-y-sm) 0 0 var(--shadow-ink);
  object-fit: cover;
  background: var(--paper-soft);
  flex-shrink: 0;
}
.avatar--sm { width: 2.5rem; height: 2.5rem; box-shadow: 2px 2px 0 0 var(--shadow-ink); }
.avatar--md { width: 4rem; height: 4rem; }
.avatar--lg { width: 6rem; height: 6rem; box-shadow: var(--shadow-x) var(--shadow-y) 0 0 var(--shadow-ink); }

/* link-sticker — image-left + content card. used in list views, embeds */
.link-sticker {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-lg);
  align-items: stretch;
  padding: var(--space-md);
  background: var(--white-card);
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-sticker);
  box-shadow: var(--shadow-x) var(--shadow-y) 0 0 var(--shadow-ink);
  text-decoration: none;
  color: var(--sticker-ink);
  --ink-soft: var(--sticker-ink-soft);
  --ink-faint: var(--sticker-ink-faint);
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}
.link-sticker :where(h1, h2, h3, h4, h5, h6) { color: inherit; }
@media (prefers-reduced-motion: no-preference) {
  a.link-sticker:hover {
    transform: translate(2px, 2px);
    box-shadow: calc(var(--shadow-x) - 2px) calc(var(--shadow-y) - 2px) 0 0 var(--shadow-ink);
  }
}
.link-sticker__image {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-chip);
  background: var(--paper-soft);
  width: 100%;
}
.link-sticker__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.link-sticker__title {
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}
.link-sticker__url {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-sticker__desc {
  font-size: var(--t-small);
  color: var(--ink-soft);
}
@container (max-width: 420px) {
  .link-sticker { grid-template-columns: 1fr; }
}

/* link-sticker compact — no image */
.link-sticker--compact {
  grid-template-columns: 1fr;
}

/* pagination — info text + prev/next */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.pagination__info {
  font-size: var(--t-small);
  font-weight: 700;
  color: var(--ink-soft);
}
.pagination__nav {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* editable-row — small sticker holding inline fields + remove control */
.editable-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-md);
  background: var(--white-card);
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-chip);
  box-shadow: var(--shadow-x-sm) var(--shadow-y-sm) 0 0 var(--shadow-ink);
}
.editable-row__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--space-sm);
  min-width: 0;
}
.editable-row__action {
  align-self: center;
}
.editable-row + .editable-row { margin-top: var(--space-md); }

/* field--inline — zero margin for fields inside grids/flex */
.field--inline { margin: 0 !important; }

/* sticker--dashed--block — multi-line dashed empty state */
.sticker--dashed.sticker--block,
.sticker--dashed--block {
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-2xl);
  text-align: center;
}
.sticker--dashed.sticker--block .sticker__title,
.sticker--dashed--block .sticker__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}

/* stat-card — big-number stat sticker (admin, dashboards) */
.stat-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-md) var(--space-lg);
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-sticker);
  box-shadow: var(--shadow-x) var(--shadow-y) 0 0 var(--shadow-ink);
  background: var(--white-card);
}
.stat-card__label {
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
}
.stat-card__value {
  font-size: clamp(2rem, 3vw + 1rem, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.stat-card__detail {
  font-size: var(--t-small);
  color: var(--ink-soft);
}
.stat-card--blue     { background: var(--blue); }
.stat-card--yellow   { background: var(--yellow); }
.stat-card--green    { background: var(--green); }
.stat-card--pink     { background: var(--pink); }
.stat-card--lavender { background: var(--lavender); }
.stat-card--peach    { background: var(--peach); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
}

/* row-sticker — small sticker laid out as a row record (admin lists) */
.row-sticker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--white-card);
  color: var(--sticker-ink);
  --ink-soft: var(--sticker-ink-soft);
  --ink-faint: var(--sticker-ink-faint);
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-chip);
  box-shadow: 2px 2px 0 0 var(--shadow-ink);
}
.row-sticker__main { flex: 1; min-width: 0; font-weight: 700; }
.row-sticker__meta { font-size: var(--t-small); color: var(--ink-soft); }
.row-sticker__action { display: flex; gap: var(--space-xs); }
.row-sticker + .row-sticker { margin-top: var(--space-sm); }

/* button-88 — 88×31 ring-button preview pinned to a sticker */
.button-88 {
  display: inline-block;
  width: 88px;
  height: 31px;
  padding: 0;
  background: var(--paper-fixed);
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-chip);
  box-shadow: var(--shadow-x-sm) var(--shadow-y-sm) 0 0 var(--shadow-ink);
  overflow: hidden;
  line-height: 0;
}
.button-88 img {
  width: 88px;
  height: 31px;
  display: block;
  image-rendering: pixelated;
}

/* list-grid — alias for dash-grid (semantic naming) */
.list-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  margin-top: var(--space-xl);
}

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

.site-footer {
  margin-top: var(--space-3xl);
  padding-block: var(--space-xl);
  border-top: var(--border-w) dashed var(--ink-faint);
  text-align: center;
  color: var(--ink-soft);
  font-size: var(--t-small);
}

.site-footer p { margin: 0.25rem 0; }

.alpha-tag {
  display: inline-block;
  margin-inline-start: 0.25em;
  padding: 0 0.45em;
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 0.1em;
  line-height: 1.4;
  opacity: 0.85;
}

/* styleguide-specific layout helpers --------------------------------- */

.guide-section {
  position: relative;
  padding-block: var(--space-2xl);
  border-top: var(--border-w) dashed var(--ink-faint);
}
.guide-section:first-of-type { border-top: 0; padding-top: var(--space-md); }

.guide-section__label {
  display: inline-block;
  background: var(--yellow);
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-chip);
  box-shadow: var(--shadow-x-sm) var(--shadow-y-sm) 0 0 var(--shadow-ink);
  padding: 0.35rem 0.85rem;
  font-weight: 900;
  font-size: var(--t-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  transform: rotate(-1.5deg);
}

.guide-section__label--pink   { background: var(--pink); }
.guide-section__label--green  { background: var(--green); }
.guide-section__label--blue   { background: var(--blue); }

.guide-section__intro {
  max-width: 60ch;
  color: var(--ink-soft);
  margin-bottom: var(--space-xl);
}

.guide-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.guide-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.specimen {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.specimen__caption {
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}

.token-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: color-mix(in oklch, var(--paper) 85%, var(--ink));
  border: 1.5px solid var(--ink-faint);
  border-radius: var(--r-chip);
  font-size: var(--t-small);
}
.token-row code {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.color-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.color-card__swatch {
  height: 5rem;
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-chip);
  box-shadow: 4px 4px 0 0 var(--shadow-ink);
}
.color-card__name {
  font-weight: 700;
  font-size: var(--t-small);
}
.color-card__value {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* example dashboard layout (lifted from reference image) ------------- */

.dash-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  margin-top: var(--space-xl);
}

.list-card-v2 {
  position: relative;
  display: block;
  padding: var(--space-xl);
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-sticker);
  box-shadow: var(--shadow-x) var(--shadow-y) 0 0 var(--shadow-ink);
  text-decoration: none;
  color: var(--sticker-ink);
  --ink-soft: var(--sticker-ink-soft);
  --ink-faint: var(--sticker-ink-faint);
  min-height: 11rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-md);
  transition:
    transform 0.15s var(--ease-out),
    box-shadow 0.15s var(--ease-out);
}
.list-card-v2 :where(h1, h2, h3, h4, h5, h6) { color: inherit; }
@media (prefers-reduced-motion: no-preference) {
  a.list-card-v2:hover {
    transform: translate(2px, 2px);
    box-shadow: calc(var(--shadow-x) - 2px) calc(var(--shadow-y) - 2px) 0 0 var(--shadow-ink);
  }
}

.list-card-v2__title {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.list-card-v2__desc {
  font-size: var(--t-small);
  color: inherit;
  opacity: 0.78;
}
.list-card-v2__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.list-card-v2__count {
  font-weight: 700;
  font-size: var(--t-small);
}

.list-card-v2--blue     { background: var(--blue); }
.list-card-v2--yellow   { background: var(--yellow); }
.list-card-v2--green    { background: var(--green); }
.list-card-v2--pink     { background: var(--pink); }
.list-card-v2--lavender { background: var(--lavender); }
.list-card-v2--lav      { background: var(--lavender); } /* alias */
.list-card-v2--peach    { background: var(--peach); }
.list-card-v2--white    { background: var(--white-card); }
.list-card-v2--paper    { background: var(--white-card); }

/* color picker — sticker chips with named captions ------------------- */

.color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-sm);
  margin-top: var(--space-xs);
  padding-top: 0.4rem; /* room for selected chip's lifted shadow */
}

.color-picker__swatch {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  /* the chip itself is rendered via ::before so we can layer the check icon
     on top via ::after without nesting a wrapper element */
}

.color-picker__swatch::before {
  content: "";
  display: block;
  inline-size: 2.4rem;
  block-size: 2.4rem;
  background: var(--chip-bg, var(--white-card));
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-chip);
  box-shadow: var(--shadow-x-sm) var(--shadow-y-sm) 0 0 var(--shadow-ink);
  transition:
    transform 0.15s var(--ease-out),
    box-shadow 0.15s var(--ease-out);
}

.color-picker__swatch input {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

/* the name caption — visible always, bold + underlined when selected */
.color-picker__swatch span:not(.sr-only) {
  font-size: var(--t-label);
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  line-height: 1;
  transition: color 0.12s var(--ease-out), font-weight 0.12s;
}

/* the check mark, drawn on the chip when selected. uses the same clip-path
   as the native checkbox check so the system reads as one family. */
.color-picker__swatch::after {
  content: "";
  position: absolute;
  top: 0.4rem;          /* aligns with chip bounds (padding-top above) */
  left: 50%;
  translate: -50% 0;
  width: 2.4rem;
  height: 2.4rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3.5 11 L9 16.5 L20.5 5' fill='none' stroke='%231a1610' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: 1.4rem 1.4rem;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.12s var(--ease-out), transform 0.12s var(--ease-out);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .color-picker__swatch:hover::before {
    transform: translate(-1px, -1px);
    box-shadow: calc(var(--shadow-x-sm) + 1px) calc(var(--shadow-y-sm) + 1px) 0 0 var(--shadow-ink);
  }
}

/* selected: the chip leaps forward — bigger shadow, slight tilt, check on */
.color-picker__swatch:has(input:checked)::before {
  transform: translate(-2px, -2px) rotate(-2deg);
  box-shadow: calc(var(--shadow-x) + 1px) calc(var(--shadow-y) + 1px) 0 0 var(--shadow-ink);
}
.color-picker__swatch:has(input:checked)::after {
  opacity: 1;
  transform: scale(1) translate(-2px, -2px) rotate(-2deg);
  translate: -50% 0;
}
.color-picker__swatch:has(input:checked) span:not(.sr-only) {
  color: var(--ink);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* keyboard focus ring on the chip itself — sticker-flavored, not browser default */
.color-picker__swatch:has(input:focus-visible)::before {
  outline: 2.5px dashed var(--ink);
  outline-offset: 3px;
}

/* color fills */
.color-picker__swatch--blue     { --chip-bg: var(--blue); }
.color-picker__swatch--yellow   { --chip-bg: var(--yellow); }
.color-picker__swatch--green    { --chip-bg: var(--green); }
.color-picker__swatch--pink     { --chip-bg: var(--pink); }
.color-picker__swatch--lavender { --chip-bg: var(--lavender); }
.color-picker__swatch--peach    { --chip-bg: var(--peach); }
.color-picker__swatch--paper    { --chip-bg: var(--white-card); }

/* "no color / random" chip — paper with a single hand-drawn ink stroke */
.color-picker__swatch--none::before {
  --chip-bg: var(--white-card);
  background-image:
    linear-gradient(
      135deg,
      transparent calc(50% - 1.2px),
      var(--ink) calc(50% - 1.2px),
      var(--ink) calc(50% + 1.2px),
      transparent calc(50% + 1.2px)
    );
}

/* atmosphere account ------------------------------------------------- */
/*
  components for talking about the atmosphere ecosystem and signing into it.
  these read like a permanent zine page: hand-rotated app stickers, a thick
  disclosure that opens like an envelope, and a 88×31 button-era badge.
*/

/* the atmosphere mark — small currentColor swirl */
.atmo-mark {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

/* mark inside a btn — sized to match the cap height of the label */
.btn .btn-mark {
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.1rem;
}

/* atmo-input — handle field with mark icon + submit arrow */
.atmo-input {
  /* lives inside a fixed-cream card, so its border/shadow/text/icon all need
     fixed dark ink — theme-swapping turns the whole field cream-on-cream in
     dark mode. mirrors the .sticker class's local ink overrides. */
  --ink: var(--ink-fixed);
  --ink-soft: var(--sticker-ink-soft);
  --ink-faint: var(--sticker-ink-faint);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  background: var(--white-card);
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-chip);
  box-shadow: 4px 4px 0 0 var(--shadow-ink);
  padding: 0.4rem 0.5rem 0.4rem 0.85rem;
  transition: box-shadow 0.12s var(--ease-out), transform 0.12s var(--ease-out);
}
.atmo-input:focus-within {
  box-shadow: 6px 6px 0 0 var(--shadow-ink);
  transform: translate(-1px, -1px);
}
.atmo-input__icon {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--ink-soft);
  display: block;
}
.atmo-input input {
  /* remove the standard sticker treatment — this input lives inside a sticker */
  width: 100%;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0.55rem 0 !important;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.atmo-input input:focus {
  outline: none;
  transform: none !important;
  box-shadow: none !important;
}
.atmo-input input::placeholder {
  color: var(--ink-faint);
  font-style: italic;
}
.atmo-input__submit {
  /* primary CTA — pinned to fixed-ink so it stays a punchy dark pill in both modes.
     theme-swapping ink would turn this into a cream-on-cream blob in dark mode. */
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: var(--border-w) solid var(--ink-fixed);
  background: var(--ink-fixed);
  color: var(--paper-fixed);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 0 color-mix(in oklch, var(--ink-fixed) 60%, transparent);
  transition: transform 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out), background 0.12s var(--ease-out);
}
.atmo-input__submit:hover {
  background: var(--pink);
  color: var(--ink-fixed);
}
@media (prefers-reduced-motion: no-preference) {
  .atmo-input__submit:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 0 var(--shadow-ink);
  }
}
.atmo-input__submit svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

/* what's the atmosphere? disclosure -------------------------------- */
/*
  uses native <details>/<summary> for accessibility & no-js. the summary
  acts as an inline accent link; opening reveals a peelable explanation
  card with apps grid and signup CTA.
*/
.atmo-disclosure {
  /* overrides the dotted underline browsers add to <summary> */
}
.atmo-disclosure > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in oklch, var(--link) 35%, transparent);
  padding: 0.15rem 0;
  border-radius: 4px;
}
.atmo-disclosure > summary::-webkit-details-marker { display: none; }
.atmo-disclosure > summary::after {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.18s var(--ease-out);
}
.atmo-disclosure[open] > summary::after {
  transform: translateY(1px) rotate(225deg);
}
.atmo-disclosure > summary:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-hover);
}

.atmo-disclosure__panel {
  /* fixed-cream surface — lock --ink so descendants that pull it directly
     (.atmo-app__name, .atmo-cta, etc.) stay legible in dark mode instead of
     flipping to cream-on-cream. border/shadow also need fixed ink since the
     panel sits inside another fixed-cream card. */
  --ink: var(--ink-fixed);
  --ink-soft: var(--sticker-ink-soft);
  --ink-faint: var(--sticker-ink-faint);
  margin-top: var(--space-md);
  padding: var(--space-lg);
  background: var(--white-card);
  color: var(--sticker-ink);
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-sticker);
  box-shadow: var(--shadow-x) var(--shadow-y) 0 0 var(--shadow-ink);
  display: grid;
  gap: var(--space-md);
  position: relative;
}
.atmo-disclosure__panel :where(h1, h2, h3, h4, h5, h6) { color: inherit; }
/* a little arrow stub pointing up from the panel toward the summary */
.atmo-disclosure__panel::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 28px;
  width: 16px;
  height: 16px;
  background: var(--white-card);
  border-top: var(--border-w) solid var(--edge);
  border-left: var(--border-w) solid var(--edge);
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: no-preference) {
  .atmo-disclosure[open] .atmo-disclosure__panel {
    animation: atmo-pop 0.22s var(--ease-out);
  }
  @keyframes atmo-pop {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

.atmo-disclosure__lede {
  font-size: 1.0625rem;
  margin: 0;
  max-width: 48ch;
}

.atmo-disclosure__heading {
  font-size: var(--t-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--ink-soft);
  margin: 0;
}

/* apps grid — each app is a small sticker chip with its real logo --- */
.atmo-apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: var(--space-sm);
}

.atmo-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: var(--space-sm) 0.4rem;
  background: var(--paper-fixed);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 2px 2px 0 0 var(--shadow-ink);
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  transition: transform 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out);
}
/* alternating playful tilts so the row reads handmade */
.atmo-app:nth-child(2n)   { transform: rotate(-1.5deg); }
.atmo-app:nth-child(3n+1) { transform: rotate(1deg); }
.atmo-app:nth-child(5n)   { transform: rotate(-2deg); }

@media (prefers-reduced-motion: no-preference) {
  a.atmo-app:hover {
    transform: translate(1.5px, 1.5px) rotate(0deg);
    box-shadow: 1px 1px 0 0 var(--shadow-ink);
  }
}

.atmo-app__logo {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
}
.atmo-app__logo img,
.atmo-app__logo svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.atmo-app__name {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--ink);
}

/* the official atmosphere badge — 88x31 button-era reference -------- */
/*
  the source SVG ships in white on transparent, so it lives inside an
  inky sticker. used as a "we accept atmosphere accounts" proof on the
  login page and as a small footer touch.
*/
.atmo-badge {
  /* badge SVG ships pre-rendered in white-on-transparent for a black pill,
     so the pill itself must stay dark in both themes. shadow is still
     theme-aware so it pops against whichever paper the badge is sitting on. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-fixed);
  color: var(--paper-fixed);
  border: var(--border-w) solid var(--ink-fixed);
  border-radius: 6px;
  box-shadow: 3px 3px 0 0 var(--shadow-ink);
  padding: 0.45rem 0.75rem;
  text-decoration: none;
  transition: transform 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out);
  line-height: 0;
}
@media (prefers-reduced-motion: no-preference) {
  a.atmo-badge:hover {
    transform: translate(1.5px, 1.5px);
    box-shadow: 1.5px 1.5px 0 0 var(--shadow-ink);
  }
}
.atmo-badge img {
  width: 88px;
  height: 31px;
  display: block;
  /* the badge ships pre-sized; render crisp */
  image-rendering: -webkit-optimize-contrast;
}

/* atmo-cta-row — sign up via bluesky button + pds note row */
.atmo-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  background: var(--blue);
  color: var(--ink);
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-chip);
  box-shadow: var(--shadow-x-sm) var(--shadow-y-sm) 0 0 var(--shadow-ink);
  font-weight: 900;
  font-size: 1.0625rem;
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: transform 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out);
}
.atmo-cta__icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #0A7AFF;
  flex-shrink: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .atmo-cta:hover {
    transform: translate(1.5px, 1.5px);
    box-shadow: calc(var(--shadow-x-sm) - 1.5px) calc(var(--shadow-y-sm) - 1.5px) 0 0 var(--shadow-ink);
  }
}

/* utilities ---------------------------------------------------------- */

.muted   { color: var(--ink-soft); }
.faint   { color: var(--ink-faint); }
.center  { text-align: center; }
.bold    { font-weight: 700; }
.heavy   { font-weight: 900; }
.lower   { text-transform: lowercase; }
.upper   { text-transform: uppercase; letter-spacing: 0.08em; }
.mono    { font-family: ui-monospace, monospace; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ====================================================================
   embed builder — /dashboard/lists/:rkey/embed
   the page itself is sticker-aesthetic; the embed's *own* styles live
   in embed.js shadow-DOM and are deliberately minimal so creators can
   theme them via --linkring-* vars or ::part().
   ==================================================================== */

.embed-builder { container-type: inline-size; }

.embed-builder__lede {
  margin: calc(var(--space-md) * -1) 0 var(--space-2xl);
  max-width: 60ch;
}
.embed-builder__lede p {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.embed-builder__lede p + p { margin-top: var(--space-2xs); }
.embed-builder__lede strong { color: var(--ink); font-weight: 900; }

/* numbered step heading — small monospace all-caps */
.step-section { margin-top: var(--space-2xl); }
.step-section__heading {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 var(--space-md);
}

/* --- Step 1: shape picker --------------------------------------- */

.shape-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
@container (max-width: 540px) {
  .shape-grid { grid-template-columns: 1fr; }
}

.shape-card {
  /* card sits on white-card; scope ink so title/caption stay dark in dark mode. */
  --ink: var(--sticker-ink);
  --ink-soft: var(--sticker-ink-soft);
  --ink-faint: var(--sticker-ink-faint);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--white-card);
  color: var(--ink);
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-sticker);
  box-shadow: var(--shadow-x-sm) var(--shadow-y-sm) 0 0 var(--shadow-ink);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition:
    transform 0.12s var(--ease-out),
    box-shadow 0.12s var(--ease-out);
}
@media (prefers-reduced-motion: no-preference) {
  .shape-card:hover:not([aria-disabled="true"]) {
    transform: translate(1.5px, 1.5px);
    box-shadow: calc(var(--shadow-x-sm) - 1.5px) calc(var(--shadow-y-sm) - 1.5px) 0 0 var(--shadow-ink);
  }
}
.shape-card[aria-pressed="true"] {
  box-shadow: var(--shadow-x) var(--shadow-y) 0 0 var(--shadow-ink);
  transform: translate(-1px, -1px);
}
.shape-card[aria-pressed="true"]:hover {
  transform: translate(0, 0);
  box-shadow: calc(var(--shadow-x) - 1px) calc(var(--shadow-y) - 1px) 0 0 var(--shadow-ink);
}
.shape-card[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.shape-card__title {
  font-weight: 900;
  font-size: 1.0625rem;
  margin: 0;
}
.shape-card__caption {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.shape-card__badge {
  position: absolute;
  top: -10px;
  right: 12px;
  z-index: 2;
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-chip);
  box-shadow: var(--shadow-x-sm) var(--shadow-y-sm) 0 0 var(--shadow-ink);
  font-size: var(--t-label);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(4deg);
}
.shape-card__badge--picked {
  background: var(--pink);
  color: var(--ink);
}
.shape-card__badge--soon {
  background: var(--paper-soft);
  color: var(--ink-faint);
  transform: rotate(-3deg);
}

/* mini-mocks — schematic illustrations of each shape ---------- */

.shape-mock {
  background: var(--paper-soft);
  border: var(--border-w) solid var(--edge);
  border-radius: 8px;
  padding: 10px;
  height: 92px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.shape-mock__line {
  height: 4px;
  background: var(--ink-faint);
  opacity: 0.55;
  border-radius: 2px;
}
.shape-mock__line--full  { width: 100%; }
.shape-mock__line--mid   { width: 78%; }
.shape-mock__line--short { width: 55%; }
.shape-mock__line--bold  { height: 6px; opacity: 0.85; background: var(--ink); border-radius: 3px; }

/* card variant: header lines, then horizontal mini-cards w/ thumbs */
.shape-mock__row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.shape-mock__thumb {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
}
.shape-mock__thumb--pink  { background: var(--pink); }
.shape-mock__thumb--green { background: var(--green); }
.shape-mock__thumb--blue  { background: var(--blue); }
.shape-mock__thumb--yellow{ background: var(--yellow); }

.shape-mock__row-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* sidebar variant: two-column with vertical rail */
.shape-mock--sidebar {
  flex-direction: row;
  padding: 8px;
}
.shape-mock__rail {
  width: 28px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 5px 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.shape-mock__chip {
  height: 6px;
  border-radius: 2px;
  border: 1px solid var(--ink);
}
.shape-mock__chip--pink   { background: var(--pink); }
.shape-mock__chip--yellow { background: var(--yellow); }
.shape-mock__chip--green  { background: var(--green); }
.shape-mock__sidebar-stack {
  flex: 1;
  margin-left: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
}

/* --- Step 2: in-the-wild preview --------------------------------- */

.context-tabs-row { margin-bottom: var(--space-xs); }
.context-frame-wrap { display: flex; flex-direction: column; }
.context-frame-wrap[hidden] { display: none; }
.context-frame__url {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  padding-left: var(--space-md);
  margin-top: var(--space-2xs);
  margin-bottom: -2px;
}

.context-frame {
  border: var(--border-w) dashed color-mix(in oklch, var(--ink) 35%, transparent);
  border-radius: var(--r-sticker);
  padding: var(--space-xl) var(--space-2xl);
  background: var(--white-card);
}

/* blog-post chrome: serif body, generous leading, faux article */
.context-frame--blogpost {
  /* frame bg is fixed white-card; scope ink so title/body stay dark in dark mode.
     footer/solo variants swap to theme-aware --paper-soft and intentionally
     leave ink theme-aware, so the scoping lives here, not on the base. */
  --ink: var(--sticker-ink);
  --ink-soft: var(--sticker-ink-soft);
  --ink-faint: var(--sticker-ink-faint);
  font-family: "Iowan Old Style", "Charter", "Apple Garamond", "Georgia", serif;
}
.context-frame--blogpost .context-frame__title {
  font-family: inherit;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 var(--space-md);
  color: var(--ink);
}
.context-frame--blogpost p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 var(--space-md);
  max-width: 62ch;
}

/* personal homepage chrome: avatar + handle + bio, then embed */
.context-frame--homepage {
  /* same as --blogpost: fixed-white bg, scope ink for dark mode legibility */
  --ink: var(--sticker-ink);
  --ink-soft: var(--sticker-ink-soft);
  --ink-faint: var(--sticker-ink-faint);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.context-frame--homepage .context-frame__bio {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}
.context-frame--homepage .context-frame__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: var(--border-w) solid var(--edge);
  background: var(--lavender);
  flex-shrink: 0;
}
.context-frame--homepage .context-frame__bio-text { flex: 1; }
.context-frame--homepage .context-frame__name {
  font-weight: 900;
  font-size: 1.125rem;
  margin: 0;
}
.context-frame--homepage .context-frame__handle {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875rem;
  color: var(--ink-faint);
  margin: 0;
}
.context-frame--homepage .context-frame__copy {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0;
}

/* footer chrome: column layout with ruler and small text */
.context-frame--footer {
  border-top: var(--border-w) solid var(--edge);
  border-radius: 0 0 var(--r-sticker) var(--r-sticker);
  background: var(--paper-soft);
}
.context-frame--footer .context-frame__cols {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
  gap: var(--space-xl);
  align-items: start;
}
.context-frame--footer .context-frame__cols > * { min-width: 0; }
@container (max-width: 640px) {
  .context-frame--footer .context-frame__cols { grid-template-columns: minmax(0, 1fr); }
}

/* every preview-slot must allow its embed to shrink */
.preview-slot { min-width: 0; max-width: 100%; }
.preview-slot linkring-list { display: block; max-width: 100%; }
.context-frame--footer .context-frame__brand {
  font-weight: 900;
  font-size: 1.0625rem;
  margin: 0 0 var(--space-xs);
}
.context-frame--footer .context-frame__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* solo: just the embed, centered on paper-soft */
.context-frame--solo {
  background: var(--paper-soft);
  display: flex;
  justify-content: center;
}
.context-frame--solo .preview-slot { width: 100%; max-width: 28rem; }

/* --- Step 3: snippet box ----------------------------------------- */

.snippet-box {
  position: relative;
}
.snippet-box .codeblock {
  padding-right: 5.5rem;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.6;
}
.snippet-box__copy {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--yellow);
  color: var(--ink);
}
.snippet-box__copy[data-copied="true"] {
  background: var(--green);
}
.snippet-comment { color: color-mix(in oklch, var(--paper) 55%, transparent); }

/* --- Options + theme dual cards --------------------------------- */

.dual-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
@container (max-width: 640px) {
  .dual-cards { grid-template-columns: 1fr; }
}

.dual-card {
  padding: var(--space-md) var(--space-lg);
}
.dual-card__heading {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin: 0 0 var(--space-md);
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.check-list .check-row[aria-disabled="true"] {
  cursor: not-allowed;
  color: var(--ink-faint);
}
.check-list small {
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-left: 0.25rem;
}

/* sticker-aesthetic toggle switch ---------------------------------- */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}
.toggle__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
  /* clobber the global appearance:none reset for sticker checkboxes */
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  box-shadow: none;
}
.toggle__track {
  position: relative;
  display: inline-block;
  width: 3rem;
  height: 1.65rem;
  background: var(--white-card);
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-pill);
  box-shadow: 2px 2px 0 0 var(--shadow-ink);
  flex-shrink: 0;
  transition:
    background 0.15s var(--ease-out),
    box-shadow 0.12s var(--ease-out),
    transform 0.12s var(--ease-out);
}
.toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.65rem - var(--border-w) * 2 - 4px);
  height: calc(1.65rem - var(--border-w) * 2 - 4px);
  background: var(--ink);
  border-radius: 50%;
  transition: transform 0.18s var(--ease-out);
}
.toggle__input:checked ~ .toggle__track {
  background: var(--pink);
}
.toggle__input:checked ~ .toggle__track .toggle__thumb {
  transform: translateX(calc(3rem - 1.65rem));
}
.toggle__input:focus-visible ~ .toggle__track {
  box-shadow:
    2px 2px 0 0 var(--shadow-ink),
    0 0 0 3px var(--yellow);
}
@media (prefers-reduced-motion: no-preference) {
  .toggle:hover .toggle__track {
    transform: translate(0.5px, 0.5px);
    box-shadow: 1.5px 1.5px 0 0 var(--shadow-ink);
  }
}
.toggle:active .toggle__track {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 0 var(--shadow-ink);
}
.toggle__label {
  font-size: var(--t-body);
  color: var(--ink);
}

/* theme swatch grid */
.theme-grid {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  align-items: center;
}
.theme-swatch {
  position: relative;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-chip);
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--ink);
  display: grid;
  place-content: center;
  background: var(--white-card);
  overflow: hidden;
  transition: transform 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out);
}
.theme-swatch[aria-pressed="true"] {
  box-shadow: var(--shadow-x-sm) var(--shadow-y-sm) 0 0 var(--shadow-ink);
  transform: translate(-1px, -1px);
}
@media (prefers-reduced-motion: no-preference) {
  .theme-swatch:hover { transform: translate(-0.5px, -0.5px); }
}
.theme-swatch__check {
  display: none;
  font-size: 1rem;
  font-weight: 900;
}
.theme-swatch[aria-pressed="true"] .theme-swatch__check { display: inline; }
.theme-swatch--default     { background: var(--paper); }
.theme-swatch--ink         { background: var(--ink); color: var(--paper); }
/* paper-pure + pink-yellow have fixed-light fills; scope ink so the
   selected checkmark stays dark in dark mode instead of cream-on-light. */
.theme-swatch--paper-pure  { background: oklch(0.99 0.005 90); --ink: var(--sticker-ink); }
.theme-swatch--pink-yellow {
  background: linear-gradient(135deg, var(--pink) 50%, var(--yellow) 50%);
  --ink: var(--sticker-ink);
}
.theme-swatch--custom {
  background: transparent;
  border-style: dashed;
  color: var(--ink-faint);
  box-shadow: none;
}
.theme-swatch--custom:hover { color: var(--ink); }

/* --- footer disclosure strip ------------------------------------- */

.embed-footer-strip {
  margin-top: var(--space-2xl);
  border: var(--border-w) dashed color-mix(in oklch, var(--ink) 30%, transparent);
  border-radius: var(--r-sticker);
  background: transparent;
}
.embed-footer-strip > summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-md) var(--space-2xl);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.embed-footer-strip > summary::-webkit-details-marker { display: none; }
.embed-footer-strip > summary strong {
  color: var(--ink);
  font-weight: 900;
  margin-right: 0.4rem;
}
.embed-footer-strip > summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 0.18s var(--ease-out);
  color: var(--ink);
}
.embed-footer-strip[open] > summary::before { transform: rotate(90deg); }
.embed-footer-strip__panel {
  padding: 0 var(--space-lg) var(--space-lg);
}
.embed-footer-strip__panel > * + * { margin-top: var(--space-md); }
.embed-footer-strip__panel pre.codeblock { margin: 0; }
.embed-footer-strip__panel h3 {
  font-size: 1rem;
  font-weight: 900;
  margin: var(--space-md) 0 var(--space-xs);
}

/* small util: monospace inline emphasis used in lede */
.mono-strong {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--ink);
  font-weight: 700;
}

/* link-table — two-tier link editor for the list edit page ----------- */

.link-table {
  /* outer grid: [checkbox] [01] [content stretches] [×] */
  --link-row-cols: 1.9rem 2rem 1fr 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  container-type: inline-size;
}

.link-row {
  display: grid;
  grid-template-columns: var(--link-row-cols);
  gap: var(--space-sm);
  align-items: start;
  position: relative;
  padding: 0.7rem 0.75rem;
  background: var(--white-card);
  color: var(--sticker-ink);
  /* row sits on an always-light sticker surface; scope ink tokens so text
     and borders stay legible regardless of the page theme. */
  --ink: var(--sticker-ink);
  --ink-soft: var(--sticker-ink-soft);
  --ink-faint: var(--sticker-ink-faint);
  border: 1px solid color-mix(in oklch, var(--ink) 18%, transparent);
  border-radius: var(--r-chip);
  transition: background 0.15s var(--ease-out),
              border-color 0.15s var(--ease-out),
              box-shadow 0.15s var(--ease-out),
              transform 0.15s var(--ease-out);
}

.link-row:hover {
  border-color: color-mix(in oklch, var(--ink) 35%, transparent);
}

.link-row:focus-within {
  border-color: var(--ink);
  background: color-mix(in oklch, var(--white-card) 92%, var(--yellow));
}

/* content cell: two tiers — title on tier 1 (full width), url + desc on tier 2 */
.link-row__content {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.6rem;
  row-gap: 0.35rem;
  align-items: start;
}

.link-row__content > .link-row__thumb { grid-column: 1; grid-row: 1 / -1; align-self: start; }
.link-row__content > .link-row__input--title { grid-column: 2; grid-row: 1; }
.link-row__content > .link-row__meta { grid-column: 2; grid-row: 2; }

.link-row__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.5rem;
}

.link-row__thumb {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--ink);
  border-radius: var(--r-chip);
  background: var(--white-card);
  box-shadow: 3px 3px 0 var(--ink);
  overflow: hidden;
  text-decoration: none;
  color: var(--sticker-ink);
  font-weight: 900;
  font-size: 1.4rem;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out);
  flex-shrink: 0;
}
.link-row__thumb:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}
.link-row__thumb:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}
.link-row__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.link-row__thumb--favicon-frame { background: var(--white-card); }
.link-row__thumb--favicon-frame .link-row__thumb-favicon {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

/* letter fallback color tints */
.link-row__thumb--blue     { background: oklch(0.86 0.10 230); }
.link-row__thumb--yellow   { background: oklch(0.91 0.16 95); }
.link-row__thumb--green    { background: oklch(0.84 0.16 145); }
.link-row__thumb--pink     { background: oklch(0.78 0.18 0); }
.link-row__thumb--lavender { background: oklch(0.82 0.10 290); }
.link-row__thumb--peach    { background: oklch(0.88 0.13 50); }

/* placeholder on the + new row */
.link-row__thumb--placeholder {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 1.4rem;
}

.link-row__num {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: var(--t-label);
  font-weight: 700;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: -0.02em;
  padding-top: 0.55rem;
  /* drag handle */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  border-radius: var(--r-chip);
  transition: transform 0.12s var(--ease-out), background 0.12s var(--ease-out), color 0.12s var(--ease-out);
}
.link-row__num:hover {
  background: color-mix(in oklch, var(--yellow) 55%, var(--white-card));
  color: var(--ink);
  transform: rotate(-2deg);
}
.link-row__num:active,
.link-row.is-dragging .link-row__num {
  cursor: grabbing;
}
.link-row__num:focus-visible {
  outline: 2px dashed var(--ink);
  outline-offset: 3px;
}
/* the leading "+" on the new-link row is not a drag handle */
.link-row__num--new {
  cursor: default;
  touch-action: auto;
}
.link-row__num--new:hover {
  background: transparent;
  transform: none;
  color: var(--ink);
}

.link-row__input {
  width: 100%;
  padding: 0.45rem 0.6rem;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  box-shadow: none;
  transition: background 0.12s var(--ease-out), border-color 0.12s var(--ease-out);
}

.link-row__input--title {
  font-weight: 700;
  font-size: 1.0625rem;
}

.link-row__input--url {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.link-row__input--desc {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  font-style: italic;
}

.link-row__input:hover {
  background: color-mix(in oklch, var(--white-card) 70%, var(--paper));
}

.link-row__input:focus {
  outline: none;
  background: color-mix(in oklch, var(--yellow) 65%, var(--white-card));
  border-color: var(--ink);
  color: var(--ink);
  transform: none;
  box-shadow: none;
}

.link-row__input--url:focus { color: var(--ink); }
.link-row__input--desc:focus { color: var(--ink); font-style: normal; }

.link-row__input::placeholder {
  color: var(--ink-faint);
  opacity: 1;
  font-style: italic;
}

/* checkbox sticker — small ink-bordered square with hard offset shadow */
.link-row__check {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.4rem;
  cursor: pointer;
}
.link-row__check--placeholder { cursor: default; }
.link-row__check-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.link-row__check-box {
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--ink);
  background: var(--white-card);
  box-shadow: 2px 2px 0 var(--ink);
  border-radius: 3px;
  transition: background 0.12s var(--ease-out), transform 0.08s var(--ease-out);
}
.link-row__check-input:hover + .link-row__check-box { background: color-mix(in oklch, var(--yellow) 50%, var(--white-card)); }
.link-row__check-input:focus-visible + .link-row__check-box {
  outline: 2px dashed var(--ink);
  outline-offset: 3px;
}
.link-row__check-input:checked + .link-row__check-box {
  background: var(--yellow);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}
.link-row__check-input:checked + .link-row__check-box::after {
  content: "✓";
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1;
}

/* selected state on the row: yellow wash so eye can scan what's checked */
.link-row:has(.link-row__check-input:checked) {
  background: color-mix(in oklch, var(--white-card) 78%, var(--yellow));
  border-color: var(--ink);
}

/* × remove control — wraps a hidden checkbox so the form contract
   stays the same (links[i][remove]="true") */
.link-row__remove {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-top: 0.25rem;
  cursor: pointer;
}
.link-row__remove input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
  appearance: none; -webkit-appearance: none; border: 0; background: none; box-shadow: none;
}
.link-row__remove-x {
  display: inline-grid;
  place-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  border: 2px solid color-mix(in oklch, var(--ink) 35%, transparent);
  color: color-mix(in oklch, var(--ink) 50%, transparent);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.12s var(--ease-out),
              border-color 0.12s var(--ease-out),
              color 0.12s var(--ease-out),
              background 0.12s var(--ease-out);
}
.link-row__remove:hover .link-row__remove-x {
  border-color: var(--error);
  color: var(--error);
  transform: rotate(90deg);
}
.link-row__remove:has(input:focus-visible) .link-row__remove-x {
  border-color: var(--ink);
  color: var(--ink);
  outline: 2px dashed var(--ink);
  outline-offset: 3px;
}

/* marked for deletion: strikes through */
.link-row:has(input[name$="[remove]"]:checked) {
  background: color-mix(in oklch, var(--white-card) 80%, var(--error));
  border-color: color-mix(in oklch, var(--error) 50%, transparent);
}
.link-row:has(input[name$="[remove]"]:checked) .link-row__input {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: color-mix(in oklch, var(--error) 70%, transparent);
  color: color-mix(in oklch, var(--ink) 55%, transparent);
}
.link-row:has(input[name$="[remove]"]:checked) .link-row__remove-x {
  background: var(--error);
  border-color: var(--error);
  color: var(--paper);
  transform: rotate(0deg);
}

/* "+ add" row — dashed paper-yellow, lives at the bottom of the table */
.link-row--new {
  background: color-mix(in oklch, var(--yellow) 55%, var(--white-card));
  border: var(--border-w) dashed var(--ink);
  margin-top: 0.5rem;
}
.link-row--new:hover { background: color-mix(in oklch, var(--yellow) 70%, var(--white-card)); }
.link-row--new:focus-within {
  background: color-mix(in oklch, var(--yellow) 80%, var(--white-card));
  border-style: solid;
}
.link-row__num--new {
  font-size: 1.2rem;
  color: var(--ink);
  font-family: inherit;
  padding-top: 0.4rem;
}
.link-row__hint {
  font-size: var(--t-label);
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-align: center;
  white-space: nowrap;
  padding-top: 0.6rem;
}

/* narrower viewports — collapse url + desc onto their own rows */
@container (inline-size < 38rem) {
  .link-row {
    grid-template-columns: 1.9rem 2rem 1fr 2rem;
  }
  .link-row__content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }
  .link-row__content > .link-row__thumb { grid-column: 1; grid-row: 1; width: 100%; aspect-ratio: 16 / 9; height: auto; }
  .link-row__content > .link-row__input--title { grid-column: 1; grid-row: 2; }
  .link-row__content > .link-row__meta { grid-column: 1; grid-row: 3; grid-template-columns: 1fr; }
}

.link-row.is-dragging {
  opacity: 0.35;
}
.link-row__drag-ghost {
  position: fixed;
  top: 0; left: 0;
  z-index: 1000;
  pointer-events: none;
  width: var(--ghost-w, 100%);
  transform: translate(var(--ghost-x, 0), var(--ghost-y, 0)) rotate(-1deg);
  box-shadow: 8px 8px 0 var(--ink);
  opacity: 0.95;
  background: var(--white-card);
  border: 1px solid color-mix(in oklch, var(--ink) 35%, transparent);
  border-radius: var(--r-chip);
  padding: 0.7rem 0.75rem;
  display: grid;
  grid-template-columns: 1.9rem 2rem 1fr 2.25rem;
  gap: var(--space-sm);
  align-items: start;
}
.link-row__drag-ghost .link-row__num { cursor: grabbing; }

.link-row__input--autofilling {
  animation: autofill-pulse 1.2s var(--ease-out) infinite;
}
@keyframes autofill-pulse {
  0%, 100% { background: transparent; }
  50%      { background: color-mix(in oklch, var(--yellow) 40%, var(--white-card)); }
}
@media (prefers-reduced-motion: reduce) {
  .link-row__input--autofilling { animation: none; }
}

/* ========================================================================
   /explore — live atmosphere feed
   layout, hero, filter chips, link cards, pluck rows, right rail.
   reuses tokens: --ink, --paper, --white-card, --ink-soft, --border-w,
   --shadow-x/y(-sm), --r-sticker, --r-chip, --r-pill, --space-*, color
   tokens (--blue/--yellow/--green/--pink/--lavender/--peach).
   ======================================================================== */

.explore-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xl);
}

@media (min-width: 960px) {
  .explore-layout {
    grid-template-columns: minmax(0, 1fr) 18rem;
    align-items: start;
  }
  /* The quiet layout owns a single centered column — no right rail. */
  .explore-layout--quiet {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
    margin-inline: auto;
  }
}

/* dated heading — replaces the loud "explore" sticker. The page now
   reads as a posted thing with a publication time, not a live monitor. */

.explore-today {
  margin-block: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}
.explore-today__date {
  margin: 0;
  font-size: clamp(1.875rem, 2.4vw + 1rem, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.012em;
  line-height: 1.05;
  color: var(--ink);
}
.explore-today__dek {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: 50ch;
}
.explore-today__meta {
  margin: var(--space-xs) 0 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* live-pulse keyframe — used by the compact feed's "live" dot. Slower and
   lower-contrast than the old hero pulse so it whispers rather than blinks. */
@keyframes live-feed-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.78); }
}

/* sign-in nudge above the compact feed (logged out only) */
.explore-signin {
  margin-block: var(--space-xl) 0;
  font-size: var(--t-small);
  color: var(--ink-soft);
}
.explore-signin a {
  color: var(--ink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* "← back to today" link on the raw firehose view */
.explore-back-to-today {
  margin-block: var(--space-md) var(--space-md);
  font-size: var(--t-small);
  color: var(--ink-soft);
}
.explore-back-to-today a {
  color: var(--ink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* filter chip row */

.explore-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-block: var(--space-md) var(--space-xl);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  /* default chip is a ghost-pill — bg matches paper, so the outline carries
     the shape. edge has to be theme-aware here (cream on midnight, dark on
     cream) since the fill itself doesn't contrast the page. */
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--t-small);
  box-shadow: var(--shadow-x-sm) var(--shadow-y-sm) 0 0 var(--shadow-ink);
  transition: transform 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out);
}
@media (prefers-reduced-motion: no-preference) {
  .chip:hover {
    transform: translate(1px, 1px);
    box-shadow: 1.5px 1.5px 0 0 var(--shadow-ink);
  }
}
/* active/filled chip has its own light fill — wants the dark edge in both themes */
.chip--active { background: var(--yellow); border-color: var(--edge); }
.chip--dashed {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
  color: var(--ink-soft);
}
.chip--dashed:hover { color: var(--ink); background: var(--paper-soft); }
.chip--domain { background: var(--yellow); }
.chip-sep { color: var(--ink-soft); }

/* feed container */

.explore-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* link card — single sticker per shared link, two states (hydrated vs not) */

.link-card {
  position: relative;
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-sticker);
  background: var(--bg, var(--paper));
  box-shadow: var(--shadow-x) var(--shadow-y) 0 0 var(--shadow-ink);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  color: var(--ink);
  overflow: hidden; /* clips the image band to the rounded corners */
  padding: 0; /* body, cta, and footer have their own padding */
}
.link-card--blue     { --bg: var(--blue); }
.link-card--yellow   { --bg: var(--yellow); }
.link-card--green    { --bg: var(--green); }
.link-card--pink     { --bg: var(--pink); }
.link-card--lavender { --bg: var(--lavender); }
.link-card--peach    { --bg: var(--peach); }

/* image band — appears on cards with an OG image OR a resolver thumbnail */
.link-card__band {
  display: block;
  position: relative; /* anchors kind tag, play disc, duration chip */
  border-bottom: var(--border-w) solid var(--edge);
  background: var(--paper-soft);
  height: 9rem; /* ~144px */
  overflow: hidden;
}
.link-card__band-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ——— embed extras — extensions to the band when resolveEmbed() matches ———
   The card outer shape, body, byline, atmosphere row, and footer are
   unchanged. Embeds only ADD a kind tag (and, for play-kinds, a play disc),
   plus an optional meta strip between band and body. */

.link-card__kind-tag {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--white-card);
  color: var(--sticker-ink);
  border: var(--border-w) solid var(--edge);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  box-shadow: var(--shadow-x-sm) var(--shadow-y-sm) 0 0 var(--shadow-ink);
  transform: rotate(-2deg);
}
.link-card__kind-tag--yellow   { background: var(--yellow); }
.link-card__kind-tag--green    { background: var(--green); }
.link-card__kind-tag--pink     { background: var(--pink); }
.link-card__kind-tag--lavender { background: var(--lavender); }

.link-card__kind-glyph {
  display: inline-block;
}
/* video / audio / track — solid right-pointing triangle */
.link-card__kind-glyph--video {
  width: 0;
  height: 0;
  border-top: 0.45rem solid transparent;
  border-bottom: 0.45rem solid transparent;
  border-left: 0.6rem solid currentColor;
}
/* repo — small filled square (reads as "block of code") */
.link-card__kind-glyph--repo {
  width: 0.7rem;
  height: 0.7rem;
  background: currentColor;
  border-radius: 1.5px;
}
/* album — small filled circle (reads as "disc") */
.link-card__kind-glyph--album {
  width: 0.7rem;
  height: 0.7rem;
  background: currentColor;
  border-radius: 50%;
}

/* play affordance pinned to the thumbnail — sticker triangle, offset shadow.
   purely decorative; the whole band is the link. */
.link-card__play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--white-card);
  border: var(--border-w) solid var(--edge);
  box-shadow: var(--shadow-x-sm) var(--shadow-y-sm) 0 0 var(--shadow-ink);
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out);
}
.link-card__play::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px; /* optical center the triangle */
  border-top: 0.55rem solid transparent;
  border-bottom: 0.55rem solid transparent;
  border-left: 0.85rem solid var(--sticker-ink);
}
@media (prefers-reduced-motion: no-preference) {
  .link-card__band:hover .link-card__play {
    transform: translate(calc(-50% + 1px), calc(-50% + 1px));
    box-shadow: 1px 1px 0 0 var(--shadow-ink);
  }
}

/* duration chip — bottom-right of band, tiny monospace pill */
.link-card__duration {
  position: absolute;
  right: var(--space-sm);
  bottom: var(--space-sm);
  background: var(--sticker-ink);
  color: var(--sticker-paper);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.4rem;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
}

/* meta strip — between band and body. monospace, sentence-like with separators.
   Sits on a slightly recessed surface so it reads as a transit zone. Only
   emitted when the resolver supplies byline / meta / duration to surface. */
.link-card__embed-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: var(--space-xs) var(--space-md);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: var(--t-small);
  color: var(--ink);
  background: color-mix(in oklch, var(--ink) 7%, transparent);
  border-bottom: 2px dashed color-mix(in oklch, var(--ink) 35%, transparent);
}
.link-card__embed-meta strong { font-weight: 800; }
.link-card__embed-meta-sep { color: var(--ink-faint); }
.link-card__embed-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  background: var(--white-card);
  color: var(--sticker-ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
}

/* body — text block + byline */
.link-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-md) 0;
  color: var(--ink);
  text-decoration: none;
}

.link-card__text-link {
  display: block;
  color: var(--ink);
  text-decoration: none;
}
.link-card__text-link:hover .link-card__headline { text-decoration: underline; }

.link-card__headline {
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.015em;
  word-break: break-word;
  color: var(--ink);
}

.link-card__sub {
  margin: 0.35rem 0 0;
  font-size: var(--t-small);
  color: var(--ink-soft);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.link-card__domain-sm {
  margin: 0.45rem 0 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: var(--t-small);
  color: var(--ink-soft);
}

/* byline — compact one-line meta below the text block */
.link-card__byline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: var(--t-small);
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.link-card__avatar {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  flex-shrink: 0;
}
.link-card__handle {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  /* Long handles in narrow columns (~360px feature cards) truncate cleanly
     instead of breaking out of the card. min-width:0 lets the flex child
     shrink below its content's intrinsic width so ellipsis actually triggers. */
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-card__handle:hover { text-decoration: underline; }
.link-card__byline-sep { color: var(--ink-faint); }
.link-card__shared {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.01em;
}

/* webring CTA — dashed-border empty-slot treatment, brand-coherent */
.link-card__cta {
  margin: 0 var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border: 2px dashed var(--ink);
  border-radius: 8px;
  background: transparent;
  position: relative;
}
.link-card__cta-tag {
  position: absolute;
  top: -0.55rem;
  right: 0.7rem;
  background: var(--paper);
  color: var(--ink);
  border: var(--border-w) solid var(--edge);
  border-radius: 4px;
  padding: 0.05rem 0.4rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  font-weight: 800;
  text-transform: uppercase;
  transform: rotate(2deg);
  box-shadow: 1px 1px 0 0 var(--shadow-ink);
}
.link-card__cta-msg {
  margin: 0 0 var(--space-xs);
  font-size: var(--t-small);
  line-height: 1.4;
  color: var(--ink);
  opacity: 0.85;
}
.link-card__cta-form { margin: 0; }

/* footer — pluck row only, separated by dashed divider */
.link-card__footer {
  border-top: 2px dashed color-mix(in oklch, var(--ink) 45%, transparent);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.link-card__pluck {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.link-card__pluck-label {
  font-size: var(--t-small);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.link-card__signin,
.link-card__pin-empty {
  font-size: var(--t-small);
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* pluck squares — sticker chips colored to match a list */

.pluck {
  appearance: none;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 5px;
  box-shadow: 2px 2px 0 0 var(--shadow-ink);
  background: var(--bg, var(--white-card));
  cursor: pointer;
  transition: transform 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out);
  font: inherit;
  line-height: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .pluck:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 0 var(--shadow-ink);
  }
}
.pluck--blue     { --bg: var(--blue); }
.pluck--yellow   { --bg: var(--yellow); }
.pluck--green    { --bg: var(--green); }
.pluck--pink     { --bg: var(--pink); }
.pluck--lavender { --bg: var(--lavender); }
.pluck--peach    { --bg: var(--peach); }
.pluck--more {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pluck--inert { cursor: default; }
.pluck--inert:hover { transform: none; box-shadow: 2px 2px 0 0 var(--shadow-ink); }
.pluck--checked { display: grid; place-content: center; color: var(--ink); }
.pluck--checked::after { content: "\2713"; display: block; line-height: 1; font-weight: 900; }

/* "just-saved" confirmation — the card flips into a green banner */

.link-card.is-saving {
  background: var(--green);
  transform: rotate(-0.4deg);
}
.link-card.is-saving .link-card__band,
.link-card.is-saving .link-card__body,
.link-card.is-saving .link-card__cta,
.link-card.is-saving .link-card__footer {
  display: none;
}
.link-card__saved-banner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  font-weight: 900;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  margin: 0;
}
.link-card__undo {
  margin-left: auto;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: var(--t-small);
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* webring saving state — JS adds .link-card__cta--saving and replaces inner */
.link-card__cta--saving {
  background: color-mix(in oklch, var(--green) 25%, transparent);
}

/* right rail */

.explore-rail {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: sticky;
  top: var(--space-md);
  align-self: start;
}
.rail-card {
  position: relative;
  padding: var(--space-lg);
  background: var(--paper);
  /* default rail-card is a ghost-card on the page — theme-aware outline carries
     the shape since bg matches paper. coloured variants (--yellow, --blue) override. */
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r-sticker);
  box-shadow: var(--shadow-x) var(--shadow-y) 0 0 var(--shadow-ink);
}
/* coloured rail-card variants have their own light fill — want the dark edge */
.rail-card--yellow { background: var(--yellow); border-color: var(--edge); }
.rail-card--blue   { background: var(--blue);   border-color: var(--edge); }
.rail-card--dashed { border-style: dashed; box-shadow: none; }

.rail-card__label {
  display: block;
  margin-bottom: 0.6rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.7;
}
.rail-card__num {
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.rail-card__sub {
  margin: 0.5rem 0 0;
  font-size: var(--t-small);
  color: var(--ink);
  opacity: 0.85;
}

/* trending domains list — flex with dotted leader between domain and count */

.rail-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rail-card__list li a {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--ink);
  text-decoration: none;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
}
.rail-card__list li a:hover { text-decoration: none; }
.rail-card__list li a .domain {
  font-weight: 700;
  flex-shrink: 0;
}
/* dotted leader between domain and count */
.rail-card__list li a::after {
  content: "";
  flex: 1;
  border-bottom: 2px dotted color-mix(in oklch, var(--ink) 45%, transparent);
  transform: translateY(-3px);
  min-width: 1.5rem;
  order: 1;
}
.rail-card__list li a .domain { order: 0; }
.rail-card__list li a .count {
  order: 2;
  font-weight: 900;
  flex-shrink: 0;
}

.rail-card__legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.rail-card__legend li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--t-small);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .explore-live__dot { animation: none; }
  .link-card { transition: none; }
}

/* ── Atmosphere backlinks ──────────────────────────────────────────────── */

/* count link on each card */
.link-card__atmosphere {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--t-small);
  color: var(--ink-soft);
  text-decoration: none;
}
.link-card__atmosphere:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.link-card__atmosphere-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex-shrink: 0;
}

/* drill-in dialog */
.atmosphere-dialog {
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-sticker);
  padding: 0;
  max-inline-size: min(560px, 92vw);
  max-block-size: 80vh;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-x) var(--shadow-y) 0 0 var(--shadow-ink);
}
.atmosphere-dialog::backdrop {
  background: oklch(0 0 0 / 0.45);
}
.atmosphere-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  border-block-end: 2px dashed color-mix(in oklch, var(--ink) 45%, transparent);
}
.atmosphere-dialog__title {
  font-size: var(--t-body);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0;
}
.atmosphere-dialog__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 var(--space-2xs);
  color: var(--ink);
  border-radius: var(--r-chip);
}
.atmosphere-dialog__close:hover {
  background: color-mix(in oklch, var(--ink) 10%, transparent);
}
.atmosphere-dialog__body {
  padding: var(--space-sm) var(--space-md) var(--space-md);
  overflow-y: auto;
  max-block-size: calc(80vh - 3.5rem);
}

/* post list */
.atmosphere-posts {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-xs);
}
.atmosphere-post {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border: var(--border-w) solid var(--edge);
  border-radius: var(--r-chip);
  text-decoration: none;
  color: var(--ink);
  background: var(--paper-soft);
  box-shadow: var(--shadow-x-sm) var(--shadow-y-sm) 0 0 var(--shadow-ink);
  transition: box-shadow 0.1s var(--ease-out), transform 0.1s var(--ease-out);
}
.atmosphere-post:hover {
  box-shadow: calc(var(--shadow-x-sm) - 1.5px) calc(var(--shadow-y-sm) - 1.5px) 0 0 var(--shadow-ink);
  transform: translate(1.5px, 1.5px);
}
.atmosphere-post__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: var(--border-w) solid var(--edge);
  flex: 0 0 36px;
  background: var(--paper);
  object-fit: cover;
}
.atmosphere-post__avatar--placeholder {
  background: color-mix(in oklch, var(--ink) 12%, var(--paper));
}
.atmosphere-post__body {
  flex: 1 1 auto;
  min-width: 0;
}
.atmosphere-post__head {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  margin-block-end: 0.15em;
  flex-wrap: wrap;
}
.atmosphere-post__name {
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.atmosphere-post__handle {
  font-size: var(--t-small);
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.atmosphere-post__text {
  margin: 0;
  font-size: var(--t-small);
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* states */
.atmosphere-empty,
.atmosphere-error,
.atmosphere-more {
  margin: var(--space-xs) 0;
  font-size: var(--t-small);
  color: var(--ink-soft);
  text-align: center;
}
.atmosphere-more a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 700;
}

/* toast — short-lived sticker that confirms a bulk operation ----------- */
.toast {
  display: block;
  margin: 0 0 var(--space-md);
  padding: 0.65rem 0.9rem;
  /* yellow sticker surface — keep text dark in both themes */
  --ink: var(--sticker-ink);
  --ink-soft: var(--sticker-ink-soft);
  border: 2px solid var(--ink);
  border-radius: var(--r-chip);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 700;
  color: var(--ink);
  animation: toast-slide-in 250ms var(--ease-out) both;
}
.toast a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }
.toast--warn { background: color-mix(in oklch, var(--error) 25%, var(--white-card)); }

@keyframes toast-slide-in {
  from { transform: translateY(-8px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; }
}

/* organizer-bar — sticker action bar for bulk link operations -------- */
.organizer-bar {
  position: sticky;
  bottom: 1rem;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding: 0.65rem 0.9rem;
  /* yellow sticker surface — scope ink tokens for dark mode */
  --ink: var(--sticker-ink);
  --ink-soft: var(--sticker-ink-soft);
  --ink-faint: var(--sticker-ink-faint);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--r-chip);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  animation: organizer-bar-in 250ms var(--ease-out) both;
}
.organizer-bar[hidden] { display: none; }
.organizer-bar__count {
  font-weight: 700;
  font-size: var(--t-label);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  margin-right: auto;
}
.organizer-bar__close {
  appearance: none;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 50%;
  width: 1.9rem;
  height: 1.9rem;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
}

@keyframes organizer-bar-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .organizer-bar { animation: none; }
}

@container (inline-size < 36rem) {
  .organizer-bar { flex-direction: column; align-items: stretch; }
  .organizer-bar__count { margin-right: 0; text-align: center; }
}

/* picker — destination popover for bulk move/copy --------------------- */
.picker {
  /* always-light sticker surface — scope ink tokens for dark mode */
  --ink: var(--sticker-ink);
  --ink-soft: var(--sticker-ink-soft);
  --ink-faint: var(--sticker-ink-faint);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--r-chip);
  background: var(--white-card);
  box-shadow: 6px 6px 0 var(--ink);
  padding: var(--space-md);
  max-width: 28rem;
  width: min(90vw, 28rem);
  max-height: 70vh;
  overflow: auto;
}
.picker::backdrop { background: color-mix(in oklch, var(--ink) 30%, transparent); }
.picker[open] { animation: picker-pop 180ms var(--ease-out) both; }
@keyframes picker-pop {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.picker__title {
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  margin: 0 0 var(--space-sm);
}
.picker__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: var(--space-sm);
}
.picker__card {
  display: grid;
  align-content: space-between;
  gap: 0.3rem;
  padding: 0.6rem 0.7rem;
  min-height: 4.5rem;
  border: 2px solid var(--ink);
  border-radius: var(--r-chip);
  background: var(--white-card);
  box-shadow: 3px 3px 0 var(--ink);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  transition: transform 0.08s var(--ease-out), box-shadow 0.08s var(--ease-out);
}
.picker__card:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.picker__card:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.picker__card--blue     { background: oklch(0.86 0.10 230); }
.picker__card--yellow   { background: oklch(0.91 0.16 95); }
.picker__card--green    { background: oklch(0.84 0.16 145); }
.picker__card--pink     { background: oklch(0.78 0.18 0); }
.picker__card--lavender { background: oklch(0.82 0.10 290); }
.picker__card--peach    { background: oklch(0.88 0.13 50); }
.picker__card--paper    { background: var(--white-card); }
.picker__card--dashed   {
  background: color-mix(in oklch, var(--yellow) 35%, var(--white-card));
  border-style: dashed;
}
.picker__name { font-weight: 700; line-height: 1.2; }
.picker__meta { font-size: var(--t-label); color: var(--ink-soft); text-transform: lowercase; letter-spacing: 0.04em; }
.picker__empty {
  margin: var(--space-sm) 0 0;
  font-size: var(--t-label);
  color: var(--ink-soft);
  text-align: center;
}

/* new-list form inside the picker dialog */
.picker__form { display: grid; gap: var(--space-sm); }
.picker__form label { font-weight: 700; text-transform: lowercase; letter-spacing: 0.04em; font-size: var(--t-label); }
.picker__form input[name="name"] {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 2px solid var(--ink);
  border-radius: var(--r-chip);
  font-family: inherit;
  font-size: 1rem;
}
.picker__form button[type="submit"]:disabled { opacity: 0.5; cursor: not-allowed; }

/* dirty-form prompt — same sticker treatment, lives above the bar ---- */
.organizer-prompt {
  position: sticky;
  bottom: calc(1rem + 3.5rem);
  z-index: 21;
  padding: 0.65rem 0.9rem;
  margin-top: var(--space-md);
  /* yellow-tinted sticker surface — scope ink tokens for dark mode */
  --ink: var(--sticker-ink);
  --ink-soft: var(--sticker-ink-soft);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--r-chip);
  background: color-mix(in oklch, var(--yellow) 60%, var(--white-card));
  box-shadow: 4px 4px 0 var(--ink);
}
.organizer-prompt[hidden] { display: none; }
.organizer-prompt__title { font-weight: 700; margin-bottom: var(--space-xs); }
.organizer-prompt__actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* ========================================================================
   /explore — pinboard, pause, sensitive overlay, card variants
   added with the trending / pause / sensitive / hydrate-stamp rework.
   reuses existing tokens + sticker primitives only. no new colors / shadows.
   ======================================================================== */

/* card variants — auto: minimal vs feature based on data; hero forced from
   the highlights lane only. Headline weights/sizes work as overrides on the
   base .link-card__headline rule above. */
.link-card--minimal .link-card__headline {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.link-card--minimal .link-card__sub {
  -webkit-line-clamp: 1;
}

.link-card--feature .link-card__band {
  height: 6.5rem;
}
.link-card--feature .link-card__body {
  padding: var(--space-sm) var(--space-md);
}
.link-card--feature .link-card__headline {
  font-size: 0.98rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 800;
  hyphens: auto;
  overflow-wrap: break-word;
  /* Cap at 3 lines so a runaway headline can't make the card much taller
     than its siblings. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.link-card--feature .link-card__sub {
  font-size: 0.78rem;
  -webkit-line-clamp: 2;
}
.link-card--feature .link-card__byline {
  font-size: 0.72rem;
}
/* Tighten the save row inside feature cards — the full per-list pluck strip
   from the raw layout is overkill at this size. Keep it usable on touch
   (28px hit target stays). */
.link-card--feature .link-card__footer {
  padding: var(--space-sm) var(--space-md);
}
.link-card--feature .link-card__pluck-label {
  font-size: 0.75rem;
}
.link-card--feature .pluck {
  width: 1.4rem;
  height: 1.4rem;
}
.link-card--feature .pluck--more {
  width: 1.4rem;
  height: 1.4rem;
}

.link-card--hero .link-card__band {
  height: 10rem;
}
.link-card--hero .link-card__headline {
  font-size: clamp(1.1rem, 1.4vw, 1.45rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 900;
  hyphens: auto;
  overflow-wrap: break-word;
}
.link-card--hero .link-card__sub {
  font-size: 0.85rem;
  -webkit-line-clamp: 3;
}

/* hydrate-stamp — physical "card landed on the page" snap, NOT a glow.
   bare card upgrades to feature card; this fires once when title + image
   patch in via the SSE update tick. */
@keyframes link-card-hydrate-stamp {
  0%   { transform: scale(0.985); }
  60%  { transform: scale(1.005); }
  100% { transform: scale(1); }
}
.link-card--hydrated {
  animation: link-card-hydrate-stamp 700ms var(--ease-out) both;
  transform-origin: 30% 50%;
}
@media (prefers-reduced-motion: reduce) {
  .link-card--hydrated { animation: none; }
}

/* sensitive overlay — yellow rotated sticker covers the card body, body
   blurs behind it. Reuses .sticker.sticker--yellow.tilt-l on the button
   itself; this rule just positions the sticker over the card and stretches
   the body blur. */
.link-card { position: relative; }
.link-card--sensitive > :not(.link-card__sensitive-overlay) {
  filter: blur(20px);
  pointer-events: none;
  user-select: none;
}
.link-card__sensitive-overlay {
  position: absolute;
  inset: var(--space-md);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  font: inherit;
  text-align: center;
}
.link-card__sensitive-overlay-heading {
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.08em;
}
.link-card__sensitive-overlay-sub {
  font-size: 0.85rem;
  color: var(--sticker-ink-soft);
}
.link-card__sensitive-overlay-labels {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--sticker-ink-faint);
}

/* highlights lane — "today's pinboard" hero + 4-up grid.
   flex column (not grid) here because pairing `display: grid` with
   `container-type: inline-size` (set below) causes the implicit grid
   column to size to max-content, blowing past the parent's 640px main
   column when long-running children get content-sized first. flex
   column avoids the intrinsic-sizing trap entirely. */
.explore-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-block: var(--space-md) var(--space-2xl);
  min-width: 0; /* allow children to shrink below their content's intrinsic width */
}
.explore-highlights__hero {
  /* the rotation is what makes the lane feel "placed" rather than
     templated. transform-origin biased left so the card overlaps the
     dotted-paper grid lines on its right edge instead of jutting off page. */
  transform: rotate(1.3deg);
  transform-origin: 25% 50%;
  margin-block: var(--space-md);
}
/* Pinboard grid is 2-up. The earlier 4-up rule made each cell ~170px wide
   inside the quiet layout's 760px column, which cramped headlines into
   8-line stacks with mid-word breaks. 2-up gives ~360px per card —
   enough room for a 4-line headline + a real image band. */
.explore-highlights__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl) var(--space-lg);
}
/* Subtle alternating tilts on grid cards — the brand voice is "things
   look placed, not generated" (handmade / scrapbook). 0.4–0.6° is small
   enough that it reads as intentional placement without looking chaotic.
   The hero already tilts +1.3°; the grid tilts whisper underneath. */
.explore-highlights__grid > li:nth-child(1) > .link-card { transform: rotate(-0.5deg); }
.explore-highlights__grid > li:nth-child(2) > .link-card { transform: rotate(0.4deg); }
.explore-highlights__grid > li:nth-child(3) > .link-card { transform: rotate(0.5deg); }
.explore-highlights__grid > li:nth-child(4) > .link-card { transform: rotate(-0.6deg); }
@media (max-width: 540px) {
  /* Phone: don't tilt the hero — readability beats whimsy at small widths. */
  .explore-highlights__hero { transform: none; }
  /* Single-column the grid below the hero. 2-up at 380px is too tight. */
  .explore-highlights__grid { grid-template-columns: 1fr; }
  /* And drop the per-card tilts — at full single-column width the rotation
     reads as "card is broken" rather than "placed by hand." */
  .explore-highlights__grid > li > .link-card { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .explore-highlights__hero { transform: none; }
  .explore-highlights__grid > li > .link-card { transform: none; }
}

/* The base .sticker rule sets display: inline-flex, which is more specific
   than the user-agent [hidden] { display: none } on its own. Force the
   hidden attribute to win for sticker-flavored elements that get toggled. */
.sticker[hidden] {
  display: none !important;
}

/* compact live feed — quiet "also flowing through" tail under the pinboard.
   One row per link, no image band, no per-list pluck row. ~15 rows visible.
   The visual weight is intentionally lower than the pinboard cards so the
   eye reads the page as "pinboard, then everything else." */

.explore-feed-compact {
  margin-block: var(--space-2xl) var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.explore-feed-compact__head {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.explore-feed-compact__head-text { color: var(--ink-soft); }
.explore-feed-compact__head-sep { color: var(--ink-faint); }
.explore-feed-compact__head-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
}
.explore-feed-compact__live-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--green);
  border: 1.25px solid var(--ink);
  border-radius: 50%;
  flex-shrink: 0;
  animation: live-feed-pulse 2.2s var(--ease-out) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .explore-feed-compact__live-dot { animation: none; }
}

.explore-feed-compact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  /* Hairline rules between rows instead of hard borders — keeps the rhythm
     readable without putting visual weight on each row. */
  border-top: 1px solid color-mix(in oklch, var(--ink) 14%, transparent);
}

.live-row {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid color-mix(in oklch, var(--ink) 14%, transparent);
  min-width: 0;
}

.live-row__link {
  display: contents;
  color: var(--ink);
  text-decoration: none;
}
.live-row__link:focus-visible .live-row__title {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 2px;
}

.live-row__thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid color-mix(in oklch, var(--ink) 18%, transparent);
  background: var(--paper-soft);
  flex-shrink: 0;
}
.live-row__thumb--placeholder {
  /* When no thumbnail, render a quiet ink-tinted square so the column
     stays consistent. Uses radial dot to telegraph "no preview yet". */
  background:
    radial-gradient(circle at 50% 50%, color-mix(in oklch, var(--ink) 18%, transparent) 0 1.5px, transparent 2px),
    var(--paper-soft);
  background-size: 8px 8px;
}

.live-row__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.live-row__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  /* Single-line truncate on desktop. The grid column is min-width:0 so
     this actually clips instead of overflowing. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-row__link:hover .live-row__title {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.live-row__meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
}
.live-row__domain { color: var(--ink-soft); }
.live-row__sep { color: var(--ink-faint); }
.live-row__byline { color: var(--ink-faint); }

.live-row__save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1.5px solid color-mix(in oklch, var(--ink) 30%, transparent);
  background: transparent;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.12s var(--ease-out), color 0.12s var(--ease-out), background 0.12s var(--ease-out);
}
.live-row__save:hover,
.live-row__save:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
  background: color-mix(in oklch, var(--yellow) 35%, transparent);
  outline: none;
}

/* sensitive content compact-row variant — replaces the link area with a
   tap-to-reveal button. Same primitive as the full-card overlay, scaled down. */
.live-row__sensitive {
  appearance: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.25rem 0.5rem;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.live-row__sensitive-tag {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.live-row__sensitive-labels {
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.live-row__sensitive-cta {
  margin-inline-start: auto;
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Phones: stack the meta line under the title rather than truncating
   too aggressively. The save button stays right-aligned. */
@media (max-width: 540px) {
  .live-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
  }
  .live-row__thumb { width: 36px; height: 36px; }
  .live-row__title { white-space: normal; line-height: 1.25; }
  .live-row__meta { flex-wrap: wrap; }
}

/* SSE entrance — slide+fade for new rows. Plays once on insertion via the
   client-side `node.animate(...)` call. CSS-side fallback for browsers
   without the WAAPI call (none in scope, but keeps the transition cheap). */
@keyframes live-row-enter {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* escape-hatch footer — two muted text links to the firehose surfaces.
   Plain text, not stickers. Power users find it; casual visitors don't. */
.explore-escape {
  margin-block: var(--space-3xl) var(--space-2xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid color-mix(in oklch, var(--ink) 12%, transparent);
}
.explore-escape__link {
  font-size: var(--t-small);
  color: var(--ink-soft);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.explore-escape__link:hover { color: var(--ink); }

/* ========================================================================
   /explore — sky overhead overhaul

   The quiet layout grows two new lanes above the editorial pinboard:
   sky-strip (the ambient pulse) and velocity-pile (what's accelerating).
   The flowing-through feed becomes a 2-col grid with a live-count cue
   above it. None of this touches the raw-firehose layout.
   ======================================================================== */

/* widen the quiet layout — the original 760px max kept the page calm, but
   with the new lanes above the fold we need room to breathe across screens. */
@media (min-width: 960px) {
  .explore-layout--quiet { max-width: 1040px; }
}

/* page-level header: date breadcrumb + lens toggle on one row */
.explore-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin-block: var(--space-xl) var(--space-lg);
}
.explore-header__date {
  margin: 0;
  font-size: clamp(1.5rem, 1.4vw + 1rem, 2rem);
  font-weight: 800;
  letter-spacing: -0.012em;
  line-height: 1.05;
  color: var(--ink);
  text-transform: lowercase;
}

/* lens toggle — two ghost pills wrapped in a tablist. The active one
   flips to a yellow sticker treatment so it reads as "selected" without
   relying on color alone (font weight bumps too). */
.lens-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--paper-soft);
  box-shadow: var(--shadow-x-sm) var(--shadow-y-sm) 0 0 var(--shadow-ink);
}
.lens-toggle__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.85rem;
  border-radius: var(--r-pill);
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1;
}
.lens-toggle__chip:hover { color: var(--ink); }
.lens-toggle__chip.is-active {
  background: var(--yellow);
  color: var(--sticker-ink);
  font-weight: 800;
}

.lens-warning {
  margin-block: var(--space-md) var(--space-lg);
  font-size: var(--t-small);
  color: var(--ink-soft);
}
.lens-warning a {
  color: var(--ink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* sky strip — the ambient pulse band. Anchored by an ink rate sticker
   on the left, a horizontal stream of domain chips on the right. The
   "pulse" is a small dot that scales on every incoming SSE tick (JS),
   so the strip visibly breathes when bsky is busy. */
.sky-strip {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-md);
  margin-block: 0 var(--space-xl);
  background: color-mix(in oklch, var(--paper-soft) 50%, transparent);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-x-sm) var(--shadow-y-sm) 0 0 var(--shadow-ink);
  overflow: hidden;
}
.sky-strip__pulse {
  flex-shrink: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  .sky-strip__pulse {
    animation: sky-pulse 1.8s ease-in-out infinite;
  }
}
@keyframes sky-pulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(0.65); opacity: 0.55; }
}
/* JS adds .sky-strip__pulse--burst for ~600ms when a new event arrives;
   we briefly amp the scale and color saturation so the strip feels
   reactive even at low rates. */
.sky-strip__pulse--burst {
  background: var(--pink);
  animation: sky-pulse-burst 0.6s var(--ease-out) forwards;
}
@keyframes sky-pulse-burst {
  0%   { transform: scale(1.6); }
  100% { transform: scale(1);   }
}

.sky-strip__rate {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  flex-shrink: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  text-transform: lowercase;
}
.sky-strip__rate-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: color-mix(in oklch, var(--sticker-paper) 70%, transparent);
}
.sky-strip__rate-num {
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--sticker-paper);
}
.sky-strip__rate-unit {
  font-size: 0.7rem;
  color: color-mix(in oklch, var(--sticker-paper) 70%, transparent);
}

.sky-strip__lens-tag {
  flex-shrink: 0;
  padding: 0.25rem 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sky-strip__stream {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  /* gentle fade-out at the trailing edge so chips don't appear to be cut off
     mid-letter. Works in both themes because the gradient matches paper. */
  mask-image: linear-gradient(to right, black calc(100% - 3rem), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black calc(100% - 3rem), transparent 100%);
}
.sky-strip__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.sky-strip__chip-domain {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  text-transform: lowercase;
}
.sky-strip__chip-count {
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  padding: 0 0.32rem;
  border-radius: 999px;
  background: color-mix(in oklch, var(--sticker-ink) 18%, transparent);
}

/* quiet-state line — shows when the chip stream is empty so the strip
   doesn't read as broken. Client JS hides it the moment a chip arrives. */
.sky-strip__quiet {
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  font-style: italic;
}

@media (max-width: 600px) {
  .sky-strip { padding: var(--space-sm) var(--space-md); gap: var(--space-sm); }
  .sky-strip__rate-num { font-size: 0.95rem; }
  .sky-strip__chip { font-size: 0.72rem; }
}

/* velocity pile — varied tile sizes, mixed sticker colors, slight rotations.
   Symmetry is the enemy (PRODUCT principle 5) so the grid intentionally
   breaks pattern across tiles. */
.velocity-pile {
  margin-block: 0 var(--space-2xl);
}
.velocity-pile__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.velocity-pile__head h2 {
  margin: 0;
  padding: 0.2rem 0.65rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.velocity-pile__sub {
  margin: 0;
  font-size: var(--t-small);
  color: var(--ink-soft);
}
.velocity-pile__placeholder {
  padding: var(--space-2xl);
  min-height: 8rem;
  flex-direction: column;
  gap: var(--space-md);
}

/* The pile is a uniform 3-col grid at desktop. We considered varied
   spans (2x2 hero, tall/wide/narrow slots) but content-driven heights
   produced grid gaps when tile lengths diverged — short hero + long
   "tall" left an empty quadrant in the hero cell. Asymmetry now comes
   from color rotation, tilt rotation, and the rank-1 emphasis below;
   physical tile size stays uniform so the grid stays gap-free. */
.velocity-pile__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.velocity-pile__tile {
  position: relative;
  min-width: 0;
}
.velocity-pile__tile > .link-card {
  margin: 0;
  width: 100%;
  height: 100%;
}
/* The webring "+ add to ring" CTA bloats card height unpredictably (extra
   ~120px of dashed sticker) and breaks the uniform grid. Velocity tiles
   are kinetic-pile cards, not adoption surfaces — readers who want to add
   a domain to a ring can do that from the editorial pinboard or the raw
   firehose view. Hide here only; CTA still renders elsewhere. */
.velocity-pile__tile .link-card__cta { display: none; }

/* velocity chip — sits over the top-left corner of the tile, partially
   overlapping the card edge so it reads as a sticker stuck on after the
   fact. Anchored absolute so it doesn't push the card geometry. */
.velocity-chip {
  position: absolute;
  top: -0.45rem;
  left: -0.3rem;
  z-index: 2;
  padding: 0.18rem 0.45rem;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
}
.velocity-chip__arrow {
  display: inline-block;
  margin-right: 0.1rem;
  font-weight: 900;
  transform: translateY(-1px);
}

@media (min-width: 720px) {
  .velocity-pile__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .velocity-pile__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Rank-1 (the most-accelerating URL) gets a slightly heavier tilt and a
   chunkier sticker chip — visual emphasis without bending the grid. */
.velocity-pile__tile--rank-1 .velocity-chip {
  top: -0.6rem;
  left: -0.5rem;
  padding: 0.24rem 0.6rem;
  font-size: 0.74rem;
  --sx: var(--shadow-x);
  --sy: var(--shadow-y);
}

/* recolor the underlying .link-card per-slot — overriding the deterministic
   resolveCardColor result so adjacent tiles always feel distinct. The slot
   color comes from the PILE_COLORS array in explore.ts. */
.velocity-pile__tile--pink    > .link-card { --bg: var(--pink); }
.velocity-pile__tile--yellow  > .link-card { --bg: var(--yellow); }
.velocity-pile__tile--green   > .link-card { --bg: var(--green); }
.velocity-pile__tile--blue    > .link-card { --bg: var(--blue); }
.velocity-pile__tile--lavender > .link-card{ --bg: var(--lavender); }
.velocity-pile__tile--peach   > .link-card { --bg: var(--peach); }

/* editorial pinboard — same layout as before, just framed as one lane of
   several now instead of the page's only content. */
.editorial-pinboard {
  margin-block: 0 var(--space-2xl);
}
.editorial-pinboard__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.editorial-pinboard__head h2 {
  margin: 0;
  padding: 0.2rem 0.65rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.editorial-pinboard__sub {
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}
.editorial-pinboard__placeholder {
  padding: var(--space-2xl);
  min-height: 10rem;
  flex-direction: column;
  gap: var(--space-md);
}

/* live-count cue — a small "↓ N more flowing through" sticker that sits
   between the editorial pinboard and the live tail, telling readers the
   page extends. Sticker treatment keeps it on-brand; the count is live. */
.live-count-cue {
  margin: var(--space-xl) 0 var(--space-md);
  text-align: center;
}
.live-count-cue a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: lowercase;
}
.live-count-cue a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* flowing feed — the renamed "also flowing through" lane. Two-column at
   wide widths, single-column on phones. Reuses the existing .live-row
   styling for individual rows. */
.flowing-feed {
  margin-block: 0 var(--space-2xl);
}
.flowing-feed__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 var(--space-md);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.flowing-feed__head-text { color: var(--ink-soft); }
.flowing-feed__head-sep  { color: var(--ink-faint); }
.flowing-feed__head-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
}
.flowing-feed__live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  .flowing-feed__live-dot { animation: live-feed-pulse 2.4s ease-in-out infinite; }
}

.flowing-feed__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid color-mix(in oklch, var(--ink) 12%, transparent);
}

@media (min-width: 720px) {
  /* 2-column at tablet+. The column-rule replicates the row separator so
     adjacent columns don't visually merge. */
  .flowing-feed__list {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-lg);
  }
  /* each row keeps its bottom border, so the 2-col grid reads as paired
     rows of notebook ruling rather than a tiled card wall. */
}

.flowing-feed__empty {
  grid-column: 1 / -1;
  padding: var(--space-xl);
  text-align: center;
  color: var(--ink-soft);
}

