:root {
  --bg: #171a20;
  --navy: #0d1b2a;
  --accent: #e4c18b;
  --text: #f3eee6;
  --muted: #b8bec7;
  --card: #242b35;
  --radius: 14px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 90% 60% at 50% 0%, var(--navy) 0%, var(--bg) 70%);
  background-repeat: no-repeat;
}

h1, h2, h3, p { margin: 0; }
h1, h2, .lead { text-wrap: balance; }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--text); }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Hero */
.hero {
  text-align: center;
  padding-block: 3.5rem 2.75rem;
}

.logo {
  display: block;
  width: clamp(9.5rem, 42vw, 13.5rem);
  height: auto;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
}

h1 {
  font-size: clamp(2.25rem, 8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.tagline {
  margin-top: 0.6rem;
  font-size: clamp(1.15rem, 4vw, 1.4rem);
  color: var(--accent);
}

.lead {
  margin-top: 1.5rem;
  font-size: 1.125rem;
}

.sub {
  max-width: 40rem;
  margin: 0.5rem auto 0;
  color: var(--muted);
  text-wrap: balance;
}

/* Categories */
.cards {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid rgb(228 193 139 / 0.12);
  border-radius: var(--radius);
}

.icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgb(228 193 139 / 0.1);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.1rem;
  line-height: 1.3;
}

.card p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.975rem;
}

/* Call to action */
.cta {
  text-align: center;
  padding-block: 3.5rem 4rem;
}

.wave {
  display: block;
  width: 7.5rem;
  height: 1.5rem;
  margin: 0 auto 1.25rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.55;
}

.cta h2 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.25;
}

.button {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 1.05rem;
  font-weight: 650;
  text-decoration: none;
}

.button:hover { background: var(--text); color: var(--bg); }

.button:focus-visible {
  outline-color: var(--text);
  border-radius: 999px;
}

/* Footer */
.footer {
  padding-block: 1.75rem 2.25rem;
  border-top: 1px solid rgb(184 190 199 / 0.15);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer p + p { margin-top: 0.25rem; }

/* Larger screens */
@media (min-width: 36rem) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .hero { padding-block: 5rem 3.5rem; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .cta { padding-block: 4.5rem 5rem; }
}

/* Motion: only a colour fade on hover, and only when the user allows motion */
@media (prefers-reduced-motion: no-preference) {
  a, .button { transition: background-color 0.2s ease, color 0.2s ease; }
}
