/* Nameless Verse
   Layout: one centered column. Poems are cards in a feed, like posts with no profiles.
   Motif: the byline. Where an author's name would go, a blurred one. */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #15161a;
  --muted: #636977;
  --line: #e1e4ea;
  --accent: #2f55ff;          /* cobalt: actions, links, focus */
  --on-accent: #ffffff;
  --accent-soft: rgba(47, 85, 255, 0.1);
  --alert: #cf2539;
  --heart: #f2295b;
  --heart-soft: rgba(242, 41, 91, 0.1);
  --glass: rgba(244, 245, 247, 0.8);

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --verse: "Newsreader", Georgia, "Times New Roman", serif;
  --measure: 40rem;
  color-scheme: light;
}

/* Dark: follows the device, unless a page sets data-theme to choose. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1015;
    --surface: #171a21;
    --ink: #eef0f5;
    --muted: #959bab;
    --line: #272b36;
    --accent: #8098ff;
    --on-accent: #0e1015;
    --accent-soft: rgba(128, 152, 255, 0.14);
    --alert: #ff7d8c;
    --heart: #ff5c85;
    --heart-soft: rgba(255, 92, 133, 0.14);
    --glass: rgba(14, 16, 21, 0.78);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1015;
  --surface: #171a21;
  --ink: #eef0f5;
  --muted: #959bab;
  --line: #272b36;
  --accent: #8098ff;
  --on-accent: #0e1015;
  --accent-soft: rgba(128, 152, 255, 0.14);
  --alert: #ff7d8c;
  --heart: #ff5c85;
  --heart-soft: rgba(255, 92, 133, 0.14);
  --glass: rgba(14, 16, 21, 0.78);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

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

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
}
.skip:focus { top: 1rem; }

.mode-banner {
  margin: 0;
  padding: 0.55rem 1rem;
  background: var(--accent-soft);
  font-size: 0.85rem;
  text-align: center;
}

/* ── Header ──────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  max-width: calc(var(--measure) + 2rem);
  margin-inline: auto;
  padding: 0.75rem 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.wordmark:hover { text-decoration: none; }

.mark {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #b8c6ff, #2f55ff 58%, #6b3dff);
  filter: blur(1.2px);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.site-header nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
}
.site-header nav a:hover {
  color: var(--ink);
  background: var(--accent-soft);
  text-decoration: none;
}
.site-header nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}
.site-header nav a.nav-cta {
  margin-left: 0.25rem;
  background: var(--accent);
  color: var(--on-accent);
}
.site-header nav a.nav-cta:hover { filter: brightness(1.08); }

main {
  max-width: calc(var(--measure) + 2rem);
  margin-inline: auto;
  padding: 0 1rem 5rem;
}

.site-footer {
  max-width: calc(var(--measure) + 2rem);
  margin-inline: auto;
  padding: 0 1rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* ── The blurred byline ──────────────────────────────── */

.avatar {
  --h: 228;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%,
    hsl(var(--h) 95% 84%),
    hsl(calc(var(--h) + 22) 85% 62%) 60%,
    hsl(calc(var(--h) + 44) 80% 54%));
  filter: blur(0.6px);
}

.hidden-name {
  display: inline-block;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: 0.04em;
  filter: blur(5px);
  user-select: none;
}

/* ── Home ────────────────────────────────────────────── */

.hero { padding: clamp(3rem, 10vw, 6rem) 0 clamp(2.5rem, 7vw, 4rem); }

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 10vw, 4.75rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-byline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}
.hero-byline .avatar { width: 2.25rem; height: 2.25rem; }
.hero-byline .hidden-name {
  font-size: 1.2rem;
  animation: dissolve 1.8s cubic-bezier(0.5, 0, 0.2, 1) 0.5s both;
}
@keyframes dissolve {
  from { filter: blur(0); }
  to { filter: blur(6px); }
}

.lede {
  max-width: 31rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.section-title {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 650;
}

.status {
  margin: 0;
  color: var(--muted);
}
.status:empty { display: none; }

/* ── Poems ───────────────────────────────────────────── */

.feed {
  display: grid;
  gap: 1rem;
}

.poem {
  min-width: 0;
  padding: clamp(1.25rem, 4.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.poem-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
}
.poem-byline {
  min-width: 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.poem-time {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.875rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.poem-title {
  margin: 0 0 0.8rem;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.poem-title a { color: inherit; }
.poem-title a:hover {
  color: var(--accent);
  text-decoration: none;
}
.poem-title.untitled {
  color: var(--muted);
  font-weight: 600;
}

.poem-body {
  font-family: var(--verse);
  font-size: 1.15rem;
  line-height: 1.7;
}
.poem-body .line {
  min-height: 1.7em;            /* keeps blank lines as stanza breaks */
  padding-left: 1.5em;          /* long lines wrap with a hanging indent */
  text-indent: -1.5em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.poem-body.clamped {
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
}

.poem-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.chip-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}
.chip-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

/* Reactions: ♥ I love this, ✎ write back */
.reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.react {
  --tone: var(--muted);
  --tone-soft: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.15rem;
  padding: 0.35rem 0.75rem 0.35rem 0.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.react-love { --tone: var(--heart); --tone-soft: var(--heart-soft); }
.react-write { --tone: var(--accent); --tone-soft: var(--accent-soft); }
.react svg {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.react-count:empty { display: none; }
.react:hover {
  background: var(--tone-soft);
  color: var(--tone);
  text-decoration: none;
}
.react[aria-pressed="true"] {
  background: var(--tone-soft);
  color: var(--tone);
}
.react[aria-pressed="true"] svg { fill: currentColor; }
.react.pop svg { animation: react-pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes react-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Read-only counts, for My poems and the mod queue */
.react-stats {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.75rem;
}
.react-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--tone, var(--muted));
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.react-stat.react-love { --tone: var(--heart); }
.react-stat.react-write { --tone: var(--accent); }
.react-stat svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.react-stat.react-write svg { fill: none; stroke-width: 2; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  max-width: calc(100% - 2rem);
  padding: 0.7rem 1.1rem;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.5rem);
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* A poem's own page: no card, larger type. */
.poem-page { padding-top: clamp(2.5rem, 7vw, 4rem); }
.poem-page-status { padding-top: clamp(2.5rem, 7vw, 4rem); }
.poem-page .poem {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.poem-page .poem-title {
  order: -1;
  margin: 0 0 1.25rem;
  font-size: clamp(2.2rem, 7vw, 3.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.poem-page .poem-head { margin-bottom: 1.75rem; }
.poem-page .poem-body { font-size: 1.25rem; }
.poem-page .poem-foot { margin-top: 1.75rem; }
.poem-page .react { font-size: 0.95rem; min-height: 2.5rem; padding-inline: 0.8rem 1rem; border: 1px solid var(--line); background: var(--surface); }
.poem-page .react:hover,
.poem-page .react[aria-pressed="true"] { border-color: transparent; background: var(--tone-soft); }
.poem-page .react svg { width: 1.3rem; height: 1.3rem; }

/* ── Forms and buttons ───────────────────────────────── */

.page-head { padding: clamp(2.5rem, 7vw, 4rem) 0 1.75rem; }
.page-head h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 3.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.page-head p {
  max-width: 32rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.panel {
  padding: clamp(1.25rem, 4.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.field { margin: 0 0 1.5rem; }

label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  font-weight: 650;
}

.hint {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
}
.field > .hint { margin: -0.2rem 0 0.6rem; }

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
input:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
input::placeholder,
textarea::placeholder { color: var(--muted); opacity: 0.8; }

.poem-input {
  min-height: 18rem;
  resize: vertical;
  font-family: var(--verse);
  font-size: 1.15rem;
  line-height: 1.7;
}

.counter {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.counter.near { color: var(--alert); }

.byline-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}
.byline-preview .avatar { width: 1.6rem; height: 1.6rem; }
.byline-preview .poem-byline { font-weight: 650; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rules {
  margin: 2rem 0 1.75rem;
  padding: 1.1rem 1.25rem 1rem;
  border-radius: 16px;
  background: var(--bg);
}
.rules h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}
.rules ul {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
}
.rules li + li { margin-top: 0.2rem; }
.rules .hint { margin: 0; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 1rem;
  font-weight: 500;
}
.check input {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.15rem 0 0;
  accent-color: var(--accent);
}

.send-note { margin: 0 0 0.75rem; }

/* Cloudflare's spam check. Usually invisible; it only takes space when it asks for a click. */
.captcha {
  max-width: 100%;
  margin: 0.25rem 0 1rem;
}
.captcha:empty { display: none; }
.send-note + .button,
.send-note + .send-note + .button { margin-top: 0.75rem; }

.form-error {
  margin: 0 0 1.5rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--alert) 12%, transparent);
  color: var(--alert);
  font-weight: 650;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s, filter 0.15s, border-color 0.15s, color 0.15s;
}
.button:hover {
  filter: brightness(1.08);
  text-decoration: none;
}
.button:active { transform: scale(0.98); }
.button:disabled { opacity: 0.55; cursor: progress; }
.button.quiet {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
.button.quiet:hover {
  border-color: var(--accent);
  color: var(--accent);
  filter: none;
}
.button.danger {
  border-color: var(--line);
  background: var(--surface);
  color: var(--alert);
}
.button.danger:hover { border-color: var(--alert); filter: none; }
.button.danger[data-armed="true"] {
  border-color: var(--alert);
  background: var(--alert);
  color: var(--surface);
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.link-button:hover { text-decoration: underline; }

.sent h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.sent h2:focus { outline: none; }
.sent p { max-width: 30rem; color: var(--muted); }
.sent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* ── Share ───────────────────────────────────────────── */

.share { margin-top: 3rem; }
.share h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.share h3 {
  margin: 1.75rem 0 0.3rem;
  font-size: 1rem;
  font-weight: 650;
}
.share .hint { margin: 0 0 1rem; }

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}
.share-status {
  color: var(--muted);
  font-size: 0.95rem;
}
.link-field {
  margin-top: 0.9rem;
  font-size: 0.9rem;
}

.cards-status { margin-top: 1.1rem; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr));
  gap: 1.25rem 1rem;
  margin-top: 1.25rem;
}
.cards[data-format="story"] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); }
.cards-share {
  grid-column: 1 / -1;
  margin: 0;
}
.card { margin: 0; }
.card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.card figcaption { margin-top: 0.6rem; }
.card .button {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
}

.back { margin: 2rem 0 0; }

/* ── Write-backs ─────────────────────────────────────── */

.writebacks { margin-top: 3rem; }
.writebacks h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.wb-count {
  min-width: 1.6em;
  padding: 0.05em 0.5em;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}
.wb-count:empty { display: none; }

.wb-list {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.wb {
  min-width: 0;
  padding: 1rem 1.15rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.wb-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
}
.wb-head .avatar { width: 1.5rem; height: 1.5rem; }
.wb-body {
  font-family: var(--verse);
  font-size: 1.06rem;
  line-height: 1.6;
}
.wb-body .line {
  min-height: 1.6em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.wb-form h3 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.wb-input {
  min-height: 8rem;
  resize: vertical;
  font-family: var(--verse);
  font-size: 1.06rem;
  line-height: 1.6;
}
.wb-note { margin: 0 0 1rem; }
.wb-prompt p,
.wb-sent p { margin: 0; }
.wb-sent .link-button { margin-top: 0.6rem; }

/* ── Leaderboard ─────────────────────────────────────── */

.period-note {
  margin: -0.4rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.board-row {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem 0.9rem;
  padding: 1rem 1.1rem 1rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.rank {
  color: var(--muted);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.podium .rank { color: var(--ink); font-size: 2rem; }
.board-row[data-rank="1"] .rank { color: var(--accent); }

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

.board-reacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.board-title {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-title:hover { color: var(--accent); text-decoration: none; }
.board-title.untitled { color: var(--muted); font-weight: 600; }

.board-line {
  margin: 0.2rem 0 0;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--verse);
  font-size: 1.02rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-by {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
}
.board-by .avatar { width: 1.3rem; height: 1.3rem; }
.board-by .poem-byline { font-weight: 650; }
.board-when {
  margin-left: 0.35rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Account ─────────────────────────────────────────── */

.site-header nav a.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.nav-account-dot {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.7;
}
.nav-account.signed-in .nav-account-dot {
  --h: 228;
  border: 0;
  opacity: 1;
  background: radial-gradient(circle at 30% 28%,
    hsl(var(--h) 95% 84%),
    hsl(calc(var(--h) + 22) 85% 62%) 60%,
    hsl(calc(var(--h) + 44) 80% 54%));
}

.page-status { padding-top: clamp(2.5rem, 7vw, 4rem); }

.auth-alt { margin: 1.1rem 0 0; }
.auth-note {
  max-width: 26rem;
  margin: 1.25rem 0 0;
}
.signed-in-note { margin: 0 0 1.25rem; }

.notice {
  max-width: 30rem;
  margin-top: clamp(2.5rem, 7vw, 4rem);
}
.notice h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.notice h1:focus { outline: none; }
.notice p { color: var(--muted); }

.mine-section {
  margin: 3rem 0 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.mine-summary {
  margin: -0.5rem 0 1.25rem;
  font-size: 1.05rem;
  font-weight: 650;
}
.mine-summary:empty { display: none; }
.mine-note { margin: 2rem 0 0; }
.mine-why { margin: 0.9rem 0 0; }

.status-pill {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-weight: 700;
}
.status-pill.approved {
  background: var(--accent-soft);
  color: var(--accent);
}

.empty {
  display: grid;
  justify-items: start;
  gap: 1rem;
}
.empty p { margin: 0; color: var(--muted); }

/* ── Mod queue ───────────────────────────────────────── */

.narrow-form { max-width: 26rem; }

.mod-who {
  color: var(--muted);
  font-size: 0.95rem;
}

.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin: 0 0 1.25rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.tabs button {
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}
.count {
  display: inline-block;
  min-width: 1.45em;
  margin-left: 0.35rem;
  padding: 0 0.4em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.queue {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.mod-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.wb-on a { font-weight: 650; }

/* The auto mod's verdict on a poem, for mods. */
.mod-auto {
  margin: -0.35rem 0 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.85rem;
  line-height: 1.45;
}
.mod-auto strong { font-weight: 650; }
.mod-auto.held { background: var(--heart-soft); }
.kind-tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0.75rem;
}
.mod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

/* ── Small screens and motion ────────────────────────── */

@media (max-width: 30rem) {
  .site-header nav a { padding: 0.4rem 0.75rem; }
  .site-header nav a.nav-read { display: none; }   /* the logo already goes home */
  .cta-extra { display: none; }                    /* "Submit" fits on one line */
  .nav-account-label { display: none; }            /* just the dot on phones */
  .site-header nav a.nav-account { padding-inline: 0.55rem; }
  .site-header nav { gap: 0.15rem; }
  .wordmark { font-size: 1.02rem; }
  .board-row {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    gap: 0.25rem 0.7rem;
    padding: 0.85rem 0.85rem 0.85rem 0.7rem;
  }
  .rank { font-size: 1.35rem; }
  .board-reacts {
    flex-direction: column;
    align-items: stretch;
  }
  .board-reacts .react { justify-content: center; }
  .podium .rank { font-size: 1.6rem; }
  .poem-body,
  .poem-input { font-size: 1.08rem; }
  .poem-page .poem-body { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-byline .hidden-name { animation: none; filter: blur(6px); }
  .react.pop svg { animation: none; }
  .toast { transition: none; }
  .button { transition: none; }
}
