:root {
  --background: #0d1117;
  --foreground: #f5ede1;
  --muted: #b9b6af;
  --accent: #ff9a73;
  --line: #303640;
  --surface: #151b23;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 16px/1.65 var(--font); }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, p { margin: 0; }
.wrap { width: calc(100% - 88px); max-width: 960px; margin: auto; }
.visually-hidden, .filters input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; left: 12px; top: 12px; padding: 10px 16px; transform: translateY(-180%); background: var(--foreground); color: var(--background); }
.skip-link:focus { transform: translateY(0); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.identity { display: flex; align-items: center; gap: 16px; }
.portrait { display: block; width: 64px; height: 80px; flex: none; border-radius: 4px; object-fit: cover; }
.name { display: inline-flex; align-items: center; min-height: 44px; font-size: 22px; font-weight: 500; }
.location { color: var(--muted); font-size: 12px; }
.vision { padding: 57px 0 51px; }
.vision h1 { font-size: clamp(36px, 5.4vw, 62px); font-weight: 550; line-height: 1.14; letter-spacing: -.045em; }
.vision h1 span { color: var(--accent); }
.work { scroll-margin-top: 20px; }
.work:focus { outline: none; }
.filters { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; margin: 0 0 23px; padding: 0; border: 0; }
.filters label { position: relative; cursor: pointer; }
.filters label > span { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 24px; color: var(--muted); font-size: 12px; line-height: 1.3; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.filters small { font-size: 10px; font-variant-numeric: tabular-nums; opacity: .8; }
.filters input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--background); }
.filters input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 4px; }
.project-list { border-top: 1px solid var(--line); }
.project { border-bottom: 1px solid var(--line); scroll-margin-top: 20px; transition: background .2s ease; }
.project summary { display: grid; grid-template-columns: minmax(0, 1fr) 105px; align-items: start; gap: 20px; padding: 24px 16px; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.project summary::-webkit-details-marker { display: none; }
.project-overview { display: block; min-width: 0; }
.project-title { display: block; font-size: 23px; font-weight: 600; line-height: 1.4; letter-spacing: -.025em; transition: color .2s ease, transform .2s ease; }
.project-description { display: block; max-width: 65ch; margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.project-end { display: flex; justify-content: flex-end; align-items: center; gap: 12px; min-height: 33px; }
.status { color: var(--muted); font-size: 10px; white-space: nowrap; }
.toggle { position: relative; flex: none; width: 26px; height: 26px; }
.toggle::before, .toggle::after { content: ""; position: absolute; left: 8px; top: 12px; width: 10px; height: 1px; background: var(--muted); transition: transform .22s ease, background .2s ease; }
.toggle::after { transform: rotate(90deg); }
.project[open] { background: var(--surface); }
.project[open] .project-title { color: var(--accent); }
.project[open] .toggle::before, .project[open] .toggle::after { background: var(--accent); }
.project[open] .toggle::after { transform: rotate(0); }
.project-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin: 0 16px; padding: 0 0 20px; }
.project-notes { color: var(--muted); font-size: 12px; line-height: 1.7; }
.project-actions { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.project-actions a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; color: var(--accent); font-size: 13px; font-weight: 600; }
.project-actions .secondary-action { color: var(--muted); font-weight: 400; }
.project-actions a:hover { text-decoration: underline; text-underline-offset: 5px; }
.work:has(#filter-gym:checked) .project:not([data-category="gym"]),
.work:has(#filter-surf:checked) .project:not([data-category="surf"]),
.work:has(#filter-videos:checked) .project:not([data-category="videos"]),
.work:has(#filter-tools:checked) .project:not([data-category="tools"]),
.work:has(#filter-code:checked) .project:not([data-category="code"]) { display: none; }
footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 26px 0 30px; color: var(--muted); }
.elsewhere { display: flex; flex-wrap: wrap; gap: 0 23px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-size: 12px; }
footer a:hover { color: var(--accent); }
.back { white-space: nowrap; }
@media (hover: hover) {
  .filters label:hover > span { border-color: var(--accent); color: var(--foreground); }
  .filters label:hover input:checked + span { color: var(--background); }
  .project summary:hover .project-title { color: var(--accent); transform: translateX(3px); }
}
@media (max-width: 900px) {
  .wrap { width: calc(100% - 60px); }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 40px); }
  .masthead { gap: 16px; padding: 17px 0; }
  .identity { gap: 14px; }
  .portrait { width: 56px; height: 70px; }
  .location { font-size: 11px; line-height: 1.45; }
  .vision { padding: 34px 0; }
  .vision h1 { font-size: clamp(34px, 8.6vw, 48px); line-height: 1.17; }
  .desktop-break { display: none; }
  .filters { gap: 6px; margin-bottom: 21px; }
  .filters label > span { gap: 7px; padding: 9px 11px; font-size: 11px; }
  .project summary { grid-template-columns: minmax(0, 1fr) 30px; gap: 12px; padding: 21px 8px; position: relative; }
  .project-title { font-size: 21px; }
  .project-description { margin-right: -30px; margin-top: 8px; font-size: 14px; line-height: 1.7; }
  .project-end { position: static; }
  .status { position: absolute; top: 54px; left: 8px; font-size: 10px; }
  .project:has(.status) .project-description { margin-top: 27px; }
  .project-panel { margin: 0 8px; padding-bottom: 17px; gap: 8px; }
  .project-notes { font-size: 11px; }
  .project-actions { gap: 0 22px; }
  footer { display: block; padding: 22px 0; }
  .elsewhere { gap: 0 20px; }
  .back { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .filters, .toggle, .skip-link, .back { display: none; }
  .work .project { display: block !important; break-inside: avoid; }
  .project { background: transparent; }
}
