@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #F5F3EF;
  --ink: #1B1E22;
  --muted: #5A616A;
  --rule: #E2DFD8;
  --rust: #B4471B;
  --steel: #6B747C;
  --iron: #23272B;
  --square: rgb(35 39 43 / 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121416;
    --ink: #ECE9E3;
    --muted: #9AA3AD;
    --rule: #26292D;
    --steel: #A8B1B9;
    --iron: #F1EEE8;
    --square: rgb(241 238 232 / 0.045);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.crown { fill: var(--rust); }
.body { fill: var(--steel); }
.base { fill: var(--iron); }

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px clamp(20px, 5vw, 48px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.mark { width: 26px; height: 26px; }

.link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.link:hover { color: var(--ink); }

.hero {
  flex: 1;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px 72px;
}

/* a faint chessboard that fades out from the centre */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-conic-gradient(var(--square) 0 25%, transparent 0 50%) 50% 50% / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 0%, transparent 62%);
  mask-image: radial-gradient(ellipse at 50% 45%, #000 0%, transparent 62%);
}

.logo {
  width: clamp(104px, 18vw, 148px);
  height: auto;
  margin-bottom: 28px;
}

h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(44px, 8vw, 76px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.lede {
  margin: 14px 0 32px;
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--rust);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -10px rgb(180 71 27 / 0.7);
}

.brand:focus-visible,
.link:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rust);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
}

.foot p { margin: 0; }
.foot b { font-weight: 600; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:hover { transform: none; }
}
