:root {
  color-scheme: dark;
  --background: #050505;
  --yellow: #ffd60a;
  --white: #f4f4ef;
  --black: #0c0c0b;
  --muted: #aaa9a1;
  --line: #363632;
  --green: #16865b;
  --gray: #77776f;
  --red: #e05248;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button { font: inherit; }

.mast,
main > section,
footer {
  width: min(1600px, 94vw);
  margin-inline: auto;
}

.mast {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.engine-stamp {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--yellow);
  font-size: .7rem;
  font-weight: 760;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mast h1 {
  max-width: 1000px;
  margin: 0 0 1.35rem;
  font-size: clamp(1.65rem, 2.4vw, 2.4rem);
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.answer__synthesis {
  max-width: 1050px;
  font-size: clamp(.82rem, 1.05vw, 1rem);
  line-height: 1.5;
}

.answer__synthesis ul {
  display: grid;
  gap: .4rem;
  margin: 0;
  padding-left: 1.25em;
}

.answer__synthesis li::marker { color: var(--yellow); }

.map {
  border-top: 1px solid var(--line);
}

.question-lane {
  padding: clamp(2.5rem, 4vw, 3.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.question-lane__heading {
  max-width: 1050px;
  margin-bottom: 1.5rem;
}

.question-lane__heading h2,
.deferred h2 {
  margin: 0;
  font-size: clamp(.85rem, 1.25vw, 1.15rem);
  font-weight: 650;
  letter-spacing: -.01em;
  line-height: 1.4;
}

.lane-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: .75rem;
  scrollbar-color: var(--line) transparent;
}

.lane-canvas {
  position: relative;
}

.lane-svg {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.route-path,
.defeater-path,
.route-hit {
  fill: none;
}

.route-path {
  stroke: #d8d8d0;
  stroke-width: 1.6;
  opacity: .72;
  pointer-events: none;
}

.route-path--missing {
  stroke: var(--gray);
  stroke-dasharray: 7 7;
}

.defeater-path {
  stroke: var(--red);
  stroke-width: 1.55;
  stroke-dasharray: 5 5;
  opacity: .9;
  pointer-events: none;
}

.route-hit {
  stroke: transparent;
  stroke-width: 18;
  pointer-events: stroke;
  cursor: pointer;
}

.route-hit:hover + .route-path,
.route-hit:focus + .route-path {
  stroke-width: 2.5;
  opacity: 1;
}

.arrow-head { fill: #d8d8d0; }

.attack-head {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.6;
}

.claim-node {
  position: absolute;
  z-index: 2;
  display: flex;
  width: 420px;
  height: 176px;
  flex-direction: column;
  justify-content: space-between;
  padding: .9rem 1rem;
  border: 0;
  border-left: 5px solid var(--gray);
  background: var(--white);
  color: var(--black);
  box-shadow: 0 15px 45px rgba(0, 0, 0, .35);
  cursor: pointer;
  text-align: left;
  transition: transform .15s ease;
}

.claim-node:hover,
.claim-node:focus-visible {
  transform: translateY(-2px);
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.claim-node[data-acceptance="supported"] { border-left-color: var(--green); }
.claim-node[data-acceptance="unsupported"] { border-left-color: var(--red); }

.claim-node--answer {
  border-left: 0;
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 18px 60px rgba(255, 214, 10, .12);
}

.claim-node__designation {
  align-self: flex-start;
  color: #5c5c55;
  font-size: .57rem;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1;
  text-transform: uppercase;
}

.claim-node--answer .claim-node__designation { color: #4e4300; }

.claim-node__text {
  display: -webkit-box;
  overflow: hidden;
  margin: .5rem 0;
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.claim-node__assessment {
  display: grid;
  gap: .2rem;
  color: #53534d;
  font-size: .62rem;
  font-weight: 760;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.assessment-row {
  display: flex;
  align-items: center;
  gap: .42rem;
  min-height: .8rem;
}

.valence-icon,
.coverage-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: .68rem;
  height: .68rem;
  border-radius: 50%;
}

.valence-icon[data-valence="supported"] { background: var(--green); }
.valence-icon[data-valence="unsupported"] { background: var(--red); }

.coverage-icon {
  border: 1px solid #65655e;
  background: conic-gradient(
    #4d4d47 0 var(--coverage-turn),
    transparent var(--coverage-turn) 1turn
  );
}

.deferred {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.deferred h2 { margin-top: .55rem; }

.ghost-question {
  max-width: 1120px;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: clamp(.72rem, 1vw, .85rem);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .68rem;
}

dialog {
  width: min(760px, 92vw);
  max-height: 86vh;
  padding: 0;
  border: 0;
  background: var(--white);
  color: var(--black);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .68);
}

dialog::backdrop {
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(3px);
}

.dialog__close {
  position: sticky;
  z-index: 3;
  top: .75rem;
  float: right;
  margin: .75rem .75rem 0 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid #c7c7c0;
  border-radius: 50%;
  background: var(--white);
  color: #55554f;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.inspector {
  padding: 2rem 2.1rem 2.3rem;
}

.inspector__eyebrow {
  color: #706000;
  font-size: .68rem;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.inspector h3 {
  margin: .55rem 2.5rem 1.4rem 0;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 650;
  line-height: 1.2;
}

.inspector__stats {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1.5rem;
}

.metric {
  padding: .45rem .65rem;
  border: 1px solid #c7c7c0;
  color: #65655f;
  font-size: .72rem;
}

.metric b { color: var(--black); }

.inspector__section {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid #d6d6cf;
}

.inspector__section h4 {
  margin: 0 0 .55rem;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.inspector__section p,
.inspector__section li {
  color: #4d4d48;
  font-size: .86rem;
}

.inspector__section ul {
  margin: .55rem 0;
  padding-left: 1.15rem;
}

.ground {
  margin: .75rem 0;
  padding: .85rem .9rem;
  border-left: 3px solid #7d7d76;
  background: #e9e9e3;
}

.ground p { margin: 0; color: var(--black); }

.ground a {
  display: inline-block;
  margin-top: .45rem;
  color: #315f75;
  font-size: .68rem;
}

.defeater {
  margin: .65rem 0;
  padding: .75rem .85rem;
  border-left: 3px solid var(--red);
  background: #f3dfdd;
  color: #712f2a;
  font-size: .8rem;
}

.error {
  width: min(760px, 90vw);
  margin: 5rem auto;
  padding: 1rem;
  border: 1px solid var(--red);
  color: #ffaaa3;
}

@media (max-width: 760px) {
  .mast,
  main > section,
  footer { width: 90vw; }
  .mast { padding-top: 3rem; }
  .question-lane__heading { margin-bottom: 1.6rem; }
  .claim-node { width: 390px; }
  footer { flex-direction: column; gap: .4rem; }
  .inspector { padding-inline: 1.25rem; }
}
