:root {
  --sky: #D7E3F6;
  --sky-deep: #C3D6F2;
  --blue: #5D8FC9;
  --blue-deep: #3E6B9C;
  --lavender: #9B8FDE;
  --lavender-deep: #7D75D8;
  --building-tint: #A9C2E8;
  --wave-light: #B9AEEA;
  --wave-mid: #9B8FDE;
  --wave-dark: #7D75D8;
  --blue-soft: #E3ECFA;
  --lavender-soft: #EEECFC;
  --ink: #232733;
  --ink-soft: #5B6472;
  --paper: #FFFFFF;
  --page-bg: #F5F7FD;
  --line: #E1E7F5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI Rounded", "Nunito", "Quicksand", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.6;
}

.wave-header {
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-deep) 100%);
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.nav-bar {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 24px 0;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 26px;
  display: block;
}

nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

nav a:hover, nav a.active { color: var(--blue-deep); border-bottom-color: var(--blue); }

.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;
}

.hero-text {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 24px 32px;
  text-align: center;
  position:relative;
  left: -40px;
}

.hero-text p {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0;
}

.skyline {
  position: relative;
  z-index: 1;
  line-height: 0;
  margin-bottom: -90px;
}

.skyline img {
  height: clamp(210px, 32vw, 380px);
  width: auto;
  display: block;
  margin: 30px auto;
}

.hero-wave-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 96px;
  background-image: url("assets/wave-tile.svg");
  background-repeat: repeat-x;
  background-position: 0 bottom;
  background-size: 480px 96px;
  animation: hero-wave-scroll 14s linear infinite;
}

@keyframes hero-wave-scroll {
  from { background-position: 0 bottom; }
  to { background-position: -480px bottom; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-wave-wrap { animation: none; }
}

.page-header {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 24px 0;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(26px, 4.4vw, 36px);
  font-weight: 800;
  color: var(--ink);
  margin: 12px 0 0;
  letter-spacing: -0.5px;
}

.wave-divider {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  margin-top: 32px;
}

main {
  max-width: 680px;
  margin: 14px auto 0;
  padding: 0 32px 80px;
  position: relative;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 45px -24px rgba(61, 79, 148, 0.25);
}

h2 {
  color: var(--blue-deep);
  font-size: 22px;
  margin-top: 36px;
}

h2:first-child { margin-top: 0; }

h3 {
  color: var(--lavender-deep);
  font-size: 16px;
  margin-top: 24px;
}

p, li { color: var(--ink-soft); }

a { color: var(--blue-deep); }

.pill {
  display: inline-block;
  background: var(--lavender-soft);
  color: var(--lavender-deep);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.cat {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
}

.cat:nth-child(odd) {
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.cat:nth-child(even) {
  background: var(--lavender-soft);
  color: var(--lavender-deep);
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 32px;
  color: var(--ink-soft);
  font-size: 13px;
}

footer img {
  height: 22px;
  width: auto;
}

.updated {
  color: var(--ink-soft);
  font-size: 13px;
  font-style: italic;
}

.notice {
  background: var(--lavender-soft);
  border-left: 3px solid var(--lavender);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  margin: 24px 0;
}

