:root {
  --paper: #ffffff;
  --ink: #123f46;
  --muted: #4c6b70;
  --teal: #0d5560;
  --teal-deep: #083d45;
  --teal-soft: #d9ecec;
  --pink: #f5d4de;
  --pink-soft: #fff6f9;
  --pink-strong: #db8fa7;
  --line: #cbdedd;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

a {
  color: var(--teal);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-deep);
}

img,
svg {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 76px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 1.1rem;
}

.site-nav a,
.footer-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.site-nav a {
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--teal);
  border-color: var(--pink-strong);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--teal);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 7vw, 5.5rem) 0 3rem;
}

.eyebrow,
.kicker {
  margin: 0;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1,
.page-head h1,
.not-found h1 {
  margin: 0.55rem 0 1rem;
  font-size: clamp(2.25rem, 5.5vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.page-head h1,
.not-found h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
}

.lead {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--teal);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--teal-deep);
  color: #ffffff;
}

.button.secondary {
  background: var(--pink);
  color: var(--ink);
}

.button.secondary:hover {
  background: var(--pink-strong);
  color: var(--ink);
}

.hero-card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(150deg, var(--pink-soft), #ffffff 72%);
  box-shadow: 0 18px 45px rgba(13, 85, 96, 0.08);
}

.tide-scene {
  position: relative;
  height: 168px;
  margin: 1rem 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--teal);
}

.tide-scene::before,
.tide-scene::after {
  content: "";
  position: absolute;
  left: -10%;
  width: 120%;
  height: 96px;
  border-radius: 50%;
}

.tide-scene::before {
  bottom: -48px;
  background: var(--pink);
  transform: rotate(-5deg);
}

.tide-scene::after {
  bottom: -72px;
  background: #ffffff;
  opacity: 0.92;
  transform: rotate(3deg);
}

.tide-marker {
  position: absolute;
  top: 16px;
  width: 2px;
  height: 88px;
  background: rgba(255, 255, 255, 0.6);
}

.tide-marker.one {
  left: 26%;
}

.tide-marker.two {
  left: 68%;
}

.tide-bird {
  position: absolute;
  top: 44px;
  left: 47%;
  width: 44px;
  height: 22px;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
  border-radius: 0 0 26px 26px;
  transform: rotate(-8deg);
}

.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hero-card-grid strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1rem;
}

.section {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 1.6rem;
}

.section-head h2,
.prose h2,
.band h2 {
  margin: 0.45rem 0 0.7rem;
  font-size: clamp(1.7rem, 3.8vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head p:last-child {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.card.pink {
  border-color: #efc6d3;
  background: var(--pink-soft);
}

.card h2,
.card h3 {
  margin: 0.45rem 0 0.55rem;
  line-height: 1.25;
}

.card h3 {
  font-size: 1.15rem;
}

.card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.link-card {
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: var(--pink-strong);
  transform: translateY(-2px);
}

.card-link-text {
  display: inline-block;
  margin-top: 1rem;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 700;
}

.timeline-shell {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.8rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.legend-dot {
  display: inline-block;
  width: 0.72rem;
  height: 0.72rem;
  margin-right: 0.35rem;
  border-radius: 50%;
}

.legend-dot.pink {
  background: var(--pink-strong);
}

.legend-dot.teal {
  background: var(--teal);
}

.plan-scroll {
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.plan-table {
  width: 100%;
  min-width: 700px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.plan-table caption {
  padding-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: left;
}

.plan-table th,
.plan-table td {
  padding: 0.65rem 0.7rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  text-align: left;
  vertical-align: top;
}

.plan-table thead th {
  background: var(--teal-soft);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.plan-table tbody th {
  background: #fbfeff;
  font-weight: 750;
  white-space: nowrap;
}

.plan-table tr:last-child th,
.plan-table tr:last-child td {
  border-bottom: 0;
}

.plan-table th:first-child {
  border-top-left-radius: 12px;
}

.plan-table thead th:last-child {
  border-top-right-radius: 12px;
}

.block {
  display: block;
  min-height: 2.35rem;
  padding: 0.35rem 0.5rem;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: var(--pink);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.block.quiet {
  border-color: var(--pink-strong);
  background: var(--teal-soft);
}

.block.edge {
  border-color: var(--teal);
  background: #fff0f5;
}

.empty {
  color: #759094;
}

.caption {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 1.1rem 1.2rem 1.1rem 4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--teal);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.steps h3 {
  margin: 0 0 0.3rem;
  font-size: 1.08rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.note {
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--pink-strong);
  border-radius: 0 14px 14px 0;
  background: var(--pink-soft);
}

.note p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.fact {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.fact b {
  display: block;
  color: var(--teal);
  font-size: 1.25rem;
  line-height: 1.3;
}

.fact span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.page {
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.page-head {
  max-width: 820px;
  margin-bottom: 2rem;
}

.page-head .lead {
  font-size: 1.15rem;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 2rem;
}

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

.prose p {
  color: var(--muted);
}

.prose ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.prose li {
  margin: 0.4rem 0;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
}

.band {
  border-top: 1px solid #efc6d3;
  border-bottom: 1px solid #efc6d3;
  background: var(--pink);
}

.band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.band-inner div {
  max-width: 620px;
}

.band p {
  margin: 0;
  color: #315c61;
}

.not-found {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  background: #fbfdfd;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-mark {
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

.footer-inner > p:last-child {
  margin: 0;
}

@media (max-width: 780px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
  }

  .header-inner {
    justify-content: flex-start;
  }

  .section {
    padding: 2.4rem 0;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 1.25rem);
  }

  .hero h1,
  .page-head h1,
  .not-found h1 {
    font-size: 2.2rem;
  }

  .hero-card,
  .timeline-shell {
    padding: 0.75rem;
  }

  .actions .button {
    width: 100%;
  }

  .hero-card-grid {
    gap: 0.6rem;
  }

  .steps li {
    padding-right: 1rem;
    padding-left: 3.4rem;
  }
}
