
:root {
  --ink: #0b0b0c;
  --paper: #f5f5f1;
  --white: #fff;
  --line: #dcdcd4;
  --muted: #5f6670;
  --accent: #f2e600;
  --accent-soft: #fbf9bf;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --max: 1280px;
  --gutter: 26px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 15.5px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #000; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .35em; }

.wrap { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.wrap--narrow { width: min(880px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #000; color: #fff; padding: 10px 14px; z-index: 200; }
:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

.mono { font-family: var(--mono); }
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--ink); }
.eyebrow b { background: var(--accent); color: #000; padding: 2px 6px; font-weight: 500; letter-spacing: .12em; }
.h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.025em; line-height: 1.05; font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.lede { font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.55; color: #3a4148; max-width: 64ch; }
.small { font-size: 13px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .85em 1.2em; border: 1px solid #000; background: #000; color: #fff; font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .02em; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.btn svg { width: 15px; height: 15px; }
.btn--ghost { background: transparent; color: #000; border-color: #b9b9b0; }
.btn--ghost:hover { background: #000; color: #fff; border-color: #000; }
.btn--sm { padding: .55em .8em; font-size: 11.5px; }
.btn--block { width: 100%; }

/* header */
.topbar { background: #000; color: #b9b9b0; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.topbar__in a:hover { color: #fff; }
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.header__in { display: flex; align-items: center; gap: 28px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark { width: 36px; height: 36px; background: #000; color: var(--accent); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: .02em; line-height: 1; }
.brand__sub { font-family: var(--mono); font-size: 8px; letter-spacing: .22em; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { font-size: 13px; color: #3a4148; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--accent); color: #000; }
.header__actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; width: 38px; height: 38px; border: 1px solid #cfcfc7; background: #fff; cursor: pointer; }
.drawer { display: none; border-top: 1px solid var(--line); background: #fff; }
.drawer[data-open="true"] { display: block; }
.drawer a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }

/* hero */
.hero { background: #000; color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; }
.hero__in { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: end; padding: 70px 0 56px; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: .97; letter-spacing: -.035em; margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: #b9b9b0; max-width: 52ch; }
.hero .eyebrow { color: #9a9a92; }
.hero .eyebrow::before { background: var(--accent); }
.search { display: flex; gap: 0; margin-top: 26px; max-width: 560px; }
.search input { flex: 1; border: 1px solid #3a3a38; background: #111; color: #fff; padding: 14px 16px; font-family: var(--mono); font-size: 13px; outline: none; }
.search input::placeholder { color: #7a7a74; }
.search input:focus { border-color: var(--accent); }
.search button { border: 1px solid var(--accent); background: var(--accent); color: #000; padding: 0 20px; font-family: var(--display); font-weight: 700; font-size: 13px; cursor: pointer; }
.hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #2a2a28; border: 1px solid #2a2a28; }
.hero__stats div { background: #0b0b0c; padding: 18px; }
.hero__stats dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #8a8a83; }
.hero__stats dd { margin: 6px 0 0; font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--accent); }

/* sections */
.section { padding: 70px 0; border-top: 1px solid var(--line); }
.section--white { background: #fff; }
.section--dark { background: #000; color: #fff; border-top: 0; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 34px; }
.section__head p { max-width: 44ch; color: var(--muted); font-size: 13.5px; margin: 0; }

/* category grid */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.cat:hover { border-color: #000; transform: translateY(-2px); }
.cat__art { background: #f6f6f3; border-bottom: 1px solid var(--line); }
.cat__art img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.cat__body { padding: 14px 16px 16px; }
.cat__body h3 { font-family: var(--display); font-size: 16px; font-weight: 600; }
.cat__body span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.cat:hover .cat__body span { color: #000; background: var(--accent); padding: 1px 4px; }

/* tables */
.tablebar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid #000; flex-wrap: wrap; }
.tablebar h2 { font-family: var(--display); font-size: 18px; font-weight: 600; }
.tablebar span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--muted); }
.tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-top: 0; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: #fafaf7; }
.tbl td { padding: 9px 14px; border-bottom: 1px solid var(--line); }
.tbl tbody tr:hover { background: var(--accent-soft); }
.tbl .pn { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.tbl .pn a:hover { border-bottom: 1px solid #000; }
.tbl tbody tr:last-child td { border-bottom: 0; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; align-items: center; }
.pagination a, .pagination span { font-family: var(--mono); font-size: 11px; padding: 7px 10px; border: 1px solid var(--line); background: #fff; }
.pagination a:hover { border-color: #000; }
.pagination span[aria-current] { background: #000; color: #fff; border-color: #000; }

/* part page */
.crumbs { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 16px 0; }
.crumbs a:hover { color: #000; border-bottom: 1px solid var(--accent); }
.crumbs span.sep { color: #b3b3aa; }
.part-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding: 10px 0 40px; }
.part-head h1 { font-family: var(--mono); font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.01em; line-height: 1.1; word-break: break-word; }
.part-head .sub { font-family: var(--display); font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 500; color: #3a4148; margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.chip { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; border: 1px solid #cfcfc7; background: #fff; padding: 5px 9px; }
.chip--accent { background: var(--accent); border-color: var(--accent); color: #000; }

.spec { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: #fff; }
.spec caption { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.spec td { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.spec td:first-child { width: 40%; color: var(--muted); }
.spec td:last-child { font-family: var(--mono); font-size: 12.5px; }
.spec tr:last-child td { border-bottom: 0; }

.side { background: #fff; border: 1px solid var(--line); }
.side__head { padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.side__body { padding: 16px; }
.side h3 { font-family: var(--display); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.side p { font-size: 13px; color: var(--muted); }
.side + .side { margin-top: 14px; }
.side ul { list-style: none; padding: 0; margin: 0; }
.side li { border-bottom: 1px solid var(--line); }
.side li:last-child { border-bottom: 0; }
.side li a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; font-family: var(--mono); font-size: 11.5px; }
.side li a span { color: var(--muted); font-size: 10px; }
.side li a:hover { color: #000; background: var(--accent-soft); }

.prose h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -.02em; margin: 34px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #3a4148; }
.prose ul { color: #3a4148; }
.prose > p, .prose > ul { max-width: 72ch; }
.note { border-left: 3px solid var(--accent); background: #fff; padding: 12px 16px; font-size: 12.5px; color: #3a4148; }

/* faq + cta */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 30px 16px 0; position: relative; font-family: var(--display); font-size: 15px; font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-family: var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 30px 16px 0; margin: 0; color: var(--muted); font-size: 13.5px; }

.cta { background: var(--accent); color: #000; padding: 46px 0; }
.cta__in { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta h2 { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -.02em; }
.cta p { margin: 6px 0 0; max-width: 52ch; font-size: 13.5px; }
.cta .btn { background: #000; color: #fff; border-color: #000; }
.cta .btn:hover { background: #fff; color: #000; }

/* search page */
.searchbox { display: flex; border: 1px solid #000; background: #fff; max-width: 720px; }
.searchbox input { flex: 1; border: 0; padding: 14px 16px; font-family: var(--mono); font-size: 14px; outline: none; }
.searchbox button { border: 0; background: #000; color: #fff; padding: 0 22px; font-family: var(--display); font-weight: 600; cursor: pointer; }
.results { list-style: none; padding: 0; margin: 20px 0 0; }
.results li { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.results li a { font-family: var(--mono); font-size: 13px; }
.results li a:hover { border-bottom: 1px solid #000; }
.results li span { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select { border: 1px solid #cfcfc7; background: #fff; padding: 10px 12px; font: 14px var(--body); color: #000; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: #000; }
.field textarea { min-height: 110px; resize: vertical; }

/* footer */
.footer { background: #000; color: #a9a9a2; padding: 48px 0 0; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
.footer h3 { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: #77776f; margin-bottom: 12px; }
.footer a { color: #c4c4bc; font-size: 13px; }
.footer a:hover { color: var(--accent); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer .brand__name { color: #fff; }
.footer .brand__mark { background: var(--accent); color: #000; }
.footer p { font-size: 13px; color: #8f8f87; max-width: 34ch; margin-top: 14px; }
.footer__bottom { border-top: 1px solid #2a2a28; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 16px 0 22px; font-family: var(--mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: #6f6f68; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 14px); background: #000; color: var(--accent); padding: 11px 16px; font-family: var(--mono); font-size: 11px; opacity: 0; pointer-events: none; transition: .2s; z-index: 120; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1080px) {
  .hero__in, .part-grid { grid-template-columns: 1fr; gap: 30px; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .cats { grid-template-columns: 1fr 1fr; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding: 48px 0; }
  .cats { grid-template-columns: 1fr 1fr; }
  .header__in { gap: 10px; min-height: 60px; }
  .header .btn { padding: .6em .7em; font-size: 11.5px; }
  .header .btn svg { display: none; }
  .hero__in { padding: 44px 0 34px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .footer__top { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.brand__name, .brand__sub { display: block; }

.part-fig { margin-top: 22px; border: 1px solid var(--line); background: #fff; max-width: 640px; }
.part-fig img { width: 100%; height: auto; display: block; }

.cat__art { overflow: hidden; background: #f2f1ed; }
