:root {
  color-scheme: light;
  --bg: #faf9f6;
  --ink: #30322f;
  --muted: #656761;
  --line: #ddded7;
  --focus: #38665e;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #191a18; --ink: #e4e5de; --muted: #a5a79e; --line: #373a33; --focus: #aacac0;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #191a18; --ink: #e4e5de; --muted: #a5a79e; --line: #373a33; --focus: #aacac0;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: 32px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; transition: text-decoration-color 150ms ease; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; border-radius: 2px; }
.page { position: relative; width: min(600px, calc(100% - 48px)); margin-inline: auto; padding-top: 100px; }
h1, h2, h3, p, blockquote { margin: 0; }
h1, h2, h3 { font-size: 1rem; font-weight: 500; line-height: 1.5; }
h1 { margin-bottom: 28px; }
.name { text-decoration: none; }
.hero { margin-bottom: 64px; }
.intro { margin-bottom: 18px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero .links { margin-top: 26px; font-size: 14px; color: var(--muted); }
section:not(.hero) { margin-bottom: 58px; }
h2 { margin-bottom: 26px; color: var(--muted); font-size: 14px; font-weight: 400; }
.work-list, .experience-list, .quotes { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.work-item { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; }
.work-item p, .experience-copy, #advisory p, #contact p { color: var(--muted); }
.work-item h3 { line-height: 1.65; }
.experience-item h3 { margin-bottom: 2px; }
.role { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.experience-copy { line-height: 1.65; }
.quotes { gap: 26px; }
blockquote { margin-bottom: 8px; }
cite { display: block; font-size: 13px; line-height: 1.6; color: var(--muted); font-style: normal; }
#advisory p, #contact p { margin-bottom: 18px; }
#contact .links { font-size: 14px; }
.theme-control { position: absolute; right: 0; top: 100px; display: flex; align-items: center; font-size: 12px; color: var(--muted); }
.theme-control[hidden] { display: none; }
.theme-control label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
select { font: inherit; color: inherit; background: var(--bg); border: 0; padding: 4px; cursor: pointer; max-width: 100%; }
footer { margin-top: 72px; }
.footer-meta { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 18px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-meta small { font-size: inherit; }
.footer-meta .links { gap: 10px 16px; }
.coast { width: min(900px, calc(100vw - 16px)); position: relative; left: 50%; transform: translateX(-50%); margin-top: 12px; mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 82%, transparent); }
.coast::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, var(--bg), transparent 12%, transparent 88%, var(--bg)); }
.coast img { display: block; width: 100%; height: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 2; padding: 8px 12px; background: var(--bg); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 600px) {
  .page { padding-top: 56px; }
  .theme-control { top: 56px; }
  .hero { margin-bottom: 50px; }
  section:not(.hero) { margin-bottom: 46px; }
  .work-item { grid-template-columns: 1fr; gap: 6px; }
  h2 { margin-bottom: 22px; }
  footer { margin-top: 54px; }
  .footer-meta { flex-direction: column; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { a { transition: none; } }
