:root {
  color-scheme: dark;
  --night: #171713;
  --night-raised: #1c1b16;
  --paper: #eee8dc;
  --paper-muted: #aaa394;
  --rule: #454239;
  --rule-lit: #695746;
  --ember: #cf8953;
  --ember-soft: #e0ad78;
  --source: #c88d5d;
  --compare: #8f9b8b;
  --open: #a59278;
  --measure: 46rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 18rem;
  background:
    linear-gradient(90deg, transparent 0, transparent 6vw, var(--rule) 6vw, var(--rule) calc(6vw + 1px), transparent calc(6vw + 1px)),
    var(--night);
  color: var(--paper);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration-color: var(--ember);
  text-underline-offset: .24em;
}

a:hover { color: var(--ember-soft); }

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: .55rem .8rem;
  background: var(--paper);
  color: var(--night);
  font: .8rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
main,
footer {
  width: min(76rem, calc(100% - 12vw));
  margin-inline: auto;
}

.site-header {
  min-height: 5.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--rule);
}

.identity {
  display: inline-flex;
  gap: .65rem;
  align-items: baseline;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
}

.identity-note,
.where,
.eyebrow,
.track-date,
.track-sub,
.node-kicker,
.legend,
.status,
footer {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.identity-note,
.where,
.eyebrow,
.track-date,
.node-kicker,
.status {
  text-transform: uppercase;
  letter-spacing: .12em;
}

.identity-note,
.where,
.track-sub,
.status {
  color: var(--paper-muted);
}

.identity-note,
.where { font-size: .84rem; }

.where { margin: 0; }
.where span { margin-right: .55rem; color: var(--ember); }

.opening {
  min-height: 70svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 62rem;
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--ember);
  font-size: .84rem;
  font-weight: 700;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 18ch;
  margin-bottom: 2rem;
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  line-height: .98;
  font-weight: 400;
  letter-spacing: -.048em;
}

.lede {
  max-width: var(--measure);
  margin-bottom: 2rem;
  color: #d9d3c7;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.4rem;
  color: var(--paper-muted);
  font-size: .8rem;
}

.legend span { display: inline-flex; gap: .5rem; align-items: center; }

.mark {
  width: .6rem;
  height: .6rem;
  display: inline-block;
  border-radius: 50%;
  background: var(--rule);
}
.mark.source { background: var(--source); }
.mark.compare { background: var(--compare); }
.mark.open {
  border: 1px solid var(--open);
  background: transparent;
}

.tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 5rem);
  padding: 0 0 clamp(6rem, 10vw, 9rem);
}

.track {
  min-width: 0;
  border-top: 1px solid var(--rule-lit);
}

.track-head {
  min-height: 14rem;
  padding: 1.4rem 0 2rem;
  border-bottom: 1px solid var(--rule);
}

.track-date {
  margin-bottom: .5rem;
  color: var(--ember);
  font-size: .8rem;
}

.track-head h2 {
  margin-bottom: .55rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -.03em;
}

.track-sub {
  max-width: 30rem;
  margin-bottom: 0;
  font-size: .9rem;
  line-height: 1.55;
}

.trajectory {
  margin: 0;
  padding: 0;
  list-style: none;
}

.node {
  position: relative;
  margin-left: .55rem;
  padding: 2rem 0 2.1rem 2rem;
  border-left: 1px solid var(--rule);
}

.node::before {
  position: absolute;
  top: 2.45rem;
  left: -.37rem;
  width: .66rem;
  height: .66rem;
  border-radius: 50%;
  content: "";
  background: var(--source);
  box-shadow: 0 0 0 .32rem var(--night);
}

.node-open::before {
  background: var(--night);
  border: 1px solid var(--open);
}

.node-kicker {
  margin-bottom: .55rem;
  color: var(--paper-muted);
  font-size: .75rem;
  line-height: 1.4;
}

.node h3 {
  max-width: 24ch;
  margin-bottom: .8rem;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.12;
}

.node > p:not(.node-kicker),
.node details p {
  max-width: 34rem;
  color: #d5cfc3;
  font-size: 1rem;
  line-height: 1.58;
}

details {
  max-width: 34rem;
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--rule);
  color: var(--paper-muted);
}

summary {
  width: fit-content;
  color: var(--paper-muted);
  font: .8rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  cursor: pointer;
}

details[open] summary { margin-bottom: .8rem; color: var(--ember-soft); }

.hinge,
.question,
.method {
  padding: clamp(5rem, 9vw, 8rem) 0;
  border-top: 1px solid var(--rule);
}

.hinge h2,
.question h2,
.method h2 {
  max-width: 19ch;
  margin-bottom: 2rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -.035em;
}

.hinge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}

.hinge-grid p {
  min-height: 9rem;
  margin: 0;
  padding: 1.4rem 1.5rem 1.4rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--paper-muted);
}

.hinge-grid p:nth-child(odd) { border-right: 1px solid var(--rule); }
.hinge-grid p:nth-child(even) { padding-left: 1.5rem; }

.hinge-grid strong {
  color: var(--paper);
  font-weight: 400;
  font-size: 1.35rem;
}

.question > p,
.method > p {
  max-width: var(--measure);
  color: #d8d2c6;
}

.question-note { color: var(--paper-muted) !important; }

.write {
  max-width: 50rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: baseline;
  margin-top: 2.5rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.write span {
  color: var(--paper-muted);
  font: .8rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.write strong { font-weight: 400; }
.write b { color: var(--ember); font-weight: 400; }

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--rule);
  color: var(--paper-muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

footer p { margin: 0; }
footer .status { justify-self: center; }
footer a { justify-self: end; }

@media (max-width: 52rem) {
  body {
    background:
      linear-gradient(90deg, transparent 0, transparent 1.3rem, var(--rule) 1.3rem, var(--rule) calc(1.3rem + 1px), transparent calc(1.3rem + 1px)),
      var(--night);
  }

  .site-header,
  main,
  footer {
    width: calc(100% - 3.7rem);
    margin-left: 2.7rem;
    margin-right: 1rem;
  }

  .identity-note { display: none; }
  .opening { min-height: 64svh; }

  .tracks { grid-template-columns: 1fr; gap: 4rem; }
  .track-head { min-height: 0; }

  .hinge-grid { grid-template-columns: 1fr; }
  .hinge-grid p:nth-child(odd) { border-right: 0; }
  .hinge-grid p:nth-child(even) { padding-left: 0; }

  .write {
    grid-template-columns: 1fr auto;
  }
  .write span { grid-column: 1 / -1; }
  .write strong { grid-column: 1; }
  .write b { grid-column: 2; }

  footer {
    grid-template-columns: 1fr auto;
  }
  footer .status {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
  }
  footer a { grid-column: 2; grid-row: 1; }
}

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