:root {
  --bg: #e9f6f7;
  --surface: #f8fffe;
  --text: #0f2432;
  --muted: #335265;
  --accent: #cf4d2b;
  --accent-soft: #1b8f74;
  --line: #a7d4d0;
  --radius: 20px;
  --shadow: 0 14px 48px rgba(18, 54, 78, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Newsreader", serif;
  color: var(--text);
  background:
    radial-gradient(circle at 13% 0%, #fff8ea 0 22%, transparent 45%),
    radial-gradient(circle at 92% 10%, #d5f1ea 0 17%, transparent 42%),
    linear-gradient(160deg, #e9f6f7, #dff2f8 50%, #ebf7f4);
  min-height: 100vh;
  line-height: 1.45;
}

a {
  color: inherit;
}

.texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
  background-image: linear-gradient(120deg, rgba(27, 143, 116, 0.08), transparent 45%),
    linear-gradient(0deg, rgba(22, 91, 143, 0.08), rgba(22, 91, 143, 0.08)),
    repeating-linear-gradient(
      0deg,
      rgba(16, 46, 67, 0.03) 0,
      rgba(16, 46, 67, 0.03) 1px,
      transparent 1px,
      transparent 11px
    );
  background-size: auto, 100% 18px, auto;
  background-position: center, center 74%, center;
}

.topbar {
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: color-mix(in oklab, var(--surface) 85%, white);
  backdrop-filter: blur(4px);
  position: sticky;
  top: 0.5rem;
  z-index: 20;
}

.brand {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  text-decoration: none;
  font-size: 1.65rem;
  color: #0a4f79;
}

.topbar nav {
  display: flex;
  gap: 1rem;
  font-family: "Space Mono", monospace;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.topbar nav a {
  text-decoration: none;
  opacity: 0.8;
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 2rem;
}

.hero {
  margin-top: 5.5rem;
  margin-bottom: 2.5rem;
}

.kicker {
  font-family: "Space Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.85rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.03;
  font-weight: 600;
}

h1 {
  font-size: clamp(3.4rem, 10vw, 8rem);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.lede {
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  max-width: 70ch;
  color: var(--muted);
}

.cta-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-sketch {
  margin: 1.4rem 0 0;
}

.hero-sketch img {
  display: block;
  width: 100%;
  max-width: 860px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffffcc;
  box-shadow: 0 8px 24px rgba(18, 54, 78, 0.1);
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-family: "Space Mono", monospace;
  font-size: 0.84rem;
  text-transform: uppercase;
  border: 1px solid transparent;
  display: inline-flex;
  justify-content: center;
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 9px 20px rgba(207, 77, 43, 0.24);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--surface) 85%, white);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 3vw, 2.2rem);
  margin: 1.2rem 0;
}

.panel h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

ul {
  margin: 0.75rem 0 0;
  padding-left: 1rem;
}

li {
  margin: 0.35rem 0;
}

.cards article {
  background: linear-gradient(165deg, #ffffff, #f3fffb);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.card-label {
  font-family: "Space Mono", monospace;
  color: var(--accent);
}

.next-date {
  font-family: "Space Mono", monospace;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--accent);
}

.join-form {
  display: grid;
  gap: 0.8rem;
  max-width: 620px;
}

label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.95rem;
}

input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem;
  font: inherit;
  background: #fff;
}

footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 450ms ease, transform 450ms ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 850px) {
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .topbar {
    border-radius: 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }

  .hero {
    margin-top: 2.6rem;
  }

  footer {
    flex-direction: column;
  }
}
