:root {
  color-scheme: dark;
  --bg: #0b0a0d;
  --text: #ece9ef;
  --muted: #8e8993;
  --line: #2a272e;
  --accent: #b7a6ee;
  --sans: Arial, Helvetica, sans-serif;
  --mono: Consolas, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); }
a { color: inherit; }
.skip-link { position: fixed; left: 16px; top: -60px; padding: 8px 12px; background: var(--text); color: var(--bg); z-index: 10; }
.skip-link:focus { top: 16px; }

header, main, footer { width: min(700px, calc(100% - 40px)); margin-inline: auto; }
header { height: 92px; display: flex; align-items: center; justify-content: space-between; }
.home { font-weight: 700; text-decoration: none; letter-spacing: -.03em; }
.home::first-letter { color: var(--text); }
nav { display: flex; gap: 28px; }
nav a { color: var(--muted); font: .78rem var(--mono); text-decoration: none; }
nav a:hover { color: var(--text); }

.intro-section { padding: 58px 0 120px; }
.hero-visual { position: relative; aspect-ratio: 16/10; margin: 0 0 42px; overflow: hidden; background: #070609; }
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; filter: grayscale(.45) contrast(.92); opacity: .82; }
.hero-visual figcaption { position: absolute; right: 10px; bottom: 7px; margin: 0; color: rgba(236,233,239,.52); font: .68rem var(--mono); }
.overline, .section-head > p, .project-meta, .tools, dt { font: .72rem/1.45 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.overline { margin: 0 0 14px; color: var(--muted); }
h1 { margin: 0; font-size: clamp(2.45rem, 5.2vw, 3.25rem); line-height: 1.06; letter-spacing: -.045em; font-weight: 600; }
h1 span { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.intro { max-width: 620px; margin: 26px 0 0; color: #aaa5ae; font-size: 1.08rem; }

section:not(.intro-section) { padding: 90px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 100px 1fr; gap: 20px; margin-bottom: 48px; }
.section-head > p { margin: 5px 0 0; color: var(--muted); }
h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.25rem); line-height: 1.15; letter-spacing: -.035em; font-weight: 600; }

.project { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 42px 0; border-top: 1px solid var(--line); }
.project:first-of-type { border-top-color: #58525f; }
.project-meta { color: var(--muted); }
.project h3 { margin: 0 0 18px; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.025em; font-weight: 600; }
.project p { margin: 0 0 18px; color: #9f9aa4; }
.project .project-lead { color: #c4bfc8; font-size: 1.04rem; }
.notes { margin-top: 30px; }
.notes p { padding: 16px 0; margin: 0; border-top: 1px solid var(--line); }
.notes strong { display: block; margin-bottom: 4px; color: var(--text); font-weight: 500; }
.tools { margin-top: 26px !important; color: var(--accent) !important; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.about p { margin: 0; color: #aaa5ae; }
.facts { margin: 46px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); }
dd { margin: 0; }
.contact a { display: inline-block; margin-left: 120px; color: var(--accent); font-size: 1.08rem; text-underline-offset: 5px; }

footer { display: flex; justify-content: space-between; padding: 26px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font: .7rem var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (max-width: 560px) {
  header, main, footer { width: min(100% - 28px, 700px); }
  header { height: 72px; }
  nav { gap: 16px; }
  .intro-section { padding-top: 30px; padding-bottom: 90px; }
  .hero-visual { margin-bottom: 32px; }
  .section-head, .project { grid-template-columns: 1fr; gap: 12px; }
  .section-head { margin-bottom: 34px; }
  .project { gap: 18px; }
  .project-meta br { display: none; }
  .about { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 3px; }
  .contact a { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
