:root { color-scheme: light; --paper: #fff; --ink: #181817; --muted: #71716d; --rule: #d5d5cf; --lawn-height: clamp(240px, 43svh, 460px); }
* { box-sizing: border-box; }
html { min-width: 280px; }
body { display: flex; flex-direction: column; min-height: 100svh; margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--ink); outline-offset: 6px; }
::selection { background: #e5e5df; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 5; top: -80px; left: 24px; background: #181817; color: white; padding: 12px 16px; }
.skip-link:focus { top: 16px; }
.page { position: relative; isolation: isolate; width: min(1600px, calc(100% - 88px)); min-height: 100svh; flex: 1; margin-inline: auto; padding-top: 29px; display: flex; flex-direction: column; }
.masthead, .site-footer { position: relative; z-index: 1; }
.masthead { position: relative; display: flex; flex-direction: column; flex: 1; border-bottom: 1px solid var(--rule); }
.topline { align-items: flex-start; position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; font-size: .75rem; color: var(--muted); line-height: 1.4; }
.topline nav { margin-top: -12px; padding-bottom: 0; flex-shrink: 0; color: var(--ink); }
.topline span:last-child { text-align: right; }
.scene-stage { position: relative; flex: 1; min-height: 280px; margin-top: 5px; }
canvas { display: block; width: 100%; height: 100%; }
.sky-layer { position: absolute; z-index: 0; top: 0; left: 0; width: 100%; height: calc(100% - var(--lawn-height) + 64px); overflow: hidden; pointer-events: none; mask-image: linear-gradient(to bottom, #000 85%, transparent); }
.grass-strip { position: absolute; z-index: 0; bottom: 0; left: 0; height: var(--lawn-height); background: linear-gradient(to bottom, rgba(245,245,243,0), rgba(245,245,243,.42) 60%, rgba(245,245,243,.14)); width: 100%; overflow: hidden; pointer-events: none; }
.header-baseline { position: relative; z-index: 1; display: flex; justify-content: flex-end; align-items: flex-end; gap: 24px; padding: 0 0 22px; }
nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 46px); padding-bottom: 3px; }
nav a { position: relative; padding: 12px 0; font-size: .875rem; line-height: 1; }
nav a::after { content: ''; position: absolute; height: 1px; bottom: 4px; left: 0; right: 0; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s; }
nav a:hover::after, nav a[aria-current]::after { transform: scaleX(1); }
.wordmark { text-align: right; }
h1 { font-size: clamp(2.3rem, 3.8vw, 4.4rem); letter-spacing: -.075em; line-height: .82; font-weight: 600; margin: 0; }
.content-panel { position: absolute; z-index: 2; top: 50%; right: 6%; transform: translateY(-50%); width: min(560px, 88%); max-height: calc(100% - 24px); overflow-y: auto; padding: 30px; background: rgba(255, 255, 255, .95); }
.panel-close { display: inline-block; margin-bottom: 24px; color: var(--muted); font-size: .75rem; text-decoration: underline; text-underline-offset: 4px; }
.section-note { display: block; margin-bottom: 22px; font-size: .75rem; line-height: 1.4; color: var(--muted); }
.content-panel h2, .content-panel > p { margin: 0; font-size: clamp(1.35rem, 2.15vw, 2rem); font-weight: 400; line-height: 1.27; letter-spacing: -.035em; text-wrap: pretty; }
.content-panel h2 { margin-bottom: 20px; }
.content-panel h2:focus { outline: none; }
.content-panel > .panel-secondary { color: var(--muted); font-size: .875rem; letter-spacing: -.01em; margin-top: 24px; line-height: 1.5; }
.site-footer { display: flex; justify-content: flex-end; align-items: center; gap: 20px; min-height: 54px; color: var(--muted); font-size: .75rem; line-height: 1.4; }
@media (min-width: 1600px) { .page { position: relative; isolation: isolate; width: calc(100% - 112px); } }
@media (max-width: 700px) {
  .page { position: relative; isolation: isolate; width: calc(100% - 36px); padding-top: 20px; }
  .topline { font-size: .75rem; gap: 12px; }
  .topline nav { margin-top: -12px; padding-bottom: 0; flex-shrink: 0; }
.topline span:last-child { max-width: 140px; }
  .scene-stage { min-height: 300px; margin-top: 10px; }
  .header-baseline { padding-bottom: 19px; gap: 12px; }
  nav { gap: 20px; flex-wrap: wrap; }
  nav a { font-size: .875rem; }
  h1 { font-size: clamp(2rem, 7.5vw, 3rem); }
  .content-panel { right: 0; width: 100%; padding: 24px 18px; }
  .content-panel h2, .content-panel > p { font-size: clamp(1.4rem, 5.8vw, 1.75rem); line-height: 1.28; }
  .content-panel h2 { margin-bottom: 15px; }
  .site-footer { font-size: .75rem; min-height: 55px; }
}
@media (max-width: 370px) { nav { gap: 14px; } nav a { font-size: .8rem; } h1 { font-size: 1.9rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
