@import "tailwindcss";

:root { --ink:#17313a; --muted:#688087; --paper:#f6f4ed; --sea:#2f8f9d; --deep:#0d5965; --line:#cdd8d5; --sand:#e7bb72; }
* { box-sizing:border-box; }
[hidden] { display:none!important; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:var(--font-sans),sans-serif; }
button,a { font:inherit; }
button { color:inherit; }
main { min-height:100vh; overflow:hidden; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.site-header { max-width:1180px; margin:auto; padding:28px 30px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--line); }
.brand { color:inherit; text-decoration:none; display:flex; align-items:center; gap:12px; }
.brand-mark { width:42px; height:42px; display:grid; place-items:center; background:var(--deep); color:white; border-radius:50%; font-family:var(--font-serif),serif; font-size:20px; }
.brand b { display:block; font-family:var(--font-serif),serif; letter-spacing:.12em; }
.brand small { display:block; margin-top:2px; color:var(--muted); font-size:9px; letter-spacing:.24em; }
.source-tag { font-size:12px; color:var(--muted); letter-spacing:.08em; }
.cover { position:relative; max-width:1440px; margin:0 auto; background:#f7f2e7; overflow:hidden; }
.cover > picture,.cover > picture img { display:block; width:100%; }
.cover > picture img { height:auto; aspect-ratio:1728/917; object-fit:cover; }
.cover-bottom { position:absolute; inset:auto 0 0; padding:24px clamp(24px,4vw,58px); display:flex; justify-content:space-between; align-items:end; gap:30px; color:white; background:linear-gradient(180deg,transparent,rgba(5,45,53,.9)); }
.cover-status span { display:block; color:#d7e6e4; font-size:11px; letter-spacing:.12em; }
.cover-status strong { display:block; margin:4px 0; font-family:var(--font-serif),serif; font-size:30px; }
.cover-status p { margin:0; color:#d7e6e4; font-size:12px; }
.cover-link { display:flex; align-items:center; gap:15px; color:white; text-decoration:none; font-size:13px; letter-spacing:.08em; }
.cover-link span { width:38px; height:38px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.58); border-radius:50%; }
.eyebrow { margin:0 0 14px; color:var(--sea); font-weight:700; font-size:12px; letter-spacing:.2em; text-transform:uppercase; }
.station-section { background:#17313a; color:#f5f2e9; padding:52px max(30px,calc((100vw - 1120px)/2)); }
.section-heading { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:28px; }
.section-heading h2 { margin:0; font-family:var(--font-serif),serif; font-size:36px; }
.section-heading h2 small { margin-left:12px; color:#9fb4b6; font-family:var(--font-sans),sans-serif; font-size:13px; font-weight:400; }
.section-heading > p { margin:0; color:#9fb4b6; font-size:12px; }
.station-tabs { display:grid; grid-template-columns:repeat(6,1fr); border-top:1px solid #466069; border-bottom:1px solid #466069; }
.station-tabs button { padding:20px 16px; text-align:left; background:transparent; border:0; border-right:1px solid #466069; cursor:pointer; transition:.2s ease; }
.station-tabs button:last-child { border-right:0; }
.station-tabs button:hover,.station-tabs button.active { background:#f1eee5; color:var(--ink); transform:translateY(-5px); }
.station-tabs b,.station-tabs span { display:block; }
.station-tabs b { font-family:var(--font-serif),serif; font-size:18px; }
.station-tabs span { margin-top:6px; opacity:.62; font-size:11px; }
.tide-panel { max-width:1180px; min-height:550px; margin:auto; padding:58px 30px 70px; }
.state-message { min-height:360px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; color:var(--muted); }
.state-message.error b { color:var(--ink); font-size:22px; }
.loader { width:32px; height:32px; border:2px solid var(--line); border-top-color:var(--sea); border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.date-tabs { display:flex; overflow-x:auto; border-bottom:1px solid var(--line); scrollbar-width:none; }
.range-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:12px; }
.range-toolbar > div { display:flex; align-items:center; gap:10px; }
.range-toolbar b { font-family:var(--font-serif),serif; font-size:16px; }
.range-toolbar span { padding:5px 9px; border-radius:999px; background:#dceae7; color:var(--deep); font-size:10px; }
.range-toolbar span.estimate { background:#f3e4c7; color:#78541d; }
.range-toolbar label { display:flex; align-items:center; gap:9px; color:var(--muted); font-size:11px; }
.range-toolbar input { min-height:40px; padding:7px 10px; border:1px solid var(--line); border-radius:8px; background:white; color:var(--ink); font:inherit; }
.date-tabs button { min-width:110px; padding:10px 14px 16px; border:0; border-bottom:3px solid transparent; background:transparent; text-align:left; cursor:pointer; }
.date-tabs button.active { border-bottom-color:var(--sea); }
.date-tabs span,.date-tabs b { display:block; }
.date-tabs span { color:var(--muted); font-size:11px; }
.date-tabs b { margin-top:4px; font-size:13px; }
.chart-heading { margin-top:44px; display:flex; align-items:end; justify-content:space-between; gap:20px; }
.chart-heading h2 { margin:0; font-family:var(--font-serif),serif; font-size:28px; }
.legend { display:flex; gap:18px; color:var(--muted); font-size:12px; }
.legend span { display:flex; align-items:center; gap:7px; }
.legend i { width:9px; height:9px; border-radius:50%; }
.high-dot { background:var(--sand); }.low-dot { background:var(--sea); }
.sunset-dot { background:#dc7d42; }
.sunset-copy { margin:8px 0 0; color:#a25c30; font-size:12px; }
.chart-wrap { width:100%; margin-top:16px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.chart-wrap svg { display:block; width:100%; height:330px; overflow:visible; }
.grid-line { stroke:#dbe2df; stroke-width:1; vector-effect:non-scaling-stroke; }
.tide-line { fill:none; stroke:var(--deep); stroke-width:3; vector-effect:non-scaling-stroke; }
.axis-label,.event-label { fill:var(--muted); font-family:var(--font-sans),sans-serif; font-size:11px; }
.event-label { fill:var(--ink); font-weight:600; }
.event-high { fill:var(--sand); stroke:var(--paper); stroke-width:3; vector-effect:non-scaling-stroke; }
.event-low { fill:var(--sea); stroke:var(--paper); stroke-width:3; vector-effect:non-scaling-stroke; }
.sunset-line { stroke:#dc7d42; stroke-width:2; stroke-dasharray:5 5; vector-effect:non-scaling-stroke; }
.sunset-label { fill:#a25c30; font-family:var(--font-sans),sans-serif; font-size:11px; font-weight:700; }
.sunset-label-box rect { fill:#fff4e9; stroke:#dc7d42; stroke-width:1; vector-effect:non-scaling-stroke; }
.sunset-marker { fill:#dc7d42; stroke:var(--paper); stroke-width:3; vector-effect:non-scaling-stroke; }
.sunset-card { background:#f4e4d7; }
.sunset-card span,.sunset-card strong { color:#a25c30; }
.event-list { display:grid; grid-template-columns:repeat(4,1fr); margin-top:28px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.event-list article { padding:20px; border-right:1px solid var(--line); }
.event-list article:last-child { border-right:0; }
.event-list span { color:var(--sea); font-size:11px; letter-spacing:.1em; }
.event-list strong { display:block; margin:5px 0 0; font-family:var(--font-serif),serif; font-size:28px; }
.event-list p { margin:2px 0 0; color:var(--muted); font-size:13px; }
.no-events { grid-column:1/-1; color:var(--muted); text-align:center; }
footer { background:#e9e6dd; padding:38px max(30px,calc((100vw - 1120px)/2)); display:grid; grid-template-columns:1.5fr 1fr auto; align-items:start; gap:30px; color:var(--muted); font-size:11px; line-height:1.7; }
footer p { margin:0; } footer b { color:var(--ink); } footer a { color:var(--deep); text-decoration:none; white-space:nowrap; }
@media (max-width:760px) {
  html { -webkit-text-size-adjust:100%; }
  body { padding-bottom:env(safe-area-inset-bottom); }
  .site-header { padding:20px; }.source-tag { display:none; }
  .cover { min-height:620px; background:#f4eee1; }
  .cover > picture img { width:100%; height:620px; aspect-ratio:auto; object-fit:cover; object-position:center 46%; }
  .cover-bottom { z-index:3; padding:100px 20px calc(24px + env(safe-area-inset-bottom)); align-items:flex-end; }.cover-status strong { font-size:25px; }.cover-link { font-size:0; gap:0; }
  .station-section { padding:40px 20px; }.section-heading { align-items:start; }.section-heading > p { display:none; }
  .station-tabs { grid-template-columns:repeat(3,1fr); }.station-tabs button { border-bottom:1px solid #466069; }
  .station-tabs button { min-height:72px; padding:15px 12px; touch-action:manipulation; }
  .tide-panel { padding:36px 16px 56px; }.chart-heading { margin-top:32px; align-items:start; flex-direction:column; }.chart-wrap { overflow:hidden; }.chart-wrap svg { min-width:0; height:290px; }
  .range-toolbar { align-items:flex-start; flex-direction:column; }.range-toolbar label { width:100%; justify-content:space-between; }.range-toolbar input { min-width:160px; font-size:16px; }
  .date-tabs { margin-inline:-16px; padding-inline:8px; scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch; }
  .date-tabs button { min-width:92px; min-height:58px; padding:9px 10px 13px; scroll-snap-align:center; touch-action:manipulation; }
  .chart-heading h2 { font-size:24px; }.legend { flex-wrap:wrap; }
  .event-list { grid-template-columns:repeat(2,1fr); }.event-list article:nth-child(2) { border-right:0; }
  footer { padding:30px 20px; grid-template-columns:1fr; gap:15px; }
}
@media (max-width:390px) {
  .cover,.cover > picture img { min-height:580px; height:580px; }
  .station-section { padding-inline:16px; }
  .station-tabs b { font-size:16px; }
  .event-list strong { font-size:24px; }
}
