.interface {
  position: fixed;
  inset: 0;
  z-index: 1;
  min-height: 100dvh;
  pointer-events: none;
}
.interface button, .interface input, .interface a, .control-deck { pointer-events: auto; }

.masthead {
  position: absolute;
  top: max(28px, env(safe-area-inset-top));
  left: clamp(24px, 4vw, 60px);
  right: clamp(24px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid color-mix(in oklch, var(--text) 15%, transparent);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.edition { display: flex; gap: var(--space-6); align-items: center; }
.edition span:last-child { color: var(--text-muted); }
.live-state { display: flex; align-items: center; gap: var(--space-2); }
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px color-mix(in oklch, var(--accent) 70%, transparent);
  flex: 0 0 auto;
  transition: transform 180ms ease-out, opacity 180ms ease-out;
}
.live-state.is-paused .live-dot { transform: scale(.65); opacity: .45; }

.hero {
  position: absolute;
  top: clamp(142px, 21vh, 220px);
  left: clamp(28px, 7.2vw, 112px);
  max-width: min(760px, 74vw);
}
h1 {
  font-family: "Goudy Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(76px, 12vw, 164px);
  font-weight: 400;
  line-height: .76;
  letter-spacing: -.075em;
  color: var(--text);
}
.hero p {
  margin-top: 22px;
  margin-left: 4px;
  font-family: "Goudy Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(19px, 1.7vw, 25px);
  font-style: italic;
  line-height: 1.4;
  letter-spacing: .02em;
  color: var(--text-muted);
}

.field-note {
  position: absolute;
  top: clamp(230px, 30vh, 340px);
  right: clamp(28px, 7vw, 108px);
  width: min(270px, 24vw);
  padding: 18px 20px;
  border: 1px solid color-mix(in oklch, var(--text) 14%, transparent);
  border-radius: 14px;
  background: rgba(16, 23, 29, .92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .16);
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: .02em;
  color: var(--text-muted);
}
.field-note strong {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.masthead-actions { display: flex; align-items: center; gap: var(--space-6); }
.github-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease-out;
}
.github-link:hover { color: var(--accent); }
.github-link svg { width: 12px; height: 12px; }
.github-handle { color: var(--text-muted); }
.guide-button {
  min-height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 5px;
  transition: color 180ms ease-out;
}
.guide-button:hover { color: var(--accent); }
