@font-face {
  font-family: "Bebas Neue";
  src: url("./fonts/bebas-neue.ttf") format("truetype");
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("./fonts/space-grotesk-400.ttf") format("truetype");
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("./fonts/space-grotesk-500.ttf") format("truetype");
  font-style: normal; font-weight: 500; font-display: swap;
}
:root {
  --bg: #0c0d10;
  --text: #f5f1e8;
  --muted: rgba(245, 241, 232, 0.62);
  --accent: #2f6bdc;
  --accent-soft: rgba(47, 107, 220, 0.14);
  --line: rgba(245, 241, 232, 0.14);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

.hero { width: min(100%, 640px); }

.hero-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}

.wordmark {
  width: min(100%, 24rem);
  height: auto;
  display: block;
}

h1 {
  margin: 2rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  width: 100%;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  /* Offset the trailing letter-space so the word stays optically centred. */
  text-indent: 0.22em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.75rem;
}

.cta-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.cta-row a:hover,
.cta-row a:focus-visible {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.cta-row a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  color: var(--accent);
  transition: color 160ms ease;
}

.cta-row a:hover .icon,
.cta-row a:focus-visible .icon {
  color: var(--text);
}

@media (max-width: 640px) {
  .wordmark { width: min(100%, 18rem); }

  h1 {
    font-size: clamp(2rem, 11vw, 3rem);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }

  .cta-row {
    margin-top: 2rem;
    width: 100%;
  }

  .cta-row a {
    width: 100%;
    justify-content: center;
  }
}

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