:root {
  --ink: #f5f0e7;
  --muted: rgba(245, 240, 231, .55);
  --dim: rgba(245, 240, 231, .19);
  --ground: #09090d;
  --acid: #b8ff6a;
  --bloom: #ff789f;
  color-scheme: dark;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { background: var(--ground); }
body {
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  background: var(--ground);
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", monospace;
  -webkit-font-smoothing: antialiased;
}
body::after {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; content: "";
  opacity: .13;
  background-image: repeating-linear-gradient(101deg, transparent 0 5px, rgba(255,255,255,.06) 5.5px, transparent 6px 13px);
  mix-blend-mode: overlay;
}
button, a { color: inherit; }
button { font: inherit; }
#habitat { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; cursor: crosshair; }
.glass {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(110deg, rgba(255,255,255,.075), transparent 18%, transparent 65%, rgba(255,255,255,.035)),
    radial-gradient(circle at 72% 24%, rgba(203,255,141,.07), transparent 33%),
    linear-gradient(90deg, rgba(9,9,13,.86) 0, rgba(9,9,13,.35) 43%, rgba(9,9,13,.08) 70%);
}
.head, main, .foot { position: relative; z-index: 4; }
.head {
  position: fixed; inset: max(26px, env(safe-area-inset-top)) 34px auto;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.wordmark { font-size: 10px; letter-spacing: .34em; text-decoration: none; }
.status { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 8px; letter-spacing: .15em; }
.status span { width: 7px; height: 7px; border-radius: 50%; background: #8b847e; box-shadow: 0 0 18px rgba(139,132,126,.4); }
.status[data-state="living"] span { background: var(--acid); box-shadow: 0 0 22px rgba(184,255,106,.75); animation: pulse 4.8s ease-in-out infinite; }
.status[data-state="late"] span { background: #ffb06a; box-shadow: 0 0 22px rgba(255,176,106,.65); }
.status b { font-weight: 400; }
main { min-height: 100svh; padding: clamp(118px, 15vh, 180px) 34px 96px; display: grid; align-content: space-between; width: min(690px, 65vw); }
.kicker { margin: 0 0 22px; color: var(--muted); font-size: 8px; letter-spacing: .23em; }
h1 { margin: 0; font: italic clamp(48px, 7.7vw, 126px)/.82 Iowan Old Style, Baskerville, Georgia, serif; letter-spacing: -.055em; }
h1 span { display: block; white-space: nowrap; }
h1 span:last-child { margin-left: clamp(22px, 5vw, 92px); color: transparent; -webkit-text-stroke: 1px rgba(245,240,231,.82); }
.lead { width: min(520px, 90%); margin: 30px 0 0; color: var(--muted); font: 12px/1.8 ui-monospace, monospace; }
.touch, .specimen-toggle, .method__close, .specimen__close, .foot button {
  padding: 0; border: 0; background: none; cursor: pointer; text-transform: uppercase;
}
.touch { margin-top: 24px; color: var(--acid); font-size: 9px; letter-spacing: .18em; border-bottom: 1px solid rgba(184,255,106,.4); padding-bottom: 7px; }
.local { display: inline; margin-left: 14px; color: rgba(245,240,231,.3); font-size: 7px; letter-spacing: .13em; }
.measure { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; margin: 48px 0 0; }
.measure div { border-top: 1px solid var(--dim); padding-top: 11px; }
.measure dt { color: var(--muted); font-size: 7px; line-height: 1.35; letter-spacing: .12em; text-transform: uppercase; }
.measure dd { margin: 7px 0 0; font: italic 19px/1 Iowan Old Style, Baskerville, serif; }
.specimen-toggle { width: fit-content; display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 8px; letter-spacing: .19em; }
.specimen-toggle i { width: 42px; height: 1px; background: currentColor; position: relative; }
.specimen-toggle i::after { content: ""; position: absolute; width: 1px; height: 9px; right: 0; top: -4px; background: currentColor; transition: transform .25s; }
.specimen-toggle[aria-expanded="true"] i::after { transform: rotate(90deg); }
.foot {
  position: fixed; left: 34px; right: 34px; bottom: max(25px, env(safe-area-inset-bottom));
  display: flex; gap: 24px; align-items: center; color: rgba(245,240,231,.38); font-size: 7px; letter-spacing: .13em;
}
.foot a, .foot button { text-decoration: none; font-size: inherit; letter-spacing: inherit; }
.foot time { margin-left: auto; }
.specimen, .method {
  position: fixed; z-index: 8; background: rgba(10,10,14,.91); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  transition: transform .45s cubic-bezier(.22,.61,.36,1), visibility .45s;
}
.specimen {
  top: 0; right: 0; width: min(470px, 100%); height: 100%; padding: 82px 42px 42px;
  border-left: 1px solid rgba(245,240,231,.13); transform: translateX(102%); visibility: hidden; overflow-y: auto;
}
.specimen[aria-hidden="false"] { transform: none; visibility: visible; }
.specimen__close, .method__close { position: absolute; top: 30px; right: 34px; color: var(--muted); font-size: 8px; letter-spacing: .15em; }
.specimen h2, .method h2 { margin: 0; font: italic 48px/.95 Iowan Old Style, Baskerville, serif; letter-spacing: -.035em; }
.specimen > p:nth-of-type(2) { color: var(--muted); font-size: 11px; line-height: 1.7; }
.specimen dl { margin: 34px 0; }
.specimen dl div { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--dim); padding: 12px 0; }
.specimen dt { color: var(--muted); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.specimen dd { margin: 0; font-size: 10px; }
.history { margin-top: 40px; border-top: 1px solid var(--dim); padding-top: 18px; }
.history p, .history span { color: var(--muted); font-size: 7px; letter-spacing: .14em; }
#history { display: block; width: 100%; height: 100px; margin: 16px 0 12px; }
.method { inset: 0; transform: translateY(102%); visibility: hidden; display: grid; place-items: center; padding: 70px 28px; overflow-y: auto; }
.method[aria-hidden="false"] { transform: none; visibility: visible; }
.method > div { width: min(720px, 100%); }
.method h2 { font-size: clamp(54px, 8vw, 112px); }
.method p:not(.kicker) { color: var(--muted); font: 13px/1.85 ui-monospace, monospace; }
.method footer { margin-top: 34px; color: var(--muted); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.no-script { position: fixed; z-index: 20; inset: auto 20px 20px; color: var(--muted); font-size: 10px; }
@keyframes pulse { 0%,100% { transform: scale(.8); opacity: .55; } 50% { transform: scale(1.15); opacity: 1; } }

@media (max-width: 760px) {
  body { overflow-y: auto; }
  .head { left: 20px; right: 20px; }
  main { width: 100%; min-height: 100svh; padding: 122px 20px 132px; }
  h1 { font-size: clamp(44px, 15vw, 76px); }
  h1 span { white-space: normal; }
  h1 span:last-child { margin-left: 0; }
  .lead { width: 100%; }
  .measure { grid-template-columns: repeat(2,1fr); }
  .foot { left: 20px; right: 20px; flex-wrap: wrap; gap: 14px 18px; }
  .foot time { width: 100%; margin-left: 0; }
  .local { display: block; margin: 12px 0 0; }
  .specimen { padding-left: 26px; padding-right: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
}