:root {
  --bg: #13100d;
  --surface: #1b1713;
  --panel: #231e19;
  --line: #493e33;
  --ink: #f4ece0;
  --dim: #c1b6a5;
  --accent: #d9773b;
  --forest: #1f4d3a;
  --forest-mid: #2b5b46;
  --green: #7bb497;
  --serif: "Iowan Old Style", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
  color-scheme: dark;
}
[data-theme="vellum"] {
  --bg: #f6f1e6;
  --surface: #fdfaf2;
  --panel: #efe7d8;
  --line: #c7b89e;
  --ink: #1e1813;
  --dim: #625648;
  --accent: #ad4b22;
  --forest: #1f4d3a;
  --forest-mid: #2b5b46;
  --green: #1f4d3a;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.5 system-ui,
    sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  min-height: 44px;
}
button:hover {
  border-color: var(--accent);
}
button:disabled {
  opacity: 0.65;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
main,
nav {
  width: min(1180px, 92%);
  margin: auto;
}
.top {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
nav,
.top-actions,
.form-foot,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
nav {
  min-height: 66px;
}
.wordmark {
  font: bold 1.36rem var(--serif);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.54rem;
}
.mark {
  display: grid;
  place-content: center;
  background: var(--accent);
  color: var(--bg);
  width: 28px;
  height: 28px;
  border-radius: 5px;
  font: 700 1.65rem var(--mono);
}
.top-actions {
  font: 0.78rem var(--mono);
}
.top-actions a {
  text-decoration: none;
}
.top-actions button {
  padding: 0 0.9rem;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 44px 0 38px;
  border-bottom: 1px solid var(--line);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
}
h1 {
  font-size: clamp(2.8rem, 6.25vw, 5.8rem);
  line-height: 1.06;
  letter-spacing: -0.06em;
  font-weight: 500;
  margin: 12px 0;
}
h1 em {
  color: var(--accent);
  font-weight: 400;
}
.eyebrow,
.freshness,
.small,
.chapter,
.feedback,
output,
footer {
  font: 500 0.77rem/1.55 var(--mono);
}
.eyebrow {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.lamp {
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
}
.lamp.on {
  background: #ff5a3c;
}
.chapter,
.freshness,
.small,
output,
footer,
.hint {
  color: var(--dim);
}
.chapter span {
  margin-right: 0.6rem;
}
.chapter strong {
  color: var(--ink);
}
.bench-art {
  width: min(32%, 370px);
  height: auto;
}
.fleet {
  padding: 32px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 17px;
}
h2 {
  font-size: clamp(1.65rem, 3.1vw, 2.6rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.section-head h2,
.panel h2,
.qa h2 {
  margin-top: 7px;
}
.freshness {
  border-left: 2px solid var(--line);
  padding-left: 0.7rem;
}
.freshness.active {
  border-color: var(--forest-mid);
  color: var(--ink);
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#nodes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.node {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 11px;
  padding: 14px 16px;
  background: var(--surface);
}
.node svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  color: var(--dim);
  grid-row: span 2;
  width: 38px;
  height: 38px;
}
.node strong {
  font: 600 1.1rem var(--serif);
}
.node small {
  font: 0.68rem/1.5 var(--mono);
  color: var(--dim);
  overflow-wrap: anywhere;
  grid-column: 2/-1;
}
.badge {
  font: 600 0.64rem/1.6 var(--mono);
  color: var(--dim);
  text-align: right;
  overflow-wrap: anywhere;
}
.active .badge {
  background: var(--forest);
  border: 1px solid var(--forest-mid);
  color: #f4ece0;
  padding: 1px 8px;
  border-radius: 999px;
}
.active svg {
  color: var(--green);
}
.panels {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  padding: clamp(18px, 2.5vw, 34px);
}
.panel h2 {
  font-size: clamp(1.5rem, 2.55vw, 2.2rem);
}
.signal {
  font-size: 1.2rem;
}
#options,
#cheers {
  display: grid;
  gap: 8px;
  margin: 20px 0 12px;
}
.option,
.cheer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 48px;
  text-align: left;
  padding: 10px 13px;
}
.option {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.option span,
.cheer span:last-child {
  font: 600 0.78rem var(--mono);
}
.option progress {
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.18;
  z-index: -1;
  border: 0;
  background: none;
}
.option progress::-webkit-progress-bar {
  background: transparent;
}
.option progress::-webkit-progress-value {
  background: var(--accent);
  transition: width 0.32s ease;
}
.option progress::-moz-progress-bar {
  background: var(--accent);
}
#cheers {
  grid-template-columns: 1fr 1fr;
}
.cheer:last-child {
  grid-column: 1/-1;
}
.feedback {
  color: var(--accent);
}
.feedback:not(:empty) {
  margin-top: 10px;
}
.qa {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 6vw, 90px);
}
.hint {
  font-size: 0.9rem;
  margin: 10px 0 18px;
}
form {
  display: grid;
  gap: 7px;
}
label {
  font: 600 0.78rem var(--mono);
}
input,
textarea {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 10px 13px;
  background: var(--surface);
  resize: vertical;
}
textarea {
  margin-bottom: 4px;
}
.form-foot button {
  background: var(--accent);
  color: var(--bg);
  padding: 0 17px;
  font-weight: bold;
}
h3 {
  font-size: 1.45rem;
  font-weight: 500;
}
#approved li {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  overflow-wrap: anywhere;
}
#approved small {
  color: var(--dim);
}
#approved button {
  margin-left: 0.8rem;
  padding: 0 10px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
footer span {
  text-align: right;
}
[hidden] {
  display: none !important;
}
@media (max-width: 820px) {
  #nodes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .node {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 12px;
  }
  .bench-art {
    width: 27%;
  }
}
@media (max-width: 620px) {
  .panels,
  .qa {
    grid-template-columns: 1fr;
  }
  .bench-art {
    display: none;
  }
  .hero {
    padding: 30px 0;
  }
  .section-head {
    display: block;
  }
  .freshness {
    display: inline-block;
    margin-top: 9px;
  }
  .top-actions a {
    display: none;
  }
  #nodes {
    grid-template-columns: 1fr;
  }
  .node {
    grid-template-columns: 35px minmax(0, 1fr) auto;
  }
  .node small {
    grid-column: 2/4;
  }
  .fleet {
    padding: 24px 0;
  }
  .qa {
    margin-top: 22px;
  }
  .panel {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .option progress::-webkit-progress-value {
    transition: none;
  }
}

.warning .badge,
.warning svg {
  color: var(--accent);
}
