@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  --cream: #fff8ec;
  --cream-deep: #fbead0;
  --card: #ffffff;
  --navy: #1e4c78;
  --navy-deep: #163a5c;
  --ink: #23364a;
  --muted: #5b6b7c;
  --tomato: #e8543e;
  --tomato-deep: #962e20;
  --gold: #ffd678;
  --teal: #2fa39a;
  --line: #ecdcc2;
  --shadow: 0 6px 0 rgba(30, 76, 120, .12), 0 14px 30px rgba(30, 76, 120, .10);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--tomato); }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1040px, 100% - 32px); margin-inline: auto; }

/* Top bar */
.top { padding: 14px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { white-space: nowrap; font-weight: 700; font-stretch: 110%; color: var(--tomato); text-decoration: none; font-size: 22px; letter-spacing: .01em; }
.top nav { display: flex; gap: 18px; font-weight: 500; }
.top nav a { text-decoration: none; color: var(--navy); }

/* Hero */
.hero { text-align: center; padding: 18px 0 40px; }
.hero .title { width: min(520px, 82%); margin: 0 auto 6px; filter: drop-shadow(0 10px 18px rgba(150, 46, 32, .18)); }
.hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tagline { font-size: clamp(22px, 4.6vw, 30px); font-weight: 600; color: var(--navy); margin: 10px auto 4px; max-width: 26ch; line-height: 1.3; }
.soon { display: inline-block; background: var(--tomato); color: var(--cream); font-weight: 700; font-stretch: 110%; padding: 6px 18px; border-radius: 999px; margin: 14px 0 26px; box-shadow: 0 4px 0 var(--tomato-deep); }

/* Ask card */
.ask { background: var(--card); border-radius: 26px; box-shadow: var(--shadow); padding: 26px 22px; max-width: 560px; margin: 0 auto; text-align: center; }
.ask h2 { margin: 0 0 6px; font-size: 26px; font-stretch: 110%; color: var(--navy); }
.ask p { margin: 0 auto 18px; color: var(--muted); max-width: 40ch; }
.ask .or { margin: 20px 0 14px; color: var(--muted); font-size: 15px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border-radius: 16px; border: 0; font: inherit; font-weight: 700; font-stretch: 110%; font-size: 19px; text-decoration: none; cursor: pointer; }
.btn-navy { background: var(--navy); color: var(--cream); box-shadow: 0 5px 0 var(--navy-deep); }
.btn-navy:hover { color: var(--gold); }
.btn-discord { background: #5865f2; color: #fff; box-shadow: 0 5px 0 #3c45b5; }
.btn-discord:hover { color: #fff; filter: brightness(1.06); }
.btn:active { transform: translateY(3px); box-shadow: none; }
.signup { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.signup input[type=email] { flex: 1 1 220px; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--line); font: inherit; background: var(--cream); color: var(--ink); }
.signup input[type=email]:focus { border-color: var(--navy); outline: none; }
.small { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* Features */
.features { padding: 56px 0 24px; }
.features h2, .page h1 { text-align: center; font-stretch: 110%; color: var(--navy); font-size: clamp(26px, 5vw, 34px); margin: 0 0 26px; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.card { background: var(--card); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.card img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--cream-deep); }
.card div { padding: 14px 18px 18px; }
.card h3 { margin: 0 0 4px; font-size: 21px; font-stretch: 110%; color: var(--tomato); }
.card p { margin: 0; color: var(--muted); font-size: 16.5px; }

.note { text-align: center; color: var(--muted); padding: 28px 0 10px; max-width: 46ch; margin: 0 auto; }

/* Text pages */
.page { padding: 20px 0 40px; }
.page article { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(20px, 5vw, 44px); max-width: 760px; margin: 0 auto; }
.page h2 { color: var(--navy); font-stretch: 110%; font-size: 22px; margin: 28px 0 6px; }
.page h2:first-of-type { margin-top: 6px; }
.page p, .page li { color: var(--ink); }
.page .updated { text-align: center; color: var(--muted); margin: -14px 0 22px; font-size: 15px; }
.page ul { padding-left: 22px; }

/* Footer */
footer { padding: 30px 0 40px; text-align: center; color: var(--muted); font-size: 15px; }
footer nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform .08s, box-shadow .08s, color .15s; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .top nav { gap: 14px; font-size: 16px; }
  .signup .btn { width: 100%; }
  .hero { padding-top: 4px; }
  .brand { font-size: 19px; }
  .card div { padding: 10px 12px 14px; }
  .card h3 { font-size: 18px; }
  .card p { font-size: 14.5px; line-height: 1.45; }
}
