* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
  overflow-anchor: none;
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
select {
  color: inherit;
  font: inherit;
}

button { touch-action: manipulation; }

button:focus-visible,
select:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: .46;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.025em;
}

h1 {
  margin-bottom: var(--space-5);
  font-size: clamp(2.7rem, 8vw, 5.7rem);
  line-height: 1.06;
}

h2 {
  margin-bottom: var(--space-3);
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.14;
}

h3 {
  margin-bottom: var(--space-2);
  font-size: 1.2rem;
  line-height: 1.35;
}

small { font-size: .78rem; }

[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-2) var(--space-4);
  color: white;
  background: #16100d;
  border-radius: var(--radius-pill);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

#app {
  width: min(100%, var(--page-max));
  min-height: calc(100svh - var(--bar-height));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 44px) calc(var(--dock-height) + 48px);
}

.screen {
  min-height: 60svh;
  animation: screen-in calc(var(--motion-base) * var(--motion-scale)) ease both;
}

.screen-head {
  width: min(100%, var(--text-max));
  margin-bottom: var(--space-8);
}

.eyebrow {
  margin-bottom: var(--space-2);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.85;
}

.muted { color: var(--muted); }
.center { text-align: center; }

@media (max-width: 720px) {
  h1 { font-size: clamp(2.15rem, 11vw, 3.3rem); }
  .hero h1 span { white-space: nowrap; }
  #app { padding-top: 28px; }
}
