/* Mobile-first, no framework (spec B.5: most of this audience is on a phone,
   often listening while browsing). Dark-only -- see design decision 3 in
   docs/superpowers/specs/2026-08-24-website-refresh-design.md. */

:root {
  color-scheme: dark;

  --bg: #1c191f;
  --bg-deep: #141217;
  --surface: #27232c;
  --surface-2: #302c36;
  --ink: #f7f3eb;
  --ink-soft: #b8b0a6;
  --faint: #908880;        /* on --bg only -- 3.91:1 on --surface-2, fails AA */
  --line: #433e48;

  /* Cream primary-button fill. NOT a link colour -- see decision 13. */
  --accent: #f7f3eb;
  --accent-fg: #1a171c;

  /* Gels light the room: borders, tape, washes. Neither passes AA as text,
     so anything that spells words uses the -text variants. */
  --gel-magenta: #d4527e;
  --gel-blue: #5a4ecf;
  --gel-magenta-text: #dd7a99;
  --gel-blue-text: #a198dc;

  /* Ratings only. There is no other gold in this UI. */
  --star: #daa520;
  --star-hot: #e8b923;

  --ok: #7bbf95;
  --bad: #e78585;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius: var(--radius-md);   /* alias: pre-refresh rules still reference it */

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-sans: "Figtree", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mark: "Shantell Sans", "Segoe Script", cursive;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --shell: 69rem;   /* header, footer and the wide grids */
  --measure: 42rem; /* prose column -- About, bios, form help */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--ink) 70%, transparent);
  outline-offset: 3px;
}

/* Links carry an underline rather than a colour: magenta and blue are stage
   gels, never link colours, and cream-on-dark alone reads as body text. */
a {
  color: var(--ink);
  text-decoration-color: color-mix(in oklab, var(--ink) 45%, transparent);
  text-underline-offset: 0.18em;
}

a:hover { text-decoration-color: var(--ink); }

/* Type helpers --------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 0.9;
  text-transform: uppercase;
}

.kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.mark {
  font-family: var(--font-mark);
  font-weight: 600;
}

/* Stage wash ----------------------------------------------------------- */

/* Two gels only -- magenta and purple-blue, several sources. Anchored to the
   top of the document and one viewport tall, so it scrolls away rather than
   stretching down a long page like About. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 95% 52% at 50% -6%, rgba(212, 82, 126, 0.34), transparent 58%),
    radial-gradient(ellipse 38% 42% at 8% 4%, rgba(212, 82, 126, 0.16), transparent 50%),
    radial-gradient(ellipse 50% 52% at 94% 0%, rgba(90, 78, 207, 0.34), transparent 56%),
    radial-gradient(ellipse 32% 38% at 80% 22%, rgba(90, 78, 207, 0.12), transparent 48%);
}

/* Film grain -- keeps the gels from banding on cheap phone panels. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
}

.site-header-bar {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
}

.site-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.site-logo {
  display: block;
  height: 40px;
  width: auto;
  flex: none;
}

.site-wordmark {
  display: grid;
  gap: 0.1rem;
}

.site-wordmark-kicker {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-wordmark-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  align-items: center;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 150ms var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--ink); }

.site-nav .site-nav-cta {
  min-height: 0;
  padding: 0.4rem 0.9rem;
  color: var(--accent-fg);
  font-size: 0.9rem;
}

.site-nav .site-nav-cta:hover { color: var(--accent-fg); }

/* Stamps ---------------------------------------------------------------- */

/* Text uses the lightened variants: the raw gels are 4.39:1 and 2.84:1 on the
   page background, and a stamp at 0.82rem is not large text. */
.stamp {
  display: inline-block;
  font-family: var(--font-mark);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18em 0.55em;
  border: 2px solid var(--gel-magenta);
  border-radius: var(--radius-xs);
  color: var(--gel-magenta-text);
  transform: rotate(-2.5deg);
}

.stamp-blue {
  border-color: var(--gel-blue);
  color: var(--gel-blue-text);
  transform: rotate(2deg);
}

/* Polaroid -------------------------------------------------------------- */

.polaroid-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.polaroid {
  position: relative;
  display: block;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 0.45rem 0.45rem 2.1rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 10px 28px rgba(0, 0, 0, 0.38);
  transform: rotate(var(--tilt, -1.2deg));
  transition:
    transform 200ms var(--ease),
    box-shadow 200ms var(--ease);
}

/* Tape across the top edge. */
.polaroid::before {
  content: "";
  position: absolute;
  top: -0.45rem;
  left: 50%;
  width: 2.6rem;
  height: 0.7rem;
  translate: -50% 0;
  rotate: -8deg;
  background: color-mix(in oklab, var(--gel-magenta) 35%, transparent);
  opacity: 0.85;
  pointer-events: none;
}

.polaroid-link:hover .polaroid,
.polaroid-link:focus-visible .polaroid {
  transform: rotate(0deg) translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 16px 36px rgba(0, 0, 0, 0.45);
}

.polaroid-photo {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface-2);
}

.polaroid-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;   /* faces sit high in a headshot */
}

/* Gel wash on the board only. Absent on a candidate's own detail page. */
.photo-gel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: color;
  background: linear-gradient(
    135deg,
    color-mix(in oklab, var(--gel-magenta) 38%, transparent),
    transparent 48%,
    color-mix(in oklab, var(--gel-blue) 38%, transparent)
  );
}

.polaroid-caption {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.35rem;
  font-family: var(--font-mark);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--accent-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.polaroid-mini { padding: 0.3rem 0.3rem 0.3rem; }

.polaroid-mini::before {
  width: 1.4rem;
  height: 0.4rem;
  top: -0.28rem;
}

.polaroid-meta {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.4rem;
  justify-items: start;
}

/* Ticker --------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid color-mix(in oklab, var(--ink) 8%, transparent);
  background: color-mix(in oklab, var(--bg-deep) 70%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.25rem;
  padding: 0.45rem 0;
  animation: marquee 42s linear infinite;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.marquee-item::after {
  content: "·";
  margin-left: 2.25rem;
  color: var(--gel-magenta-text);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Footer --------------------------------------------------------------- */

.site-footer {
  max-width: var(--shell);
  margin: 4rem auto 0;
  padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}

.site-footer-line {
  margin: 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer-mark {
  margin: 0;
  font-family: var(--font-mark);
  font-weight: 600;
  color: var(--gel-magenta-text);
}

.site-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 2rem 1.25rem 2rem;
}

/* Prose pages keep a readable measure inside the wide shell. */
.site-main-prose { max-width: var(--measure); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 0.9;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 2.75rem 0 0.75rem; }
h3 { font-size: 1.3rem; margin: 1.75rem 0 0.5rem; }

/* Section label + title, the stamp sitting above the marquee heading. */
.section-head { margin: 2.75rem 0 1rem; }
.section-head > .stamp { margin-bottom: 0.85rem; }
.section-head h1,
.section-head h2 { margin: 0 0 0.4rem; }

.page-intro {
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}

/* Episode list */

.episode-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.episode-card {
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.episode-card-link {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  text-decoration: none;
  color: inherit;
  border-radius: inherit;
}

.episode-card-link:hover,
.episode-card-link:focus-visible {
  outline: none;
}

.episode-card:has(.episode-card-link:hover),
.episode-card:has(.episode-card-link:focus-visible) {
  border-color: color-mix(in oklab, var(--ink) 30%, transparent);
}

.episode-art {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 6px;
  object-fit: cover;
  background: var(--line);
}

.episode-body { min-width: 0; }

.episode-title {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.episode-meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.badge {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--ink) 22%, transparent);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Episode detail */

.episode-detail-head {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.episode-detail-art {
  width: 160px;
  height: 160px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--line);
}

.note {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.empty-state {
  padding: 1.75rem;
  background: color-mix(in oklab, var(--surface-2) 55%, transparent);
  border: 1px dashed color-mix(in oklab, var(--ink) 20%, transparent);
  border-radius: var(--radius-xl);
  color: var(--ink-soft);
}

.pagination {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  font-size: 0.95rem;
}

/* Messages */

.messages {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.message {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.95rem;
}

.message-success { border-color: var(--ok); color: var(--ok); }
.message-error { border-color: var(--bad); color: var(--bad); }

/* Candidates */

/* A wall of snapshots, not two giant headshots -- 5 up on a desktop, 2 on a
   phone. Rows are tall because each polaroid carries a caption border. */
.candidate-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.9rem 1.25rem;
}

@media (min-width: 640px) { .candidate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .candidate-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1120px) { .candidate-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.candidate-card { min-width: 0; }

.candidate-snippet { margin: 0; }

.candidate-detail-head {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.polaroid-detail { width: 220px; flex: none; }

.candidate-bio { white-space: pre-wrap; }

.sort-bar {
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.sort-bar a,
.sort-bar strong {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
  color: var(--ink-soft);
}

.sort-bar strong {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}

.sort-bar a:hover { color: var(--ink); }

audio {
  width: 100%;
  max-width: 34rem;
  margin: 0.25rem 0 0.5rem;
}

/* Home page ------------------------------------------------------------- */

a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin: 0 0 3.5rem;
  display: flex;
  align-items: center;
  min-height: 26rem;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Left-to-right, not a centre vignette: type stays readable on the left and
   the mics stay visible on the right. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right,
      var(--bg) 5%,
      color-mix(in oklab, var(--bg) 80%, transparent) 40%,
      transparent 80%),
    linear-gradient(to top,
      color-mix(in oklab, var(--bg) 70%, transparent),
      transparent 45%);
}

.hero-copy {
  padding: 2.5rem 1.75rem;
  max-width: 34rem;
}

.hero-title {
  display: grid;
  font-size: clamp(3.2rem, 12vw, 7.2rem);
  margin: 0.9rem 0 1rem;
}

.hero-lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.hero-fine { margin: 0; color: var(--faint); }

/* Leading demo + Not a vote. items-start so the note is not stretched to the
   polaroid's height -- the mock is explicit that this row should not be one
   tall portrait dwarfing the panel beside it. */
.feature-row {
  display: grid;
  gap: 1.75rem;
  align-items: start;
  margin: 0 0 1rem;
}

@media (min-width: 900px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

.leading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.5rem;
}

.leading-polaroid { flex: 0 0 auto; width: min(16rem, 100%); }

/* 6:5 rather than a tall 4:5 -- a portrait stacked above copy shoves the
   whole page down and dwarfs the note beside it. */
.leading-photo { aspect-ratio: 6 / 5; }

.leading-copy {
  flex: 1 1 12rem;
  display: grid;
  gap: 0.6rem;
  justify-items: start;
}

.leading-copy p { margin: 0; }

.taped-note {
  background: var(--surface-2);
  border: 1px dashed color-mix(in oklab, var(--ink) 22%, transparent);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transform: rotate(1.4deg);
}

.taped-note-title { margin: 0.85rem 0 0.75rem; font-size: clamp(1.8rem, 4vw, 2.4rem); }

.taped-note p { margin: 0 0 0.85rem; }
.taped-note p:last-child { margin: 0; }

/* Section heading with a trailing link on the same line. */
.section-head-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

/* Stars ----------------------------------------------------------------- */

.stars {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.5rem;
  margin: 0;
  font-size: 0.85rem;
}

.stars-glyphs {
  color: var(--star);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.stars-value { color: var(--ink-soft); }

.stars-empty .stars-glyphs { color: color-mix(in oklab, var(--ink) 28%, transparent); }

/* Audition workspace */

.cta { font-size: 1.1rem; font-weight: 600; margin: 1.25rem 0 0.25rem; }

.status-line {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  margin: 0 0 1rem;
}

.status-live { border-color: var(--ok); }
.status-pending { border-color: var(--line); }
.status-rejected { border-color: var(--bad); }

.preview-banner { border: 1px dashed var(--line); padding: 0.6rem 0.8rem; border-radius: var(--radius); }

.stacked-form { margin: 0 0 1.5rem; }

.stacked-form p { margin: 0 0 1rem; }

.stacked-form label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.stacked-form input[type="text"],
.stacked-form input[type="email"],
.stacked-form select,
.stacked-form textarea {
  width: 100%;
  max-width: 30rem;
  padding: 0.55rem 0.65rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stacked-form textarea { max-width: 100%; }

.stacked-form .helptext {
  display: block;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.stacked-form ul.errorlist {
  list-style: none;
  margin: 0 0 0.35rem;
  padding: 0;
  color: var(--bad);
  font-size: 0.9rem;
}

button,
a.button {
  font: inherit;
  font-weight: 600;
  min-height: 48px;
  padding: 0.5rem 1.1rem;
  color: var(--accent-fg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: transform 150ms var(--ease);
}

button:active,
a.button:active { transform: scale(0.96); }

.button-quiet {
  color: var(--ink);
  background: transparent;
  border-color: color-mix(in oklab, var(--ink) 22%, transparent);
}

.favorites-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.appearance-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.appearance-card {
  padding: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rating-summary { margin: 0.35rem 0 0.15rem; font-weight: 600; }

.star-form { margin: 0.4rem 0 0; }

.star-legend { margin: 0 0 0.35rem; }

.star-form button.star {
  font-size: 1.45rem;
  line-height: 1;
  padding: 0.4rem 0.55rem;
  color: color-mix(in oklab, var(--ink) 35%, transparent);
  background: var(--surface);
  border: 1px solid var(--line);
  margin: 0 0.15rem 0.15rem 0;
}

.star-form button.star-on { color: var(--star); border-color: var(--star); }
.star-form button.star:hover { color: var(--star-hot); }


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

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

  /* The ticker is decorative and aria-hidden, so a frozen first row is the
     honest resting state -- not a scroll bar the reader has to drag. */
  .marquee-track { animation: none; }

  .polaroid,
  .polaroid-link:hover .polaroid,
  .polaroid-link:focus-visible .polaroid,
  .taped-note { transform: none; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-footer-mark a {
  color: inherit;
  text-decoration-color: color-mix(in oklab, var(--gel-magenta-text) 55%, transparent);
}

.site-footer-mark a:hover { text-decoration-color: var(--gel-magenta-text); }

/* A profile with no photograph yet: a silhouette reads as intentional, not a
   broken image. */
.polaroid-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: color-mix(in oklab, var(--ink) 28%, transparent);
}

.person-silhouette {
  display: block;
  width: 44%;
  height: 44%;
}

/* Board rows ------------------------------------------------------------ */

.favorites-list {
  display: grid;
  gap: 0.75rem;
}

.board-item { min-width: 0; }

.board-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid color-mix(in oklab, var(--ink) 8%, transparent);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 150ms var(--ease);
}

.board-row:hover,
.board-row:focus-visible { border-color: color-mix(in oklab, var(--ink) 26%, transparent); }

.board-rank {
  flex: none;
  width: 2.2rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--faint);
}

.board-thumb { flex: none; width: 4.2rem; }

.board-body {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.board-name { font-weight: 600; }

.board-snippet {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .board-rank { width: 1.5rem; font-size: 1.2rem; }
  .board-snippet { display: none; }
}

/* Account page ---------------------------------------------------------- */

.account-form { margin-bottom: 2.5rem; }

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 3.5rem;
}

/* Deleting an account is irreversible, so it gets its own panel rather than
   sitting a few pixels below Save where a mis-click reaches it. */
.danger-zone {
  padding: 1.5rem;
  border: 1px dashed color-mix(in oklab, var(--bad) 45%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--bad) 7%, transparent);
}

.danger-zone-title {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
  color: var(--bad);
}

.danger-zone p { margin: 0 0 1.25rem; }

.button-danger {
  color: var(--bad);
  background: transparent;
  border-color: color-mix(in oklab, var(--bad) 55%, transparent);
  transition:
    color 150ms var(--ease),
    background-color 150ms var(--ease),
    border-color 150ms var(--ease),
    transform 150ms var(--ease);
}

/* Filling on hover is the warning: it stops looking like the quiet buttons
   next to it at exactly the moment the pointer is over it. */
.button-danger:hover,
.button-danger:focus-visible {
  color: var(--bg);
  background: var(--bad);
  border-color: var(--bad);
}

/* Resources page -------------------------------------------------------- */

.resource-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.resource-list li {
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid color-mix(in oklab, var(--ink) 8%, transparent);
  border-radius: var(--radius-lg);
}

.resource-list a {
  font-weight: 600;
  font-size: 1.05rem;
}

.resource-list p { margin: 0.35rem 0 0; }
