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

:root {
  --graphite: #1c1b19;
  --graphite-soft: #3d3a35;
  --muted: #5d5851;
  --plaster: #f3eee6;
  --sheet: #fbf8f2;
  --line: #c4bdb2;
  --line-dark: #817b72;
  --brass: #8a6a32;
  --wash: #e8e1d7;
  --safety: #7d2923;
  --safety-bg: #f4e2dd;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--graphite); background: var(--plaster); font-family: var(--sans); font-size: 1.03rem; line-height: 1.62; }
a { color: var(--graphite); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: #000; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--graphite); outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -5rem; padding: 0.55rem 0.85rem; background: var(--graphite); color: var(--sheet); font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; }
.skip:focus { top: 0.5rem; z-index: 10; }

.site-header, .site-footer, main { width: min(1180px, calc(100% - 2.5rem)); margin-inline: auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 2rem; min-height: 104px; border-bottom: 2px solid var(--graphite); }
.brand { display: flex; align-items: center; gap: 0.9rem; color: var(--graphite); text-decoration: none; }
.mark { width: 68px; height: 50px; flex: none; color: var(--graphite); }
.wordmark { display: grid; min-width: 194px; border-left: 1px solid var(--line-dark); padding-left: 0.9rem; line-height: 1; }
.wordmark b { font-size: 1.28rem; letter-spacing: 0.045em; text-transform: uppercase; }
.wordmark small { margin-top: 0.45rem; font-family: var(--mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0; border: 1px solid var(--line-dark); }
.site-header nav a { min-height: 38px; display: inline-flex; align-items: center; padding: 0.45rem 0.7rem; border-right: 1px solid var(--line); text-decoration: none; font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.035em; text-transform: uppercase; }
.site-header nav a:last-child { border-right: 0; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--sheet); background: var(--graphite); }

main { position: relative; padding-bottom: 1rem; }
h1, h2, h3 { margin-top: 0; color: var(--graphite); font-family: var(--sans); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; }
h1 { max-width: 13ch; margin-bottom: 0.9rem; font-size: clamp(2.7rem, 5.6vw, 5.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); }
h3 { font-size: 1.3rem; }
.eyebrow, .kicker { margin: 0 0 0.65rem; color: var(--graphite-soft); font-family: var(--mono); font-size: 0.69rem; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; }
.eyebrow a { color: inherit; text-decoration: none; }
.dek, .lede { color: var(--graphite-soft); font-size: 1.13rem; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: 4.2rem 0 4.6rem; }
.hero::before { content: ""; position: absolute; inset: 1.5rem 0 1.5rem 52%; z-index: -1; background-image: linear-gradient(rgba(28,27,25,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(28,27,25,.055) 1px, transparent 1px); background-size: 24px 24px; border-left: 1px solid var(--line); }
.hero-copy { position: relative; }
.hero .lede { max-width: 45rem; }
.dimension-rule { position: relative; display: flex; justify-content: space-between; width: min(100%, 37rem); margin: 1.3rem 0 1.6rem; border-top: 1px solid var(--brass); color: var(--brass); font-family: var(--mono); font-size: 0.63rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.dimension-rule::before, .dimension-rule::after { content: ""; position: absolute; top: -6px; width: 1px; height: 11px; background: var(--brass); }
.dimension-rule::before { left: 0; }
.dimension-rule::after { right: 0; }
.dimension-rule span { padding-top: 0.4rem; }
.hero-img { position: relative; margin: 0; padding: 0.65rem 0.65rem 1rem; background: var(--sheet); border: 1px solid var(--graphite); box-shadow: 9px 9px 0 var(--wash); }
.hero-img::before { content: "25 mm"; position: absolute; top: -1.25rem; right: 0; color: var(--brass); font-family: var(--mono); font-size: 0.62rem; font-weight: 600; }
.hero-img::after { content: ""; position: absolute; top: -0.6rem; right: 0; width: 29%; border-top: 1px solid var(--brass); }
.hero-img img, .article-hero img, .diagram img, .infographic img, .hub-art svg { display: block; width: 100%; height: auto; border: 1px solid var(--line-dark); border-radius: 0; }
.hero-img figcaption, .article-hero figcaption, .diagram figcaption, .infographic figcaption, .hub-art figcaption { margin-top: 0.55rem; color: var(--muted); font-family: var(--mono); font-size: 0.7rem; font-style: normal; letter-spacing: 0.02em; }
.actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.4rem; }
.button, button.primary, button.choice { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0.65rem 1rem; border: 1px solid var(--graphite); border-radius: 0; background: var(--graphite); color: var(--sheet); font-family: var(--mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.035em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.button:hover, button.primary:hover { background: transparent; color: var(--graphite); }
.button.secondary { background: transparent; color: var(--graphite); }
.button.secondary:hover { background: var(--graphite); color: var(--sheet); }

.section-head { display: grid; grid-template-columns: 10rem 1fr; gap: 1.5rem; align-items: end; margin: 0 0 1.2rem; border-bottom: 1px solid var(--graphite); padding-bottom: 0.8rem; }
.section-head .kicker { margin: 0; }
.section-head h2 { margin: 0; }
.layouts, .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.layouts { margin: 0 0 3rem; }
.card { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: 1.15rem 1.15rem 0; overflow: hidden; border: 1px solid var(--graphite); border-radius: 1px; background: var(--sheet); color: inherit; text-decoration: none; box-shadow: 4px 4px 0 var(--wash); }
.card::before { content: ""; position: absolute; top: -1px; right: 18px; width: 1px; height: 13px; background: var(--graphite); }
.card:hover { background: #fff; color: inherit; box-shadow: 7px 7px 0 var(--line); transform: translate(-2px, -2px); }
.card > span { color: var(--graphite-soft); font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.card > strong { display: block; margin: 0.45rem 0; color: var(--graphite); font-family: var(--sans); font-size: 1.16rem; line-height: 1.25; }
.card > p { flex: 1; margin: 0 0 1rem; color: var(--muted); font-size: 0.93rem; }
.card > small { display: flex; justify-content: space-between; gap: 0.7rem; margin: 0 -1.15rem; padding: 0.45rem 0.65rem; border-top: 1px solid var(--graphite); background: var(--plaster); font-family: var(--mono); font-size: 0.59rem; letter-spacing: 0.035em; text-transform: uppercase; }
.card > small b { font-weight: 600; }
.card > small time { border-left: 1px solid var(--line-dark); padding-left: 0.65rem; white-space: nowrap; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 3.5rem; border: 1px solid var(--graphite); background: var(--sheet); }
.principles div { padding: 1.1rem 1.2rem; border-right: 1px solid var(--graphite); }
.principles div:last-child { border-right: 0; }
.principles strong { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; }
.principles p { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.92rem; }
.directory { margin-bottom: 4rem; }
.dir-row { display: grid; grid-template-columns: 10rem 1fr; gap: 1.5rem; padding: 1.2rem 0; border-top: 1px solid var(--line-dark); }
.dir-topic { margin: 0.2rem 0 0; font-family: var(--mono); font-size: 0.67rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.dir-row ul { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.dir-row a { display: block; color: inherit; text-decoration: none; }
.dir-row a strong { display: block; color: var(--graphite); font-size: 1.16rem; line-height: 1.3; }
.dir-row a span { color: var(--muted); font-size: 0.94rem; }
.dir-row a:hover strong { text-decoration: underline; text-underline-offset: 0.2em; }
.growing { border-top: 1px solid var(--line-dark); padding-top: 1rem; color: var(--muted); }

.page-disclosure { margin: 1.2rem 0 0; }
.article { margin: 2rem 0 4rem; padding: clamp(1.2rem, 4vw, 3.5rem); border: 1px solid var(--graphite); border-radius: 1px; background: var(--sheet); box-shadow: 8px 8px 0 var(--wash); }
.article > h1 { max-width: 19ch; font-size: clamp(2.5rem, 5vw, 4.8rem); }
.prose, .article-hero, .diagram, .infographic { max-width: 48rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.75rem; }
.prose h3 { margin-top: 1.5rem; font-size: 1.25rem; }
.prose li { margin: 0.3rem 0; }
.prose table { width: 100%; margin: 1rem 0; border-collapse: collapse; font-size: 0.94rem; }
.prose th, .prose td { padding: 0.55rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--graphite); font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; }
.hub-art { margin: 1.5rem 0 2rem; }
.alphabet { display: flex; flex-wrap: wrap; gap: 0; margin: 1.25rem 0; border: 1px solid var(--line-dark); width: fit-content; }
.alphabet a { min-width: 2rem; padding: 0.25rem; border-right: 1px solid var(--line); text-align: center; text-decoration: none; }
.alphabet a:last-child { border-right: 0; }
.glossary h2, #planner { scroll-margin-top: 1rem; }
.meta { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; }
blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--graphite); color: var(--muted); }
code { padding: 0.05rem 0.3rem; background: var(--wash); border-radius: 0; font-family: var(--mono); }
.embed-code { max-width: 100%; margin: 0.8rem 0 1.5rem; padding: 1rem; overflow-x: auto; overflow-wrap: anywhere; border: 1px solid var(--line-dark); border-radius: 0; background: var(--wash); font-size: 0.82rem; line-height: 1.45; white-space: pre-wrap; }
.embed-code code { padding: 0; background: transparent; }

.disclosure, .note, .stop { margin: 1.2rem 0; padding: 0.85rem 1rem; border: 1px solid var(--line-dark); border-left: 5px solid var(--graphite); border-radius: 0; background: var(--wash); font-size: 0.94rem; }
.stop { border-left-color: var(--safety); background: var(--safety-bg); }
.stop h2, .stop h3 { color: var(--safety); }
.product { margin: 1rem 0; padding: 0.5rem 1.1rem; border: 1px solid var(--line-dark); border-radius: 0; background: #fff; }
.product p:first-child strong { color: var(--graphite); font-size: 1.1rem; }
.untested { color: var(--muted); font-size: 0.92rem; font-style: italic; }
.related { margin-top: 2.5rem; padding-top: 1rem; border-top: 2px solid var(--graphite); }

.form, .check-tool, .planner { display: grid; gap: 0.8rem; margin: 1.2rem 0; padding: 1.2rem; border: 1px solid var(--graphite); border-radius: 0; background: var(--wash); }
.check-tool fieldset { margin: 0; padding: 0; border: 0; }
.check-tool legend { margin-bottom: 0.3rem; font-weight: 600; }
.check-tool output, .planner-out { display: block; margin-top: 1rem; padding: 0.8rem 1rem; border: 1px solid var(--line-dark); border-left: 4px solid var(--graphite); border-radius: 0; background: var(--sheet); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
label { display: flex; flex-direction: column; gap: 0.25rem; font-family: var(--mono); font-size: 0.78rem; font-weight: 600; }
label.check, label.radio { flex-direction: row; align-items: center; gap: 0.5rem; font-family: var(--sans); font-size: 0.95rem; font-weight: 400; }
input, textarea, select, .planner select { min-height: 44px; padding: 0.55rem 0.65rem; border: 1px solid var(--line-dark); border-radius: 0; background: #fff; color: inherit; font: inherit; }
input[type="checkbox"], input[type="radio"] { width: 1.1rem; height: 1.1rem; min-height: auto; }
textarea { min-height: 150px; }
.planner fieldset { margin: 0 0 1rem; padding: 0.9rem 1rem; border: 1px solid var(--line-dark); border-radius: 0; background: var(--sheet); }
.planner legend { padding: 0 0.35rem; font-family: var(--mono); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; }
.planner-out .ok { color: #24563b; font-weight: 700; }
.planner-out .warn { color: var(--safety); font-weight: 700; }
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
.dataset td, .dataset th { font-size: 0.85rem; }

.site-footer { display: grid; grid-template-columns: 1.35fr 1fr 0.75fr; gap: 0; width: 100%; max-width: none; padding: 0 calc((100% - min(1180px, calc(100% - 2.5rem))) / 2); border-top: 2px solid var(--graphite); background: var(--graphite); color: #d9d2c8; font-size: 0.9rem; }
.site-footer > div { padding: 2rem clamp(1rem, 3vw, 2.2rem); border-right: 1px solid #5b5751; }
.site-footer > div:last-child { border-right: 0; }
.site-footer a { display: block; margin: 0.25rem 0; color: var(--sheet); }
.site-footer strong { color: var(--sheet); font-size: 1.1rem; }
.site-footer .mark { width: 58px; color: var(--sheet); }
.foot-brand { display: flex; gap: 0.8rem; align-items: flex-start; }
.foot-brand p { margin: 0.3rem 0; }
.foot-head { margin: 0 0 0.5rem; color: var(--sheet); font-family: var(--mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.banner { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: 9rem 1fr auto; align-items: center; gap: 1rem; padding: 0.75rem max(1rem, calc((100% - 1180px) / 2)); border-top: 1px solid var(--sheet); background: var(--graphite); color: var(--sheet); }
.banner::before { content: "LOCAL SETTING / 01"; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em; }
.banner p { margin: 0; font-size: 0.9rem; }
.banner p strong { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; }
.banner a { color: var(--sheet); }
.banner .actions { margin: 0; }
.banner button.choice { min-width: 7rem; border-color: var(--sheet); background: transparent; color: var(--sheet); }
.banner button.choice:hover { background: var(--sheet); color: var(--graphite); }
.banner[hidden], [hidden] { display: none !important; }

@media (max-width: 960px) {
  .site-header { align-items: flex-start; flex-direction: column; padding: 1rem 0; }
  .site-header nav { width: 100%; }
  .site-header nav a { flex: 1; justify-content: center; }
  .hero { grid-template-columns: 1fr; }
  .hero::before { inset: 45% 0 1rem 8%; }
  .hero-img { max-width: 700px; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .site-header, main { width: min(100% - 1.5rem, 1180px); }
  .brand { gap: 0.55rem; }
  .mark { width: 56px; }
  .wordmark { min-width: 0; padding-left: 0.6rem; }
  .wordmark b { font-size: 1.05rem; }
  .wordmark small { font-size: 0.55rem; }
  .site-header nav a { min-width: 33%; border-bottom: 1px solid var(--line); }
  .hero { padding: 3rem 0; }
  h1 { font-size: clamp(2.55rem, 13vw, 4.2rem); }
  .section-head, .dir-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .layouts, .cards, .principles, .site-footer, .grid { grid-template-columns: 1fr; }
  .principles div { border-right: 0; border-bottom: 1px solid var(--graphite); }
  .principles div:last-child { border-bottom: 0; }
  .site-footer { padding: 0; }
  .site-footer > div { border-right: 0; border-bottom: 1px solid #5b5751; }
  .banner { grid-template-columns: 1fr; }
  .banner::before { display: none; }
  .banner .actions { justify-content: stretch; }
  .banner button.choice { flex: 1; }
}

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