/* Hallmark · macrostructure: Manifesto · tone: tactile-competitive · anchor hue: buzzer-red
 * pre-emit critique: P5 H5 E4 S5 R5 V5
 */
@import url("/tokens.css?v=4");

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body {
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
}
button, input { font: inherit; }
a { color: inherit; }

.shell {
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--space-lg) clamp(var(--space-md), 4vw, var(--space-2xl));
  background-image: linear-gradient(var(--color-rule) var(--rule-thin), transparent var(--rule-thin));
  background-size: 100% 2rem;
  background-position: 0 .2rem;
}
.masthead, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.wordmark { font-weight: 700; text-decoration: none; }
.status { display: inline-flex; align-items: center; gap: var(--space-xs); }
.status::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: var(--radius-round);
  background: var(--color-accent);
}
.hero {
  width: min(100%, 88rem);
  min-height: 0;
  max-height: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(17rem, .75fr);
  gap: clamp(var(--space-xl), 7vw, 7rem);
  align-items: center;
  padding-block: var(--space-md);
}
.copy { min-width: 0; }
h1 {
  max-width: 9ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, min(9vw, 11vh), 7.5rem);
  font-style: normal;
  font-weight: 700;
  line-height: .82;
  letter-spacing: -.065em;
  overflow-wrap: anywhere;
}
.lede {
  max-width: 36rem;
  margin: calc(var(--space-xl) - .375rem) 0 0;
  font-size: var(--text-lg);
  line-height: 2rem;
  letter-spacing: .005em;
}
.points {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}
.points span {
  border: var(--rule-thin) solid var(--color-ink);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-paper);
}
.buzzer-stage {
  min-width: 0;
  display: grid;
  place-items: center;
  position: relative;
}
.buzzer-stage::after {
  content: none;
}
.buzzer {
  position: relative;
  z-index: 1;
  width: min(100%, 25rem, 48vh);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.buzzer img { width: 100%; height: 100%; object-fit: contain; display: block; }
.buzzer:hover { transform: translateY(-.2rem) scale(1.015); }
.buzzer:active, .buzzer[data-state="loading"] { transform: translateY(.35rem) scale(.97); }
.buzzer:disabled { opacity: .48; cursor: not-allowed; }
.buzzer[data-state="error"] { filter: saturate(.7); }
.buzzer[data-state="success"] { filter: saturate(1.15); }
.buzzer:focus-visible, .button:focus-visible, input:focus-visible, .footer a:focus-visible {
  outline: var(--rule-heavy) solid var(--color-focus);
  outline-offset: var(--space-2xs);
}
.footer { border-top: var(--rule-thin) solid var(--color-rule); padding-top: var(--space-md); }
.footer a { color: var(--color-muted); text-underline-offset: .2em; }

.gate {
  width: min(100%, 30rem);
  margin: auto;
  padding: var(--space-xl);
  border: var(--rule-thin) solid var(--color-ink);
  background: var(--color-paper);
  box-shadow: .75rem .75rem 0 var(--color-paper-deep);
}
.gate h1 { max-width: none; font-size: clamp(2.5rem, 10vw, 4.5rem); line-height: .9; }
.gate p { line-height: 1.5; color: var(--color-muted); }
.field { display: grid; gap: var(--space-xs); margin-top: var(--space-xl); }
.field label { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; }
.field input {
  width: 100%;
  min-height: 3rem;
  border: var(--rule-thin) solid var(--color-ink);
  border-radius: 0;
  padding: var(--space-sm);
  background: var(--color-paper);
  color: var(--color-ink);
}
.button {
  width: 100%;
  min-height: 3rem;
  margin-top: var(--space-md);
  border: var(--rule-thin) solid var(--color-accent-dark);
  background: var(--color-accent);
  color: var(--color-paper);
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button:disabled, .button[data-state="loading"] { opacity: .55; cursor: wait; }
.button[data-state="error"] { background: var(--color-error); }
.button[data-state="success"] { background: var(--color-success); }
.error { color: var(--color-error); font-weight: 700; }
.dev-board { width: min(100%, 68rem); margin: auto; }
.dev-board h1 { max-width: 12ch; font-size: clamp(3rem, 9vw, 7rem); }

@media (max-width: 760px) {
  .shell { padding: var(--space-md); }
  .shell { background-position: 0 .925rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-xs); }
  .copy { text-align: center; }
  h1 { margin-inline: auto; font-size: clamp(2.75rem, 13vw, 4.75rem); }
  .lede { margin: calc(var(--space-md) - .375rem) auto 0; font-size: var(--text-base); line-height: 2rem; }
  .points { justify-content: center; }
  .buzzer { width: min(68vw, 15rem, 28vh); }
  .footer { align-items: flex-start; }
}
@media (max-width: 360px) {
  .masthead, .footer { font-size: .65rem; }
  .points { gap: var(--space-xs); }
  .points span { padding-inline: var(--space-xs); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
