:root {
  --ink: #1c1914;
  --paper: #f4efe4;
  --rule: #d8d0c0;
  --accent: #9a4a12;
  --muted: #6b6458;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  max-width: 42rem;
  padding: 2.5rem 1.25rem 4rem;
  font: 16px/1.5 "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  color: var(--ink);
  background: var(--paper);
}

.mark {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
}

section + section {
  border-top: 1px solid var(--rule);
  margin-top: 1.5rem;
  padding-top: 0.25rem;
}

label {
  display: grid;
  gap: 0.25rem;
  margin: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

input,
textarea,
select {
  font: inherit;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--rule);
  padding: 0.45rem 0.55rem;
  width: 100%;
}

.modes {
  display: flex;
  gap: 0.4rem;
}

.modes button,
button {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  padding: 0.35rem 0.7rem;
}

.modes button.on,
button.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.75rem;
}

.meta,
.hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--rule);
  display: inline-block;
  flex-shrink: 0;
}

.live-dot.on {
  background: #b42318;
  box-shadow: 0 0 0 0.25rem rgba(180, 35, 24, 0.18);
}

.captions {
  min-height: 3.5rem;
  margin: 0.75rem 0 0;
  padding: 0.75rem;
  background: #fffdf8;
  border: 1px solid var(--rule);
  white-space: pre-wrap;
}

.captions:empty::before {
  content: "Captions appear here while listening.";
  color: var(--muted);
}

pre {
  white-space: pre-wrap;
  background: #fffdf8;
  border: 1px solid var(--rule);
  padding: 0.75rem;
  min-height: 6rem;
  font: 13px/1.45 ui-monospace, Menlo, monospace;
}

.minutes {
  min-height: 8rem;
  font: 15px/1.5 inherit;
}

.minutes:empty::before {
  content: "Minutes appear after ingest or stop.";
  color: var(--muted);
  font-size: 0.9rem;
}
