@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-normal.woff2") format("woff2");
  font-weight: 100 700;
  font-stretch: 85% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-italic.woff2") format("woff2");
  font-weight: 100 700;
  font-stretch: 85% 100%;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #fafaf8;
  --panel: #ffffff;
  --ink: #1d1d1b;
  --ink-2: #545450;
  --ink-3: #74746f;
  --rule: #dcdcd6;
  --track: #ececE6;
  --bar: #3d3d39;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --accent-hover: #9a3412;
  --accent-soft: #fdebe0;
  --focus: #c2410c;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --measure: 42rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1a1a18; --panel: #232321; --ink: #ecece8; --ink-2: #b4b4ae; --ink-3: #93938d; --rule: #393935;
    --track: #2e2e2b; --bar: #c9c9c3; --accent: #ff8a4c; --accent-ink: #1a1a18; --accent-hover: #ffa775; --accent-soft: #3d2618; --focus: #ff8a4c;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1a1a18; --panel: #232321; --ink: #ecece8; --ink-2: #b4b4ae; --ink-3: #93938d; --rule: #393935;
  --track: #2e2e2b; --bar: #c9c9c3; --accent: #ff8a4c; --accent-ink: #1a1a18; --accent-hover: #ffa775; --accent-soft: #3d2618; --focus: #ff8a4c;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; font-variant-numeric: tabular-nums; overflow-x: hidden; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
select, option { background: var(--panel); color: var(--ink); }
.wrap { width: 100%; max-width: 74rem; margin: 0 auto; padding: 0 var(--gutter); }

.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; }
.wordmark { font-weight: 700; font-stretch: 85%; font-size: 1.35rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.wordmark::before { content: ""; width: 0.8rem; height: 0.8rem; background: var(--accent); border-radius: 2px; }
.masthead nav a { color: var(--ink-2); text-decoration: none; padding: 0.5rem 0; font-size: 0.95rem; }
.masthead nav a:hover { color: var(--ink); text-decoration: underline; }

h1, h2, h3 { font-stretch: 85%; letter-spacing: -0.01em; }
h1 { font-weight: 700; font-size: clamp(2.4rem, 7.5vw, 4.2rem); line-height: 1; margin: 0 0 1rem; text-wrap: balance; }
.lede { font-size: 1.15rem; color: var(--ink-2); margin: 0 0 1.75rem; max-width: 36rem; }

.landing { padding: 1.5rem 0 3rem; }
.landing-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 960px) { .landing-top { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 4rem; padding-top: 2.5rem; align-items: end; } }

.job-form label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.job-form textarea { display: block; width: 100%; min-height: 7.5rem; resize: vertical; padding: 0.85rem 1rem; background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; line-height: 1.5; }
.job-form .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 0.75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 1.4rem; border: 0; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 1.02rem; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn.quiet { background: transparent; color: var(--ink); border: 1px solid var(--rule); min-height: 44px; font-size: 0.95rem; }
.btn.quiet:hover { border-color: var(--ink); }
.hint { font-size: 0.9rem; color: var(--ink-3); }
.notice { margin: 1rem 0 0; padding: 0.75rem 1rem; border-left: 3px solid var(--accent); background: var(--panel); font-size: 0.97rem; }

.samples h2 { font-size: 1rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0; margin: 0 0 0.6rem; }
.sample-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
@media (min-width: 640px) { .sample-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sample-list button { width: 100%; min-height: 60px; text-align: left; padding: 0.7rem 0.9rem; background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; cursor: pointer; line-height: 1.3; }
.sample-list button:hover { border-color: var(--ink); }
.sample-list strong { display: block; font-weight: 600; }
.sample-list span { font-size: 0.88rem; color: var(--ink-3); }

/* The timeline of a run */
.room { background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 1rem 1.1rem 1.1rem; }
.room-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; margin-bottom: 0.8rem; }
.room-head h2 { font-size: 1.1rem; margin: 0; }
.room-head p { margin: 0; font-size: 0.9rem; color: var(--ink-3); }
.lanes { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 0.45rem 0.9rem; align-items: center; }
.lane-label { font-size: 0.9rem; line-height: 1.25; color: var(--ink-2); overflow-wrap: anywhere; }
.lane-label b { color: var(--ink); font-weight: 600; display: block; }
.track { position: relative; height: 1.15rem; background: var(--track); border-radius: 2px; }
.span { position: absolute; top: 0; bottom: 0; background: var(--bar); border-radius: 2px; min-width: 3px; }
.span.lead, .span.editor { background: var(--accent); }
.span.revision { background: repeating-linear-gradient(135deg, var(--accent) 0 5px, transparent 5px 8px); outline: 1.5px solid var(--accent); outline-offset: -1.5px; }
.span.working { opacity: 0.75; }
.axis { grid-column: 2; display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--ink-3); }
@media (min-width: 960px) { .lanes { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); } .lane-label b { display: inline; } .lane-label b::after { content: " "; } }
@media (max-width: 559px) {
  .lanes { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .lane-label { margin-top: 0.45rem; }
  .axis { grid-column: 1; }
}
.room .controls { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; margin-top: 0.9rem; }
.room .key { font-size: 0.85rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.room .key i { display: inline-block; width: 1.1rem; height: 0.6rem; margin-right: 0.35rem; vertical-align: 0.05em; border-radius: 2px; background: var(--bar); }
.room .key i.a { background: var(--accent); }
.room .key i.r { background: repeating-linear-gradient(135deg, var(--accent) 0 4px, transparent 4px 7px); outline: 1.5px solid var(--accent); outline-offset: -1.5px; }
.log { list-style: none; padding: 0; margin: 1rem 0 0; font-size: 0.93rem; border-top: 1px solid var(--rule); }
.log li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 0.6rem; padding: 0.45rem 0; border-bottom: 1px dotted var(--rule); }
.log time { color: var(--ink-3); }
.log b { font-weight: 600; }
.log li.note { background: var(--accent-soft); }
.log li[hidden] { display: none; }

.landing .room { margin-top: 0; }
.landing-run { margin-top: 2.5rem; }

/* The finished page */
.result { padding: 0.5rem 0 3rem; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.back:hover { text-decoration: underline; }
.job-quote { margin: 0.5rem 0 1rem; padding: 0.6rem 0.9rem; border-left: 3px solid var(--rule); color: var(--ink-2); max-width: var(--measure); font-style: italic; }
.result h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin-bottom: 0.4rem; }
.result .goal { color: var(--ink-2); margin: 0 0 1.5rem; max-width: var(--measure); }
.result-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.doc { background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 1.4rem 1.2rem 1.6rem; max-width: 46rem; }
@media (min-width: 700px) { .doc { padding: 2rem 2.2rem 2.2rem; } }
.doc .summary { font-size: 1.15rem; line-height: 1.55; margin: 0 0 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }
.doc section { margin: 0 0 1.9rem; }
.doc h2 { font-size: 1.4rem; margin: 0 0 0.15rem; }
.byline { font-size: 0.88rem; color: var(--ink-3); margin: 0 0 0.75rem; }
.byline .rev { color: var(--accent); }
.doc p { margin: 0 0 0.8rem; }
.doc ul, .doc ol { margin: 0 0 0.9rem; padding-left: 1.25rem; }
.doc li { margin-bottom: 0.35rem; }
.table-wrap { overflow-x: auto; margin: 0.4rem 0 1rem; border: 1px solid var(--rule); border-radius: 4px; }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
th, td { text-align: left; padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; background: var(--bg); }
tr:last-child td { border-bottom: 0; }
.doc h2.small { font-size: 1.15rem; }
.checks { font-size: 0.95rem; color: var(--ink-2); }
.fine { font-size: 0.9rem; color: var(--ink-3); max-width: var(--measure); margin-top: 1.5rem; }

.prose { max-width: var(--measure); padding: 1.5rem 0 3rem; }
.prose h2 { font-size: 1.3rem; margin: 2rem 0 0.4rem; }
.prose ol, .prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

footer.site { border-top: 1px solid var(--rule); padding: 1.5rem 0 2.5rem; font-size: 0.9rem; color: var(--ink-3); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
footer.site p { margin: 0; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
footer.site a { color: var(--ink-2); }
[hidden] { display: none !important; }

.samples { margin-top: 2rem; }
