/* Presentation-only accessibility layer, loaded after the page themes. */
html { font-size: 100%; }
body { font-size: 1rem; line-height: 1.65; }
/* Keep secondary copy readable, including theme rules marked important. */
body :is(p:not(.hero-statement), a, button, label, input, textarea, select, small, legend, li, figcaption, .eyebrow, .technical-label, .component-top, .component-foot, .phase-status, .plan-caption, .room-label, .room-state, .log-status, .footer-bottom, .product-bar, .spatial-object-key) {
  font-size: 1rem !important;
  line-height: 1.65;
}
p { max-width: 70ch; }
small { display: inline-block; }
a, button, summary, input, textarea, select { min-width: 44px; min-height: 44px; }
a { display: inline-flex; align-items: center; overflow-wrap: anywhere; }
button, .btn { white-space: normal; }
summary { cursor: pointer; }
:focus-visible { outline: 3px solid #a9c5f3 !important; outline-offset: 4px; box-shadow: 0 0 0 2px #111318; }
.skip-link { position: fixed; left: 16px; top: -200px; z-index: 100; padding: 12px 20px; background: #ededee; color: #111318; }
.skip-link:focus { top: 12px; }
/* Solid surfaces keep contrast predictable beside photography. */
.hero-kicker, .hero-bottom, .hero-statement { color: #ededee; }
.hero-bottom { background: #080e13; padding: 16px; }
.hero-bottom > p { color: #c6d8e3 !important; }
.packages-contact { padding-block: 24px; }
.demo-section .demo-heading h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.demo-section :is(.verification-panel h3, .demo-log-heading h3) { font-size: 1.15rem; color: #edf5f4; }
/* Correct dark text inherited from light-theme verification error states. */
.demo-section .verification-panel:is([data-mismatch=true], [data-unconfirmed=true]) #verification-result { color: #ffe5ae; }
.demo-section .verification-actions button { background: #ededee; color: #111318; }
.demo-section .demo-controls input[type=checkbox] { width: 44px; height: 44px; min-width: 44px; border-color: #9cbbc6; }
.demo-section .demo-controls input:before { top: 12px; }
body :is(.field-error, #formErrors) { color: #ffb4ab; }
body .brand small { font-size: 1rem; letter-spacing: .02em; }
.wrap, .wrap > *, .demo-layout > *, .demo-heading > *, .contact-grid > * { min-width: 0; }
@media (max-width: 800px) {
  .site-header { position: relative; }
  body nav { gap: 12px; flex-wrap: wrap; padding-block: 12px; }
  body .nav-links { gap: 12px; flex-wrap: wrap; }
  .nav-links .btn { width: 100%; }
  body .wrap { width: calc(100% - 32px); }
  .pp-home .engineering-hero { min-height: 0; }
  .pp-home .engineering-hero > .wrap { padding-top: 24px; padding-bottom: 24px; }
  .hero-kicker { margin-bottom: 12px; }
  .hero-kicker .technical-label { margin-top: 4px; }
  .hero-bottom { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
  .hero-actions { order: -1; width: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
  .hero-actions .btn { flex: 1 1 120px; padding: 10px; }
  .hero-actions .btn:first-child { flex-basis: 100%; }
  .hero-bottom > p { margin: 0; }
  .pp-home .system-components { grid-template-columns: 1fr; }
  .pp-home .component:last-child { display: block; }
  .component-art { overflow: hidden; }
  .pp-home .footer-links { grid-template-columns: 1fr; }
  .footer-bottom, .plan-caption, .product-bar, .component-top, .closing-top { flex-wrap: wrap; }
  .pp-home .product-controls { flex-wrap: wrap; }
  .pp-home .product-controls button { flex-basis: 100%; }
  .demo-section .plan-panel { padding: 10px; }
  .demo-section .demo-room { padding: 8px; }
  .demo-section .floor-plan { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 210px 210px auto; }
  .demo-section .demo-log-heading { flex-wrap: wrap; }
  .pp-home .demo-controls label { gap: 10px; }
  .pp-interior .contact-section { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html, *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  ::view-transition-group(*) { animation: none !important; }
}
body span:not([aria-hidden]) { font-size: max(1em, 1rem) !important; }
body { overflow-wrap: anywhere; }
body .step h2 { font-family: inherit; font-size: 1.6rem; font-weight: 300; line-height: 1.3; letter-spacing: -.035em; }
body .post-card h2 { font-family: inherit; font-size: 1.85rem; line-height: 1.15; font-weight: 300; margin-block: 16px; }
.hero-atmosphere { background: #080e13eb; }
.spatial-annotations text { font-size: 18px; }
@media (max-width: 800px) {
  .pp-home .engineering-hero { margin-top: 0; padding-top: 0; }
  .pp-home .hero-kicker .eyebrow { margin-bottom: 8px; }
  .pp-home .hero-kicker .technical-label { max-width: none; }
  .pp-home .hero-kicker { margin-bottom: 12px; }
  .hero-actions .btn { gap: 8px; }
  .pp-home .component-top { display: flex; flex-wrap: wrap; gap: 8px; }
  .pp-home .component-top > span { max-width: 100%; }
  .pp-interior .nav-links { gap: 8px 16px; }
}

/* Task 116 review checklist (local, no external requests):
 * PASS: CTA markup reuses /contact.html and existing wording in the hero and
 * immediately after #packages. Mobile rules remove hero minimum height,
 * move actions before supporting copy, and let navigation wrap.
 * PASS (CSS inspection): 16px base and secondary text; 70ch paragraph measure;
 * 44px minimum controls/links, 44px checkbox, visible dual-colour focus ring.
 * PASS (17-page structural parser): balanced explicit tags, unique IDs,
 * one h1/page, no skipped heading levels, every img has alt; skip links target
 * main landmarks. Decorative images retain empty alternatives.
 * PASS (CSS + existing JS inspection): reduced-motion disables animations,
 * transitions and smooth scrolling; existing scene JS observes the preference.
 * PASS: tests/check-links.py (529 local references); mocked form test suite;
 * git diff --check. No project build configuration is present.
 * PASS: baseline comparison of all original visible words, original hrefs,
 * form/control attributes and scripts (including JSON-LD). Only copied CTAs
 * and the fallback skip link add text/links. Diff is HTML/CSS only.
 * Contrast, WCAG sRGB relative luminance, old -> new:
 * - Field errors on #000000: #a32920 (2.90:1) -> #ffb4ab (12.37:1).
 * - Simulation mismatch on #35251f: #f1d7af (10.50:1) -> #ffe5ae (11.89:1).
 * - Base focus token against #111318: #a56927 (4.11:1) -> #a9c5f3 (10.59:1).
 *   Existing dark-page focus already used the new token; now shared everywhere.
 * - Hero support: #c9cfda -> #c6d8e3; old photographic background varied.
 *   New fixed #080e13 surface gives 13.24:1. CTA #111318 on #ededee stays
 *   unchanged at 15.88:1. Hero photo overlay is now #080e13 at 92% opacity.
 * OWNER / REVIEW FOLLOW-UPS: Chromium and local server startup are denied by
 * the sandbox (Operation not permitted). Render at 360x640, 390x844, 414x896,
 * and desktop, with JS on/off and reduced motion. Confirm contact CTA above
 * fold, no 360px horizontal scrolling, computed target sizes, focus visibility,
 * open menu/details/dialog and simulation states; check at 200% zoom and with
 * a screen reader. Run a full HTML conformance validator and contrast scanner
 * locally. Structural checks above are not a complete conformance validation.
 * Claude reviews this HTML/CSS diff before acceptance; no deployment performed.
 */
