/* Shared by every page: fonts, the top bar (always visible, with "Contact me"), the footer.
   Helvetica Neue carries information. Baskerville carries my voice and the big numbers. */

/* Baskerville is on every Apple device; Libre Baskerville (free, bundled) covers everyone else */
@font-face{font-family:"Libre Baskerville";font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/LibreBaskerville-Regular.woff2) format("woff2")}
@font-face{font-family:"Libre Baskerville";font-style:italic;font-weight:400;font-display:swap;src:url(assets/fonts/LibreBaskerville-Italic.woff2) format("woff2")}

:root{
  --sans:"Helvetica Neue",Helvetica,Arial,"Liberation Sans",sans-serif;
  --serif:Baskerville,"Baskerville Old Face","Libre Baskerville",Georgia,serif;
}

/* text for search engines and screen readers that is not shown on screen */
.sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- the top bar ---------- */
.site{position:sticky;top:0;z-index:50;background:var(--bar);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);font-family:var(--sans)}
.site .in{max-width:1180px;margin:0 auto;padding:12px 24px;display:flex;justify-content:space-between;align-items:center;gap:12px 24px}
.site .brand{font-size:14px;font-weight:500;letter-spacing:-.01em;text-decoration:none;white-space:nowrap}
.site nav{display:flex;align-items:center;gap:4px 22px;font-size:14px}
.site nav a{text-decoration:none;padding:4px 0;border-bottom:1px solid transparent}
.site nav a:hover{border-bottom-color:currentColor}
.site nav a[aria-current="page"]{border-bottom-color:currentColor}
.site nav a.contact{background:var(--ink);color:var(--paper);border:1px solid var(--ink);border-radius:999px;padding:6px 16px;margin-left:2px;white-space:nowrap;transition:background .2s,color .2s}
.site nav a.contact:hover{background:var(--paper);color:var(--ink)}
.site nav a.contact[aria-current="page"]{background:var(--paper);color:var(--ink)}
@media (max-width:560px){
  .site .in{padding:10px 16px;flex-wrap:wrap}
  .site .brand{font-size:13px}
  .site nav{gap:4px 14px;font-size:13px}
  .site nav a.contact{padding:5px 12px}
}
@media print{ .site{display:none} }

/* ---------- footer ---------- */
.foot{margin-top:70px;padding-top:22px;border-top:1px solid var(--line);font-family:var(--sans);font-size:13px;display:flex;justify-content:space-between;gap:12px 20px;flex-wrap:wrap}
.foot a{color:inherit}
.socials{display:flex;gap:2px;align-items:center}
.socials a{display:inline-flex;width:36px;height:36px;align-items:center;justify-content:center;text-decoration:none}
.socials svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.socials svg .f{fill:currentColor;stroke:none}
.socials a:hover svg{transform:scale(1.12)}
.socials svg{transition:transform .2s ease}

/* ---------- inner pages (brand, employee): same fonts as the homepage ---------- */
body.inner{font-family:var(--sans);line-height:1.5}
body.inner .lede,
body.inner .quote,
body.inner .num{font-family:var(--serif)}
body.inner h1,
body.inner .acc-h .t{font-family:var(--sans)}
body.inner h1{font-weight:400;letter-spacing:-.035em;line-height:1.02}
body.inner .acc-h .t{font-weight:400;letter-spacing:-.025em}
body.inner .curve text{font-family:var(--serif);font-style:italic}
body.inner .page{padding-top:34px}
.crumb{font-size:13px;color:var(--mute);margin:0 0 48px;font-family:var(--sans)}
.crumb a{color:inherit}
@media (max-width:760px){ body.inner .page{padding-top:22px} .crumb{margin-bottom:30px} }


/* ---------- the live status line ---------- */
.status{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:6px 24px;font-family:var(--sans);font-size:12px;color:var(--mute);max-width:1180px;margin:0 auto}
.status a{color:inherit;text-decoration:none;display:inline-flex;align-items:center}
.status a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.status i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#2fb24c;margin-right:7px;animation:neg-pulse 2.2s ease-in-out infinite}
.status b{font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums}
@keyframes neg-pulse{50%{opacity:.3}}
.site .status{max-width:none;padding:6px 0;margin:0}
.site .status{border-bottom:1px solid var(--ghost)}
.site .status > *{}
.site{padding-top:0}
.site .status{padding-left:max(24px,calc((100% - 1180px)/2 + 24px));padding-right:max(24px,calc((100% - 1180px)/2 + 24px))}
.hero-status{position:absolute;top:0;left:0;right:0;z-index:5}
.hero .home{padding-top:44px}
@media (max-width:560px){.status{padding:6px 16px}.site .status{padding-left:16px;padding-right:16px}}
@media (prefers-reduced-motion:reduce){.status i{animation:none}}

/* ---------- the light / dark switch ---------- */
.themebtn{all:unset;cursor:pointer;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;transition:background .2s;color:inherit}
.themebtn:hover,.themebtn:focus-visible{background:var(--hover)}
.themebtn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}


/* ---------- a secret touch of red, and things that answer back ---------- */
:root{--red:#d4291c}
::selection{background:var(--red);color:#fff}
a:focus-visible,button:focus-visible{outline:2px solid var(--red);outline-offset:3px}
a:hover{text-decoration-color:var(--red)}
.socials a:hover{color:var(--red)}
.socials a:hover svg{transform:translateY(-3px)}
.status a:hover{text-decoration-color:var(--red)}

/* the circles breathe slowly; touching one turns it red */
.ring{animation:neg-breathe 6s ease-in-out infinite;will-change:transform}
.rings > :nth-child(2){animation-delay:-2s}
.rings > :nth-child(3){animation-delay:-4s}
a.ring:hover,a.ring:focus-visible{background:var(--red)!important;color:#fff!important;border-color:var(--red)!important;transform:scale(1.05);animation-play-state:paused}
.ring.big:hover{animation-play-state:paused}
.half:hover,.half:focus-visible{background:var(--red)!important;color:#fff!important}
.ring.big:has(.half:hover){border-color:var(--red)}
@keyframes neg-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.03)}}
@media (prefers-reduced-motion:reduce){.ring{animation:none}}

/* page titles: the letters hop when you point at them */
.hop .hw{display:inline-block;white-space:nowrap}
.hop .hl{display:inline-block;transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.hop:hover .hl{transform:translateY(-5px) rotate(-2deg)}
.hop:hover .hl:nth-child(2n){transform:translateY(4px) rotate(2deg)}
@media (prefers-reduced-motion:reduce){.hop:hover .hl{transform:none}}

@media (max-width:420px){
  .site .in{flex-wrap:nowrap;gap:8px;padding-left:14px;padding-right:14px}
  .site .brand{font-size:12px}
  .site nav{gap:2px 6px;font-size:12px}
  .site nav a.contact{padding:4px 9px;margin-left:0}
  .themebtn{width:26px;height:26px}
  .themebtn svg{width:16px;height:16px}
}
.ring.big:has(.half:first-of-type:hover) .rn{color:#fff;opacity:1}

/* ---------- the colours, light and dark ---------- */
:root{--bar:rgba(255,255,255,.96);--hover:rgba(0,0,0,.07);--red:#d4291c}
html[data-theme="dark"]{
  color-scheme:dark;
  --ink:#f3f1ee;--paper:#0d0d0d;--mute:#a3a3a3;--faint:#8a8a8a;--line:#2f2f2f;--ghost:#1f1f1f;
  --bar:rgba(13,13,13,.94);--hover:rgba(255,255,255,.12);--red:#ff3b2f;
}
html[data-theme="dark"] body{background:var(--paper);color:var(--ink)}
html[data-theme="dark"] video,html[data-theme="dark"] .vids video{background:#000}
html[data-theme="dark"] img{background:#1a1a1a}
@media print{
  html[data-theme="dark"]{--ink:#000;--paper:#fff;--mute:#6b6b6b;--faint:#8a8a8a;--line:#d9d9d9;--ghost:#e9e9e9;--bar:#fff;--red:#d4291c;color-scheme:light}
}

/* ---------- red, quietly and everywhere ---------- */
.site .prog{position:absolute;left:0;bottom:-1px;height:2px;width:100%;background:var(--red);transform:scaleX(0);transform-origin:left;pointer-events:none}
.rd{color:var(--red)}
.ring .rn{color:var(--red)!important;opacity:1!important}
a.ring:hover .rn,.half:hover ~ .rn{color:#fff!important}
.ring.big:has(.half:hover) .rn{color:#fff!important}
.acc-h .n,.label .no,.no{color:var(--red)}
.lbl::before{content:"";display:inline-block;width:14px;height:2px;background:var(--red);margin-right:10px;vertical-align:middle}
@media print{.site .prog{display:none}}

/* the circles, shared by every page that uses them */

:where(.rings){display:flex;flex-wrap:wrap;gap:22px}
:where(.ring){position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;width:300px;height:300px;border:1.2px solid var(--ink);border-radius:50%;text-decoration:none;color:var(--ink);padding:34px;overflow:hidden;transition:background .25s,color .25s,transform .25s}
:where(.ring) b{font-weight:400;font-size:20px;line-height:1.12;letter-spacing:-.02em}
:where(.ring) .rn{font-size:12px;margin-bottom:8px}

a.ring,a.ring *{text-decoration:none!important}

/* the status strip: open-to-projects on the left; the time and the light/dark switch on the right */
.status .st-r{display:inline-flex;align-items:center;gap:8px}
.status .themebtn{width:26px;height:26px;margin-right:-6px}
.status .themebtn svg{width:16px;height:16px}

[id]{scroll-margin-top:110px}
