/*
  Shared accessibility layer for every page.
  Loaded AFTER each page's own <style>, so equal-specificity rules here win.
  - Colour tokens meet WCAG 2.1 AA (4.5:1) for small text on every page background.
  - Minimum text sizes (labels >= 12px, body copy >= 14-15px).
  - Visible keyboard focus, skip link, screen-reader utility.
*/

/* ---------- Colour tokens ---------- */
/* Light: accent #9e3b16 >= 4.55:1 and muted #5e564d >= 4.83:1 on all light backgrounds used (#f3eee5, #fffcf7, #e6dac8, #e2d1bb, #f4efe7, #ebe3d8). */
:root{--muted:#5e564d;--orange:#9e3b16;--accent-text:#9e3b16}
/* Dark: accent #f08a5d >= 5.5:1, muted #bdb3a7 >= 6.6:1 on all dark backgrounds used. Declared on body too for pages that set tokens on body. */
[data-theme=dark],[data-theme=dark] body{--muted:#bdb3a7;--orange:#f08a5d;--accent-text:#f0956c}

/* ---------- Focus, skip link, utilities ---------- */
:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
a:focus:not(:focus-visible),button:focus:not(:focus-visible){outline:none}
.skip-link{position:absolute;left:12px;top:-80px;z-index:1000;background:var(--ink);color:var(--paper);padding:12px 18px;border-radius:8px;font:600 15px/1.2 "DM Sans",Arial,sans-serif;text-decoration:none}
.skip-link:focus{top:12px}
.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}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}

/* ---------- Minimum text sizes ---------- */
/* Labels, tags and metadata: >= 12px */
.eyebrow,.availability,.meta-item span,.profile-tags span,.art-tag,.project-top,.project-foot,.exp time,
.footer-row,.linkedin-top,.portrait-caption,.num,.tag,.tool,.tool span,.tab,.phase-no,.phase time,
.finding-stat-label,.chart-caption,.hero-caption,.meta-line,.metric span,.node small,.arttop,.artbottom,
.back,.checks span,.table th,.step b,.contribution-list b,.contact-details span,.compare b,.bar b,.dash-detail h4{font-size:12px}
.nav{font-size:12px}
.filter,.pill,.skill,.certcopy .button,.toggle,.note,.metric small,.shot figcaption,.roadmap-note,.footer{font-size:13px}
/* Navigation */
.navlinks,.nav a,.nav button{font-size:14px}
/* Body copy */
.small,.credential p,.phase p,.ownership-note,.contribution-list li,.node p,.node span,.step,.step span,
.table,.score span,.report,.barrow,.compare,.card p{font-size:14px}
.project p,.exp p,.profile-detail,.section-head p,.book-band p,.contact p,.body-copy,.finding-text p,
.closing p,.case p,.tile p,.experience-intro p{font-size:15px}
.about-copy{font-size:16px}
.hero-copy{font-size:17px}

small{font-size:13px}

/* ---------- Layout safety: let grid items shrink instead of overflowing ---------- */
.grid>*,.flow>*,.two>*,.cases>*,.network>*,.ecosystem>*{min-width:0}
.card h3,.case h3,.metric,.step,.node h3{overflow-wrap:break-word}
@media (max-width:900px){.card .metric{font-size:clamp(24px,4vw,32px)}}
@media (max-width:480px){.grid{grid-template-columns:1fr}}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

img{height:auto}
