:root {
  --bg: #faf5ec;
  --ink: #261719;
  --muted: #74615f;
  --red: #c8242a;
  --line: #e7d8ca;
  color-scheme: only light;
}

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

* {
  margin: 0;
}

body {
  min-width: 320px;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: var(--ink);
  background: var(--bg);
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  width: min(100%, 680px);
  margin: auto;
  padding-block: 4rem;
  text-align: center;
}

.logo {
  width: 82px;
  height: 82px;
  margin-inline: auto;
  object-fit: contain;
  border-radius: 50%;
}

.eyebrow {
  margin-top: 2rem;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin-top: 0.7rem;
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.055em;
}

.message {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.6;
}

.links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.links a {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
  text-underline-offset: 4px;
}

.links .primary {
  padding: 0.82rem 1.5rem;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  text-decoration: none;
}

.links .primary:hover {
  background: #a91c21;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

footer a {
  color: var(--ink);
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

@media (max-width: 480px) {
  .links {
    flex-direction: column;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
