:root {
  --paper: #F4F1EA;
  --ink: #141414;
  --muted: #5A5650;
  --soft: #3D3A35;
  --line: #CFC9BE;
  --accent: #B00E28;
  --night: #0E0B0D;
  --serif: 'Newsreader', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; font-family: var(--mono); font-size: 13px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } body { font-size: 18px; } }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(244, 241, 234, 0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--ink); }
.top-inner { display: flex; flex-wrap: wrap; gap: 4px 40px; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.name { font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: 0.14em; text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 0 24px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; }
.top nav a { text-decoration: none; padding: 10px 0; }

/* shared */
.label { margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; color: var(--muted); }
.rule { padding-bottom: 10px; border-bottom: 1px solid var(--ink); margin-bottom: 8px; }
.accent { color: var(--accent); }
.no { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.04em; }
.meta { margin: 6px 0 0; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--muted); }
.out { display: inline-block; margin-top: 14px; padding: 10px 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; }
.section { padding-top: 32px; padding-bottom: 72px; }
h3 { margin: 8px 0 0; font-weight: 400; font-size: 28px; line-height: 1.2; }
blockquote { margin: 18px 0 0; padding-left: 18px; border-left: 2px solid var(--accent); font-style: italic; }
cite { font-style: italic; }

/* hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 88px; padding-bottom: 64px; }
.hero-main { flex: 999 1 560px; min-width: 0; }
.hero h1 { margin: 26px 0 0; font-size: clamp(46px, 7vw, 80px); line-height: 1.02; font-weight: 400; letter-spacing: -0.015em; }
.lede { margin: 32px 0 0; max-width: 640px; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.5; }
.lede s { text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.lede sup a { font-family: var(--mono); font-size: 12px; color: var(--accent); text-decoration: none; padding: 4px; }
.margin-note { flex: 1 1 220px; max-width: 290px; align-self: flex-end; border-top: 1px solid var(--accent); padding-top: 14px; }
.margin-note p { margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--soft); }

.hero-figure { margin-top: 0; margin-bottom: 72px; }
.hero-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--night); }
.hero-figure figcaption { margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }

/* research + about */
.two-col { display: flex; flex-wrap: wrap; gap: 32px 56px; padding-top: 20px; }
.prose { flex: 999 1 520px; min-width: 0; }
.prose p { margin: 0 0 18px; font-size: 21px; line-height: 1.55; }
.aside-mono { flex: 1 1 240px; max-width: 300px; margin: 4px 0 0; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--soft); border-top: 1px solid var(--line); padding-top: 14px; }

/* films */
.film-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 48px 32px; padding-top: 24px; }
.work { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.thumb { display: block; width: 100%; margin-bottom: 12px; background: var(--night); }
.thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: opacity 0.2s; }
.thumb:hover img { opacity: 0.85; }
details { margin-top: 12px; width: 100%; }
summary { cursor: pointer; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; padding: 8px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+ "; color: var(--accent); }
details[open] summary::before { content: "− "; }
details p { margin: 10px 0 0; font-size: 17px; line-height: 1.6; color: var(--soft); }
.credit { font-family: var(--mono); font-size: 12px !important; color: var(--muted) !important; }
.poem { margin: 14px 0 18px; padding: 18px 0 4px 20px; border-left: 2px solid var(--accent); }
.poem p { margin: 0 0 16px; font-size: 18px; line-height: 1.5; color: var(--ink); }

/* entries */
.entry { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.entry > .no { flex: 0 0 90px; padding-top: 12px; }
.entry-body { flex: 999 1 480px; min-width: 0; max-width: 760px; }
.entry-body > p:not(.meta) { margin: 14px 0 0; font-size: 19px; }

/* paintings */
.paint-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 40px 28px; padding-top: 24px; }
.paint-grid figure { margin: 0; }
.paint-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #E9E4DA; }
.paint-grid figcaption { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; gap: 12px; }

/* about */
.facts { flex: 1 1 240px; max-width: 300px; margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.6; border-top: 1px solid var(--ink); }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { letter-spacing: 0.12em; color: var(--muted); }
.facts dd { margin: 4px 0 0; }
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 36px 48px; margin-top: 56px; }
.quotes blockquote { margin: 0; font-size: 20px; line-height: 1.5; }
.quotes blockquote p { margin: 0; }
.quotes footer { margin-top: 10px; font-family: var(--mono); font-style: normal; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }

/* footer */
.foot { border-top: 1px solid var(--ink); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 8px 40px; justify-content: space-between; padding-top: 28px; padding-bottom: 44px; font-family: var(--mono); font-size: 13px; color: var(--soft); }
.foot p { margin: 0; }
.aside-mono p { margin: 0 0 12px; }
.aside-mono p:first-child { letter-spacing: 0.12em; color: var(--muted); }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); text-wrap: balance; }
.manifesto p { font-size: 17px; }
