/* Divinsky Computer Consulting — site stylesheet
   One file, no framework. Tokens first, then layout, then components. */

:root {
  --ink: #070d10;          /* page background */
  --ink-2: #0a1317;        /* alternate section background */
  --panel: #0e191d;        /* raised surfaces */
  --panel-2: #122126;
  --rule: #1d3129;         /* hairlines */
  --rule-2: #2a4a3b;       /* stronger borders */
  --signal: #39ff8b;       /* brand green: actions, focus, key accents */
  --signal-hi: #8dffc0;
  --signal-ink: #03140a;   /* text on green */
  --steel: #c5d0d6;        /* silver face of the monogram */
  --text: #eef4f1;
  --muted: #a6b8b3;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 12px;
  --radius-s: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 76px;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--signal); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--signal); color: var(--signal-ink); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; font-weight: 800; letter-spacing: -.028em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.18rem; letter-spacing: -.015em; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.nw { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--signal); color: var(--signal-ink); padding: 10px 16px; border-radius: var(--radius-s); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.accent { color: var(--signal); }
.lede { font-size: clamp(1.05rem, 1.3vw, 1.18rem); color: #d3dfdb; max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius-s);
  font: 750 1rem/1.2 var(--font); letter-spacing: -.005em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--signal); color: var(--signal-ink); }
.btn-primary:hover { background: var(--signal-hi); color: var(--signal-ink); }
.btn-ghost { border-color: var(--rule-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 13, 16, .92);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-bar { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: block; flex: none; line-height: 0; }
.brand img { width: clamp(200px, 19vw, 248px); height: auto; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 26px); list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 650; font-size: .95rem; white-space: nowrap; color: #e2ebe7; }
.nav ul a { position: relative; padding: 8px 0; }
.nav ul a[aria-current] { color: var(--signal); }
.nav ul a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--signal); }
.nav .btn { min-height: 42px; padding: 9px 18px; font-size: .95rem; }
.nav .btn-primary, .nav .btn-primary:hover { color: var(--signal-ink); }
.header-call { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap; color: var(--text); }
.header-call svg { width: 18px; height: 18px; color: var(--signal); }
.menu-toggle { display: none; }

@media (max-width: 1180px) {
  .header-call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .header-call { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--rule-2); border-radius: var(--radius-s); }
}
@media (max-width: 1000px) {
  :root { --header-h: 66px; }
  .header-bar { gap: 10px; }
  .header-call { margin-left: auto; }
  .menu-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
    background: var(--panel); border: 1px solid var(--rule-2); border-radius: var(--radius-s); color: var(--signal); cursor: pointer;
  }
  .menu-toggle svg { width: 22px; height: 22px; }
  .menu-toggle .icon-close { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-close { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: #0a1418; border-bottom: 1px solid var(--rule-2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav[data-open="true"] { display: flex; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav ul a { display: block; padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--rule); }
  .nav ul a[aria-current]::after { display: none; }
  .nav .btn { margin-top: 16px; min-height: 48px; }
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-alt { background: var(--ink-2); border-block: 1px solid var(--rule); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.kicker { display: inline-flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; color: var(--steel); font-size: .95rem; font-weight: 600; }
.led { margin-top: .45em; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(57, 255, 139, .14), 0 0 14px rgba(57, 255, 139, .7); flex: none; }

/* ---------- home hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); min-height: min(600px, 78vh); border-bottom: 1px solid var(--rule); position: relative; isolation: isolate; }
.hero-media { position: relative; overflow: hidden; background: #0b161b; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 49% 58%; filter: brightness(.82) contrast(1.06); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 70%, rgba(7, 13, 16, .55)); }
.hero-panel {
  display: flex; align-items: center; padding: clamp(48px, 6vw, 96px) clamp(24px, 5.5vw, 96px);
  background:
    radial-gradient(ellipse 70% 60% at 85% 20%, rgba(57, 255, 139, .07), transparent 70%),
    linear-gradient(rgba(57, 255, 139, .035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(57, 255, 139, .035) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--ink);
}
.hero-copy { max-width: 700px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lede { margin-bottom: 0; }

@media (max-width: 800px) {
  .hero { display: block; min-height: 0; }
  .hero-media { position: absolute; inset: 0; z-index: -1; }
  .hero-media img { object-position: 51% 30%; filter: brightness(.5); }
  .hero-media::after { background: linear-gradient(180deg, rgba(7, 13, 16, .55), rgba(7, 13, 16, .92) 70%); }
  .hero-panel { background: none; padding: 56px var(--gutter) 60px; }
}

/* ---------- service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc-card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--rule-2); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.svc-card:hover, .svc-card:focus-within { border-color: var(--signal); }
.svc-card figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #132227; }
.svc-card figure img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.svc-body h3 { font-size: 1.4rem; margin-bottom: 10px; }
.svc-body p { color: #c3d1cd; font-size: 1rem; }
.svc-link { margin-top: auto; padding-top: 8px; font-weight: 750; color: var(--signal); text-decoration: none; }
.svc-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.svc-link:hover { text-decoration: underline; color: var(--signal); }
@media (max-width: 960px) { .card-grid { grid-template-columns: 1fr; max-width: 720px; } }
@media (min-width: 600px) and (max-width: 960px) {
  .svc-card { display: grid; grid-template-columns: 38% 1fr; }
  .svc-card figure { aspect-ratio: auto; height: 100%; }
}

/* ---------- ticks (bullet lists) ---------- */
.ticks { list-style: none; padding: 0; margin: 4px 0 18px; }
.ticks li { position: relative; padding-left: 22px; margin-bottom: 8px; color: #d4dfdb; font-size: .98rem; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px; border-radius: 2px; background: var(--signal); box-shadow: 0 0 8px rgba(57, 255, 139, .45); }

/* ---------- process (a real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step); position: relative; z-index: 1; display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 18px; border-radius: 10px;
  background: var(--ink); border: 2px solid var(--signal); color: var(--signal); font-weight: 800; font-size: 1.05rem;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 54px; right: -18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--signal), var(--rule-2)); opacity: .75; }
.section-alt .steps li::before { background: var(--ink-2); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding-bottom: 30px; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li:not(:last-child)::after { top: 54px; bottom: 10px; left: 21px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--signal), var(--rule-2)); }
}

/* ---------- local banner ---------- */
.local { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(340px, 30vw, 440px); border-block: 1px solid var(--rule-2); background: #10202a; }
.local picture, .local picture img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; object-fit: cover; object-position: center 55%; }
.local::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 13, 16, .95) 0%, rgba(7, 13, 16, .9) 40%, rgba(7, 13, 16, .5) 64%, rgba(7, 13, 16, .08) 100%); }
.local-copy { padding: 56px 0; max-width: 620px; }
.local-copy h2 { margin-bottom: 14px; }
.local-copy p { color: #dce6e2; }
.local-copy .towns { color: var(--steel); font-size: .98rem; }
@media (max-width: 800px) {
  .local::after { background: linear-gradient(180deg, rgba(7, 13, 16, .5), rgba(7, 13, 16, .9) 60%); }
  .local picture img { object-position: 60% 50%; }
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.about-copy p { color: #ccd9d5; font-size: 1.08rem; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.values li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--rule); }
.values li:last-child { border-bottom: 1px solid var(--rule); }
.values .ring { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--signal); display: grid; place-items: center; color: var(--signal); }
.values svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.values h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.values p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; border-top: 1px solid var(--rule-2); }
.faq details { border-bottom: 1px solid var(--rule-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 20px 2px; font-weight: 700; font-size: 1.1rem; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--signal), var(--signal)) center / 14px 2px no-repeat, linear-gradient(var(--signal), var(--signal)) center / 2px 14px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--signal); }
.faq .answer { padding: 0 2px 22px; color: #c9d6d2; max-width: 72ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(28px, 4vw, 44px); border: 1px solid var(--rule-2); border-radius: var(--radius); background: linear-gradient(115deg, #15291f, #0e1a1f 70%); }
.cta-band h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); margin-bottom: 8px; }
.cta-band p { color: #c9d9d2; margin: 0; max-width: 56ch; }
.cta-band .actions { margin-top: 0; flex: none; }
@media (max-width: 860px) { .cta-band { flex-direction: column; align-items: flex-start; } }

/* ---------- inner pages ---------- */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule-2); }
.crumbs a { text-decoration: none; color: var(--steel); }
.crumbs a:hover { color: var(--signal); }
.crumbs [aria-current] { color: var(--muted); }

.page-hero { padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--rule); background: radial-gradient(ellipse 60% 70% at 100% 0%, rgba(57, 255, 139, .06), transparent 70%), var(--ink); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); margin-bottom: 20px; }
.page-hero figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule-2); aspect-ratio: 4 / 3; background: var(--panel); }
.page-hero figure img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-simple h1 { max-width: 18ch; }
.page-hero-simple + .section { padding-top: clamp(40px, 5vw, 64px); }
.page-hero-simple .lede { margin-bottom: 0; }
@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero figure { aspect-ratio: 16 / 9; }
}

.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; }
.cap { border-top: 2px solid var(--rule-2); padding-top: 22px; }
.cap h3 { font-size: 1.22rem; margin-bottom: 8px; }
.cap > p { color: var(--muted); font-size: 1rem; }
.cap .ticks { margin-bottom: 0; }
@media (max-width: 960px) { .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cap-grid { grid-template-columns: 1fr; gap: 32px; } }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split .ticks li { font-size: 1.04rem; margin-bottom: 14px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.callout { border: 1px solid var(--rule-2); border-left: 4px solid var(--signal); border-radius: var(--radius-s); background: var(--panel); padding: clamp(24px, 3.5vw, 36px); }
.callout h2 { font-size: clamp(1.4rem, 2.3vw, 1.85rem); }
.callout p { color: #cfdcd8; max-width: 68ch; }
.callout a { color: var(--signal); font-weight: 700; }

.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.related-grid .svc-card { display: grid; grid-template-columns: 40% 1fr; }
.related-grid .svc-card figure { aspect-ratio: auto; height: 100%; min-height: 180px; }
.related-grid .svc-body h3 { font-size: 1.2rem; }
@media (max-width: 860px) { .related-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .related-grid .svc-card { grid-template-columns: 1fr; } .related-grid .svc-card figure { aspect-ratio: 16 / 9; min-height: 0; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.form-panel { background: var(--panel); border: 1px solid var(--rule-2); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 36px); }
.form-panel h2 { font-size: 1.6rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin: 0 0 18px; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 7px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; border-radius: var(--radius-s);
  background: #081115; color: var(--text); border: 1px solid #45595a; font: inherit; line-height: 1.5;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(57, 255, 139, .35); outline-offset: 1px; border-color: var(--signal); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.side-panel h2 { font-size: 1.35rem; margin-bottom: 8px; }
.side-panel .block { padding: 22px 0; border-top: 1px solid var(--rule); }
.side-panel .block:first-child { padding-top: 0; border-top: 0; }
.side-panel p { color: var(--muted); }
.phone-big { display: inline-block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--signal); text-decoration: none; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- prose (legal, blog posts) ---------- */
.prose { font-size: 1.1rem; line-height: 1.75; color: #d6e1dd; }
.prose > * { max-width: 70ch; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin: 1.8em 0 .55em; color: var(--text); }
.prose h3 { font-size: 1.25rem; margin: 1.6em 0 .5em; color: var(--text); }
.prose a { color: var(--signal); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--signal); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--signal); color: var(--text); font-size: 1.15rem; }
.prose hr { border: 0; border-top: 1px solid var(--rule-2); margin: 2.2em 0; }
.prose figure { margin: 2em 0; max-width: none; }
.prose figure img { border-radius: var(--radius-s); border: 1px solid var(--rule-2); }
.prose figcaption { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.prose code { font-size: .92em; background: var(--panel-2); padding: 2px 6px; border-radius: 5px; }
.prose strong { color: var(--text); }

/* ---------- blog ---------- */
.post-list { list-style: none; margin: 0; padding: 0; max-width: 860px; }
.post-list li { padding: 30px 0; border-top: 1px solid var(--rule-2); }
.post-list li:last-child { border-bottom: 1px solid var(--rule-2); }
.post-list h2, .post-list h3 { font-size: clamp(1.35rem, 2.3vw, 1.75rem); margin: 6px 0 10px; }
.post-list h2 a, .post-list h3 a { text-decoration: none; }
.post-list h2 a:hover, .post-list h3 a:hover { color: var(--signal); text-decoration: underline; }
.post-list p { color: #c3d1cd; margin-bottom: 12px; }
.post-list .read { font-weight: 700; color: var(--signal); text-decoration: none; }
.post-list .read:hover { text-decoration: underline; }
.post-date { font-size: .92rem; color: var(--steel); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--steel); font-size: .95rem; margin: 0; }
.post-head { padding: clamp(40px, 5vw, 64px) 0 clamp(28px, 4vw, 40px); }
.post-head h1 { font-size: clamp(2rem, 4vw, 3.1rem); max-width: 22ch; }
.post-hero-img { margin: 0 auto 40px; }
.post-hero-img img { border-radius: var(--radius); border: 1px solid var(--rule-2); width: 100%; }
.post-body { padding-bottom: 56px; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; max-width: 860px; }
.empty-note { color: var(--muted); max-width: 60ch; }

/* ---------- legal + utility pages ---------- */
.legal { padding-bottom: clamp(56px, 8vw, 96px); }
.centered { text-align: center; max-width: 640px; margin-inline: auto; }
.centered .actions { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { margin-top: 0; padding: 56px 0 28px; background: #050a0d; border-top: 1px solid var(--rule); color: var(--muted); font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.footer-brand img { width: 230px; margin-bottom: 18px; }
.footer-brand p { max-width: 42ch; }
.footer-phone { font-size: 1.25rem; font-weight: 800; color: var(--signal); text-decoration: none; }
.footer-h { color: var(--text); font-weight: 750; margin-bottom: 12px; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--signal); text-decoration: underline; }
.footer-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-base p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
