@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-stretch: 75%;
  font-display: swap;
  src: url(/fonts/archivo-800.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/archivo-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/archivo-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #1d1f1e;
  --muted: #5d625f;
  --line: #e2ded4;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --good: #15803d;
  --watch: #b45309;
  --replace: #b91c1c;
  --zone: #fde7c7;
  --r-year: #dbeafe; --r-year-ink: #1e40af;
  --r-month: #dcfce7; --r-month-ink: #166534;
  --r-week: #dcfce7; --r-week-ink: #166534;
  --r-plant: #ede9e3; --r-plant-ink: #57534e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 24px rgba(0,0,0,.06);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141615; --surface: #1d201f; --ink: #ecebe7; --muted: #a4a8a5; --line: #303432;
    --accent: #fb923c; --accent-ink: #1a0d04; --good: #4ade80; --watch: #fbbf24; --replace: #f87171;
    --zone: #4a3415;
    --r-year: #1e3a8a; --r-year-ink: #dbeafe; --r-month: #14532d; --r-month-ink: #dcfce7;
    --r-week: #14532d; --r-week-ink: #dcfce7; --r-plant: #33302c; --r-plant-ink: #d6d3d1;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--line); background: var(--surface); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.logo { font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -.01em; font-size: 18px; }
.logo b { color: var(--accent); }
nav.top a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 15px; }
nav.top a:hover { color: var(--ink); }
main { padding: 28px 0 56px; }
h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; letter-spacing: -.02em; margin: 8px 0 10px; }
h2 { font-size: 23px; line-height: 1.25; margin: 40px 0 10px; letter-spacing: -.01em; }
h3 { font-size: 18px; margin: 24px 0 6px; }
.lede { color: var(--muted); font-size: 19px; margin: 0 0 22px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }

.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.tool form { display: grid; gap: 14px; }
.field label, .serial-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.tool select, .tool input {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.tool input#serial { font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.tool input::placeholder { text-transform: none; letter-spacing: 0; font-family: inherit; }
.tool select:focus, .tool input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
button {
  font: inherit; font-weight: 700; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink);
  padding: 0 22px; min-height: 48px; cursor: pointer;
}
button:hover { filter: brightness(1.07); }
.hint { font-size: 14px; color: var(--muted); margin: 0; }

.result { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.result-error { margin: 0; color: var(--replace); font-weight: 600; }
.eyebrow { font-size: 15px; color: var(--muted); font-weight: 600; }
.result-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.result-date { font-size: 28px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.result-age { text-align: right; }
.result-age-val { font-size: 28px; font-weight: 800; line-height: 1.2; }
.v-good .result-age-val { color: var(--good); }
.v-watch .result-age-val { color: var(--watch); }
.v-replace .result-age-val { color: var(--replace); }
.verdict { font-weight: 600; margin: 10px 0 0; }

.life { margin-top: 16px; }
.life-track { position: relative; height: 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); }
.life-zone { position: absolute; top: 0; bottom: 0; background: var(--zone); }
.life-mark { position: absolute; top: -5px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface); }
.life-cap { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 6px; }

.how { margin-top: 18px; background: var(--bg); border-radius: 10px; padding: 14px; }
.serial-hl { font-family: var(--mono); font-size: 22px; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 2px; }
.ch { padding: 2px 4px; border-radius: 4px; }
.r-year { background: var(--r-year); color: var(--r-year-ink); font-weight: 700; }
.r-month, .r-week { background: var(--r-month); color: var(--r-month-ink); font-weight: 700; }
.r-plant { background: var(--r-plant); color: var(--r-plant-ink); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.fmt { margin: 8px 0 0; font-size: 15px; }
.meta, .alt { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; border: 1px solid currentColor; }
.c-high { color: var(--good); } .c-medium { color: var(--watch); } .c-low { color: var(--replace); }
.cta { display: block; margin-top: 16px; text-align: center; background: var(--ink); color: var(--bg); padding: 12px; border-radius: 10px; font-weight: 700; text-decoration: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 12px; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--accent); }
.card strong { display: block; font-size: 17px; }
.card span { color: var(--muted); font-size: 14px; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 0; list-style: none; }
.brand-grid a { display: block; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 15px; }
.brand-grid a:hover { border-color: var(--accent); }

table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.table-scroll { overflow-x: auto; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 14px; font-weight: 600; color: var(--muted); }
td code, p code, li code { font-family: var(--mono); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: .92em; }
.letters { font-family: var(--mono); font-size: 14px; }
.letters td, .letters th { padding: 4px 8px; text-align: center; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 8px 0; }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 8px 0 0; }

.ad-slot { margin: 28px 0; min-height: 100px; max-width: 100%; overflow: hidden; }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }
footer.site { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
footer.site a { color: var(--muted); }
footer.site p:first-child a { margin-right: 14px; }
@media (max-width: 520px) {
  .row { grid-template-columns: 1fr; }
  .result-age { text-align: left; }
  nav.top a { margin: 0 14px 0 0; }
}

/* ---- What Year Was It Made: equipment rating plates. Aluminum #DEE2E5, plate ink #1C2A36, plate red #B3261E.
   Archivo (condensed for display). One memorable element: the serial on a riveted data plate. ---- */
:root {
  --bg: #DEE2E5; --surface: #EEF0F2; --ink: #1C2A36; --muted: #4E5C68; --line: #C2C9CF;
  --accent: #B3261E; --accent-ink: #FFFFFF; --plate: #C9CFD4;
  --r-year: #B3261E; --r-year-ink: #FFFFFF; --r-month: #1C2A36; --r-month-ink: #FFFFFF; --r-week: #1C2A36; --r-week-ink: #FFFFFF;
  --r-plant: transparent; --r-plant-ink: #4E5C68; --shadow: none;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1A2129; --surface: #222B34; --ink: #E3E8EC; --muted: #A5B0B9; --line: #34404B; --accent: #F0605A; --accent-ink: #1A2129; --plate: #3A4550;
    --r-year: #F0605A; --r-year-ink: #1A2129; --r-month: #E3E8EC; --r-month-ink: #1A2129; --r-week: #E3E8EC; --r-week-ink: #1A2129; --r-plant-ink: #A5B0B9; }
}
body { font-family: 'Archivo', system-ui, sans-serif; background: var(--bg); color: var(--ink); }
h1, h2, h3, .logo, .result-date, .result-age-val { font-family: 'Archivo', system-ui, sans-serif; font-stretch: 75%; font-weight: 800; }
h1 { font-size: clamp(40px, 7vw, 66px); line-height: .98; letter-spacing: -.005em; }
h2 { font-size: 30px; }
/* The header stays dark plate-ink in both themes (its text is fixed light). */
header.site { background: #1C2A36; border-bottom: 0; }
@media (prefers-color-scheme: dark) { header.site { background: #0F161D; border-bottom: 1px solid var(--line); } }
header.site .logo, header.site nav.top a { color: #E3E8EC; }
.logo { font-size: 22px; }
.logo b { color: #F0605A; }
.tool { background: var(--surface); border: 0; border-radius: 4px; box-shadow: none; }
.tool select, .tool input { background: var(--bg); border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; }
button { background: var(--ink); color: var(--bg); border-radius: 3px; }
.result-date { font-size: 38px; }
.result-age-val { font-size: 38px; }
/* The data plate */
.how { position: relative; background: linear-gradient(180deg, color-mix(in srgb, var(--plate) 70%, white) 0%, var(--plate) 100%);
  border: 2px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 6px; padding: 18px 26px; }
.how::before, .how::after { content: ""; position: absolute; top: 9px; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 20%, #8F99A1 60%, #5C666E 100%); }
.how::before { left: 9px; } .how::after { right: 9px; }
.serial-hl { font-family: 'Archivo', sans-serif; font-stretch: 75%; font-weight: 800; font-size: 34px; letter-spacing: .06em; gap: 1px; }
.ch { padding: 0 3px; border-radius: 2px; }
.ch:not(.r-year):not(.r-month):not(.r-week) { color: var(--ink); }
.ch.r-year { background: var(--r-year); color: var(--r-year-ink); }
.ch.r-month, .ch.r-week { background: var(--r-month); color: var(--r-month-ink); }
.r-plant { box-shadow: inset 0 -3px 0 var(--muted); }
.legend { font-size: 14px; }
.badge { border-width: 2px; }
.cards { display: block; columns: 2 240px; column-gap: 28px; }
.card { display: block; break-inside: avoid; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0; }
.card:hover { border-color: var(--line); }
.card strong { color: var(--accent); }
.brand-grid a { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 2px; }
details { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; }
.life-zone { background: color-mix(in srgb, var(--accent) 25%, transparent); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Skip link: hidden until focused (WCAG 2.4.1). */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 6px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 10px; }
main:focus { outline: none; }

:root { --watch: #92400E; }
@media (prefers-color-scheme: dark) { :root { --watch: #F2B45A; } }

/* "What you'll need" Amazon links under a calculator: a plain two-column list, not cards. */
.shop { margin: 30px 0 8px; padding-top: 4px; border-top: 2px solid var(--line); }
.shop h2 { margin: 14px 0 8px; }
.shop ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 28px; }
.shop li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.shop li a { font-weight: 700; }
.shop li span:not(.sr-only) { display: block; font-size: 14px; color: var(--muted); }
.shop-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Voice: a note riveted next to the data plate. */
.hello { font-size: 18px; line-height: 1.5; margin: -8px 0 24px; max-width: 62ch; padding: 10px 14px; border: 1px solid var(--line, #c9ced3); border-left: 4px solid var(--accent); background: var(--surface); }
footer.site .signoff { font-style: italic; }
.linklist { list-style: none; padding: 0; columns: 2 220px; column-gap: 28px; }
.linklist li { padding: 7px 0; border-bottom: 1px solid var(--line, #c9ced3); break-inside: avoid; }
.linklist a { font-weight: 600; text-decoration: none; }
.small { font-size: 14px; color: var(--muted); }
footer.site .byline a { margin-right: 0; }
/* News posts */
.post { max-width: 72ch; }
.post h2 { margin-top: 1.6em; }
.byline-post { color: var(--muted); font-size: 15px; margin: -6px 0 22px; }
.post-note { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 12px; }
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.post-list a { font-weight: 700; }
/* Worked serial example */
.ex-serial code { font-size: 26px; letter-spacing: .08em; padding: 6px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; display: inline-block; }
.ex-serial mark { background: none; color: var(--accent); border-bottom: 3px solid var(--accent); font-weight: 700; }
.ex-serial mark.ex-year { color: var(--replace, #b91c1c); border-color: var(--replace, #b91c1c); }
.ex-read code { font-weight: 700; }
.ex-serial mark.ex-month, .ex-serial mark.ex-week, .ex-serial mark.ex-day { color: var(--ink); border-bottom-style: dashed; border-color: var(--ink); }
