/* SPDX-License-Identifier: AGPL-3.0-only
   rook.host landing — rooks brand canon (cmo/brand/rooks/): ink on bone,
   gold glint accent, Space Grotesk + Space Mono, all lowercase. */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('/fonts/space-mono.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink:   #15171C; /* plumage black — the ground */
  --slate: #2B313B; /* secondary dark — hairlines, chips */
  --glint: #F0B43C; /* warm gold accent — the eye / sun-catch */
  --bone:  #ECEAE4; /* light surface + text on ink */
  --chalk: #F6F5F2; /* near-white — headline */
  --muted: #9AA0AB; /* quiet bone — captions, secondary */
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vh, 3.5rem);
  padding: clamp(2rem, 6vw, 4rem) 1.5rem;
  background: var(--ink);
  color: var(--bone);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 34rem;
  width: 100%;
}

.eyebrow {
  margin: 0 0 clamp(1.75rem, 5vh, 2.75rem);
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--glint);
}

.lockup {
  width: clamp(200px, 58vw, 296px);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}

h1 {
  margin: clamp(2rem, 6vh, 3rem) 0 0;
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--chalk);
}

.lede {
  margin: 1rem 0 0;
  font-weight: 400;
  font-size: clamp(1.05rem, 3.4vw, 1.375rem);
  line-height: 1.4;
  color: var(--bone);
}

.handle {
  margin: clamp(1.75rem, 5vh, 2.5rem) 0 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.1em;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--slate);
  border-radius: 8px;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: clamp(0.875rem, 3vw, 1rem);
  color: var(--muted);
  background: rgba(43, 49, 59, 0.35);
}
.handle .at { color: var(--glint); }

.links {
  margin: clamp(2.25rem, 6vh, 3.25rem) 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
}

.links a {
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid var(--slate);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.links a:hover,
.links a:focus-visible {
  color: var(--glint);
  border-color: var(--glint);
}
.links a .arr { color: var(--muted); font-size: 0.9em; }
.links a:hover .arr,
.links a:focus-visible .arr { color: var(--glint); }

footer {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
footer a:hover,
footer a:focus-visible {
  color: var(--bone);
  border-color: var(--slate);
}

a:focus-visible {
  outline: 2px solid var(--glint);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
