:root {
  --ink: #19191c;
  --paper: #f4f3f0;
  --paper-alt: #efefeb;
  --paper-bright: #fbfaf7;
  --lilac: #745ee8;
  --lilac-deep: #5641d7;
  --lilac-soft: #e7e0ff;
  --line: rgb(25 25 28 / 19%);
  --line-strong: rgb(25 25 28 / 34%);
  --muted: rgb(25 25 28 / 67%);
  --faint: rgb(25 25 28 / 45%);
  --content-max: 1440px;
  font-family: "IBM Plex Mono", monospace;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; min-width: 320px; min-height: 100%; overflow-x: hidden; color: var(--ink); background: transparent; -webkit-font-smoothing: antialiased; }
body, button, input, select, textarea, a { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { color: inherit; border-radius: 0; }
::selection { color: var(--paper); background: var(--ink); }
[id] { scroll-margin-top: 80px; }
:focus-visible { outline: 2px solid var(--lilac-deep); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 12px;
  color: var(--paper);
  background: var(--ink);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: translateY(-170%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

.field-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--paper);
  transform: translateZ(0);
}
.ascii-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  opacity: .98;
  mix-blend-mode: multiply;
  transform: translateZ(0);
}
.ascii-fallback {
  position: absolute;
  top: 48%;
  left: 66%;
  z-index: 0;
  width: 46rem;
  margin: 0;
  color: var(--lilac-deep);
  font: 500 clamp(16px, 1.7vw, 28px) / 1.1 "IBM Plex Mono", monospace;
  letter-spacing: .08em;
  white-space: pre;
  opacity: .25;
  transform: translate(-50%, -50%) rotate(-8deg) scale(1.25);
  transition: opacity .35s ease;
}
.field-ready .ascii-fallback { opacity: 0; }
.field-wash {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgb(244 243 240 / 48%) 0%, rgb(244 243 240 / 10%) 43%, transparent 67%),
    linear-gradient(180deg, rgb(244 243 240 / 14%) 0%, transparent 32%, transparent 72%, rgb(244 243 240 / 10%) 100%);
}
.page-frame { position: absolute; inset: 18px; z-index: 3; border: 1px solid var(--line); }

.site-header, main, .site-footer { position: relative; z-index: 5; }
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  min-height: 78px;
  padding: 0 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .13em;
  background: linear-gradient(180deg, rgb(244 243 240 / 90%) 0%, rgb(244 243 240 / 48%) 62%, transparent 100%);
}
.wordmark, .site-links a { text-decoration: none; }
.wordmark { justify-self: start; font-weight: 500; }
.wordmark span { color: var(--faint); font-weight: 400; }
.site-links { display: flex; align-items: center; gap: 28px; }
.site-links a, .nav-button {
  padding: 0;
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: 9px;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.site-links a:hover, .site-links a:focus-visible, .nav-button:hover, .nav-button:focus-visible { color: var(--ink); outline: none; }

.hero { position: relative; min-height: 100svh; overflow: hidden; }
.hero-copy {
  position: absolute;
  left: clamp(42px, 5vw, 82px);
  bottom: clamp(150px, 18vh, 210px);
  z-index: 5;
  width: min(1040px, calc(100vw - 84px));
  isolation: isolate;
}
.hero-copy::before {
  content: "";
  position: absolute;
  inset: -46px -90px -50px -32px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(244 243 240 / 94%) 0%, rgb(244 243 240 / 70%) 52%, rgb(244 243 240 / 8%) 82%, transparent 100%);
}
.hero h1 {
  max-width: 1080px;
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(66px, 7.8vw, 124px);
  font-weight: 400;
  line-height: .84;
  letter-spacing: -.05em;
}
.hero h1 em { display: block; padding-left: clamp(32px, 6vw, 108px); font-weight: 400; }
.coordinate-note {
  position: absolute;
  top: 50%;
  left: 42px;
  z-index: 5;
  margin: 0;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: .12em;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
}
.hero-scroll {
  position: absolute;
  left: 42px;
  bottom: 34px;
  z-index: 6;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .site-links { gap: 18px; }
}
@media (max-width: 760px) {
  .page-frame { inset: 10px; }
  .site-header { min-height: 66px; padding: 0 25px; }
  .site-links a:not(:last-of-type) { display: none; }
  .hero { min-height: 720px; }
  .hero-copy { left: 25px; bottom: 138px; width: calc(100vw - 50px); padding: 24px 18px 26px; }
  .hero-copy::before { inset: 0; border: 1px solid var(--line); background: rgb(244 243 240 / 84%); }
  .hero h1 { font-size: clamp(55px, 17vw, 80px); line-height: .88; }
  .hero h1 em { padding-left: 0; }
  .coordinate-note { display: none; }
  .hero-scroll { left: 25px; bottom: 72px; }
  .ascii-fallback { top: 42%; left: 72%; width: 30rem; font-size: 14px; opacity: .28; }
  .field-wash { background: linear-gradient(180deg, rgb(244 243 240 / 14%) 0%, transparent 40%, transparent 76%, rgb(244 243 240 / 8%) 100%); }
}
@media (max-height: 660px) and (min-width: 761px) {
  .hero-copy { bottom: 112px; }
  .hero h1 { font-size: 74px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ascii-fallback { transition: none; }
}
