* { box-sizing: border-box; }

:root {
  color-scheme: dark;
  --bg: #141615;
  --panel: #1c1e1b;
  --text: #f3efe6;
  --muted: #bbbdb0;
  --line: #363b34;
  --accent: #dded92;
  font-family: system-ui, sans-serif;
  scroll-behavior: smooth;
}

body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.masthead, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.masthead { min-height: 76px; border-bottom: 1px solid var(--line); }
.brand { font-size: 1.45rem; font-weight: 850; letter-spacing: -.08em; text-decoration: none; }
.brand span, h1 span, .jump span { color: var(--accent); }
.jump { color: var(--muted); text-underline-offset: .28em; }
.jump span { margin-left: .25em; }
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 19rem);
  gap: clamp(1rem, 5vw, 4rem);
  align-items: end;
  padding-block: clamp(3rem, 11vw, 8rem) clamp(2.5rem, 7vw, 5rem);
}
.byline { margin: 0 0 .7rem; color: var(--accent); font-size: .95rem; }
h1 { margin: 0; font-size: clamp(2.75rem, 9.5vw, 8.5rem); letter-spacing: -.08em; line-height: .96; }
.lead { margin: 0 0 .25em; font-size: clamp(1.05rem, 2.3vw, 1.35rem); color: var(--muted); line-height: 1.55; }
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; }
.group { padding: clamp(1rem, 3vw, 2rem); background: var(--panel); border: 1px solid var(--line); }
.group h2 { margin: 0 0 1.05rem; font-size: 1.02rem; color: var(--muted); font-weight: 550; }
.group ul { padding: 0; margin: 0; list-style: none; }
.group li { border-top: 1px solid var(--line); }
.project { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: .8rem 0; text-decoration: none; }
.project:hover { color: var(--accent); }
.project strong { display: block; font-size: 1.12rem; font-weight: 675; }
.project small { display: block; margin-top: .2rem; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.project .arrow { color: var(--accent); font-size: 1.25rem; }
.footer { margin-top: 3rem; padding-block: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .intro { grid-template-columns: 1fr; align-items: start; }
  .lead { max-width: 29rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
