
:root {
  --ink: #071412;
  --lagoon: #0b1f1c;
  --lagoon-2: #12352f;
  --sea: #1f6b5c;
  --foam: #d7efe6;
  --sand: #f3e6d4;
  --coral: #e07a3d;
  --coral-deep: #c45e24;
  --muted: #9bb5ab;
  --line: rgba(215, 239, 230, 0.16);
  --max: 1100px;
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.wat-desk {
  margin: 0;
  min-height: 100vh;
  color: var(--foam);
  background: var(--lagoon);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: #8fd4c0; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #b7ffe8; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.wat-sky {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(900px 520px at 80% -10%, rgba(224, 122, 61, 0.22), transparent 55%),
    radial-gradient(700px 480px at 0% 20%, rgba(31, 107, 92, 0.45), transparent 50%),
    linear-gradient(165deg, #0a2420 0%, var(--lagoon) 42%, #081816 100%);
  animation: tide 14s ease-in-out infinite alternate;
}
@keyframes tide {
  from { filter: saturate(1); transform: scale(1); }
  to { filter: saturate(1.08); transform: scale(1.02); }
}

.site-head {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(7, 20, 18, 0.72);
  border-bottom: 1px solid var(--line);
}
.head-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem;
  padding: 0.85rem 0;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--sand);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo-mark {
  margin-left: 0.35rem;
  color: var(--coral);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.nav-pills {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  flex: 1;
}
.nav-pill {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
}
a.nav-pill:hover { color: var(--foam); border-color: var(--line); }
.nav-pill.is-active {
  color: var(--sand);
  border-color: rgba(224, 122, 61, 0.45);
  background: rgba(224, 122, 61, 0.1);
}
.btn-nav { margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  color: #1a0d06;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  box-shadow: 0 10px 28px rgba(224, 122, 61, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); color: #1a0d06; box-shadow: 0 14px 34px rgba(224, 122, 61, 0.38); }
.btn-ghost {
  background: transparent;
  color: var(--sand);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover { color: var(--sand); border-color: rgba(215, 239, 230, 0.4); }

.hero {
  padding: 3.2rem 0 2.2rem;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 10%, rgba(7, 20, 18, 0.55) 70%, rgba(7, 20, 18, 0.92) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cpath fill='none' stroke='%231f6b5c' stroke-opacity='.22' d='M0 80h160M80 0v160'/%3E%3C/svg%3E");
  opacity: 0.9;
  z-index: 0;
  animation: drift 18s linear infinite;
}
@keyframes drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 0, 160px 80px; }
}
.hero-inner { position: relative; z-index: 1; max-width: 38rem; padding-bottom: 1rem; }
.breadcrumb, .kicker { color: var(--muted); font-size: 0.88rem; margin: 0 0 0.55rem; }
.kicker { letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.75rem; color: #c9a07a; }
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--sand);
  margin: 0 0 1rem;
}
.lede { font-size: 1.08rem; color: var(--foam); opacity: 0.95; margin: 0 0 1.35rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 0.9rem; }
.hero-risk { font-size: 0.84rem; color: var(--muted); margin: 0; }
.path-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.path {
  text-decoration: none;
  color: var(--sand);
  border: 1px solid var(--line);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.84rem;
  animation: rise 0.7s ease both;
}
.path:nth-child(2) { animation-delay: 0.08s; }
.path:nth-child(3) { animation-delay: 0.16s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.section { padding: 2.4rem 0; border-top: 1px solid var(--line); }
.section h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--sand);
  margin: 0 0 0.75rem;
}
.answer-first { margin: 0; max-width: 62ch; }
.related { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.related a { text-decoration: none; color: var(--sand); }
.related a:hover { color: #b7ffe8; }
details {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.55rem;
  background: rgba(18, 53, 47, 0.35);
}
summary { cursor: pointer; font-weight: 600; color: var(--sand); }
details p { margin: 0.55rem 0 0; color: var(--foam); }
.cta-band {
  background: linear-gradient(120deg, rgba(224, 122, 61, 0.14), rgba(31, 107, 92, 0.2));
}
.site-foot {
  padding: 2rem 0 6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-foot .meta { opacity: 0.8; }
.updated { font-size: 0.82rem; color: var(--muted); margin: 0.65rem 0 0; }
.prose p { margin: 0 0 0.85rem; max-width: 68ch; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.2rem; max-width: 68ch; }
.prose li { margin-bottom: 0.4rem; }
.prose table {
  width: 100%; max-width: 720px; border-collapse: collapse;
  font-size: 0.92rem; margin: 0.5rem 0 1rem;
}
.prose th, .prose td {
  border: 1px solid var(--line); padding: 0.55rem 0.7rem; text-align: left;
}
.prose th { color: var(--sand); background: rgba(18, 53, 47, 0.45); }
.foot-nav {
  display: flex; flex-wrap: wrap; gap: 0.55rem 1rem;
  margin: 0 0 1.1rem; font-size: 0.88rem;
}
.foot-nav a { color: var(--muted); text-decoration: none; }
.foot-nav a:hover { color: var(--sand); }

.dock {
  position: fixed; left: 50%; bottom: 0.9rem; transform: translateX(-50%);
  z-index: 50;
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.55rem 0.55rem 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(7, 20, 18, 0.9);
  border: 1px solid rgba(224, 122, 61, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  font-size: 0.84rem;
  color: var(--muted);
  animation: dock-in 0.5s ease 0.4s both;
}
@keyframes dock-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.btn-dock { padding: 0.65rem 1rem; font-size: 0.86rem; }

@media (max-width: 820px) {
  .nav-pills { display: none; }
  .hero { min-height: auto; padding-top: 2rem; }
  .dock span { display: none; }
}
