:root {
  --ink: #0f2a3d;
  --ink-soft: #3d5568;
  --sea: #2f7f7a;
  --sea-soft: #d9ebe8;
  --sand: #f6f2ea;
  --foam: #fffdf9;
  --line: #e2dccf;
  --beam: #e9b949;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef3f6;
    --ink-soft: #a9bccb;
    --sea: #6cc3b9;
    --sea-soft: #16343a;
    --sand: #0b1d2a;
    --foam: #10273a;
    --line: #22405a;
    --beam: #f0c766;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, var(--foam) 0%, var(--sand) 70%, var(--sea-soft) 100%);
}

.header-inner,
main,
.site-footer {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Toolbar: stays at the top, translucent over the page as it scrolls. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--foam) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
}

.mark { width: 40px; height: 40px; flex: none; }
.mark .tower, .mark .cap, .mark .base { fill: var(--ink); }
.mark .lantern { fill: var(--beam); }
.mark .beam { fill: var(--beam); opacity: 0.45; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.35rem; font-weight: 700; letter-spacing: 0.01em; }
.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

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

/* Every link looks the same; only the page you are on is highlighted. */
.site-nav a {
  position: relative;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--sea-soft) 70%, transparent); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--sea-soft);
}
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.55rem;
  width: 1.4rem;
  height: 3px;
  margin-left: -0.7rem;
  border-radius: 3px;
  background: var(--beam);
}
.site-nav a:focus-visible, .brand:focus-visible {
  outline: 3px solid var(--beam);
  outline-offset: 2px;
}

/* Phones: brand on one row, the links on the row beneath it. */
@media (max-width: 44rem) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding-top: 0.6rem;
    padding-bottom: 0.65rem;
  }
  .site-nav {
    justify-content: space-between;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav a { padding: 0.4rem 0.55rem; font-size: 0.9rem; }
  .site-nav a[aria-current="page"]::after { bottom: -0.35rem; }
  .nav-extra { display: none; }
}

main { flex: 1; padding-top: 3rem; padding-bottom: 3.5rem; }

.hero, .page-head { max-width: 44rem; }

.eyebrow,
.section-title {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sea);
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.page-head h1 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); }

.lede { margin: 0 0 1.5rem; font-size: 1.125rem; color: var(--ink-soft); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.75rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--foam);
  font-size: 0.92rem;
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  flex: none;
  border-radius: 50%;
  background: var(--sea);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sea) 55%, transparent); }
  80%, 100% { box-shadow: 0 0 0 0.6rem transparent; }
}
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

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

.button {
  display: inline-block;
  padding: 0.8rem 1.3rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--foam);
  font-weight: 650;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.button:hover { background: var(--sea); border-color: var(--sea); }
.button-quiet { background: transparent; color: var(--ink); }
.button-quiet:hover { background: var(--ink); border-color: var(--ink); color: var(--foam); }
.button:focus-visible, .card:focus-visible {
  outline: 3px solid var(--beam);
  outline-offset: 3px;
}

.section { margin-top: 4rem; }

.points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 46rem) {
  .points { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--foam);
  color: var(--ink);
  text-decoration: none;
}
a.card { transition: border-color 0.15s ease, transform 0.15s ease; }
a.card:hover { border-color: var(--sea); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { a.card:hover { transform: none; } }
.card h3 { margin: 0 0 0.4rem; font-size: 1.02rem; }
.card p { margin: 0 0 0.75rem; color: var(--ink-soft); font-size: 0.97rem; overflow-wrap: anywhere; }
.card .more, .card .soon { margin-top: auto; font-size: 0.88rem; font-weight: 650; }
.card .more { color: var(--sea); }
.card .more::after { content: " \2192"; }
.card .soon { color: var(--ink-soft); }

/* Products page */
.product {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--foam);
  scroll-margin-top: 6.5rem;
}
.product-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.product h2 { margin: 0; font-size: 1.3rem; }
.product p { color: var(--ink-soft); margin: 0.75rem 0; }
.product ul { margin: 0; padding-left: 1.2rem; color: var(--ink-soft); }
.product li { margin: 0.35rem 0; }
.product li strong { color: var(--ink); }
.tag {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--sea-soft);
  color: var(--sea);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--sea-soft);
}
.cta-band p { margin: 0; font-weight: 650; }

.prose { max-width: 44rem; }
.prose p { margin: 0 0 0.9rem; color: var(--ink-soft); }
.prose a, .notfound a { color: var(--sea); font-weight: 650; }

.site-footer {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.site-footer p { margin: 0 0 0.35rem; }

.notfound > * { max-width: 36rem; }
