/* ---- Theme tokens ----
   Light is the canonical default (:root). The dark palette is applied in three
   equivalent ways so both the OS preference and the manual toggle work:
     1. :root[data-theme="dark"]           -> user explicitly chose dark (toggle)
     2. :root[data-theme="light"]          -> user explicitly chose light (re-asserts
                                              light even when the OS is dark)
     3. @media (prefers-color-scheme: dark) :root:not([data-theme])
                                            -> first-load respects the OS when the
                                              visitor has not toggled yet
*/
:root,
:root[data-theme="light"] {
  --paper: #f4efe4;
  --ink: #14202e;
  --ink-muted: #5a6a7a;
  --accent: #006d77;
  --accent-strong: #004d52;
  --accent-soft: #e8f4f4;
  --border: #d0d8dc;
  --card-bg: #ffffff;
  --noise-opacity: 0.04;
  --shadow: 0 2px 8px rgba(20, 32, 46, 0.08);
  --shadow-strong: 0 8px 24px rgba(20, 32, 46, 0.12);
  --focus: #006d77;
  --flow-line: #a8c8cc;
  --depth-mark: #8a9a9f;
}

:root[data-theme="dark"] {
  --paper: #0c1422;
  --ink: #ece6d8;
  --ink-muted: #9aa8b0;
  --accent: #4fd1c5;
  --accent-strong: #38b2ac;
  --accent-soft: #0d2a33;
  --border: #1e2d3d;
  --card-bg: #111a28;
  --noise-opacity: 0.06;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-strong: 0 8px 24px rgba(0, 0, 0, 0.4);
  --focus: #4fd1c5;
  --flow-line: #2a4a52;
  --depth-mark: #4a5a62;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --paper: #0c1422;
    --ink: #ece6d8;
    --ink-muted: #9aa8b0;
    --accent: #4fd1c5;
    --accent-strong: #38b2ac;
    --accent-soft: #0d2a33;
    --border: #1e2d3d;
    --card-bg: #111a28;
    --noise-opacity: 0.06;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-strong: 0 8px 24px rgba(0, 0, 0, 0.4);
    --focus: #4fd1c5;
    --flow-line: #2a4a52;
    --depth-mark: #4a5a62;
  }
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent-strong);
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
  border-bottom-color: transparent;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--noise-opacity);
}

/* ===== TOPBAR ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(8px);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: none;
}

.wordmark:hover {
  color: var(--accent);
  border-bottom: none;
}

.wordmark-mono {
  letter-spacing: 0.1em;
}

.wordmark-divider {
  width: 2px;
  height: 1.2em;
  background: var(--accent);
  border-radius: 1px;
}

.wordmark-label {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}

.org-vote-mount {
  flex-shrink: 0;
}

.topbar-nav {
  display: flex;
  gap: 0.25rem;
}

.topbar-nav a {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0.5rem 0.75rem;
  border-bottom: none;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.topbar-nav a:hover {
  color: var(--ink);
  background: var(--accent-soft);
  border-bottom: none;
}

.topbar-nav a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card-bg);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.toggle-icon-light,
.toggle-icon-dark {
  font-size: 1.25rem;
  line-height: 1;
}

/* Icon visibility follows the resolved theme (toggle + OS default). */
:root[data-theme="light"] .toggle-icon-dark {
  display: none;
}

:root[data-theme="dark"] .toggle-icon-light {
  display: none;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .toggle-icon-dark {
    display: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .toggle-icon-light {
    display: none;
  }
}

.current-line {
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transform-origin: left;
  transform: scaleX(0);
  animation: line-draw 1.2s ease-out 0.3s forwards;
}

@keyframes line-draw {
  to {
    transform: scaleX(1);
  }
}

/* ===== MAIN LAYOUT ===== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}

section:first-of-type {
  border-top: none;
}

.section-number {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-headline {
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-top: 0;
  border-top: none;
  overflow: hidden;
}

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

.flow-lines {
  position: absolute;
  inset: 0;
}

.flow-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--flow-line);
  opacity: 0.4;
  animation: flow-drift 20s linear infinite;
}

.flow-line.l1 { top: 15%; animation-delay: 0s; }
.flow-line.l2 { top: 30%; animation-delay: -3.3s; }
.flow-line.l3 { top: 45%; animation-delay: -6.6s; }
.flow-line.l4 { top: 60%; animation-delay: -10s; }
.flow-line.l5 { top: 75%; animation-delay: -13.3s; }
.flow-line.l6 { top: 90%; animation-delay: -16.6s; }

@keyframes flow-drift {
  0% { transform: translateX(-100%); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateX(100%); opacity: 0; }
}

.depth-marks {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.625rem;
  color: var(--depth-mark);
  letter-spacing: 0.05em;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}

.hero-headline {
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.hero-headline br {
  display: none;
}

@media (min-width: 768px) {
  .hero-headline br {
    display: block;
  }
}

.hero-desc {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ink-muted);
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  border: 2px solid var(--accent);
  border-radius: 4px;
  padding: 0.875rem 1.5rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  border-bottom: none;
}

.hero-cta:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
  border-bottom: none;
}

.hero-cta:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.cta-arrow {
  transition: transform 0.2s ease;
}

.hero-cta:hover .cta-arrow {
  transform: translateX(4px);
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1.5fr;
    align-items: start;
  }
}

.about-lede p {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--ink);
}

.about-detail p {
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.about-detail p:last-child {
  margin-bottom: 0;
}

/* ===== HOW WE WORK ===== */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.work-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: var(--accent);
}

.work-card-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}

.work-card-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.work-card-desc {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.work-card-tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

/* ===== MANIFESTO ===== */
.manifesto {
  text-align: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 8px;
  margin: 4rem 0;
  padding: 4rem 2rem;
}

.manifesto blockquote {
  margin: 0;
  max-width: 720px;
  margin: 0 auto;
}

.manifesto p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.manifesto footer {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

/* ===== PUBLICATIONS ===== */
.pub-status {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-muted);
}

.pub-loading {
  font-family: 'DM Mono', monospace;
  font-size: 0.875rem;
}

.pub-empty {
  font-size: 1.125rem;
}

.pub-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .pub-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pub-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pub-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pub-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.pub-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.6875rem;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.pub-card-date {
  font-weight: 400;
}

.pub-card-kicker {
  color: var(--accent);
  font-weight: 500;
}

.pub-card-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.5rem;
  text-decoration: none;
  border-bottom: none;
}

.pub-card-title:hover {
  color: var(--accent);
  border-bottom: none;
}

.pub-card-excerpt {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-top: auto;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1.5fr;
    align-items: start;
  }
}

.contact-lede p {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--ink);
}

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ink-muted);
  opacity: 0.6;
}

.required {
  color: var(--accent);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-checkbox label {
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.5;
  margin: 0;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.125rem;
  accent-color: var(--accent);
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--paper);
  background: var(--accent);
  border: none;
  border-radius: 4px;
  padding: 0.875rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  border-bottom: none;
}

.form-submit:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.form-submit:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.form-result.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-result.error {
  background: #fdecea;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* Dark form-result colors follow the resolved theme (toggle + OS default). */
:root[data-theme="dark"] .form-result.success {
  background: #0d2b1a;
  color: #81c784;
  border-color: #2e7d32;
}
:root[data-theme="dark"] .form-result.error {
  background: #2b0d0d;
  color: #ef9a9a;
  border-color: #c62828;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .form-result.success {
    background: #0d2b1a;
    color: #81c784;
    border-color: #2e7d32;
  }
  :root:not([data-theme]) .form-result.error {
    background: #2b0d0d;
    color: #ef9a9a;
    border-color: #c62828;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
  background: var(--paper);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-wordmark {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--ink);
  margin-bottom: 1rem;
}

.footer-wordmark .wordmark-divider {
  width: 2px;
  height: 1.2em;
  background: var(--accent);
  border-radius: 1px;
}

.footer-wordmark span:last-child {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

.footer-note {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.footer-url {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

/* ===== PUBLICATION READING PAGE ===== */
.reading-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.reading-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.reading-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.reading-kicker {
  color: var(--accent);
  font-weight: 500;
}

.reading-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.reading-body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--ink);
}

.reading-body h1,
.reading-body h2,
.reading-body h3,
.reading-body h4 {
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  color: var(--ink);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.reading-body h1 { font-size: 1.75rem; }
.reading-body h2 { font-size: 1.5rem; }
.reading-body h3 { font-size: 1.25rem; }
.reading-body h4 { font-size: 1.125rem; }

.reading-body p {
  margin-bottom: 1.25rem;
}

.reading-body p:last-child {
  margin-bottom: 0;
}

.reading-body a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.reading-body a:hover {
  color: var(--accent-strong);
  border-bottom-color: var(--accent-strong);
}

.reading-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--ink-muted);
}

.reading-body blockquote footer {
  margin-top: 0.75rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-style: normal;
}

.reading-body code {
  font-family: 'DM Mono', monospace;
  font-size: 0.9em;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 0.125em 0.375em;
  border-radius: 3px;
}

.reading-body pre {
  background: var(--ink);
  color: #e8e6e0;
  padding: 1.5rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: 'DM Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.reading-body pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.reading-body ul,
.reading-body ol {
  margin: 1.25rem 0 1.25rem 1.5rem;
  padding-left: 1rem;
}

.reading-body li {
  margin-bottom: 0.5rem;
}

.reading-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.reading-body th,
.reading-body td {
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  text-align: left;
}

.reading-body th {
  background: var(--accent-soft);
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--ink);
}

.reading-body td {
  color: var(--ink-muted);
}

.reading-body tr:nth-child(even) td {
  background: var(--card-bg);
}

.reading-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.reading-body img {
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.reading-body figcaption {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 0.5rem;
}

.reading-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-decoration: none;
  border-bottom: none;
  transition: color 0.2s ease;
}

.reading-back:hover {
  color: var(--accent);
  border-bottom: none;
}

/* ===== VOTE WIDGET STYLES ===== */
.aga-vote-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 100px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.aga-vote-pill:hover {
  border-color: var(--accent);
}

.aga-vote-pill.voted {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.aga-vote-pill .vote-count {
  font-variant-numeric: tabular-nums;
}

.aga-vote-pill .vote-icon {
  display: inline-flex;
  width: 1em;
  height: 1em;
}

.aga-vote-pill.org-pill {
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
}

.org-vote-mount {
  display: flex;
  align-items: center;
}

/* ===== UTILITIES ===== */
.hidden {
  display: none !important;
}

.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;
}