/* Tidewalker site: the Tide Table identity (Docs/adr/0010). Chart paper and sepia ink by day,
   the same almanac by lamplight at night. */
:root {
  --paper: #EEE5D0;
  --paper-deep: #E4D8BE;
  --ink: #3A2E24;
  --ink-soft: #5A4A3B;
  --muted: #7A6650;
  --rule: #C9BBA0;
  --tide: #2F5D6B;
  --brass: #A6803F;
  --link: #2F5D6B;
  --link-hover: #1E3F49;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #241C16; --paper-deep: #2E241C; --ink: #F1E8D6; --ink-soft: #D9C9A6; --muted: #B3A182;
    --rule: #4A3C2F; --tide: #7FB0BE; --brass: #C9A15E; --link: #8FC0CC; --link-hover: #B5DCE5;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #241C16; --paper-deep: #2E241C; --ink: #F1E8D6; --ink-soft: #D9C9A6; --muted: #B3A182;
  --rule: #4A3C2F; --tide: #7FB0BE; --brass: #C9A15E; --link: #8FC0CC; --link-hover: #B5DCE5;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Spectral', Georgia, 'Times New Roman', serif;
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding-inline: 1.25rem; }
.measure { max-width: 38rem; }

.sc {
  font-family: 'IM Fell English SC', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.12em;
}
.italic { font-family: 'IM Fell English', Georgia, serif; font-style: italic; }

/* Header: wordmark, tide curve, tagline */
.masthead { padding-block: 3.5rem 2rem; text-align: center; }
.wordmark { margin: 0; font-size: clamp(2.6rem, 9vw, 5rem); line-height: 1; letter-spacing: 0.14em; }
.wordmark a { color: inherit; text-decoration: none; }
.curve { width: min(26rem, 80%); height: auto; margin: 0.9rem auto 0.4rem; color: var(--tide); }
.tagline { margin: 0; font-size: clamp(1.2rem, 3.4vw, 1.6rem); color: var(--ink-soft); }

.tides {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 2rem;
  margin-top: 1.4rem; font-style: italic; color: var(--muted); font-variant-numeric: tabular-nums;
}

/* Hero picture */
.plate { margin-block: 1rem 3rem; }
.plate img { width: 100%; height: auto; aspect-ratio: 1280 / 590; object-fit: cover; border: 1px solid var(--rule); }
.plate figcaption { margin-top: 0.6rem; font-size: 0.95rem; font-style: italic; color: var(--muted); text-align: center; }

/* Text sections */
section { padding-block: 1rem 2.5rem; }
h2 { margin: 0 0 0.8rem; font-size: 1.7rem; line-height: 1.2; text-wrap: balance; }
h3 { margin: 1.6rem 0 0.4rem; font-size: 1.25rem; line-height: 1.3; text-wrap: balance; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.3rem; line-height: 1.55; color: var(--ink); }
.rule { border: 0; border-top: 1px solid var(--rule); margin-block: 0.5rem 2.5rem; }

/* Three plates side by side, stacking on phones */
.plates { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; margin-block: 0.5rem 3rem; }
.plates figure { margin: 0; min-width: 0; }
.plates img { width: 100%; height: auto; border: 1px solid var(--rule); }
.plates figcaption { margin-top: 0.5rem; font-size: 0.95rem; font-style: italic; color: var(--muted); }

.status {
  display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap;
  border: 1px solid var(--rule); padding: 1.25rem 1.5rem; margin-block: 0 3rem;
}
.status img { width: 4.5rem; height: 4.5rem; border-radius: 22%; flex: none; }
.status div { min-width: 0; flex: 1 1 16rem; }
.status p { margin: 0; }

/* Privacy policy */
.doc { padding-block: 0 3rem; }
.doc h1 { margin: 0 0 0.3rem; font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.1; }
.doc .dated { color: var(--muted); font-style: italic; margin-bottom: 2rem; }
.doc ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.doc li { margin-bottom: 0.4rem; }
.doc table { border-collapse: collapse; width: 100%; font-size: 1rem; margin-block: 0.5rem 1.5rem; }
.table-scroll { overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--rule); }
.doc th { font-family: 'IM Fell English SC', Georgia, serif; font-weight: 400; letter-spacing: 0.08em; color: var(--muted); }

footer {
  border-top: 1px solid var(--rule); padding-block: 1.5rem 2.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
  font-size: 0.95rem; color: var(--muted);
}
footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
