/* richardshutchison.com site styles */
:root{
  --bg:#fbfaf7; --surface:#ffffff; --surface-2:#f1efe9; --text:#1a1f24; --muted:#4a5561;
  --line:#dcd8cf; --accent:#0a6268; --accent-ink:#ffffff; --accent-soft:#dff0ef;
  --warm:#9a4a07; --focus:#c2410c; --shadow:0 1px 2px rgba(0,0,0,.06),0 8px 24px rgba(0,0,0,.06);
  --radius:14px; --maxw:1180px;
  --font: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --serif: ui-serif,Georgia,"Iowan Old Style","Times New Roman",serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark){
  :root{ --bg:#0e1316; --surface:#151c21; --surface-2:#1c252b; --text:#e9eef1; --muted:#b0bcc5;
    --line:#2b363e; --accent:#6fd6db; --accent-ink:#06282a; --accent-soft:#16363a; --warm:#f2a65a;
    --focus:#ffb86b; --shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px rgba(0,0,0,.35); }
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font:400 1.0625rem/1.65 var(--font)}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-underline-offset:.18em;text-decoration-thickness:.08em}
a:hover{text-decoration-thickness:.14em}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:4px}
h1,h2,h3{line-height:1.2;letter-spacing:-.01em;margin:1.6em 0 .5em}
h1{font-size:clamp(2rem,4.2vw,3.1rem);margin-top:.2em;font-family:var(--serif);font-weight:600}
h2{font-size:clamp(1.4rem,2.4vw,1.85rem);font-family:var(--serif);font-weight:600}
h3{font-size:1.15rem}
p,ul,ol{margin:0 0 1em}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 1.25rem}
.prose{max-width:72ch}
.muted{color:var(--muted)}
.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:.8rem;font-weight:700;color:var(--warm);margin:0 0 .4rem}
.skip{position:absolute;left:1rem;top:-100px;background:var(--accent);color:var(--accent-ink);padding:.6rem 1rem;border-radius:8px;z-index:100;font-weight:700}
.skip:focus{top:1rem}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* header */
.site-header{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:64px}
.brand{display:flex;align-items:center;gap:.6rem;color:var(--text);text-decoration:none;font-weight:700;letter-spacing:.01em}
.brand svg{width:34px;height:34px;flex:none}
.brand small{display:block;font-weight:500;color:var(--muted);font-size:.78rem;letter-spacing:.02em}
.nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.15rem}
.nav a{display:block;padding:.45rem .6rem;border-radius:8px;color:var(--text);text-decoration:none;font-size:.95rem;font-weight:500}
.nav a:hover{background:var(--surface-2)}
.nav a[aria-current="page"]{background:var(--accent-soft);color:var(--text);box-shadow:inset 0 -2px 0 var(--accent)}
.nav-toggle{display:none;background:none;border:1px solid var(--line);color:var(--text);border-radius:10px;padding:.45rem .7rem;font:inherit;font-weight:600;cursor:pointer}
@media (max-width:980px){
  .js .nav-toggle{display:inline-flex;align-items:center;gap:.4rem}
  .js .nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--bg);border-bottom:1px solid var(--line);padding:.5rem 1.25rem 1rem}
  .js .nav.open{display:block}
  .js .nav ul{flex-direction:column}
  .nav a{padding:.7rem .6rem}
  .site-header .wrap{flex-wrap:wrap}
}
/* buttons */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1.1rem;border-radius:999px;border:2px solid var(--accent);background:var(--accent);color:var(--accent-ink);font-weight:700;text-decoration:none}
.btn:hover{filter:brightness(1.08)}
.btn.ghost{background:transparent;color:var(--accent)}
.btn-row{display:flex;flex-wrap:wrap;gap:.7rem;margin:1.4rem 0}
/* hero */
.hero{padding:clamp(2rem,5vw,4.5rem) 0 2.5rem}
.hero .wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(1.5rem,4vw,3.5rem);align-items:center}
.hero .lede{font-size:clamp(1.1rem,1.6vw,1.3rem);color:var(--muted);max-width:40ch}
.hero figure{margin:0}
.hero figure img{border-radius:var(--radius);box-shadow:var(--shadow);aspect-ratio:4/3;object-fit:cover;width:100%}
.hero figcaption{font-size:.88rem;color:var(--muted);margin-top:.6rem}
@media (max-width:860px){.hero .wrap{grid-template-columns:1fr}}
/* stats */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin:0;padding:0;list-style:none}
.stats li{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem 1.2rem}
.stats strong{display:block;font-family:var(--serif);font-size:clamp(1.6rem,3vw,2.2rem);line-height:1.1;color:var(--accent)}
.stats span{color:var(--muted);font-size:.95rem}
@media (max-width:860px){.stats{grid-template-columns:repeat(2,1fr)}}
section.band{padding:2.5rem 0}
section.band.alt{background:var(--surface-2);border-block:1px solid var(--line)}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.section-head h2{margin-top:0}
/* cards */
.cards{list-style:none;margin:1.2rem 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:1.2rem}
.card{position:relative;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);height:100%;transition:transform .18s ease,box-shadow .18s ease}
.card:hover{transform:translateY(-2px)}
.card:focus-within{outline:3px solid var(--focus);outline-offset:2px}
.card .thumb{aspect-ratio:16/10;background:var(--surface-2);overflow:hidden}
.card .thumb img{width:100%;height:100%;object-fit:cover}
.card .ph{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(135deg,var(--accent-soft),var(--surface-2));color:var(--accent);font-family:var(--serif);font-size:2.4rem;font-weight:700}
.card .body{padding:1rem 1.1rem 1.2rem;display:flex;flex-direction:column;gap:.45rem;flex:1}
.card h3{margin:0;font-size:1.08rem}
.card h3 a{color:var(--text);text-decoration:none}
.card h3 a::after{content:"";position:absolute;inset:0}
.card p{margin:0;color:var(--muted);font-size:.95rem}
.chips{display:flex;flex-wrap:wrap;gap:.35rem;list-style:none;margin:0;padding:0}
.chips li{font-size:.75rem;font-weight:700;letter-spacing:.02em;padding:.18rem .55rem;border-radius:999px;background:var(--accent-soft);color:var(--text)}
.card .meta{font-size:.82rem;color:var(--muted)}
/* filters */
.filters{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0 .4rem;padding:0;list-style:none}
.filters button{font:inherit;font-weight:600;font-size:.95rem;padding:.5rem .95rem;border-radius:999px;border:2px solid var(--line);background:var(--surface);color:var(--text);cursor:pointer}
.filters button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.no-js .filters{display:none}
[hidden]{display:none!important}
/* project page */
.crumbs{font-size:.9rem;margin:1.5rem 0 0}
.crumbs ol{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:.4rem}
.crumbs li+li::before{content:"/";margin-right:.4rem;color:var(--muted)}
.proj-head{display:grid;grid-template-columns:1.15fr .85fr;gap:2rem;align-items:start;margin-top:.5rem}
.proj-head figure{margin:0}
.proj-head figure img{border-radius:var(--radius);box-shadow:var(--shadow);width:100%}
.proj-head figcaption{font-size:.88rem;color:var(--muted);margin-top:.5rem}
@media (max-width:860px){.proj-head{grid-template-columns:1fr}}
.facts{display:grid;grid-template-columns:auto 1fr;gap:.35rem 1rem;margin:1.2rem 0;padding:1rem 1.1rem;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.facts dt{font-weight:700;font-size:.9rem}
.facts dd{margin:0;color:var(--muted);font-size:.95rem}
ul.spec{list-style:none;padding:0;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--surface)}
ul.spec li{display:grid;grid-template-columns:13rem 1fr;gap:1rem;padding:.55rem 1rem;border-top:1px solid var(--line)}
ul.spec li:first-child{border-top:0}
ul.spec span{font-weight:700}
@media (max-width:560px){ul.spec li{grid-template-columns:1fr;gap:0}}
.note{font-size:.92rem;color:var(--muted);border-left:3px solid var(--warm);padding-left:.8rem}
/* gallery */
.gallery{list-style:none;padding:0;margin:1rem 0 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:.7rem}
.gallery a{display:block;border-radius:10px;overflow:hidden;background:var(--surface-2);aspect-ratio:4/3;border:1px solid var(--line)}
.gallery img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.gallery a:hover img{transform:scale(1.04)}
.gallery-count{color:var(--muted);font-size:.95rem}
/* lightbox */
dialog.lightbox{padding:0;border:0;background:transparent;max-width:min(96vw,1400px);width:100%;max-height:96vh;color:#fff}
dialog.lightbox::backdrop{background:rgba(5,8,10,.9)}
.lb-inner{display:flex;flex-direction:column;align-items:center;gap:.6rem;padding:3.2rem .5rem .8rem}
.lb-inner img{max-height:78vh;width:auto;max-width:100%;border-radius:8px;background:#111}
.lb-caption{max-width:80ch;text-align:center;font-size:.98rem;color:#f1f1f1}
.lb-count{font-size:.85rem;color:#cfd6da}
.lb-btn{position:absolute;background:rgba(20,24,27,.85);color:#fff;border:2px solid rgba(255,255,255,.5);border-radius:999px;width:48px;height:48px;font-size:1.4rem;line-height:1;cursor:pointer;display:grid;place-items:center}
.lb-btn:hover{background:#000}
.lb-btn:focus-visible{outline:3px solid #ffb86b}
.lb-close{top:.4rem;right:.4rem}
.lb-prev{left:.4rem;top:50%}
.lb-next{right:.4rem;top:50%}
/* timeline */
.timeline{list-style:none;margin:1rem 0;padding:0;border-left:3px solid var(--line)}
.timeline>li{position:relative;padding:0 0 1.8rem 1.4rem}
.timeline>li::before{content:"";position:absolute;left:-9px;top:.45rem;width:15px;height:15px;border-radius:50%;background:var(--bg);border:3px solid var(--accent)}
.timeline h3{margin:0;font-size:1.12rem}
.timeline .org{font-weight:600}
.timeline .when{color:var(--muted);font-size:.92rem;margin:.1rem 0 .5rem}
.timeline ul{margin:.3rem 0 0;padding-left:1.1rem}
.timeline li li{margin:.2rem 0}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:2rem}
@media (max-width:860px){.two-col{grid-template-columns:1fr}}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.2rem 1.3rem}
.panel h2,.panel h3{margin-top:0}
.list-plain{list-style:none;padding:0}
.list-plain li{padding:.65rem 0;border-top:1px solid var(--line)}
.list-plain li:first-child{border-top:0}
.press-item{display:grid;grid-template-columns:8.5rem 1fr;gap:1rem}
.press-item time{color:var(--muted);font-size:.92rem;font-variant-numeric:tabular-nums}
@media (max-width:560px){.press-item{grid-template-columns:1fr;gap:.1rem}}
.media-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1rem;margin:1.2rem 0;list-style:none;padding:0}
.media-row figure{margin:0}
.media-row img{border-radius:12px;aspect-ratio:4/3;object-fit:cover;width:100%}
.media-row figcaption{font-size:.88rem;color:var(--muted);margin-top:.4rem}
.portrait{border-radius:var(--radius);box-shadow:var(--shadow)}
/* footer */
.site-footer{margin-top:3rem;border-top:1px solid var(--line);background:var(--surface-2);padding:2rem 0;font-size:.95rem}
.site-footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1.5rem}
.site-footer ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.3rem 1rem}
.site-footer a{color:var(--text)}
main{display:block;min-height:60vh}
main:focus{outline:none}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important;animation:none!important}
  .card:hover{transform:none}.gallery a:hover img{transform:none}
}
@media print{.site-header,.site-footer,.skip,.filters{display:none}}
