:root {
  --bg: #0e0e0f;
  --bg-2: #161617;
  --line: #2a2a2c;
  --text: #ececea;
  --muted: #9a9a96;
  --accent: #d9b26f;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --max: 120rem;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
a { color: inherit; text-decoration-color: var(--muted); text-underline-offset: 0.2em; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #000; padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.25rem var(--pad); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(14,14,15,.94); z-index: 5; }
.brand { font-weight: 600; text-decoration: none; letter-spacing: .01em; }
.site-header ul { display: flex; gap: clamp(.9rem, 2.5vw, 2rem); list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-header nav a { text-decoration: none; color: var(--muted); font-size: .95rem; padding: .25rem 0; border-bottom: 1px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

main > section, main > article > section { padding-inline: var(--pad); max-width: var(--max); margin-inline: auto; }
.hero, .page-head { padding-block: clamp(4rem, 12vw, 10rem) clamp(2.5rem, 6vw, 5rem); }
.page-head { padding-block: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3rem); }
.eyebrow { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.5rem; }
.eyebrow a { text-decoration: none; }
h1 { font-size: clamp(2.5rem, 7.5vw, 7rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; margin: 0 0 2rem; max-width: 20ch; text-wrap: balance; }
.page-head h1 { font-size: clamp(2.2rem, 5.5vw, 4.75rem); max-width: 24ch; }
.lead { font-size: clamp(1.15rem, 2vw, 1.75rem); line-height: 1.4; color: var(--muted); max-width: 44ch; margin: 0 0 2rem; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2.5rem; }
.btn { display: inline-block; padding: .8rem 1.4rem; border: 1px solid var(--accent); background: var(--accent); color: #111; text-decoration: none; font-weight: 600; transition: background .2s, color .2s; }
.btn:hover { background: transparent; color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.arrow { text-decoration: none; color: var(--accent); }
.arrow:hover { text-decoration: underline; }

.band { padding-block: clamp(2.5rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: minmax(10rem, 1fr) 3fr; gap: 2rem; }
.label { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head p { margin: 0; }
.big { font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5rem; }
.big.small { font-size: clamp(1.2rem, 2vw, 1.6rem); margin-top: 1rem; }
.huge { font-size: clamp(1.25rem, 3vw, 2.25rem); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 1rem; word-break: break-word; }
.huge a { text-decoration: none; }
.muted { color: var(--muted); }
.small-h { font-size: 1rem; margin: 1.5rem 0 .25rem; color: var(--accent); font-weight: 500; }
.small-h:first-child { margin-top: 0; }

.cards { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.card { background: var(--bg); border-bottom: 1px solid var(--line); transition: background .2s; }
.card-body { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 1.5rem; align-items: start; padding: 1.25rem .5rem; height: 100%; text-decoration: none; }
.card:hover { background: var(--bg-2); }
.thumb { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: var(--bg-2); }
.card h3 { font-size: 1.25rem; letter-spacing: -.01em; margin: .25rem 0 .5rem; line-height: 1.2; }
.card p { margin: 0 0 .5rem; max-width: 70ch; }
.tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0; }
.tag-independent { color: #8fb4d9; }
.tag-experiment { color: #a9c98a; }
.meta { color: var(--muted); font-size: .9rem; }
.more { color: var(--accent); font-size: .9rem; }

.practice { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; }
.practice li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.practice li:first-child { border-top: 0; }
.grid-2 .practice { margin-top: 0; }
.p-title { font-size: clamp(1.15rem, 2vw, 1.6rem); letter-spacing: -.01em; }
.p-text { color: var(--muted); }

.entry { display: grid; grid-template-columns: minmax(10rem, 1fr) 3fr; gap: 2rem; }
.entry-meta .dates { font-family: var(--mono); font-size: .85rem; margin: 0 0 .25rem; }
.entry h2 { font-size: clamp(1.8rem, 4vw, 3.25rem); letter-spacing: -.025em; margin: 0; line-height: 1.1; }
.entry h2 a { text-decoration: none; }
.entry h4 { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin: 2rem 0 .5rem; }
.plain { padding: 0; margin: 0; list-style: none; max-width: 70ch; }
.plain li { padding: .45rem 0 .45rem 1.1rem; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0; top: 1.1em; width: .5rem; height: 1px; background: var(--accent); }
.prose p { font-size: clamp(1.1rem, 1.6vw, 1.4rem); max-width: 60ch; margin: 0 0 1.25rem; }

.facts { margin: 0; }
.facts .row { display: grid; grid-template-columns: minmax(10rem, 1fr) 3fr; gap: 2rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.facts .row:first-child { border-top: 0; }
.facts dt { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; }
figure { margin: 2rem 0 0; }
figure img { max-width: 100%; max-height: 32rem; width: auto; }
figure video { width: 100%; }
figure img, figure video { height: auto; display: block; border: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1.25rem; margin-top: 2rem; align-items: start; }
.gallery figure { margin: 0; }
.gallery figure img { width: 100%; height: 14rem; max-height: none; object-fit: contain; background: var(--bg-2); }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.snippet { margin: 1.5rem 0 0; }
.snippet figcaption { font-size: .95rem; margin-bottom: .25rem; }
.snippet p { margin: 0 0 .75rem; max-width: 70ch; }
.snippet pre { margin: 0; padding: 1rem 1.25rem; overflow-x: auto; background: var(--bg-2); border: 1px solid var(--line); font-family: var(--mono); font-size: .82rem; line-height: 1.55; tab-size: 4; }
.snippet code { font-family: inherit; }
figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; }

.site-footer { border-top: 1px solid var(--line); padding: 3rem var(--pad); display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; color: var(--muted); font-size: .95rem; }
.site-footer p { margin: 0 0 .25rem; }
.footer-name { color: var(--text); font-weight: 600; }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

.portrait { margin: 0; }
.portrait img { display: block; width: 100%; height: auto; border-radius: 1.25rem; background: #000; box-shadow: 0 0 0 1px var(--line), 0 1.5rem 4rem rgba(0,0,0,.5); }
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-block-start: clamp(2rem, 5vw, 4rem); }
.hero-portrait { width: clamp(9rem, 16vw, 14rem); justify-self: end; }
.about-portrait { width: clamp(8rem, 14vw, 12rem); }
.about-head { align-items: center; }

@media (max-width: 52rem) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-portrait { justify-self: start; width: 10rem; }
  .card-body { grid-template-columns: 1fr; gap: .75rem; }
  .thumb { max-width: 16rem; }
  .grid-2, .entry, .facts .row, .practice li { grid-template-columns: 1fr; gap: .5rem; }
  .site-header { position: static; }
}
