:root {
  --paper: #eef1f6;
  --surface: #ffffff;
  --ink: #1a2238;
  --ink-soft: #4a5370;
  --line: #cfd6e4;
  --cobalt: #2b3fd6;
  --cobalt-deep: #1e2c9c;
  --marker: #f5c84b;
  --added: #136c45;
  --added-bg: #d9f2e4;
  --removed: #a12a41;
  --removed-bg: #fbe1e5;
  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "Atkinson Hyperlegible", Verdana, sans-serif;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--cobalt); text-underline-offset: 0.18em; }
a:hover { color: var(--cobalt-deep); }

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 7vw, 5.25rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 650; }
h3 { font-size: 1.3rem; font-weight: 650; letter-spacing: -0.01em; }

p { margin: 0; max-width: var(--measure); }

.wrap {
  max-width: 76rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: 0.5rem 0.75rem; z-index: 10; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-block: 1.25rem;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand::before {
  content: "";
  width: 0.85rem;
  height: 1.35rem;
  background: var(--marker);
  border: 2px solid var(--ink);
  border-radius: 2px 2px 6px 6px;
}

.site-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* Buttons */
.button {
  display: inline-block;
  background: var(--cobalt);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.25rem;
  border-radius: 6px;
  border: 2px solid var(--cobalt);
}
.button:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); color: #fff; }
.button-quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.button-quiet:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 4rem); }
.hero h1 { max-width: 15ch; }
.hero-lede { font-size: 1.25rem; margin-top: 1.5rem; max-width: 52ch; color: var(--ink-soft); }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }

/* Demo */
.demo {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 8px 8px 0 var(--ink);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}
.demo-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  padding: 1.25rem;
  border-bottom: 2px solid var(--ink);
  background: #f7f8fc;
}
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field input {
  font: inherit;
  color: inherit;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--surface);
}
.demo-count {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.05rem;
  padding: 0.6rem 0.9rem;
  background: var(--marker);
  border: 2px solid var(--ink);
  border-radius: 6px;
  white-space: nowrap;
}
.demo-rows { list-style: none; margin: 0; padding: 0; }
.demo-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.demo-rows li:last-child { border-bottom: 0; }
.demo-rows .title { overflow-wrap: anywhere; }
.demo-rows .state { font-size: 0.9rem; color: var(--ink-soft); white-space: nowrap; }
.demo-rows li.changed .state { color: var(--added); font-weight: 700; }
del { background: var(--removed-bg); color: var(--removed); text-decoration-thickness: 2px; padding: 0 0.15em; border-radius: 3px; }
ins { background: var(--added-bg); color: var(--added); text-decoration: none; font-weight: 700; padding: 0 0.15em; border-radius: 3px; }
.demo-note { padding: 0.9rem 1.25rem; font-size: 0.95rem; color: var(--ink-soft); border-top: 2px solid var(--ink); max-width: none; background: #f7f8fc; }

/* Sections */
.band { padding-block: clamp(3rem, 8vw, 6rem); }
.band-white { background: var(--surface); border-block: 2px solid var(--ink); }
.band > .wrap > h2 { max-width: 20ch; }
.band-intro { margin-top: 1rem; color: var(--ink-soft); font-size: 1.15rem; }

.jobs { margin-top: 2.5rem; border-top: 2px solid var(--ink); }
.job {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0.5rem 3rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.job:last-child { border-bottom: 2px solid var(--ink); }
.job p { color: var(--ink-soft); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  margin-top: 2.5rem;
}
.plain-list { margin: 1rem 0 0; padding: 0; list-style: none; max-width: var(--measure); }
.plain-list li { padding: 0.65rem 0 0.65rem 1.75rem; border-bottom: 1px solid var(--line); position: relative; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 0.9rem; height: 0.3rem; background: var(--cobalt); }
.plain-list.never li::before { background: var(--removed); }

table { border-collapse: collapse; width: 100%; margin-top: 1.5rem; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 0.75rem 1rem; border: 1px solid var(--line); }
th { font-family: var(--display); font-weight: 650; background: #f7f8fc; }
.table-scroll { overflow-x: auto; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.92em; background: #e3e8f4; padding: 0.1em 0.35em; border-radius: 4px; }

.status {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem 3rem;
  align-items: start;
}
.status p + p { margin-top: 1rem; }
.status-card { background: var(--marker); border: 2px solid var(--ink); border-radius: 10px; padding: 1.5rem; }
.status-card p { margin-top: 0.75rem; }
.status-card a { color: var(--ink); font-weight: 700; }

/* Document pages */
.doc { padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 8vw, 6rem); }
.doc h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.doc .updated { margin-top: 0.75rem; color: var(--ink-soft); }
.doc h2 { font-size: 1.6rem; margin-top: 2.75rem; }
.doc h3 { margin-top: 1.75rem; }
.doc p, .doc ul, .doc ol { margin-top: 1rem; max-width: 70ch; }
.doc li { margin-top: 0.4rem; }
.doc .notice {
  border: 2px solid var(--ink);
  background: var(--surface);
  border-radius: 8px;
  padding: 1.25rem;
  max-width: 70ch;
  margin-top: 1.5rem;
}

/* Footer */
.site-footer { background: var(--ink); color: #e6e9f2; padding-block: 3rem; }
.site-footer a { color: #fff; }
.trademark {
  font-size: 1.05rem;
  max-width: 70ch;
  padding: 1rem 1.25rem;
  border: 2px solid var(--marker);
  border-radius: 8px;
  color: #fff;
}
.footer-row { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin-top: 2rem; }
.footer-small { margin-top: 1.5rem; color: #b9c0d6; font-size: 0.95rem; }

@media (max-width: 760px) {
  .demo-bar, .job, .split, .status { grid-template-columns: minmax(0, 1fr); }
  .demo { box-shadow: 5px 5px 0 var(--ink); }
  .demo-rows li { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .demo-count { justify-self: start; }
}

.doc .notice > :first-child { margin-top: 0; }
