:root {
  color-scheme: dark;
  --coal: #171916;
  --paper: #f2f0e9;
  --acid: #d4fc55;
  --muted: #b4b9a8;
  --gutter: clamp(1.25rem, 7vw, 8rem);
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--coal);
  color: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
section { scroll-margin-top: 4rem; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 20; padding: .75rem; background: var(--coal); transform: translateY(-150%); }
.skip:focus { transform: none; }
.nav {
  position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; padding: 0 var(--gutter); height: 4rem;
  background: #171916f2; border-bottom: 1px solid #ffffff25;
}
.brand { font-size: 1.4rem; font-weight: 900; letter-spacing: -.1em; }
.brand span, .hero h1 span { color: var(--acid); }
.nav nav { display: flex; gap: clamp(.75rem, 3vw, 2.75rem); font-size: .875rem; }
.nav nav a:hover { color: var(--acid); }
.progress { position: absolute; inset: auto 0 0; height: 2px; background: var(--acid); transform: scaleX(var(--progress, 0)); transform-origin: left; }
.hero { height: 150vh; height: 150svh; }
.hero-frame {
  --scene: 0;
  position: sticky; top: 4rem; min-height: 33rem; height: calc(100svh - 4rem);
  overflow: hidden; isolation: isolate; display: grid; align-items: center; padding: 2rem var(--gutter);
  background: radial-gradient(ellipse at 73% 52%, #3b4828 0, #232b20 33%, var(--coal) 68%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -2; opacity: .35;
  background-image: linear-gradient(#a7b88e22 1px, transparent 1px), linear-gradient(90deg, #a7b88e22 1px, transparent 1px);
  background-size: 4.5rem 4.5rem; mask-image: linear-gradient(90deg, transparent, black);
}
.orb {
  position: absolute; z-index: -1; left: 70%; top: 50%;
  width: min(54vw, 70vh); aspect-ratio: 1; display: grid; place-items: center;
  transform: translate(-50%, -50%) scale(calc(1 + var(--scene) * .34)) rotate(calc(var(--scene) * -32deg));
  color: var(--acid);
}
.orb span {
  font-size: clamp(4rem, 17vw, 16rem); font-weight: 900; letter-spacing: -.13em;
  padding-right: .13em; color: transparent; -webkit-text-stroke: 1px #d4fc5590;
  transform: rotate(-12deg); user-select: none;
}
.orbit {
  position: absolute; inset: 5%; border: 1px solid #d4fc5595; border-radius: 50%;
  box-shadow: 0 0 35px #d4fc5526, inset 0 0 25px #d4fc5520;
  transform: rotate(-32deg) scaleY(.57);
}
.orbit:nth-child(2) { transform: rotate(26deg) scaleY(.66); }
.orbit:nth-child(3) { transform: rotate(82deg) scaleY(.78); border-color: #d4fc554a; }
.hero-copy { transform: translateY(calc(var(--scene) * -36px)); }
.label { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .10em; }
.dot { display: inline-block; width: .5rem; height: .5rem; margin-right: .55rem; background: var(--acid); border-radius: 50%; vertical-align: .12em; }
h1, h2 { font-weight: 800; letter-spacing: -.083em; line-height: .92; }
h1 { font-size: clamp(4.25rem, 12vw, 12rem); margin: 1.25rem 0 2rem; }
h2 { font-size: clamp(3.45rem, 9vw, 9rem); }
.pill { display: inline-flex; padding: .85rem 1.35rem; border-radius: 5rem; background: var(--acid); color: var(--coal); font-weight: 700; }
.pill:hover { background: var(--paper); }
.pad { padding: clamp(4rem, 10vw, 10rem) var(--gutter); }
.work { background: var(--paper); color: var(--coal); }
.section-top { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 1.25rem 3rem; margin-bottom: 3rem; }
.section-top .label { margin-bottom: 1rem; }
.panel-copy > p:not(.label) { max-width: 32ch; font-size: clamp(1rem, 2vw, 1.4rem); line-height: 1.55; }
.work h2 span { color: #526610; }
.work-panel { display: grid; grid-template-columns: 1.45fr 1fr; min-height: 23rem; background: #e4e6d9; }
.work-art { position: relative; overflow: hidden; min-height: 16rem; background: #26331f; }
.work-art i {
  position: absolute; width: 68%; height: 33%; top: 34%; left: 16%; border: 1px solid #d4fc55aa;
  border-radius: 50%; transform: rotate(-35deg); box-shadow: inset 0 0 30px #d4fc5524;
}
.work-art i:nth-child(2) { transform: translateY(-15%) rotate(-20deg); }
.work-art i:nth-child(3) { transform: translateY(-30%) rotate(-5deg); }
.work-art i:nth-child(4) { transform: translateY(15%) rotate(-50deg); }
.work-art i:nth-child(5) { transform: translateY(30%) rotate(-65deg); }
.panel-copy { display: grid; align-content: center; gap: 1rem; padding: clamp(1.5rem, 5vw, 4rem); }
.panel-copy h3 { font-size: clamp(1.8rem, 4vw, 3.5rem); letter-spacing: -.06em; line-height: 1; }
.experience { display: grid; grid-template-columns: 1.2fr 1fr; align-items: start; gap: 2rem 4rem; }
.experience h2 { margin-top: 1rem; }
.experience h2 span { color: var(--acid); }
footer { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid #17191665; margin-top: 4rem; padding-top: 1.25rem; font-weight: 700; }
footer a:hover { text-decoration: underline; }
.motion .reveal { opacity: 0; transform: translateY(28px); transition: transform .65s ease, opacity .65s ease; }
.motion .reveal.visible, .motion .reveal:focus-within { opacity: 1; transform: none; }
@media (max-width: 720px) {
  .hero { height: 132svh; }
  .orb { top: 28%; left: 67%; width: min(85vw, 46vh); }
  .hero-frame { align-items: end; padding-bottom: 5rem; }
  .hero-grid { mask-image: none; }
  .section-top, .work-panel, .experience { grid-template-columns: 1fr; }
}
@media (max-height: 620px) {
  .hero { height: auto; }
  .hero-frame { position: relative; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .hero-frame { position: relative; }
  .motion .reveal { opacity: 1; transform: none; transition: none; }
  .hero-copy { transform: none; }
  .orb { transform: translate(-50%, -50%); }
}
.positioning { max-width: 27ch; margin: -1rem 0 1.6rem; font-size: clamp(1rem, 2vw, 1.35rem); line-height: 1.35; }
.work-panel + .work-panel { margin-top: 1.25rem; }
.work-art { display: grid; place-items: center; isolation: isolate; }
.work-art strong { z-index: 1; color: var(--acid); font-size: clamp(3.5rem, 10vw, 9rem); letter-spacing: -.085em; }
.hero h1 { font-size: clamp(3.5rem, 10vw, 10rem); }
.site-footer { margin: 0; padding: 1.5rem var(--gutter); color: var(--muted); border-top-color: #ffffff30; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; }
.filters a { padding: .45rem .8rem; border: 1px solid #17191650; border-radius: 2rem; font-size: .875rem; }
.filters a:hover, .filters a[aria-current] { background: var(--coal); color: var(--paper); }
.text-link { width: fit-content; text-decoration: underline; text-underline-offset: .2em; font-weight: 700; }
.post-list { margin-top: 2rem; }
.post-list article { padding: 1.5rem 0; border-top: 1px solid #17191640; }
.post-list h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin: .5rem 0; }
.post-list article p:last-child { line-height: 1.5; }
.about { align-self: end; max-width: 44ch; color: var(--muted); font-size: 1.2rem; line-height: 1.65; }
.reading { max-width: 54rem; margin: 0 auto; padding: clamp(3rem, 8vw, 7rem) 1.5rem; }
.reading h1, .editor h1 { font-size: clamp(2.6rem, 7vw, 6rem); line-height: .99; letter-spacing: -.055em; }
.reading .label, .editor .label { color: var(--acid); }
.standfirst { color: var(--muted); font-size: clamp(1.15rem, 3vw, 1.6rem); line-height: 1.5; }
.byline { margin-top: 1.25rem; font-weight: 700; }
.article-body { border-top: 1px solid #ffffff35; margin: 2.5rem 0; padding-top: 2rem; }
.article-body p { font: 1.2rem/1.75 Georgia, serif; white-space: pre-line; margin: 0 0 1.4em; }
.article-body h2 { font-size: clamp(1.55rem, 4vw, 2.35rem); letter-spacing: -.035em; line-height: 1.15; margin: 1.5em 0 .6em; }
.article-body pre { background: #292d26; padding: 1rem; overflow: auto; }
.editor { padding-top: 3rem; }
.editor-grid { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 3fr); gap: 2rem; }
.editor aside ul { padding: 0; list-style: none; }
.editor aside li { margin: 1rem 0; }
.editor aside small { display: block; margin-top: .3rem; }
.editor form { display: grid; gap: .8rem; }
.editor label { display: grid; gap: .4rem; }
.editor input, .editor select, .editor textarea, .editor button {
  background: #292d26; color: var(--paper); border: 1px solid #ffffff50;
  border-radius: .4rem; padding: .7rem; font: inherit;
}
.editor textarea { resize: vertical; }
.editor small { color: var(--muted); }
.editor-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.editor button { cursor: pointer; }
.editor button.pill { background: var(--acid); color: var(--coal); }
.notice { border-left: .25rem solid var(--acid); padding: .8rem 1rem; margin-bottom: 1.5rem; background: #292d26; }
@media(max-width: 720px) { .editor-grid { grid-template-columns: 1fr; } }
