@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --ink: #211a16;
  --bone: #f3efe6;
  --paper: #fcfaf5;
  --graphite: #625c55;
  --line: #d5ccbe;
  --copper-dark: #38685f;
  --copper: #b76438;
  --safety: #9a3f32;
  --white: #fffefa;
  --shadow: 0 28px 70px rgb(33 26 22 / 0.09);
  --display: "Newsreader", Georgia, serif;
  --body: "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --page: min(1380px, calc(100vw - 64px));
  --measure: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgb(33 26 22 / 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 32px;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0 auto 0 24px;
  width: 1px;
  background: var(--line);
  content: "";
  pointer-events: none;
  z-index: 8;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: rgb(183 100 56 / 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-color: var(--copper);
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgb(183 100 56 / 0.5);
  outline-offset: 4px;
}

::selection {
  color: var(--paper);
  background: var(--copper-dark);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 50%;
  padding: 10px 16px;
  color: var(--paper);
  background: var(--ink);
  transform: translate(-50%, -180%);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgb(213 204 190 / 0.86);
  background: rgb(252 250 245 / 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 24px;
  align-items: center;
  width: var(--page);
  min-height: 78px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  border-top: 2px solid var(--copper);
  border-left: 2px solid var(--copper);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
}

.brand-mark::before {
  inset: 7px 0 0 7px;
  border-right: 1px solid var(--copper-dark);
  border-bottom: 1px solid var(--copper-dark);
}

.brand-mark::after {
  top: 5px;
  left: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--copper);
}

.brand-type {
  display: grid;
  line-height: 1;
}

.brand-type strong {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand-type span {
  margin-top: 5px;
  color: var(--graphite);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.primary-nav {
  justify-self: center;
}

.primary-nav ul {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  color: var(--graphite);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--copper-dark);
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-toggle,
.menu-toggle {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.search-toggle:hover,
.menu-toggle:hover {
  border-color: var(--copper);
  background: var(--bone);
}

.search-panel {
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.search-panel[hidden] {
  display: none;
}

.search-panel form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  width: min(920px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 22px 0;
}

.search-panel label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-panel input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgb(252 250 245 / 0.35);
  border-radius: 0;
  color: var(--paper);
  background: transparent;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 34px);
}

.search-panel input::placeholder {
  color: rgb(252 250 245 / 0.48);
}

.search-panel button {
  border: 0;
  color: var(--paper);
  background: transparent;
  cursor: pointer;
}

.progress-track {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--copper);
}

.section-label,
.eyebrow,
.plate-label,
.kicker,
.metric-label {
  color: var(--copper-dark);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(480px, 7fr);
  min-height: min(760px, calc(100svh - 78px));
  border-bottom: 1px solid var(--line);
}

.home-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(70px, 7vw, 108px) clamp(34px, 5vw, 80px);
  background: var(--paper);
}

.home-hero h1,
.article-head h1,
.legal-head h1,
.not-found h1 {
  margin: 20px 0 24px;
  font-family: var(--display);
  font-weight: 420;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.home-hero h1 {
  max-width: 680px;
  font-size: clamp(62px, 6vw, 104px);
}

.home-hero h1 em {
  color: var(--copper);
  font-weight: 350;
}

.home-hero-copy > p {
  max-width: 580px;
  margin: 0;
  color: var(--graphite);
  font-size: clamp(17px, 1.6vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover {
  color: var(--paper);
  background: var(--copper-dark);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
}

.button.secondary:hover {
  border-color: var(--copper);
  color: var(--copper-dark);
  background: var(--bone);
}

.home-hero-visual {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  background: #dfd6c9;
}

.home-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-visual::after {
  position: absolute;
  inset: 24px;
  border: 1px solid rgb(252 250 245 / 0.55);
  content: "";
  pointer-events: none;
}

.hero-datum {
  position: absolute;
  z-index: 2;
  right: 44px;
  bottom: 38px;
  max-width: 310px;
  padding: 16px 18px;
  color: var(--paper);
  background: rgb(33 26 22 / 0.88);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.tool-strip {
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bone);
}

.tool-strip-inner {
  display: grid;
  grid-template-columns: 220px repeat(5, minmax(0, 1fr));
  width: var(--page);
  margin: 0 auto;
}

.tool-strip-title,
.tool-link {
  min-height: 128px;
  padding: 26px 20px;
  border-right: 1px solid var(--line);
}

.tool-strip-title {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--line);
}

.tool-strip-title strong {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 480;
}

.tool-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}

.tool-link:hover {
  color: var(--paper);
  background: var(--copper-dark);
}

.tool-link small {
  color: var(--copper);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tool-link span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.collections {
  padding: clamp(90px, 10vw, 150px) 0;
}

.collections-intro,
.method-inner,
.legal-shell,
.not-found {
  width: var(--page);
  margin: 0 auto;
}

.collections-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: end;
  padding-bottom: 64px;
}

.collections-intro h2,
.method-inner h2,
.related h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 430;
  letter-spacing: -0.035em;
  line-height: 1;
}

.collections-intro h2 {
  max-width: 780px;
  font-size: clamp(50px, 6vw, 88px);
}

.collections-intro p {
  max-width: 560px;
  margin: 0 0 8px;
  color: var(--graphite);
}

.collection {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(40px, 7vw, 110px);
  width: var(--page);
  margin: 0 auto;
  padding: 68px 0;
  border-top: 1px solid var(--line);
}

.collection-head {
  position: sticky;
  top: 112px;
  align-self: start;
}

.collection-head .collection-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  border: 1px solid var(--copper);
  color: var(--copper);
  font-family: var(--mono);
  font-size: 11px;
}

.collection-head h3 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 42px;
  font-weight: 450;
  letter-spacing: -0.03em;
  line-height: 1;
}

.collection-head p {
  margin: 0;
  color: var(--graphite);
  font-size: 14px;
}

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

.guide-card {
  position: relative;
  display: grid;
  min-height: 250px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.guide-card:hover {
  color: var(--paper);
  background: var(--ink);
}

.guide-card .card-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  align-self: start;
  color: var(--copper-dark);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-card:hover .card-meta,
.guide-card:hover p {
  color: rgb(252 250 245 / 0.72);
}

.guide-card h4 {
  align-self: end;
  margin: 32px 0 12px;
  font-family: var(--display);
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 440;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.guide-card p {
  margin: 0;
  color: var(--graphite);
  font-size: 13px;
  line-height: 1.55;
}

.guide-card[hidden] {
  display: none;
}

.no-results {
  width: var(--page);
  margin: 32px auto;
  padding: 48px;
  border: 1px solid var(--line);
  text-align: center;
}

.no-results[hidden] {
  display: none;
}

.method {
  padding: clamp(80px, 10vw, 140px) 0;
  color: var(--paper);
  background: var(--ink);
}

.method-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 44px;
}

.method-inner h2 {
  max-width: 430px;
  margin-top: 24px;
  font-size: clamp(48px, 5vw, 76px);
}

.method-item {
  padding-top: 24px;
  border-top: 1px solid rgb(252 250 245 / 0.22);
}

.method-item strong {
  display: block;
  margin: 18px 0 12px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 450;
}

.method-item p {
  margin: 0;
  color: rgb(252 250 245 / 0.67);
  font-size: 14px;
}

.breadcrumbs {
  width: var(--page);
  margin: 0 auto;
  padding: 28px 0 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--graphite);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  list-style: none;
  text-transform: uppercase;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 8px;
  color: var(--copper);
  content: "/";
}

.breadcrumbs a {
  text-decoration: none;
}

.article-head {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) minmax(200px, 250px);
  gap: clamp(26px, 3vw, 48px);
  align-items: end;
  width: var(--page);
  margin: 0 auto;
  padding: clamp(62px, 8vw, 112px) 0 72px;
}

.article-index {
  align-self: start;
  padding-top: 12px;
}

.article-index .plate-number {
  display: block;
  margin-top: 12px;
  color: var(--line);
  font-family: var(--display);
  font-size: 96px;
  font-weight: 300;
  line-height: 0.9;
}

.article-title-wrap {
  max-width: 940px;
}

.article-head h1 {
  max-width: 970px;
  font-size: clamp(54px, 6.6vw, 104px);
}

.article-dek {
  max-width: 760px;
  margin: 0;
  color: var(--graphite);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.article-meta {
  display: grid;
  gap: 18px;
  align-self: end;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-transform: uppercase;
}

.meta-row span:first-child {
  color: var(--graphite);
}

.article-visual {
  width: min(1120px, calc(100vw - 64px));
  margin: 0 auto clamp(72px, 8vw, 110px);
}

.visual-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bone);
  box-shadow: var(--shadow);
}

.visual-frame::before,
.visual-frame::after {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  content: "";
  pointer-events: none;
}

.visual-frame::before {
  top: 18px;
  left: 18px;
  border-top: 1px solid var(--copper);
  border-left: 1px solid var(--copper);
}

.visual-frame::after {
  right: 18px;
  bottom: 18px;
  border-right: 1px solid var(--copper-dark);
  border-bottom: 1px solid var(--copper-dark);
}

.visual-frame img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}

.article-visual figcaption {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--graphite);
  font-size: 13px;
}

.article-visual figcaption span:first-child {
  color: var(--copper-dark);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bench-answer {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  width: min(1040px, calc(100vw - 64px));
  margin: 0 auto clamp(72px, 8vw, 110px);
  padding: 42px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.bench-answer h2 {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 450;
  line-height: 1;
}

.bench-answer ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: bench;
}

.bench-answer li {
  position: relative;
  padding-top: 38px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
  counter-increment: bench;
}

.bench-answer li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--copper);
  font-family: var(--mono);
  font-size: 11px;
  content: "0" counter(bench);
}

.editor-note {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  width: min(1040px, calc(100vw - 64px));
  margin: -54px auto 92px;
  padding: 28px 32px;
  border-left: 3px solid var(--copper);
  background: var(--bone);
}

.editor-note.critical,
.editor-note.safety {
  border-left-color: var(--safety);
}

.editor-note .note-tag {
  color: var(--safety);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editor-note h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 480;
}

.editor-note p {
  margin: 0;
  color: var(--graphite);
  font-size: 14px;
}

.calculator-wrap {
  width: min(1040px, calc(100vw - 64px));
  margin: 0 auto clamp(84px, 10vw, 128px);
  padding: clamp(28px, 5vw, 60px);
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 30px 80px rgb(33 26 22 / 0.18);
}

.calculator-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 42px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgb(252 250 245 / 0.22);
}

.calculator-head h2 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1;
}

.calculator-head p {
  align-self: end;
  margin: 0;
  color: rgb(252 250 245 / 0.64);
  font-size: 14px;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(36px, 6vw, 72px);
}

.calculator-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
  margin: 0;
  padding: 0;
  border: 0;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: rgb(252 250 245 / 0.72);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.input-unit {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  border: 1px solid rgb(252 250 245 / 0.25);
}

.input-unit:focus-within {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgb(183 100 56 / 0.2);
}

.input-unit input,
.input-unit select {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  outline: none;
  color: var(--paper);
  background: transparent;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.input-unit select {
  color-scheme: dark;
}

.input-unit span {
  display: grid;
  place-items: center;
  min-width: 54px;
  padding: 0 10px;
  border-left: 1px solid rgb(252 250 245 / 0.18);
  color: rgb(252 250 245 / 0.6);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.calculator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / -1;
  margin-top: 10px;
}

.checkbox-field > span {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  color: rgb(252 250 245 / 0.72);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--copper);
}

.calculator-actions button {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgb(252 250 245 / 0.3);
  color: var(--paper);
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.calculator-actions button:first-child {
  border-color: var(--copper);
  background: var(--copper);
}

.calculator-actions button:hover {
  background: var(--copper-dark);
}

.calculator-result {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px;
  border: 1px solid rgb(252 250 245 / 0.24);
  background: rgb(252 250 245 / 0.055);
}

.calculator-result > .section-label {
  color: #a9c9c2;
}

[data-calculator-output] {
  display: grid;
  gap: 18px;
  margin: auto 0;
  padding: 32px 0;
  font-variant-numeric: tabular-nums;
}

.calculator-result__eyebrow {
  margin: 0;
  color: #a9c9c2;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.45;
  text-transform: uppercase;
}

.calculator-result__title {
  margin: 24px 0 28px;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 390;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.calculator-result__grid {
  display: grid;
  gap: 0;
  margin: 0;
}

.calculator-result__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid rgb(252 250 245 / 0.14);
}

.calculator-result__item dt,
.calculator-result__item dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.45;
}

.calculator-result__item dt {
  color: rgb(252 250 245 / 0.54);
}

.calculator-result__item dd {
  color: var(--paper);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.calculator-result__note,
.calculator-result__warning {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgb(252 250 245 / 0.14);
  color: rgb(252 250 245 / 0.6);
  font-size: 11px;
  line-height: 1.55;
}

.calculator-result__warning {
  padding: 14px;
  border: 1px solid rgb(243 169 158 / 0.5);
  color: #f3c4bd;
  background: rgb(154 63 50 / 0.14);
}

.calculator-errors__title {
  margin: 0;
  font-weight: 750;
}

.calculator-errors ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

[data-calculator-output] strong,
[data-calculator-output] .result-primary {
  display: block;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 380;
  letter-spacing: -0.03em;
  line-height: 1;
}

[data-calculator-output] small,
[data-calculator-output] .result-secondary {
  display: block;
  color: rgb(252 250 245 / 0.68);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
}

[data-calculator-errors] {
  grid-column: 1 / -1;
  margin: 0;
  color: #f3a99e;
  font-size: 13px;
}

.calculator-formula {
  padding-top: 18px;
  border-top: 1px solid rgb(252 250 245 / 0.16);
  color: rgb(252 250 245 / 0.55);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, var(--measure)) minmax(180px, 240px);
  gap: clamp(24px, 3vw, 48px);
  justify-content: center;
  width: var(--page);
  margin: 0 auto;
  padding-bottom: clamp(90px, 10vw, 150px);
}

.article-toc,
.article-aside {
  position: sticky;
  top: 112px;
  align-self: start;
}

.article-toc {
  padding-top: 16px;
}

.article-toc ol {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.article-toc li {
  counter-increment: toc;
}

.article-toc a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  color: var(--graphite);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
}

.article-toc a::before {
  color: var(--line);
  font-family: var(--mono);
  font-size: 9px;
  content: "0" counter(toc);
}

.article-toc a:hover,
.article-toc a.active {
  color: var(--copper-dark);
}

.article-toc a.active::before {
  color: var(--copper);
}

.prose {
  min-width: 0;
}

.prose > section {
  padding: 0 0 70px;
}

.prose > section + section {
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.prose h2 {
  margin: 54px 0 24px;
  font-family: var(--display);
  font-size: clamp(38px, 4.8vw, 58px);
  font-weight: 440;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.prose section:first-child h2 {
  margin-top: 0;
}

.prose h3 {
  margin: 38px 0 16px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 480;
  line-height: 1.15;
}

.prose p,
.prose li {
  color: #39332f;
}

.prose p {
  margin: 0 0 1.35em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.5em;
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.65em;
}

.prose strong {
  color: var(--ink);
  font-weight: 760;
}

.prose blockquote {
  margin: 36px 0;
  padding: 6px 0 6px 28px;
  border-left: 2px solid var(--copper);
  color: var(--graphite);
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.35;
}

.prose pre {
  box-sizing: border-box;
  max-width: 100%;
  margin: 30px 0;
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  -webkit-overflow-scrolling: touch;
}

.prose pre code {
  display: block;
  width: max-content;
  min-width: 100%;
  font: inherit;
}

.cmp-table {
  width: 100%;
  margin: 42px 0;
}

.cmp-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--white);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.45;
}

.prose caption {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--copper-dark);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-align: left;
  text-transform: uppercase;
}

.prose th,
.prose td {
  min-width: 130px;
  padding: 15px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--ink);
  background: var(--bone);
  font-weight: 750;
}

.prose tr:last-child th,
.prose tr:last-child td {
  border-bottom: 0;
}

.prose th:last-child,
.prose td:last-child {
  border-right: 0;
}

.prose figcaption {
  margin-top: 10px;
  color: var(--graphite);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.55;
}

.contextual-links {
  margin: 8px 0 28px;
  padding: 28px 30px 24px;
  border-top: 2px solid var(--copper);
  background: linear-gradient(135deg, var(--bone), var(--paper));
}

.prose .contextual-links h2 {
  margin: 10px 0 18px;
  font-size: clamp(28px, 3.4vw, 40px);
}

.contextual-links ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contextual-links li,
.contextual-links li + li {
  margin: 0;
}

.contextual-links a {
  color: var(--copper-dark);
  font-weight: 760;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.contextual-links a:hover {
  color: var(--ink);
}

.article-aside {
  display: grid;
  gap: 24px;
}

.aside-card {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.aside-card ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.aside-card li,
.aside-card a {
  color: var(--graphite);
  font-size: 12px;
  line-height: 1.5;
}

.aside-card a {
  display: block;
  overflow-wrap: anywhere;
}

.source-panel,
.faq-panel,
.related {
  width: min(1040px, calc(100vw - 64px));
  margin: 0 auto;
}

.source-panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.source-panel h2,
.faq-panel > h2 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: 38px;
  font-weight: 450;
  line-height: 1;
}

.source-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.source-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.source-list a::after {
  color: var(--copper);
  content: "↗";
}

.faq-panel {
  padding: clamp(80px, 9vw, 130px) 0;
}

.faq-panel > .section-label {
  display: block;
  margin-bottom: 12px;
}

.faq-panel > h2 {
  margin-bottom: 42px;
  font-size: clamp(46px, 6vw, 76px);
}

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: grid;
  grid-template-columns: 1fr 24px;
  gap: 30px;
  align-items: center;
  padding: 26px 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 31px);
  font-weight: 460;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  color: var(--copper);
  font-family: var(--mono);
  font-size: 20px;
  content: "+";
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-answer {
  max-width: var(--measure);
  padding: 0 0 28px;
  color: var(--graphite);
}

.faq-answer p {
  margin: 0;
}

.related {
  padding: 80px 0 120px;
  border-top: 1px solid var(--line);
}

.related-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 38px;
}

.related h2 {
  margin-top: 12px;
  font-size: clamp(42px, 5vw, 64px);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.related-card {
  min-height: 220px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.related-card:hover {
  color: var(--paper);
  background: var(--copper-dark);
}

.related-card small {
  color: var(--copper);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.related-card strong {
  display: block;
  margin-top: 66px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 450;
  line-height: 1.1;
}

.legal-head {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 150px) 0 64px;
  border-bottom: 1px solid var(--line);
}

.legal-head h1 {
  max-width: 900px;
  font-size: clamp(62px, 8vw, 118px);
}

.legal-head p {
  max-width: 720px;
  color: var(--graphite);
  font-size: 20px;
}

.legal-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, var(--measure));
  gap: 80px;
  justify-content: center;
  padding: 80px 0 140px;
}

.legal-shell .prose > section {
  border-top: 0;
}

.not-found {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: calc(100svh - 78px);
  padding: 80px 0;
}

.not-found h1 {
  font-size: clamp(80px, 15vw, 210px);
}

.not-found h2 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: 52px;
  font-weight: 440;
  line-height: 1;
}

.site-footer {
  color: var(--paper);
  background: var(--ink);
}

.footer-inner {
  width: var(--page);
  margin: 0 auto;
  padding: 78px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 54px;
  padding-bottom: 64px;
}

.footer-statement {
  max-width: 460px;
  margin: 26px 0 0;
  color: rgb(252 250 245 / 0.62);
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.25;
}

.footer-col h2 {
  margin: 0 0 20px;
  color: #9bc1b8;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  color: rgb(252 250 245 / 0.7);
  font-size: 13px;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--paper);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgb(252 250 245 / 0.16);
  color: rgb(252 250 245 / 0.42);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  :root {
    --page: min(100% - 48px, 1120px);
  }

  .header-inner {
    grid-template-columns: 230px 1fr auto;
  }

  .primary-nav li:nth-child(n + 5) {
    display: none;
  }

  .home-hero {
    grid-template-columns: 1fr 1fr;
  }

  .tool-strip-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .tool-strip-title,
  .tool-link {
    border-bottom: 1px solid var(--line);
  }

  .method-inner {
    grid-template-columns: 1fr 1fr;
  }

  .article-head {
    grid-template-columns: 140px 1fr;
  }

  .article-meta {
    grid-column: 2;
  }

  .article-layout {
    grid-template-columns: 190px minmax(0, var(--measure));
  }

  .article-aside {
    position: static;
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  :root {
    --page: calc(100% - 36px);
  }

  body {
    font-size: 16px;
  }

  body::before {
    left: 10px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 68px;
  }

  .primary-nav {
    position: fixed;
    inset: 68px 0 auto;
    display: none;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .primary-nav.open {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    gap: 0;
    width: var(--page);
    margin: 0 auto;
    padding: 12px 0 20px;
  }

  .primary-nav li,
  .primary-nav li:nth-child(n + 5) {
    display: block;
  }

  .primary-nav a {
    display: block;
    padding: 12px 0;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .search-panel form {
    grid-template-columns: 1fr auto;
    width: var(--page);
  }

  .search-panel label {
    grid-column: 1 / -1;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-hero-copy {
    padding: 72px 24px;
  }

  .home-hero h1 {
    font-size: clamp(58px, 17vw, 86px);
  }

  .home-hero-visual {
    min-height: 460px;
  }

  .tool-strip-inner {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .tool-strip-title {
    grid-column: 1 / -1;
  }

  .collections-intro,
  .collection,
  .method-inner,
  .article-head,
  .bench-answer,
  .editor-note,
  .article-layout,
  .source-panel,
  .legal-shell {
    grid-template-columns: 1fr;
  }

  .collections-intro {
    gap: 24px;
  }

  .collection {
    gap: 34px;
  }

  .collection-head,
  .article-toc,
  .article-aside {
    position: static;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .method-inner {
    gap: 46px;
  }

  .article-head {
    gap: 28px;
    padding-bottom: 50px;
  }

  .article-index .plate-number {
    font-size: 58px;
  }

  .article-head h1 {
    font-size: clamp(52px, 15vw, 78px);
  }

  .article-meta {
    grid-column: auto;
  }

  .article-visual,
  .bench-answer,
  .editor-note,
  .calculator-wrap,
  .source-panel,
  .faq-panel,
  .related {
    width: var(--page);
  }

  .article-visual figcaption {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .bench-answer {
    gap: 30px;
  }

  .bench-answer ol {
    grid-template-columns: 1fr;
  }

  .editor-note {
    gap: 10px;
    margin-top: -36px;
  }

  .calculator-head,
  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .calculator-fields {
    grid-template-columns: 1fr;
  }

  .field.full,
  .calculator-actions,
  [data-calculator-errors] {
    grid-column: auto;
  }

  .article-layout {
    gap: 42px;
  }

  .article-toc {
    padding: 22px;
    border: 1px solid var(--line);
  }

  .article-toc ol {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-aside {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 1fr;
  }

  .cmp-table {
    width: calc(100vw - 36px);
  }

  .source-panel {
    gap: 30px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-card strong {
    margin-top: 34px;
  }

  .not-found {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .brand-type span {
    display: none;
  }

  .home-hero-copy {
    padding-inline: 18px;
  }

  .home-hero-visual {
    min-height: 360px;
  }

  .hero-datum {
    right: 26px;
    bottom: 26px;
    left: 26px;
  }

  .tool-strip-title,
  .tool-link {
    min-height: 112px;
    padding: 20px;
  }

  .tool-strip-inner,
  .article-toc ol,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 220px;
  }

  .visual-frame img {
    aspect-ratio: 1 / 1;
  }

  .calculator-wrap {
    width: 100%;
    box-shadow: none;
  }

  .calculator-result {
    min-height: 300px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .article-toc,
  .article-aside,
  .breadcrumbs,
  .related,
  .calculator-actions,
  .progress-track {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  body::before {
    display: none;
  }

  .article-head,
  .article-layout,
  .source-panel {
    display: block;
    width: 100%;
  }

  .article-head h1 {
    font-size: 42pt;
  }

  .article-visual,
  .bench-answer,
  .editor-note,
  .calculator-wrap,
  .faq-panel {
    width: 100%;
    break-inside: avoid;
  }

  .calculator-wrap {
    color: #000;
    background: #fff;
    border: 1px solid #000;
  }

  a {
    text-decoration: none;
  }
}
