/* Taste pass: neutral surfaces, one accent, flat panels, hairline lists, mono for data. Loaded last. */
:root { --mono:'JetBrains Mono',ui-monospace,Consolas,monospace; --r-lg:16px; --r-md:12px; --r-sm:9px; --ease-out:cubic-bezier(.2,.7,.2,1);
  --panel-light:transparent; --panel-inset:0 0 #0000; --panel-shadow:0 0 #0000; --panel-hover-shadow:0 14px 30px #00000040; }
:root:not([data-theme]),:root[data-theme=dark] { --paper:#0e0f11; --ink:#ededea; --muted:#9a9c9f; --line:#24262a; --surface:#141518; --surface-raised:#1b1d21; --soft:#1e2a44; --border:#34373d; --secondary:#c4c6c9; --header:#0e0f11ee; --accent:#a5c4ff; --accent-strong:#8fb4ff; --orange:#8fb4ff; --button-ink:#0d1a33; }
:root[data-theme=light] { --paper:#fbfbfa; --ink:#18191b; --muted:#5c6066; --line:#e5e5e1; --surface:#f4f4f1; --surface-raised:#fff; --soft:#e6edff; --border:#d0d0cb; --secondary:#3f444c; --header:#fbfbfaf2; --accent:#1a4be0; --accent-strong:#1a4be0; --orange:#1a4be0; --button-ink:#fff; --panel-hover-shadow:0 14px 30px #1a1c2014; }

body { font-feature-settings:'ss01','cv11'; text-rendering:optimizeLegibility; }
h1,h2,h3 { text-wrap:balance; }
p { text-wrap:pretty; }

/* Labels and figures read as data */
.eyebrow,.hero-name,.hero-foot,.project-topline .role-label,.timeline time,.group-count,.gallery-count,.source-link,footer { font-family:var(--mono); letter-spacing:.02em; }
.eyebrow { font-size:11px; font-weight:500; letter-spacing:.09em; color:var(--muted); }
.eyebrow .dot,.hero-ambient,.project-index,.capability-icon { display:none !important; }
.download-stat,.strip-stat b { font-family:var(--mono); font-weight:500; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }

/* Headings: weight and tracking do the work, colour stays quiet */
.hero .hero-identity h1 { font-weight:600; letter-spacing:-.05em; line-height:.98; }
.work h2,.about h2,.experience h2,.contact h2 { font-weight:600; letter-spacing:-.045em; line-height:1.02; }
.work h2 em,.about h2 em,.experience h2 em,.contact h2 em,h1 em { color:var(--muted); font-style:normal; }
.project-info h3 { font-size:24px; font-weight:600; letter-spacing:-.03em; }

/* Header */
.site-header { backdrop-filter:blur(14px) saturate(1.2); }
.nav nav a { transition:color .15s; }

/* Buttons: flat, 10px radius, press feedback */
.button,.nav .nav-contact,.detail-button,.filter,.theme-picker summary { border-radius:var(--r-sm); box-shadow:none; transition:background-color .15s,border-color .15s,color .15s,transform .15s var(--ease-out); }
.button { font-weight:600; padding:12px 18px; }
.button:active,.detail-button:active,.filter:active,.nav .nav-contact:active { transform:scale(.98); }
.button:not(.button-secondary) { background:var(--ink); border-color:var(--ink); color:var(--paper); }
.button:not(.button-secondary):hover { background:var(--accent-strong); border-color:var(--accent-strong); color:var(--button-ink); box-shadow:none; }
.button-secondary { background:transparent; border-color:var(--border); color:var(--ink); }
.button-secondary:hover,.nav .nav-contact:hover,.detail-button:hover { background:var(--surface-raised); border-color:var(--muted); box-shadow:none; }
.detail-button { background:transparent; padding:9px 14px; font-weight:600; color:var(--ink); }
.filter { background:transparent; border-color:transparent; color:var(--muted); padding:8px 12px; font-weight:500; }
.filter:hover { color:var(--ink); background:var(--surface); }
.filter[aria-pressed=true] { background:var(--ink); color:var(--paper); border-color:var(--ink); box-shadow:none; }
.filter[aria-pressed=true] * { color:inherit; }

/* Hero */
.hero-portrait { border:0; outline:1px solid var(--line); box-shadow:none; }
.hero-shot { border-radius:var(--r-lg); border-color:var(--line); padding:5px; }
.hero-shot img { border-radius:11px; }
.hero-sticker { border-radius:var(--r-md); border-color:var(--line); }
.collage-cloud { border-radius:var(--r-lg); border-color:var(--line); background-image:none; }

/* Intro strip: a ruled row, not a card */
.intro-strip { border-radius:0; border-width:1px 0; background:none; padding:28px 0; }

/* Project cards: one surface, no frame inside a frame */
.project-grid .project-card:nth-child(n) { border-radius:var(--r-lg); background:var(--surface); border-color:var(--line); padding:10px; transition:border-color .2s,translate .25s var(--ease-out),box-shadow .25s var(--ease-out); }
.work .project-card .project-art { border-radius:var(--r-sm); border-color:transparent; }
.project-art .art-main,.project-art .art-secondary { border-radius:8px; }
.project-card .project-info,.project-card:nth-child(5) .project-info { padding:18px 10px 10px; }
@media(hover:hover) { .project-grid .project-card:nth-child(n):hover { border-color:var(--border); translate:0 -2px; box-shadow:var(--panel-hover-shadow); } }
.art-open { box-shadow:none; }

/* About: open section between two rules; capabilities become a ruled list */
.about { border-radius:0; border-width:1px 0; background:transparent; }
.capabilities article:nth-child(n) { border:0; border-top:1px solid var(--line); border-radius:0; background:none; padding:20px 0 22px; }
.capabilities article h3 { font-size:18px; font-weight:600; letter-spacing:-.02em; margin-top:0; }
.capabilities article p { color:var(--muted); }

/* Experience: timeline rows */
.timeline article:nth-child(n) { border:0; border-top:1px solid var(--line); border-radius:0; background:none; padding:22px 0 24px; margin:0; }
.timeline article:last-child { border-bottom:1px solid var(--line); }
.timeline time { color:var(--muted); font-size:11.5px; padding-top:6px; }
.education-line { border-radius:var(--r-lg); background:var(--surface); }

/* Contact and dialog */
.contact { border-radius:var(--r-lg); background:var(--surface); border-color:var(--line); }
dialog { border-radius:20px; box-shadow:0 32px 90px #00000070; }
.dialog-metrics,.shot-frame { border-radius:var(--r-md); }
.theme-panel { border-radius:var(--r-md); }

:focus-visible { outline:2px solid var(--accent-strong); outline-offset:3px; }
@media(prefers-reduced-motion:reduce) { .project-grid .project-card:nth-child(n):hover { translate:none; } .button:active,.detail-button:active,.filter:active { transform:none; } }

/* Second pass: specificity fixes and figures */
.work .filter:nth-child(n),.project-card .detail-button,.hero .button,.contact .button { border-radius:var(--r-sm); }
.download-stat,.strip-stat b { font-family:inherit; font-weight:600; letter-spacing:-.03em; }
.timeline article:nth-child(n) { grid-template-columns:168px 1fr; }
.timeline time { white-space:nowrap; }
@media(max-width:640px) { .timeline article:nth-child(n) { grid-template-columns:1fr; } }
:root[data-theme] { --panel-light:transparent; --panel-inset:0 0 #0000; --panel-shadow:0 0 #0000; }

/* Accent follows the maple mark instead of blue (Rain and Snow keep their weather tints) */
:root:not([data-theme]),:root[data-theme=dark] { --accent:#f2a0a8; --accent-strong:#e8808c; --orange:#e8808c; --soft:#2c1c1f; --button-ink:#2b0d12; }
:root[data-theme=light] { --accent:#a32a3c; --accent-strong:#a32a3c; --orange:#a32a3c; --soft:#f7e6e8; --button-ink:#fff; }
.project-art .art-open { background:var(--paper); color:var(--ink); border-color:var(--border); }
.project-art::before { background-image:none !important; }
.project-art .art-main,.project-art .art-secondary { border-color:var(--border); }
.source-link { text-decoration-color:var(--border); }
.theme-swatch.swatch-dark,.theme-swatch.swatch-light { color:var(--accent); border-color:var(--border); }
.dialog-flourish i { background:var(--soft); border-color:var(--accent-strong); }
.shot-frame::before { background-image:none !important; }

/* Rain and Snow without blue: wet-asphalt graphite with a sage mist, and a quiet night with warm white */
:root[data-theme=rain] { --paper:#121514; --ink:#e9ece9; --muted:#a3aaa5; --line:#2a302d; --surface:#191d1b; --surface-raised:#202523; --soft:#26302b; --accent:#b9cdbf; --accent-strong:#a9c2b0; --orange:#a9c2b0; --header:#121514ee; --border:#3d4641; --secondary:#c3cac5; --button-ink:#14201a; --shadow:#00000060; }
:root[data-theme=snow] { --paper:#17171a; --ink:#f4f3f0; --muted:#b1b0ad; --line:#2e2e32; --surface:#1e1e22; --surface-raised:#26262b; --soft:#303036; --accent:#f1ede4; --accent-strong:#e6e0d3; --orange:#e6e0d3; --header:#17171aee; --border:#45454b; --secondary:#cfcdc8; --button-ink:#1c1b18; --shadow:#00000060; }
.swatch-rain { color:#b9cdbf; background:linear-gradient(135deg,#2a332e,#141816); }
.swatch-snow { color:#f4f3f0; background:linear-gradient(135deg,#4a4a50,#1e1e22); }
.weather-haze { background:radial-gradient(ellipse at 15% 0%,#8a9a9016,transparent 65%),linear-gradient(145deg,transparent 40%,#8a9a900c); }
[data-theme=snow] .weather-haze { background:radial-gradient(ellipse at 80% 0%,#ffffff12,transparent 65%),radial-gradient(ellipse at 0% 55%,#ffffff08,transparent 55%); }
