/* Ventriloquism.org — reference-site design system
   Light + dark, no external assets, no webfonts (speed + CSP-safe). */

:root {
  --ink:        #14171f;
  --ink-soft:   #454b5a;
  --ink-faint:  #6b7280;
  --paper:      #fbfaf7;
  --card:       #ffffff;
  --rule:       #e4e1d9;
  --rule-soft:  #efece5;
  --brass:      #bf1e2e;  /* brand red, from the wordmark */
  --brass-lift: #d93446;
  --accent:     #1f232c;
  --accent-lift:#bf1e2e;

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1120px;
  --measure: 68ch;
  --r: 10px;
  --shadow: 0 1px 2px rgba(20,23,31,.05), 0 8px 24px -12px rgba(20,23,31,.14);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:       #e9e7e1;
    --ink-soft:  #b3b0a8;
    --ink-faint: #8a877f;
    --paper:     #12141a;
    --card:      #191c24;
    --rule:      #2c3038;
    --rule-soft: #23262e;
    --brass:     #e24856;  /* brand red, lifted for dark */
    --brass-lift:#f06b77;
    --accent:    #e9e7e1;
    --accent-lift:#f06b77;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --ink:#e9e7e1; --ink-soft:#b3b0a8; --ink-faint:#8a877f;
  --paper:#12141a; --card:#191c24; --rule:#2c3038; --rule-soft:#23262e;
  --brass:#e24856; --brass-lift:#f06b77; --accent:#e9e7e1; --accent-lift:#f06b77;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 2px; }
a:hover { color: var(--accent-lift); text-decoration-color: currentColor; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

/* ── header ─────────────────────────────────────────────── */
.masthead { border-bottom: 1px solid var(--rule); background: var(--card); }
.masthead-in { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.brand { display: block; line-height: 0; flex: 0 0 auto; }
.brand img { width: 230px; max-width: 46vw; height: auto; }
@media (max-width: 560px) { .brand img { width: 178px; } }
.nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 500; letter-spacing: .01em; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brass); }

/* ── entity header ──────────────────────────────────────── */
.entity-head { padding-block: 40px 28px; border-bottom: 1px solid var(--rule); }
.kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); font-weight: 700; margin: 0 0 10px; }
h1 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 12px; font-weight: 600; }
.standfirst { font-size: 1.14rem; color: var(--ink-soft); max-width: var(--measure); margin: 0; }

.factbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding: 0; list-style: none; }
.factbar li {
  font-size: 13px; color: var(--ink-soft); background: var(--rule-soft);
  border: 1px solid var(--rule); border-radius: 999px; padding: 4px 12px;
}
.factbar b { color: var(--ink); font-weight: 600; }

/* ── layout ─────────────────────────────────────────────── */
.cols { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 52px; padding-block: 40px 64px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; gap: 36px; } }

.prose { max-width: var(--measure); }
.prose h2 { font-family: var(--serif); font-size: 1.6rem; letter-spacing: -.01em; margin: 2.4em 0 .5em; font-weight: 600; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; margin: 1.9em 0 .4em; font-weight: 650; }
.prose p { margin: 0 0 1.15em; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.25em; }
.prose li { margin-bottom: .35em; }
.prose blockquote {
  margin: 1.6em 0; padding: 2px 0 2px 20px; border-left: 3px solid var(--brass);
  font-family: var(--serif); font-size: 1.12rem; color: var(--ink-soft); font-style: italic;
}
.prose blockquote cite { display: block; margin-top: .5em; font-size: .82rem; font-style: normal; font-family: var(--sans); color: var(--ink-faint); }

/* ── cards / grids ──────────────────────────────────────── */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); list-style: none; padding: 0; margin: 0; }
.card {
  display: block; padding: 16px 18px; background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--r); text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { border-color: var(--brass); transform: translateY(-1px); box-shadow: var(--shadow); }
.card-name { font-family: var(--serif); font-size: 1.06rem; font-weight: 600; margin: 0 0 3px; letter-spacing: -.01em; }
.card-meta { font-size: 13px; color: var(--ink-faint); margin: 0; }

/* ── figure strip ───────────────────────────────────────── */
.figures { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.figures li { display: flex; gap: 14px; align-items: baseline; padding: 12px 16px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); }
.fig-name { font-family: var(--serif); font-weight: 600; font-size: 1.03rem; }
.fig-meta { font-size: 13px; color: var(--ink-faint); margin-left: auto; text-align: right; }

/* ── sidebar ────────────────────────────────────────────── */
.side { position: sticky; top: 24px; display: grid; gap: 20px; }
@media (max-width: 900px) { .side { position: static; } }
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px; }
.panel h3 { margin: 0 0 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); font-weight: 700; }
.panel dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.panel dt { color: var(--ink-faint); }
.panel dd { margin: 0; color: var(--ink); }
.panel ul { margin: 0; padding-left: 1.1em; font-size: 14px; }
.panel li { margin-bottom: .35em; }

/* ── sources ────────────────────────────────────────────── */
.sources { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--rule); }
.sources h2 { font-size: 12px !important; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin: 0 0 12px !important; font-family: var(--sans) !important; font-weight: 700; }
.sources ol { font-size: 13.5px; color: var(--ink-soft); padding-left: 1.3em; margin: 0; }
.sources li { margin-bottom: .45em; }

/* ── needs-research flag (build-time only) ──────────────── */
.todo {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  background: color-mix(in srgb, var(--brass) 15%, transparent); color: var(--brass);
  border: 1px dashed var(--brass); border-radius: 5px; padding: 1px 7px; vertical-align: 2px;
}
.stub-note {
  margin: 0 0 28px; padding: 14px 16px; border-radius: var(--r);
  background: color-mix(in srgb, var(--brass) 9%, transparent);
  border: 1px dashed var(--brass); font-size: 14px; color: var(--ink-soft);
}
.stub-note b { color: var(--ink); }

/* ── footer ─────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--rule); background: var(--card); padding-block: 34px 46px; margin-top: 40px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; font-size: 14px; color: var(--ink-faint); }
.foot nav { display: grid; gap: 6px; }
.foot nav a { color: var(--ink-soft); text-decoration: none; }
.foot nav a:hover { color: var(--brass); }
.foot h4 { margin: 0 0 8px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); font-weight: 700; }

/* ── index page ─────────────────────────────────────────── */
.letter-nav { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 28px; padding: 0; list-style: none; }
.letter-nav a {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px;
  border: 1px solid var(--rule); background: var(--card); text-decoration: none;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
}
.letter-nav a:hover { border-color: var(--brass); color: var(--brass); }
.alpha-head { font-family: var(--serif); font-size: 1.5rem; margin: 34px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); color: var(--brass); }

.skip { position:absolute; left:-9999px; }
.skip:focus { left:8px; top:8px; z-index:99; background:var(--card); padding:8px 14px; border-radius:6px; border:1px solid var(--brass); }

/* ── home: hero ─────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(90rem 30rem at 12% -10%, color-mix(in srgb, var(--brass) 12%, transparent), transparent 60%),
    var(--card);
  border-bottom: 1px solid var(--rule);
}
.hero-in { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 48px; align-items: end; padding-block: 64px 52px; }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; gap: 32px; padding-block: 44px 36px; } }
.hero-copy { max-width: 40ch; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(2.4rem, 6.2vw, 4.1rem); line-height: 1.02;
  letter-spacing: -.03em; margin: 0 0 18px; font-weight: 600;
}
.hero-sub { font-size: 1.16rem; color: var(--ink-soft); margin: 0 0 26px; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px; font-size: 15px; font-weight: 600;
  background: var(--brass); color: #fff; text-decoration: none; border: 1px solid var(--brass);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--brass-lift); border-color: var(--brass-lift); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: transparent; color: var(--brass); border-color: var(--brass); }

.hero-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; text-align: right; }
@media (max-width: 860px) { .hero-stats { grid-auto-flow: column; text-align: left; gap: 28px; justify-content: start; } }
.hero-stats b { display: block; font-family: var(--serif); font-size: 2.1rem; line-height: 1; color: var(--brass); letter-spacing: -.02em; }
.hero-stats span { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }

/* ── home: bands ────────────────────────────────────────── */
.band { padding-block: 52px 8px; }
.band-head { font-family: var(--serif); font-size: 1.85rem; letter-spacing: -.015em; margin: 0 0 6px; font-weight: 600; }
.band-sub { color: var(--ink-soft); margin: 0 0 22px; max-width: 60ch; }

/* ── home: video tiles ──────────────────────────────────── */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(215px,1fr)); }
.tile { display: block; text-decoration: none; color: inherit; border-radius: var(--r); overflow: hidden; border: 1px solid var(--rule); background: var(--card); transition: transform .16s, box-shadow .16s, border-color .16s; }
.tile:hover { transform: translateY(-2px); border-color: var(--brass); box-shadow: var(--shadow); }
.tile-img { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--rule-soft); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile-body { display: block; padding: 12px 14px 14px; }
.tile-name { display: block; font-family: var(--serif); font-size: 1.04rem; font-weight: 600; letter-spacing: -.01em; }
.tile-meta { display: block; font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }

/* ── home: promise ──────────────────────────────────────── */
.promise { background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--brass); border-radius: var(--r); padding: 26px 30px; margin-block: 20px 56px; max-width: 70ch; }
.promise h2 { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 10px; font-weight: 600; }
.promise p { margin: 0 0 .9em; color: var(--ink-soft); }
.promise p:last-child { margin: 0; font-size: 14.5px; }

/* ── home: hero figure (Freddy) ─────────────────────────── */
.hero-in { align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); line-height: 1.06; }
.hero-figure { margin: 0; width: 340px; max-width: 100%; justify-self: end; }
@media (max-width: 860px) { .hero-figure { width: 260px; justify-self: start; } }
.hero-figure img {
  width: 100%; border-radius: 14px; border: 1px solid var(--rule);
  box-shadow: 0 2px 4px rgba(20,23,31,.06), 0 24px 48px -20px rgba(20,23,31,.3);
}
.hero-figure figcaption { margin-top: 10px; font-size: 12.5px; color: var(--ink-faint); text-align: center; }
.hero-figure figcaption b { color: var(--brass); font-weight: 700; }

.hero-stats { padding-bottom: 44px; grid-auto-flow: column; text-align: left; justify-content: start; gap: 40px; }
@media (max-width: 620px) { .hero-stats { grid-auto-flow: row; gap: 14px; } }

/* ── home: mission copy ─────────────────────────────────── */
.mission { max-width: 74ch; font-size: 1.05rem; color: var(--ink-soft); }
.mission p { margin: 0 0 1.1em; }
.mission p:first-child::first-letter {
  float: left; font-family: var(--serif); font-size: 3.4em; line-height: .82;
  padding: .06em .1em 0 0; color: var(--brass); font-weight: 600;
}
.mission b { color: var(--ink); font-weight: 650; }

/* ── entity photography ─────────────────────────────────── */
.entity-photo { margin: 0 0 30px; float: right; width: 320px; max-width: 45%; margin-left: 28px; }
@media (max-width: 640px) { .entity-photo { float: none; width: 100%; max-width: 100%; margin-left: 0; } }
.entity-photo img, .inline-photo img { width: 100%; border-radius: 10px; border: 1px solid var(--rule); }
.inline-photo { margin: 30px 0; }
.entity-photo figcaption, .inline-photo figcaption { margin-top: 8px; font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); }
.credit { display: block; color: var(--ink-faint); font-size: 11.5px; margin-top: 2px; }

/* ── routines / quotes ──────────────────────────────────── */
.prose blockquote.routine {
  background: color-mix(in srgb, var(--brass) 7%, transparent);
  border-left-width: 4px; border-radius: 0 var(--r) var(--r) 0;
  padding: 18px 22px; font-style: normal; color: var(--ink);
}
.prose blockquote.routine cite { color: var(--ink-faint); }

/* ── video links ────────────────────────────────────────── */
.videos { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); }
.video { display: block; text-decoration: none; color: inherit; }
.video-thumb { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; border-radius: 9px; border: 1px solid var(--rule); background: var(--rule-soft); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%;
  background: color-mix(in srgb, var(--brass) 92%, transparent); box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.play::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; transform: translateX(2px); }
.video:hover .video-thumb { border-color: var(--brass); }
.video-title { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.35; color: var(--ink); }

/* ── books ──────────────────────────────────────────────── */
.booklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.booklist li { padding: 14px 18px; background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--brass); border-radius: var(--r); }
.book-title { display: block; font-family: var(--serif); font-size: 1.06rem; font-weight: 600; }
.book-meta { display: block; font-size: 13px; color: var(--ink-faint); margin-top: 2px; }
.book-note { display: block; font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }

/* ── intake form ────────────────────────────────────────── */
.intake { max-width: var(--measure); }
.fs { margin: 0 0 40px; padding: 0 0 8px; border-bottom: 1px solid var(--rule-soft); }
.fs:last-of-type { border-bottom: 0; }
.fs h2 { font-family: var(--serif); font-size: 1.45rem; margin: 0 0 6px; font-weight: 600; letter-spacing: -.01em; }
.sec-note { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 20px; max-width: 58ch; }

.f { margin: 0 0 22px; }
.f label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 3px; }
.f .hint { font-size: 13.5px; color: var(--ink-faint); margin: 0 0 8px; line-height: 1.5; }
.req { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--brass); font-weight: 700; margin-left: 4px; }

.f input[type=text], .f input[type=email], .f input[type=url], .f textarea {
  width: 100%; padding: 10px 13px; font: inherit; font-size: 15.5px; color: var(--ink);
  background: var(--card); border: 1px solid var(--rule); border-radius: 8px;
}
.f textarea { resize: vertical; line-height: 1.55; }
.f input:focus, .f textarea:focus {
  outline: none; border-color: var(--brass);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 16%, transparent);
}
.f input[type=file] { font-size: 14px; color: var(--ink-soft); padding: 9px 0; width: 100%; }
.f input[type=file]::file-selector-button {
  font: inherit; font-size: 14px; font-weight: 600; margin-right: 12px; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--rule);
  background: var(--rule-soft); color: var(--ink);
}
.f input[type=file]::file-selector-button:hover { border-color: var(--brass); color: var(--brass); }

.consent { display: grid; gap: 14px; margin-bottom: 24px; }
.check { display: flex; gap: 11px; align-items: start; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brass); flex: 0 0 auto; }

.submit-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 8px; }
.submit-row .btn { border: 0; cursor: pointer; font-family: inherit; font-size: 16px; padding: 13px 30px; }
.submit-row .btn:disabled { opacity: .55; cursor: default; }
.tiny { font-size: 13px; color: var(--ink-faint); margin: 0; max-width: 42ch; }

.form-msg { margin-top: 16px; font-size: 14.5px; }
.form-msg.err { color: var(--brass); font-weight: 600; }
.thanks { padding: 44px 0; }
.thanks h2 { font-family: var(--serif); font-size: 2rem; margin: 0 0 10px; color: var(--brass); }
.thanks p { color: var(--ink-soft); max-width: 46ch; }

/* ── bare pages (forms): one action, no navigation ──────── */
.form-only { padding-block: 40px 64px; }
.form-only .intake { max-width: 60ch; margin-inline: auto; }
.foot-bare { text-align: center; }
.foot-bare p { margin: 0 0 4px; font-size: 14px; color: var(--ink-faint); }
.foot-bare .tiny { max-width: none; }
span.brand { cursor: default; }
.f select {
  width: 100%; padding: 10px 13px; font: inherit; font-size: 15.5px; color: var(--ink);
  background: var(--card); border: 1px solid var(--rule); border-radius: 8px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%),
                    linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%);
  background-position: calc(100% - 19px) center, calc(100% - 14px) center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 38px;
}
.f select:focus {
  outline: none; border-color: var(--brass);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 16%, transparent);
}
