/* BASS styles: soft, raised ("pop-out") look on a calm dark theme.
   Colours live in the two theme blocks below. Change them here. */
:root,[data-theme=dark]{--bg:#1b2126;--surface:#222a30;--text:#e8edf0;--muted:#aab7be;--link:#8fd3cf;--btn:#2e7d78;--btn-h:#37908a;--line:#303a42;--ph:#4a4120;--ph-t:#ffeaa6;--focus:#ffd28a;--hi:#2b343b;--lo:#12171a}
[data-theme=light]{--bg:#e9eef0;--surface:#e9eef0;--text:#1b2a2f;--muted:#44525a;--link:#0f5c63;--btn:#0f5c63;--btn-h:#0a4349;--line:#d3dbd7;--ph:#fff1b8;--ph-t:#1b2a2f;--focus:#8a4b00;--hi:#fff;--lo:#c3cbce}
:root{--r:28px;--pop:8px 8px 18px var(--lo),-8px -8px 18px var(--hi);--pop-s:4px 4px 10px var(--lo),-4px -4px 10px var(--hi);--press:inset 4px 4px 10px var(--lo),inset -4px -4px 10px var(--hi)}
*,*::before,*::after{box-sizing:border-box}
html{font-size:100%;scroll-behavior:smooth}
body{margin:0;font:1.125rem/1.7 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--text);background:var(--bg)}
.wrap{max-width:68rem;margin:0 auto;padding:0 1.25rem}
h1,h2,h3{font-family:Georgia,"Times New Roman",serif;line-height:1.25;margin:0 0 .6em}
h1{font-size:clamp(2rem,5vw,3.1rem);max-width:20ch}
h2{font-size:clamp(1.5rem,3.2vw,2rem)}
h3{font-size:1.25rem}
p,ul{margin:0 0 1em}
a{color:var(--link);text-underline-offset:.15em}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.skip{position:absolute;left:-999px}
.skip:focus{left:1rem;top:1rem;background:var(--surface);color:var(--text);padding:.5rem 1rem;z-index:10;border-radius:999px}
.bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-top:1.2rem;padding-bottom:1.2rem;flex-wrap:wrap}
.brand{font:700 1.5rem Georgia,serif;color:var(--text);text-decoration:none}
.brand span{font:400 .9rem system-ui,sans-serif;color:var(--muted);margin-left:.4rem}
.nav ul{display:flex;gap:.6rem;list-style:none;margin:0;padding:0;align-items:center}
.nav a{display:inline-block;color:var(--text);text-decoration:none;font-size:1rem;padding:.45rem 1rem;border-radius:999px;transition:box-shadow .2s}
.nav a:hover{box-shadow:var(--pop-s)}
.nav a[aria-current=page]{box-shadow:var(--press);color:var(--link)}
.btn,.nav a.btn{display:inline-block;background:var(--btn);color:#fff;padding:.75rem 1.5rem;border:0;border-radius:999px;font-weight:600;text-decoration:none;box-shadow:var(--pop-s);transition:box-shadow .2s,background .2s}
.btn:hover,.nav a.btn:hover{background:var(--btn-h);box-shadow:var(--pop)}
.btn:active,.nav a.btn:active{box-shadow:var(--press)}
.btn.alt{background:var(--surface);color:var(--link)}
.btn.alt:hover{background:var(--surface)}
.nav a.btn{padding:.45rem 1.2rem}
.menu-btn,.theme-btn{font:inherit;font-size:1rem;color:var(--text);background:var(--surface);border:0;border-radius:999px;padding:.45rem 1.1rem;box-shadow:var(--pop-s);cursor:pointer}
.menu-btn{display:none}
.theme-btn{display:none}
.js .theme-btn{display:inline-block}
.menu-btn:active,.theme-btn:active{box-shadow:var(--press)}
.hero{padding:3.5rem 0 2rem}
.lead{font-size:1.3rem;color:var(--muted);max-width:40rem}
.actions{display:flex;gap:1.2rem;flex-wrap:wrap}
.sec,.band{padding:1.2rem 0}
.sec>.wrap,.band>.wrap{width:calc(100% - 2.5rem);padding:2.2rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--pop)}
.sec>.narrow,.band>.wrap{max-width:46rem}
.grid{display:grid;gap:1.5rem;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr))}
.grid>div{box-shadow:var(--press);border-radius:20px;padding:1.3rem}
.grid p{margin:0}
.links li{margin-bottom:.6rem}
.crumb{max-width:68rem;margin:.5rem auto 0;padding:0 1.25rem;font-size:.95rem;color:var(--muted)}
.ph{background:var(--ph);color:var(--ph-t);padding:.1em .5em;border-radius:999px}
.site-footer{padding:2.5rem 0 3rem;font-size:1rem;color:var(--muted)}
.site-footer ul{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;list-style:none;padding:0}
@media (max-width:56rem){
  .js .menu-btn{display:block}
  .js .nav{display:none;width:100%}
  .js .nav.open{display:block;background:var(--surface);border-radius:var(--r);box-shadow:var(--pop);padding:.8rem 1.2rem}
  .nav ul{flex-direction:column;align-items:flex-start;gap:.4rem}
  html:not(.js) .nav ul{flex-direction:row}
  .brand span{display:block;margin:0}
  .hero{padding:2rem 0 1rem}
  .sec>.wrap,.band>.wrap{padding:1.5rem}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
