:root {
  color-scheme: light;
  --background: #f6f7f8;
  --text: #252a30;
  --muted: #606a74;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --background: #252a30;
    --text: #fff;
    --muted: #a4acb4;
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --background: #252a30;
  --text: #fff;
  --muted: #a4acb4;
}

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

body {
  margin: 0;
  min-height: 100svh;
  background: var(--background);
  color: var(--text);
  isolation: isolate;
}

/* Anchor the decoration to the viewport, independently of page scrolling. */
.background-field,
.background-wave {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* The title sits at the top centre; the links sit in the middle of the screen. */
.header {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  justify-content: center;
  padding: clamp(24px, 5vw, 48px) 16px 0;
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* Brutalist title: heavy, tight, uppercase type. */
.title {
  margin: 0;
  color: var(--text);
  font-family: 'Archivo Black', 'Arial Black', Impact, sans-serif;
  font-size: clamp(2.75rem, 13vw, 10rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Same raw box as the title; inverts on hover and focus. */
.link {
  padding: 0.55em 1em 0.5em;
  border: 3px solid var(--text);
  background: var(--background);
  color: var(--text);
  font-family: 'Archivo Black', 'Arial Black', Impact, sans-serif;
  font-size: clamp(0.95rem, 2.4vw, 1.25rem);
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}
.link:hover,
.link:focus-visible {
  background: var(--text);
  color: var(--background);
}
.link:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 4px;
}

.footer {
  position: fixed;
  inset: auto 0 0;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-family: 'Archivo Black', 'Arial Black', Impact, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

@media (forced-colors: active) {
  .background-field,
  .background-wave {
    display: none;
  }
}
