:root {
  --paper: #f3efe6;
  --paper-2: #fffdf8;
  --ink: #1c1915;
  --muted: #454037;
  --line: #d8d0c2;
  --teal: #0a4f4c;
  --teal-deep: #073836;
  --clay: #8a341c;
  --wash: #e5f2f1;
  --note: #f7efe2;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0.2rem 0 0.6rem; }
h2 { font-size: 1.7rem; margin: 2rem 0 0.6rem; }
h3 { font-size: 1.25rem; margin: 1.2rem 0 0.4rem; }
p { margin: 0.6rem 0; }
a { color: var(--teal-deep); }
a:hover { color: var(--clay); }
code { font-family: var(--mono); font-size: 0.86em; }
img { max-width: 100%; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: white;
  padding: 0.4rem 0.7rem;
  z-index: 5;
}
.skip:focus { top: 0.75rem; color: white; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.topbar { background: var(--teal); color: #f4f1ea; font-size: 0.92rem; }
.topbar a { color: #fff; }
.topbar-inner { padding: 0.45rem 0; }
.topbar p { margin: 0; }

.mast { border-bottom: 1px solid var(--line); background: var(--paper-2); }
.mast-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding: 0.85rem 0; }
.brand { display: flex; gap: 0.7rem; align-items: center; color: inherit; text-decoration: none; }
.brand strong { display: block; font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.45rem); letter-spacing: -0.03em; line-height: 1.15; }
.brand small { display: block; color: var(--muted); font-size: 0.82rem; max-width: 28rem; }
.mark { width: 2rem; height: 2rem; color: var(--teal); flex: none; }
.nav ul { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: 0.98rem; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.25em; }

main { padding-bottom: 3rem; }
.crumbs { margin: 1rem 0 0.4rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0; font-size: 0.88rem; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.35rem; color: var(--line); }

.dek { font-size: 1.2rem; max-width: 42rem; }
.kicker { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin: 0 0 0.3rem; font-weight: 700; }
.muted { color: var(--muted); }
.answer { background: var(--wash); border-left: 4px solid var(--teal); padding: 0.9rem 1rem; margin: 1rem 0 1.4rem; }
.answer p:last-child { margin-bottom: 0; }
.note, .unreviewed { background: var(--note); padding: 0.8rem 1rem; border-radius: 2px; }
.badge, .badge-guide {
  display: inline-block;
  background: var(--clay);
  color: white;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  text-decoration: none;
}
.badge-guide { background: var(--teal); }

.jobs, .labs, .tiers, .compare-notes { display: grid; gap: 0.8rem; }
.jobs { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.job, .lab, .tier, .compare-notes article, .example {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
}
.job { display: flex; flex-direction: column; gap: 0.2rem; text-decoration: none; color: inherit; border-top: 3px solid var(--teal); min-height: 9rem; }
.job strong { font-family: var(--serif); font-size: 1.3rem; text-decoration: underline; text-underline-offset: 0.12em; }
.labs { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.lab h2 { margin-top: 0; font-size: 1.4rem; }
.lab h2 a { text-decoration: none; display: flex; gap: 0.55rem; align-items: center; }
.monogram {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem; align-items: start; }
.changes, .log, .pairs { padding-left: 1.1rem; }
.changes li, .log li { margin: 0.45rem 0; }
.changes time, .log time { color: var(--muted); margin-right: 0.35rem; }

.filters, .finder { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; align-items: end; margin: 1rem 0; }
.filters label, .choice { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.88rem; color: var(--muted); }
.choice { flex-direction: row; align-items: flex-start; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); padding: 0.55rem 0.7rem; }
.finder { display: grid; }
.finder fieldset { border: 1px solid var(--line); margin: 0 0 0.8rem; padding: 0.8rem; }
.finder legend { font-family: var(--serif); padding: 0 0.3rem; }
input, select, button { font: inherit; color: var(--ink); }
input, select { background: white; border: 1px solid #b7ad9d; border-radius: 2px; padding: 0.4rem 0.5rem; min-width: 0; }
button, .button {
  background: var(--teal);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
}
button:hover { background: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.table-scroll { overflow-x: auto; border-top: 2px solid var(--ink); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.data caption { text-align: left; caption-side: bottom; color: var(--muted); font-size: 0.85rem; padding: 0.5rem 0; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--line); }
table.data thead th { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; border-bottom: 2px solid var(--ink); }
.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 0.84rem; white-space: nowrap; }
table.data th.num { text-align: right; }
table.compare td:not(:first-child), table.compare th:not(:first-child) { min-width: 10rem; }
th:first-child, table.data td:first-child { background: var(--paper); }
.table-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.7rem 0;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-top: 1px solid var(--line);
}
.source { color: var(--muted); font-size: 0.86rem; }
.checked, .raw { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0.4rem 0; }
.chips li { background: var(--wash); border-radius: 999px; padding: 0.1rem 0.55rem; font-size: 0.82rem; }
blockquote { margin: 0.6rem 0; padding-left: 1rem; border-left: 3px solid var(--line); color: var(--muted); }
blockquote footer { margin-top: 0.4rem; font-size: 0.88rem; }
.index-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.index-list li { background: var(--paper-2); border: 1px solid var(--line); padding: 0.5rem 0.8rem; }
.example h3 { margin-top: 0; }
.cheaper { background: var(--wash); margin-top: 0.7rem; padding: 0.7rem 0.8rem; }
.cheaper h3, .cheaper h4 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.live { font-size: 0.92rem; color: var(--muted); }
.tiers { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.compare-notes { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.empty { background: var(--note); padding: 0.8rem 1rem; }
.faq h3 { font-size: 1.15rem; }
.site-foot { background: var(--teal-deep); color: #f3efe6; padding: 1.5rem 0 2rem; }
.site-foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 0.25rem 0; }
.related { margin-top: 1rem; }

@media (max-width: 800px) {
  .split, .foot-grid { grid-template-columns: 1fr; }
  .wrap { width: min(1120px, calc(100% - 1.2rem)); }
  h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
