@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-latin-700-italic.woff2") format("woff2");
}

/* Layout concept: a calm single column read, one deep-blue hero panel as the only bold moment,
   sunflower gold used for focus and calls to action. Built for WCAG 2.2 AAA targets:
   7:1 text contrast in both themes, 44px targets, 66 character line length, no motion. */
:root {
  --bg: #F5F8FC;
  --surface: #FFFFFF;
  --fg: #0B1B2E;
  --muted: #33465E;
  --link: #0B4F9E;
  --link-hover: #073A78;
  --border: #5B6E86;
  --focus: #0B1B2E;
  --hero-bg: #0B2A4A;
  --hero-fg: #FFFFFF;
  --hero-muted: #D6E4F5;
  --hero-link: #BFE0FF;
  --gold: #FFD34D;
  --on-gold: #0B2A4A;
  --chip-bg: #FFF1BF;
  --chip-fg: #3A2900;
  --font-body: "Atkinson Hyperlegible", Verdana, "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1422;
    --surface: #101F33;
    --fg: #EDF3FA;
    --muted: #BFD0E4;
    --link: #9CC9FF;
    --link-hover: #C7E0FF;
    --border: #7F94AD;
    --focus: #FFD34D;
    --hero-bg: #123861;
    --on-gold: #0A1422;
    --chip-bg: #2A2000;
    --chip-fg: #FFE79A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1422;
  --surface: #101F33;
  --fg: #EDF3FA;
  --muted: #BFD0E4;
  --link: #9CC9FF;
  --link-hover: #C7E0FF;
  --border: #7F94AD;
  --focus: #FFD34D;
  --hero-bg: #123861;
  --on-gold: #0A1422;
  --chip-bg: #2A2000;
  --chip-fg: #FFE79A;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  word-spacing: 0.04em;
  margin: 0;
}
.wrap { max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
h1, h2, h3 { line-height: 1.25; text-wrap: balance; margin: 0 0 1rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.375rem; margin-top: 2rem; }
p { margin: 0 0 1.2em; }
p, li, dd, dt, h1, h2, h3 { overflow-wrap: break-word; }
.link-list a { min-width: 0; overflow-wrap: anywhere; }
ul, ol, dl { margin: 0 0 1.2em; }
li { margin-bottom: 0.5em; }
.prose { max-width: 66ch; }
.prose > :last-child { margin-bottom: 0; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 0.1em; text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); text-decoration-thickness: 0.18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--gold); color: var(--on-gold);
  padding: 0.75rem 1rem; min-height: 44px; font-weight: 700; border-radius: 0.375rem;
}
.skip:focus { top: 1rem; }

/* Header and display settings */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); padding-block: 1rem; }
.site-header .wrap { display: flex; flex-direction: column; gap: 0.75rem; }
.site-name { font-weight: 700; font-size: 1.25rem; color: var(--fg); display: inline-flex; align-items: center; min-height: 44px; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0; padding: 0; }
.nav-list li { margin: 0; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding-inline: 0.25rem; }
.nav-list a[aria-current="location"] { text-decoration-thickness: 0.28em; font-weight: 700; }
.settings { background: var(--bg); border-bottom: 1px solid var(--border); padding-block: 0.75rem; }
.settings .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: center; }
.group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.group-label { font-weight: 700; margin-right: 0.25rem; }
button, .btn {
  font: inherit; font-weight: 700; color: var(--fg); background: var(--surface);
  border: 2px solid var(--border); border-radius: 0.375rem;
  min-height: 44px; min-width: 44px; padding: 0.5rem 1rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
button:hover { border-color: var(--fg); }
button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-fg); padding-block: 3rem; }
.hero :focus-visible { outline-color: var(--gold); }
.hero a { color: var(--hero-link); }
.hero-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: center; }
.chip { display: inline-block; background: var(--chip-bg); color: var(--chip-fg); font-weight: 700; padding: 0.375rem 0.875rem; border-radius: 999px; margin: 0 0 1.25rem; }
.hero h1 { font-size: clamp(2.25rem, 7vw, 3.75rem); margin-bottom: 1rem; text-wrap: wrap; }
.hero .subtitle { font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.35; font-weight: 700; color: var(--gold); max-width: 30ch; margin-bottom: 1rem; }
.hero .descriptor { color: var(--hero-muted); max-width: 40ch; }
.hero .byline { font-weight: 700; margin-bottom: 1.75rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-primary { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.hero .btn-primary { color: var(--on-gold); }
.btn-secondary { background: transparent; color: var(--hero-fg); border-color: var(--hero-fg); }
.hero .btn-secondary { color: var(--hero-fg); }
.art { width: 100%; max-width: 26rem; height: auto; justify-self: center; }

/* Sections */
main section { padding-block: 3rem; border-top: 1px solid var(--border); }
main section:first-of-type { border-top: 0; }
.about-grid { display: flow-root; max-width: calc(66ch + 21rem); }
.cover { margin: 0 0 1.5rem; max-width: 20rem; }
.cover img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 0.25rem; }
@media (min-width: 48rem) { .cover { float: right; width: 18rem; margin: 0.25rem 0 1.5rem 2rem; } }
.about-grid .prose { max-width: none; }
.about-grid .prose > * { max-width: 66ch; }
.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem; padding: 1.5rem; min-width: 0; }
.card h3 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.timeline { list-style: none; padding: 0; margin: 0; max-width: 66ch; }
.timeline li { display: grid; gap: 0.25rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); padding-block: 1rem; margin: 0; border-top: 1px solid var(--border); }
.timeline li:last-child { border-bottom: 1px solid var(--border); }
.timeline .when { font-weight: 700; }
.timeline .what { grid-column: span 1; }
.timeline .what p:last-child { margin-bottom: 0; }

.callout { background: var(--surface); border: 2px solid var(--border); border-radius: 0.5rem; padding: 1.5rem; max-width: 66ch; }
.callout > :last-child { margin-bottom: 0; }
.email { font-weight: 700; font-size: 1.25rem; overflow-wrap: anywhere; }
.email-box { background: var(--surface); border: 2px solid var(--border); border-radius: 0.5rem; padding: 1.5rem; max-width: 66ch; }
.email-box .actions { margin-top: 1rem; }
.status { min-height: 1.6em; margin: 0.75rem 0 0; font-weight: 700; }
.link-list { list-style: none; padding: 0; max-width: 66ch; }
.link-list li { margin-bottom: 0.75rem; min-height: 44px; display: flex; align-items: center; }
dt { font-weight: 700; margin-top: 1.25rem; }
dd { margin: 0.25rem 0 0; max-width: 66ch; }
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-block: 3rem; }
.site-footer h2 { font-size: 1.5rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 0.18em; cursor: help; }

@media (forced-colors: active) {
  button[aria-pressed="true"] { border-width: 4px; text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Press 0 additions */
.press-name { font-weight: 700; color: var(--fg); display: inline-flex; align-items: center; min-height: 44px; }
.brand { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; }
.brand .sep { color: var(--muted); }
