/*
Theme Name: The Patent Illustrator
Theme URI: https://thepatentillustrator.com/
Author: The Patent Illustrator
Description: One-page theme for The Patent Illustrator — patent drawing services, pricing, standards and a quote form that emails requests. Business details are editable under Appearance › Customize › Business details.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: patent-illustrator
*/

/* Layout: a drafting sheet — vellum ground, white "sheets" for the drawings, graphite ink, Patent Red for numerals and calls to action. */
:root {
  --paper: #F6F4EF;
  --sheet: #FFFFFF;
  --tint: #ECE8DF;
  --ink: #1E2329;
  --ink-2: #4F5A64;
  --line: #D9D3C7;
  --red: #B42318;
  --red-hover: #931B12;
  --on-red: #FFFFFF;
  --blue: #1D4E89;
  --foot-bg: #1E2329;
  --foot-fg: #F6F4EF;
  --foot-2: #B9C0C8;
  --foot-red: #F0645A;
  --foot-line: #343A42;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15181C; --sheet: #1E2329; --tint: #23282E; --ink: #EDEAE3; --ink-2: #A9B1BA; --line: #343A42;
    --red: #F0645A; --red-hover: #F58A82; --on-red: #15181C; --blue: #8DB4E8;
    --foot-bg: #0F1114; --foot-fg: #EDEAE3; --foot-2: #A9B1BA; --foot-red: #F0645A; --foot-line: #2A2F36;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #15181C; --sheet: #1E2329; --tint: #23282E; --ink: #EDEAE3; --ink-2: #A9B1BA; --line: #343A42;
  --red: #F0645A; --red-hover: #F58A82; --on-red: #15181C; --blue: #8DB4E8;
  --foot-bg: #0F1114; --foot-fg: #EDEAE3; --foot-2: #A9B1BA; --foot-red: #F0645A; --foot-line: #2A2F36;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px;
}
h1, h2, h3 { font-family: var(--display); font-stretch: 82%; font-weight: 800; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.45rem; font-stretch: 88%; font-weight: 700; line-height: 1.15; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(64px, 9vw, 112px); }
.band + .band { border-top: 1px solid var(--line); }
.label { font-family: var(--mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 60ch; }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }

/* Ruler rule — the brand's measurement scale used as a divider */
.ruler { height: 14px; width: 100%; color: var(--ink);
  background:
    linear-gradient(currentColor, currentColor) bottom / 100% 1.5px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1.5px, transparent 1.5px 50px) bottom left / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 10px) bottom left / 100% 5px no-repeat;
  opacity: 0.55; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  font-family: var(--mono); font-weight: 600; font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  border-radius: 4px; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-red { background: var(--red); color: var(--on-red); }
.btn-red:hover { background: var(--red-hover); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: block; line-height: 0; margin-right: auto; }
.brand svg { height: 48px; width: auto; }
.lg-ink { fill: var(--ink); }
.lg-red { fill: var(--red); }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a { font-family: var(--mono); font-size: 0.84rem; font-weight: 500; letter-spacing: 0.06em; color: var(--ink); text-decoration: none; padding-block: 8px; }
.site-nav a:hover { color: var(--red); }
@media (max-width: 860px) { .site-nav { display: none; } .brand svg { height: 40px; } .site-head .btn { min-height: 42px; padding: 0 14px; font-size: 0.78rem; } }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { font-size: clamp(2.9rem, 7.4vw, 5.6rem); line-height: 0.94; margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lede { margin-top: 22px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; border-top: 1.5px solid var(--ink); }
.facts div { padding: 14px 14px 0 0; display: grid; gap: 2px; }
.facts div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.facts b { font-family: var(--display); font-stretch: 82%; font-size: 1.9rem; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.facts span { font-size: 0.86rem; color: var(--ink-2); line-height: 1.35; }
@media (max-width: 560px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts div:nth-child(3) { border-left: 0; padding-left: 0; } .facts div:nth-child(n+3) { margin-top: 12px; } }

/* Patent sheet */
.sheet { background: var(--sheet); border: 1px solid var(--line); border-radius: 3px; padding: 18px 20px 14px; box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgba(30, 35, 41, 0.35); }
.sheet-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--ink-2); text-transform: uppercase; }
.sheet svg { display: block; width: 100%; height: auto; }
.dw { fill: var(--sheet); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.dw-thin { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.dw-axis { fill: none; stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 12 4 2 4; }
.dw-lead { fill: none; stroke: var(--red); stroke-width: 1.4; }
.dw-num { fill: var(--red); font-family: var(--mono); font-weight: 600; font-size: 15px; }
.dw-fig { fill: var(--ink); font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: 0.14em; }
.dw-dim { fill: var(--ink-2); font-family: var(--mono); font-size: 10px; }
.dw-dimline { fill: none; stroke: var(--ink-2); stroke-width: 0.9; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } }
.svc { background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; padding: 28px; display: grid; gap: 14px; align-content: start; }
.svc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.svc .ref { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; color: var(--red); letter-spacing: 0.1em; }
.svc p { color: var(--ink-2); }
.svc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.svc li { padding-left: 20px; position: relative; font-size: 0.96rem; }
.svc li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 10px; height: 1.5px; background: var(--red); }
.svc-meta { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 14px; border-top: 1px dashed var(--line); font-family: var(--mono); font-size: 0.82rem; color: var(--ink-2); }
.svc-meta b { color: var(--ink); font-weight: 600; }

/* Standards */
.std { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .std { grid-template-columns: minmax(0, 1fr); } }
.spec-scroll { overflow-x: auto; }
table.spec { width: 100%; border-collapse: collapse; min-width: 520px; }
.spec caption { text-align: left; padding-bottom: 12px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line); }
.spec thead th { font-family: var(--mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1.5px solid var(--ink); }
.spec tbody th { font-weight: 600; width: 26%; }
.spec td { font-family: var(--mono); font-size: 0.88rem; }
.spec td small { display: block; font-family: var(--body); font-size: 0.84rem; color: var(--ink-2); margin-top: 2px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1.5px solid var(--ink); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { padding: 22px 22px 8px 0; display: grid; gap: 10px; align-content: start; position: relative; }
.step + .step { padding-left: 22px; border-left: 1px solid var(--line); }
@media (max-width: 900px) { .step:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
.step-n { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; color: var(--red); letter-spacing: 0.12em; }
.step p { color: var(--ink-2); font-size: 0.97rem; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: minmax(0, 1fr); } }
.price { border: 1px solid var(--line); background: var(--sheet); border-radius: 4px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.price.rush { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.price.rush .price-note, .price.rush .label { color: color-mix(in srgb, var(--paper) 75%, var(--ink)); }
.amount { font-family: var(--display); font-stretch: 82%; font-weight: 800; font-size: 3.6rem; line-height: 0.9; font-variant-numeric: tabular-nums; }
.amount small { font-family: var(--mono); font-size: 0.86rem; font-weight: 500; letter-spacing: 0.04em; margin-left: 6px; }
.price-note { color: var(--ink-2); font-size: 0.95rem; }
.price ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 0.95rem; flex-grow: 1; }
.price li { display: flex; gap: 10px; }
.price li::before { content: "+"; font-family: var(--mono); font-weight: 600; color: var(--red); }
.price .btn { align-self: flex-start; }
.price.rush .btn-line { border-color: var(--paper); color: var(--paper); }
.price.rush .btn-line:hover { background: var(--paper); color: var(--ink); }

/* Formats + why */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); }
@media (max-width: 760px) { .two { grid-template-columns: minmax(0, 1fr); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-family: var(--mono); font-size: 0.84rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--sheet); }
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
@media (max-width: 900px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why { grid-template-columns: minmax(0, 1fr); } }
.why div { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 1px solid var(--line); }
.why h3 { font-size: 1.2rem; }
.why p { color: var(--ink-2); font-size: 0.96rem; }
.industries { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 40px; padding: 20px 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); align-items: baseline; }
.industries span { font-family: var(--display); font-stretch: 88%; font-weight: 700; font-size: 1.25rem; }
.industries .label { font-family: var(--mono); font-weight: 500; font-size: 0.78rem; margin-right: 8px; }

/* FAQ */
.faq { display: grid; max-width: 860px; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-weight: 600; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.3rem; line-height: 1; color: var(--red); flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-2); max-width: 68ch; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }
form.quote { background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { form.quote { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 11px 12px; min-height: 46px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 25%, transparent); }
.form-foot { grid-column: 1 / -1; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.form-foot small { color: var(--ink-2); font-size: 0.86rem; }
.err { color: var(--red); font-size: 0.86rem; }
.ready { grid-column: 1 / -1; border: 1.5px solid var(--ink); border-radius: 4px; padding: 18px; display: grid; gap: 12px; background: var(--tint); }
.ready pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: 0.84rem; max-height: 220px; overflow: auto; }
.ready-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.info { display: grid; gap: 26px; }
.info dl { margin: 0; display: grid; gap: 18px; }
.info dt { font-family: var(--mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.info dd { margin: 4px 0 0; font-size: 1.06rem; }
.copy-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.copy-btn { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 3px; padding: 6px 10px; cursor: pointer; min-height: 32px; }
.copy-btn:hover { border-color: var(--ink); }
.promises { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.promises li { display: flex; gap: 10px; }
.promises li::before { content: "✓"; color: var(--red); font-weight: 700; }

/* Footer */
.site-foot { background: var(--foot-bg); color: var(--foot-fg); padding-block: 56px 32px; }
.site-foot .lg-ink { fill: var(--foot-fg); }
.site-foot .lg-red { fill: var(--foot-red); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.foot-grid svg { height: 52px; width: auto; }
.foot-grid p { color: var(--foot-2); font-size: 0.94rem; margin-top: 14px; max-width: 42ch; }
.foot-grid h4 { margin: 0 0 12px; font-family: var(--mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--foot-2); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.95rem; }
.foot-grid a { color: var(--foot-fg); text-decoration: none; }
.foot-grid a:hover { color: var(--foot-red); }
.foot-base { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--foot-line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.84rem; color: var(--foot-2); }

/* ---------- WordPress additions ---------- */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; z-index: 100; top: 8px; left: 8px; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 3px; }
.admin-bar .site-head { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { .admin-bar .site-head { top: calc(46px + env(safe-area-inset-top, 0px)); } }
@media (max-width: 600px) { .admin-bar .site-head { top: env(safe-area-inset-top, 0px); } }
.site-nav ul { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-nav .current-menu-item > a { color: var(--red); }
.foot-brand { display: inline-block; line-height: 0; }
.info dd a { color: var(--ink); }
form.quote { position: relative; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { grid-column: 1 / -1; padding: 14px 16px; border-radius: 3px; border: 1.5px solid var(--ink); background: var(--tint); font-weight: 500; }
.notice-bad { border-color: var(--red); }

/* Pages and posts */
.prose-wrap { max-width: 820px; }
.prose-wrap h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); }
.prose { font-size: 1.06rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 2rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose a { color: var(--blue); text-underline-offset: 3px; }
.prose img { height: auto; border-radius: 3px; }
.prose blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 2px solid var(--red); color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; text-align: left; }
.entry-thumb { margin: 0 0 32px; }
.entry-thumb img { width: 100%; height: auto; border-radius: 4px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: 100%; }
.wp-block-image img { height: auto; }
.post-list { display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.post-card { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.post-card h2 { font-size: 1.7rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--red); }
.post-card p { color: var(--ink-2); }
.nav-links { display: flex; gap: 14px; margin-top: 28px; font-family: var(--mono); }
.nav-links a, .nav-links span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; color: var(--ink); }
.nav-links .current { border-color: var(--ink); }

/* ---------- Multi-page additions ---------- */
figure.sheet { margin: 0; }
.band-tint { background: var(--tint); }
.steps { list-style: none; margin: 0; padding: 0; }
.mt-s { margin-top: 10px; }
.more { margin-top: 28px; font-family: var(--mono); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em; }
.more a { color: var(--red); text-decoration: none; }
.more a:hover { text-decoration: underline; text-underline-offset: 4px; }
.svc-meta { align-items: baseline; }
.svc-link { margin-left: auto; color: var(--red); font-weight: 600; text-decoration: none; }
.svc-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.page-hero { padding-block: clamp(40px, 6vw, 76px); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.page-hero .wrap.has-fig { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
@media (max-width: 900px) { .page-hero .wrap.has-fig { grid-template-columns: minmax(0, 1fr); } }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); line-height: 0.98; margin-top: 14px; max-width: 20ch; }
.page-hero .lede { margin-top: 18px; }
.page-hero .facts { margin-top: 32px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.facts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; }
@media (max-width: 560px) {
  .facts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts-3 div:nth-child(3) { border-left: 1px solid var(--line); padding-left: 14px; margin-top: 0; }
  .facts b { font-size: 1.5rem; }
}
.band-editor { border-bottom: 1px solid var(--line); }

.defects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
@media (max-width: 900px) { .defects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .defects { grid-template-columns: minmax(0, 1fr); } }
.defects > div { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 1.5px solid var(--ink); }
.defects .ref { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; color: var(--red); }
.defects h3 { font-size: 1.2rem; }
.defects p { color: var(--ink-2); font-size: 0.96rem; }
.two .prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 10px; }
.two .prose p { color: var(--ink-2); }
.faq-group { font-size: 1.35rem; margin: 44px 0 14px; }
.faq-group:first-of-type { margin-top: 0; }

.cta-band { background: var(--foot-bg); color: var(--foot-fg); padding-block: 56px; }
.ruler-light { color: var(--foot-fg); opacity: 0.4; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.cta-inner > div { min-width: 0; max-width: 680px; }
.cta-inner h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta-inner p { color: var(--foot-2); margin-top: 10px; }
.cta-band + .site-foot { border-top: 1px solid var(--foot-line); }

.dw-sight { fill: none; stroke: var(--red); stroke-width: 1.2; stroke-dasharray: 6 4; }
.dw-red { fill: var(--red); }
.dw-view { fill: var(--ink-2); font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.06em; }
.dw-broken { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 5 4; }

/* Header: menu toggle on smaller screens */
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; font-family: var(--mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 4px; cursor: pointer; }
.nav-toggle-bars { width: 16px; height: 11px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; position: relative; }
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3.25px; border-top: 1.5px solid currentColor; }
.site-nav a[aria-current="page"] { color: var(--red); }
@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; order: 10; flex-basis: 100%; padding-bottom: 10px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 13px 0; border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .site-head .wrap { gap: 10px; }
  .brand svg { height: 34px; }
  .nav-toggle { padding: 0 10px; }
  .site-head .head-cta { padding: 0 12px; }
}
