:root {
  --bg: #000;
  --bg-elev: #0a0a0a;
  --fg: #fff;
  --muted: #9a9a9a;
  --muted-strong: #c8c8c8;
  --accent: #d7202a;
  --line: #1c1c1c;
  --maxw: 44rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.15s ease, color 0.15s ease;
}

a:hover { border-color: var(--accent); color: var(--accent); }

main { flex: 1; }

/* ─── Landing hero ─── */
.hero {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  min-height: calc(100dvh - 4rem);
}

.stage {
  max-width: 32rem;
  width: 100%;
  text-align: center;
}

.logo {
  display: block;
  width: clamp(160px, 32vw, 260px);
  height: auto;
  margin: 0 auto;
  image-rendering: -webkit-optimize-contrast;
}

.headline {
  margin: 2.25rem 0 0;
  font-size: clamp(1.5rem, 4.2vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.headline .accent { color: var(--accent); }

.lede {
  margin: 1rem auto 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.2vw, 1.0625rem);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--fg);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(215, 32, 42, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(215, 32, 42, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(215, 32, 42, 0.05); }
}

@media (prefers-reduced-motion: reduce) {
  .status::before { animation: none; }
}

/* ─── Legal / long-form pages ─── */
.legal {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2rem);
}

.legal .back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--muted);
  border: 0;
  font-size: 0.875rem;
}
.legal .back-link:hover { color: var(--accent); }

.legal h1 {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.legal h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--muted-strong);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.legal p, .legal ul {
  margin: 0.5rem 0;
  color: var(--muted-strong);
}

.legal ul { padding-left: 1.25rem; }
.legal li { margin: 0.15rem 0; }

.legal a { color: var(--fg); }
.legal a:hover { color: var(--accent); }

/* ─── Contact form ─── */
.contact-email-link {
  margin: -0.5rem 0 2.5rem;
  font-size: 1.0625rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 32rem) {
  .form-row { grid-template-columns: 1fr; }
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  background: var(--bg-elev);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 2px;
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.25rem;
}

.contact-form button {
  padding: 0.625rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 2px;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.contact-form button:hover:not(:disabled) { filter: brightness(1.08); }
.contact-form button:disabled            { opacity: 0.6; cursor: not-allowed; }

.form-status {
  color: var(--muted);
  font-size: 0.875rem;
  min-height: 1.25rem;
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem clamp(1rem, 4vw, 2rem) calc(1.25rem + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--muted);
  font-size: 0.8125rem;
}

.site-footer p { margin: 0 0 0.4rem; }

.site-footer nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.site-footer nav a {
  color: var(--muted);
  border-bottom: 0;
}
.site-footer nav a:hover { color: var(--accent); }
