:root {
  --bg: #121212;
  --surface: #1c1c1c;
  --border: #2e2e2e;
  --text: #f2f2f2;
  --muted: #b5b5b5;
  --accent: #9ed7e6;
  --drop-outline: #f2f2f2;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface: #f4f5f6;
    --border: #e1e3e6;
    --text: #121212;
    --muted: #4a6378;
    --accent: #006884;
    --drop-outline: #121212;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
header.site nav a { margin-left: 18px; text-decoration: none; color: var(--muted); font-weight: 500; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--text); }

/* Wordmark: "RivLap" with a water drop as the dot of the i */
.logo {
  font-family: "Righteous", system-ui, sans-serif;
  color: var(--text); text-decoration: none; line-height: 1;
  display: inline-flex; align-items: baseline; white-space: nowrap;
  letter-spacing: -0.01em;
}
.logo .i { position: relative; display: inline-block; }
.logo .drop { position: absolute; left: 50%; transform: translateX(-50%); width: 0.27em; bottom: 0.76em; }
.logo .drop .o { fill: var(--drop-outline); }
.logo .drop .f { fill: #9ed7e6; }
header.site .logo { font-size: 30px; }

.hero { text-align: center; padding: 96px 0 72px; }
.hero .logo { font-size: clamp(72px, 18vw, 128px); margin: 0; }
.hero .tagline { font-size: clamp(20px, 4.5vw, 26px); margin: 28px 0 8px; }
.hero .sub { color: var(--muted); max-width: 520px; margin: 0 auto; }
.badge {
  display: inline-block; margin-top: 32px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); font-weight: 500;
}

.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-bottom: 72px; }
.features div { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 20px; }
.features h2 { font-family: "Righteous", system-ui, sans-serif; font-weight: 400; font-size: 20px; margin: 0 0 6px; }
.features p { margin: 0; color: var(--muted); font-size: 16px; }

.doc { padding: 48px 0 72px; }
.doc h1 { font-family: "Righteous", system-ui, sans-serif; font-weight: 400; font-size: 36px; margin: 0 0 4px; }
.doc h2 { font-size: 20px; margin: 36px 0 8px; }
.doc .meta { color: var(--muted); margin: 0 0 24px; }
.draft {
  border: 1px solid var(--border); background: var(--surface); border-radius: 6px;
  padding: 14px 16px; margin: 0 0 28px; font-size: 15px; color: var(--muted);
}

footer.site { border-top: 1px solid var(--border); padding: 24px 0 40px; color: var(--muted); font-size: 15px; }
footer.site a { color: var(--muted); margin-right: 16px; }
