/* Lateral Line Security: palette from the rainbow trout and a cold tailwater */

@font-face { font-family: "Spectral"; src: url("/fonts/spectral-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/fonts/spectral-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/fonts/spectral-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --riffle: #e6ece8;      /* page */
  --riffle-deep: #d7e0db;
  --tailwater: #16302d;   /* deep water */
  --olive: #4e5b3c;       /* trout's back */
  --rose: #c24e77;        /* lateral band, the one accent */
  --rose-ink: #9e3460;    /* accent for text on light */
  --silver: #bfc8c6;
  --spot: #232a26;
  --ink: #1b2523;
  --ink-soft: #485752;
  --rule: #b9c6c0;
  --focus: #c24e77;

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* type scale: 16px base, 1.25 ratio */
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.953rem;
  --step-4: clamp(2.2rem, 4.4vw, 3.4rem);

  --measure: 66ch;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --riffle: #10201e;
    --riffle-deep: #0c1a18;
    --ink: #e2e9e6;
    --ink-soft: #a8b8b2;
    --rule: #2c4440;
    --rose-ink: #e58aab;
    --spot: #9fb0aa;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--riffle);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-kerning: normal;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
h1 { font-size: var(--step-4); font-weight: 500; letter-spacing: -0.012em; max-width: 20ch; }
h2 { font-size: var(--step-3); font-weight: 500; letter-spacing: -0.006em; max-width: 26ch; }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1rem; max-width: var(--measure); }
a { color: var(--rose-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--tailwater); color: #fff; padding: 8px 14px; z-index: 20; }
.skip:focus { top: 12px; }

section { padding-block: 88px; }
section + section { border-top: 1px solid var(--rule); }

/* masthead */
.masthead { background: var(--tailwater); color: #e9f0ed; }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; letter-spacing: 0.005em; }
.wordmark svg { width: 44px; height: 18px; color: var(--rose); }
.masthead nav { display: flex; align-items: center; gap: 26px; font-size: 0.94rem; }
.masthead nav a { color: #c6d6d0; text-decoration: none; }
.masthead nav a:hover { color: #fff; }
.masthead nav .nav-cta { color: #fff; border: 1px solid #5a7a72; padding: 6px 14px; border-radius: 4px; }
.masthead nav .nav-cta:hover { border-color: var(--rose); }

/* hero */
.hero { background: var(--tailwater); color: #eef3f1; padding-block: 72px 0; overflow: hidden; }
.hero-plain { padding-block: 96px; }
.hero-lead { font-size: var(--step-1); line-height: 1.55; color: #c6d6d0; max-width: 58ch; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }
.button { display: inline-block; background: var(--rose); color: #fff; font-weight: 600; text-decoration: none; padding: 14px 24px; border-radius: 4px; }
.button:hover { background: #a93e66; text-decoration: none; }
.quiet-link { color: #e9f0ed; font-weight: 600; }
.hero .quiet-link:hover { color: #fff; }

.flank { margin: 56px 0 0; padding: 0 0 8px; background: var(--riffle); }
.flank svg { display: block; width: 100%; height: clamp(180px, 16vw, 240px); }
.flank .spots circle { fill: #14201b; opacity: 0.7; }
.flank .pores { stroke: #fff6f9; stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 0.01 13; }
.flank .accounts line { stroke: #6d7f79; stroke-width: 1; }
.flank .accounts text { fill: #2b3835; font-family: var(--sans); font-size: 15px; text-anchor: middle; }
.flank .finding circle { fill: none; stroke: #fff; stroke-width: 2.5; }
.flank .finding .finding-core { fill: #fff; stroke: none; }
.flank .pulse { fill: #ffffff; opacity: 0; }
.flank figcaption { display: flex; gap: 12px; align-items: baseline; font-family: var(--serif); font-style: italic; font-size: 1.06rem; color: var(--ink-soft); padding-block: 4px 0; }
.note-mark { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--rose); transform: translateY(1px); }
@media (prefers-color-scheme: dark) {
  .flank .belly-1 { stop-color: #6e5a63; }
  .flank .belly-2 { stop-color: #2a3a37; }
  .flank .belly-3 { stop-color: #10201e; }
  .flank .accounts text { fill: #b3c5bf; }
  .flank .accounts line { stroke: #4e6660; }
}

@supports (offset-path: path("M0 0")) {
  .flank .pulse {
    offset-path: path("M20 70 Q700 40 1380 70");
    animation: travel 3.2s cubic-bezier(0.45, 0, 0.25, 1) 0.6s 1 both;
  }
}
@keyframes travel {
  0%   { offset-distance: 0%;   opacity: 0; }
  8%   { opacity: 0.95; }
  90%  { opacity: 0.95; }
  100% { offset-distance: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flank .pulse { animation: none; opacity: 0; }
}

/* rules */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 40px; }
.rules h3 { margin-bottom: 12px; }
.cite { font-size: 0.875rem; color: var(--ink-soft); font-style: italic; }
.gap { margin-top: 40px; padding-left: 20px; border-left: 3px solid var(--rose); font-family: var(--serif); font-size: var(--step-1); line-height: 1.5; max-width: 52ch; }

/* services */
.section-lead { color: var(--ink-soft); margin-top: 16px; }
.service { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 56px; padding-block: 48px; border-top: 1px solid var(--rule); margin-top: 40px; }
.service + .service { margin-top: 0; }
.service-intro p { color: var(--ink-soft); margin-top: 12px; }
.includes { margin: 0; padding: 0; list-style: none; }
.includes li { position: relative; padding-left: 26px; margin-bottom: 12px; max-width: 60ch; }
.includes li::before { content: ""; position: absolute; left: 2px; top: 0.66em; width: 12px; height: 3px; border-radius: 2px; background: var(--rose); }
.plans { grid-column: 2; width: 100%; border-collapse: collapse; font-size: 0.97rem; font-variant-numeric: tabular-nums lining-nums; }
.plans thead th { font-weight: 600; font-size: 0.875rem; color: var(--ink-soft); text-align: right; padding: 0 0 8px 16px; border-bottom: 1px solid var(--ink); }
.plans thead th:first-child { text-align: left; padding-left: 0; }
.plans tbody th { text-align: left; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.plans tbody th small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.875rem; margin-top: 2px; }
.plans td { text-align: right; padding: 14px 0 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; white-space: nowrap; }
.caveat { margin-top: 8px; color: var(--ink-soft); font-size: 0.94rem; }

/* month */
.steps { list-style: none; counter-reset: step; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; border-top: 3px dotted var(--rose); opacity: 0.7; }
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--tailwater); color: #fff; font-weight: 600; font-size: 0.9rem; display: grid; place-items: center; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-soft); }

/* this site */
.this-site { background: var(--riffle-deep); }
.controls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; margin: 40px 0 0; }
.controls div { padding: 20px 0; border-top: 1px solid var(--rule); }
.controls dt { font-family: var(--serif); font-weight: 600; font-size: var(--step-1); margin-bottom: 6px; }
.controls dd { margin: 0; color: var(--ink-soft); max-width: 52ch; }
.verify { margin-top: 32px; }

/* about */
.about .two-col { grid-template-columns: 5fr 7fr; margin-top: 0; }
.fine { font-size: 0.875rem; color: var(--ink-soft); }

/* contact */
.contact { background: var(--tailwater); color: #eef3f1; }
.contact p { color: #c6d6d0; }
.contact .hero-actions { margin-top: 28px; }
.button-light { background: #f3f6f4; color: var(--tailwater); }
.button-light:hover { background: #fff; }
.contact .quiet-link { color: #f2d6e0; }

/* footer */
.footer { padding-block: 28px; font-size: 0.875rem; color: var(--ink-soft); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer p { margin: 0; }

@media (max-width: 900px) {
  .masthead nav a:not(.nav-cta) { display: none; }
  .two-col, .about .two-col, .service { grid-template-columns: 1fr; gap: 24px; }
  .plans { grid-column: 1; }
  .controls { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  section { padding-block: 64px; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  .steps { grid-template-columns: 1fr; }
  .flank .acct-minor { display: none; }
  .wordmark span { font-size: 1rem; }
}
