:root {
  --navy: #153550;
  --navy-deep: #0F2A40;
  --blue: #1498D5;
  --green: #2FAE62;
  --light: #F4F6F8;
  --muted: #B9C6D3;
  --line: rgba(244, 246, 248, 0.16);
  --card: rgba(255, 255, 255, 0.06);
  --display: "Cal Sans", "Poppins", sans-serif;
  --sans: "Poppins", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy) url("assets/waves.png") no-repeat center top / 1200px auto;
  color: var(--light);
  font: 400 16px/1.6 var(--sans);
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 16px 32px;
}

/* Header */
.head { text-align: center; }
.logo { display: inline-block; }
.logo img { display: block; width: 236px; max-width: 100%; height: auto; }
h1 {
  margin: 28px 0 8px;
  font: 400 34px/1.15 var(--display);
  letter-spacing: -0.01em;
}
.lede { margin: 0 auto; max-width: 400px; color: var(--muted); }

.social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
}
.social a {
  display: block;
  width: 30px;
  height: 30px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.social a:hover, .social a:focus-visible { transform: translateY(-2px); opacity: 0.85; }
.social img { display: block; width: 30px; height: 30px; }

/* Link buttons */
.links {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}
.link {
  display: block;
  padding: 15px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.link:hover, .link:focus-visible { background: rgba(255, 255, 255, 0.12); border-color: rgba(244, 246, 248, 0.32); }
.link-primary { background: var(--green); border-color: var(--green); color: #fff; }
.link-primary:hover, .link-primary:focus-visible { background: #279553; border-color: #279553; }

/* Cards */
.card {
  margin-top: 20px;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.card h2 {
  margin: 0 0 14px;
  font: 400 24px/1.2 var(--display);
}
.card p { margin: 0 0 16px; color: var(--muted); }
.card .kicker {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Event card (one at a time, removed by hand after the event) */
.event { margin-top: 32px; }
.event-img img { display: block; width: 100%; height: auto; margin-bottom: 18px; border-radius: 10px; }
.event .link { margin-top: 4px; }

/* Digest form */
.digest { display: flex; gap: 10px; }
.digest input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 13px 16px;
  border: 1px solid rgba(244, 246, 248, 0.28);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font: 400 16px var(--sans);
}
.digest input[type="email"]:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.digest button {
  flex: none;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font: 600 16px var(--sans);
  cursor: pointer;
  transition: background 0.2s ease;
}
.digest button:hover, .digest button:focus-visible { background: #1080B5; }

/* Videos */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--navy-deep);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Footer */
.foot { margin-top: 32px; text-align: center; color: var(--muted); font-size: 13px; }
.foot a { color: var(--muted); }

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

@media (max-width: 420px) {
  h1 { font-size: 29px; }
  .digest { flex-direction: column; }
  .digest button { width: 100%; }
}
