:root {
  --paper: #f7f4ed;
  --ink: #18322d;
  --deep: #10241f;
  --pine: #27655b;
  --moss: #9db99f;
  --mist: #dce4da;
  --sun: #e7bb70;
  --line: color-mix(in srgb, var(--ink) 18%, transparent);
  --rail: min(1120px, calc(100% - 2.5rem));
  --measure: min(700px, 100%);
  --serif: Iowan Old Style, Palatino Linotype, Book Antiqua, Palatino, Georgia, serif;
  --sans: Avenir Next, Avenir, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.75; text-rendering: optimizeLegibility; }
a { color: inherit; text-underline-offset: .18em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--deep); font-family: var(--serif); line-height: 1.08; letter-spacing: -.025em; }
h1 { max-width: 13ch; margin-bottom: 1.5rem; font-size: clamp(2.8rem, 7vw, 5.9rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.32rem, 2vw, 1.65rem); }

.jetty-shell { min-height: 100vh; }
.jetty-rail { width: var(--rail); margin-inline: auto; }
.jetty-measure { width: var(--measure); }
.signal-skip { position: fixed; top: .75rem; left: .75rem; z-index: 20; padding: .5rem .8rem; color: var(--paper); background: var(--deep); transform: translateY(-200%); }
.signal-skip:focus { transform: translateY(0); }
.signal-label { margin-bottom: .8rem; color: var(--pine); font-size: .71rem; font-weight: 800; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.signal-index { color: var(--pine); font-family: var(--serif); }

.lantern-mast { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid transparent; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); }
.lantern-mast--inner { display: flex; min-height: 4.8rem; align-items: center; justify-content: space-between; gap: 1rem; }
.lantern-mark { display: inline-flex; align-items: center; gap: .65rem; color: var(--deep); text-decoration: none; line-height: 1.05; }
.lantern-mark--seal { display: grid; width: 2.15rem; height: 2.15rem; place-items: center; border: 1px solid var(--pine); border-radius: 50%; color: var(--pine); font-family: var(--serif); font-size: 1.35rem; }
.lantern-mark strong, .lantern-mark small { display: block; }
.lantern-mark strong { font-size: .9rem; letter-spacing: .02em; }
.lantern-mark small { margin-top: .2rem; color: color-mix(in srgb, var(--ink) 64%, transparent); font-size: .62rem; letter-spacing: .07em; }
.lantern-nav ul, .tide-links { display: flex; margin: 0; padding: 0; list-style: none; }
.lantern-nav ul { align-items: center; gap: clamp(.75rem, 2vw, 1.45rem); }
.lantern-nav a { color: color-mix(in srgb, var(--ink) 82%, transparent); font-size: .78rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.lantern-nav a:hover, .lantern-nav a[aria-current="page"] { color: var(--pine); }

.strait-home--opening, .strait-story--lead { padding: clamp(3rem, 8vw, 7rem) 0 clamp(4rem, 10vw, 8rem); }
.strait-home--split { display: grid; grid-template-columns: minmax(0, .92fr) minmax(280px, 1.08fr); align-items: end; gap: clamp(2rem, 7vw, 8rem); }
.strait-home--intro, .strait-story--summary { max-width: 55ch; font-size: clamp(1.08rem, 2vw, 1.32rem); line-height: 1.65; }
.strait-home--photo { position: relative; margin: 0; }
.strait-home--photo::before { position: absolute; inset: -1rem 1rem 1rem -1rem; z-index: -1; border: 1px solid var(--moss); content: ""; }
.strait-home--photo img, .strait-story--image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.strait-home--photo figcaption { margin-top: .65rem; color: color-mix(in srgb, var(--ink) 68%, transparent); font-family: var(--serif); font-size: .88rem; font-style: italic; }

.lantern-call--link { display: inline-flex; align-items: center; gap: .75rem; margin-top: 1.25rem; padding: .85rem 0; border-bottom: 1px solid currentColor; color: var(--deep); font-weight: 800; text-decoration: none; transition: color 180ms ease, gap 180ms ease; }
.lantern-call--link:hover { gap: 1.05rem; color: var(--pine); }
.strait-home--section { padding: clamp(4rem, 9vw, 8rem) 0; }
.tide-deck { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.tide-note { display: flex; min-height: 15rem; flex-direction: column; padding: 1.6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background 220ms ease, transform 220ms ease; }
.tide-note:first-child { border-left: 1px solid var(--line); }
.tide-note:hover { background: #fffdf8; transform: translateY(-.4rem); }
.tide-note h3 { margin: auto 0 .7rem; }
.tide-note p { margin: 0; color: color-mix(in srgb, var(--ink) 74%, transparent); font-size: .91rem; line-height: 1.65; }
.tide-note > span:last-child { margin-top: 1.25rem; color: var(--pine); font-size: 1.25rem; }
.strait-plain { padding: clamp(4rem, 8vw, 7rem) 0; color: var(--paper); background: var(--deep); }
.strait-plain h2 { max-width: 10ch; color: var(--paper); }
.strait-plain .signal-label { color: var(--sun); }
.strait-plain--grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 8vw, 10rem); }
.tide-ticks { margin: 2rem 0 0; padding: 0; list-style: none; }
.tide-ticks li { padding: .75rem 0 .75rem 1.7rem; border-top: 1px solid color-mix(in srgb, var(--paper) 25%, transparent); position: relative; }
.tide-ticks li::before { position: absolute; left: .15rem; color: var(--sun); content: "↗"; }
.tide-guides { margin-top: 2rem; border-top: 1px solid var(--line); }
.tide-guides a { display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: 1rem; padding: 1.35rem .25rem; border-bottom: 1px solid var(--line); color: var(--deep); text-decoration: none; transition: padding 180ms ease, color 180ms ease; }
.tide-guides a:hover { padding-inline: .8rem; color: var(--pine); }
.tide-guides span { color: var(--pine); font-family: var(--serif); }
.tide-guides i { font-style: normal; }

.strait-story--lead { border-bottom: 1px solid var(--line); }
.strait-story--lead .jetty-measure { width: var(--rail); margin: 0 auto clamp(2rem, 5vw, 4rem); }
.strait-story--image { width: min(1400px, calc(100% - 2.5rem)); margin-inline: auto; }
.strait-story--body { padding: clamp(3rem, 7vw, 6rem) 0; }
/* Shared narrow reading columns are centered on desktop and mobile. */
.strait-story--body,
.strait-story > .strait-faq,
.strait-home > .strait-story--body { margin-inline: auto; }
.strait-story--body h2 { margin: 3.4rem 0 1.15rem; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.strait-story--body h3 { margin: 2.25rem 0 .75rem; }
.strait-story--body p, .strait-story--body li { color: color-mix(in srgb, var(--ink) 88%, transparent); }
.strait-story--body a { color: var(--pine); font-weight: 700; }
.strait-story--body ul, .strait-story--body ol { padding-left: 1.25rem; }
.strait-story--body li + li { margin-top: .45rem; }
.strait-faq { padding: clamp(3rem, 7vw, 6rem) 0; }
.tide-query { border-top: 1px solid var(--line); }
.tide-query:last-child { border-bottom: 1px solid var(--line); }
.tide-query summary { display: flex; align-items: center; justify-content: space-between; padding: 1.15rem 0; color: var(--deep); cursor: pointer; font-family: var(--serif); font-size: 1.15rem; font-weight: 700; list-style: none; }
.tide-query summary::-webkit-details-marker { display: none; }
.tide-query summary::after { color: var(--pine); content: "+"; font-family: var(--sans); font-size: 1.35rem; }
.tide-query[open] summary::after { content: "−"; }
.tide-query p { max-width: 65ch; margin: 0 0 1.3rem; color: color-mix(in srgb, var(--ink) 82%, transparent); }
.lantern-call { padding: clamp(3rem, 7vw, 6rem) 0; color: var(--paper); background: var(--pine); }
.lantern-call h2 { max-width: 18ch; margin-bottom: .7rem; color: var(--paper); }
.lantern-call .signal-label { color: #dbe9c9; }
.lantern-call--inner { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
/* Page CTAs use a narrow reading column; keep it centered like the article body. */
.lantern-call .jetty-measure { margin-inline: auto; }
.lantern-call--inner p:not(.signal-label) { max-width: 55ch; margin-bottom: 0; }
.lantern-call .lantern-call--link { color: var(--paper); flex: none; }

.jetty-foot { padding-top: 3.5rem; color: color-mix(in srgb, var(--paper) 78%, transparent); background: #11231f; }
.jetty-foot--grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; padding-bottom: 3rem; }
.jetty-foot .lantern-mark { color: var(--paper); }
.jetty-foot .lantern-mark--seal { border-color: var(--moss); color: var(--moss); }
.jetty-foot p { max-width: 56ch; margin: 1.25rem 0 0; font-size: .86rem; line-height: 1.65; }
.jetty-foot .signal-label { color: var(--sun); }
.tide-links { flex-wrap: wrap; gap: .5rem 1.25rem; }
.tide-links a { font-size: .84rem; }
.jetty-foot--base { padding: 1.1rem 0; border-top: 1px solid color-mix(in srgb, var(--paper) 16%, transparent); }
.jetty-foot--base small { font-size: .7rem; }

@media (max-width: 760px) {
  .lantern-mast { position: static; }
  .lantern-mast--inner { align-items: flex-start; flex-direction: column; padding: 1rem 0; }
  .lantern-nav { width: 100%; overflow-x: auto; padding-bottom: .25rem; }
  .lantern-nav ul { width: max-content; }
  .strait-home--split, .strait-plain--grid, .jetty-foot--grid { grid-template-columns: 1fr; }
  .tide-deck { grid-template-columns: 1fr; }
  .tide-note, .tide-note:first-child { min-height: 12rem; border-left: 1px solid var(--line); }
  .lantern-call--inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
