:root { color-scheme: light; font-family: "DM Sans", sans-serif; color: #0d2d33; background: #e8f2f1; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at 18% 4%, rgba(255,255,255,.96), transparent 28rem), linear-gradient(135deg, #b9deda 0, #e8f2f1 36rem); }
main { min-height: 100vh; padding: clamp(2.5rem, 7vw, 5rem) 1.25rem 5rem; }
.shell { width: min(100%, 64rem); margin: 0 auto; }
.page-header { display: grid; grid-template-columns: minmax(0, .9fr) minmax(20rem, 1.1fr); align-items: stretch; gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: 1.75rem; border-bottom: 1px solid rgba(13,45,51,.16); }
.header-copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; align-items: flex-start; }
.header-photo { width: 100%; height: clamp(15rem, 31vw, 22rem); object-fit: cover; object-position: center 58%; border: 1px solid rgba(13,45,51,.15); box-shadow: 0 18px 50px rgba(13,45,51,.16); }
.eyebrow { display: flex; align-items: center; gap: .55rem; margin: 0; color: #176c78; font-size: .875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.wave-mark { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; font-size: 1.7rem; line-height: 1; }
h1, h2 { font-family: "Fraunces", serif; }
h1 { margin: .7rem 0 0; font-size: clamp(2.75rem, 8vw, 5.25rem); line-height: .98; }
.next-tide { width: min(100%, 19rem); margin-top: 1.5rem; padding: .85rem 1.2rem; border-left: 4px solid #e29a42; background: rgba(255,255,255,.8); box-shadow: 0 12px 34px rgba(13,45,51,.08); }
.next-tide p { margin: 0; color: #176c78; font-size: .875rem; font-weight: 700; }
.next-tide strong { display: block; margin-top: .2rem; font-size: 1.25rem; }
.status { margin-top: 2rem; min-height: 14rem; display: grid; place-items: center; background: rgba(255,255,255,.65); font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.card { padding: 1.5rem; border-top: 4px solid #176c78; background: #fff; box-shadow: 0 18px 50px rgba(13,45,51,.1); }
.card:first-child { border-color: #e29a42; }
.day-label { margin: 0; color: #176c78; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.card h2 { min-height: 3.5rem; margin: .5rem 0 1.25rem; font-size: 1.5rem; line-height: 1.15; }
.tide { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; border-top: 1px solid rgba(13,45,51,.1); }
.tide:first-of-type { border-top: 0; }
.tide-name { display: flex; align-items: center; gap: .65rem; font-weight: 700; }
.tide-icon { width: 1.7rem; color: #176c78; font-size: 1.5rem; text-align: center; }
.low .tide-icon { color: #c36536; }
.tide time { font-size: 1.08rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.source { margin: 1.5rem 0 0; color: rgba(13,45,51,.68); font-size: .875rem; line-height: 1.6; }
a { color: #176c78; font-weight: 700; text-underline-offset: .2em; }
.error { margin-top: 2rem; padding: 1.6rem; border-top: 4px solid #e29a42; background: white; box-shadow: 0 18px 50px rgba(13,45,51,.1); }
.error h2 { margin: 0; font-size: 1.65rem; }.error p { line-height: 1.6; }.error a { display: inline-flex; min-height: 3rem; align-items: center; margin-top: .6rem; padding: 0 1.1rem; color: white; background: #0d2d33; text-decoration: none; }
[hidden] { display: none !important; }
@media (max-width: 760px) { .page-header { grid-template-columns: 1fr; gap: 1.5rem; } .header-photo { height: min(64vw, 19rem); } .next-tide { width: 100%; } .cards { grid-template-columns: 1fr; } .card h2 { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
