:root {
  --deep: #04212f;
  --deep-2: #072f42;
  --sea: #0e7c8a;
  --sea-bright: #17b8bd;
  --foam: #e9f6f7;
  --sand: #f6f1e7;
  --coral: #ff7a4d;
  --ink: #0b1b23;
  --muted: #5c7580;
  --line: rgba(11, 27, 35, 0.1);
  --white: #ffffff;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(4, 33, 47, 0.06), 0 4px 14px rgba(4, 33, 47, 0.06);
  --shadow-lg: 0 24px 60px rgba(4, 33, 47, 0.16);
  --wrap: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Fraunces, Georgia, serif;
  line-height: 1.1;
  margin: 0 0 .5rem;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: var(--sea); text-decoration: none; }
a:hover { color: var(--coral); }

img, svg { max-width: 100%; }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--deep);
  color: var(--white);
  padding: .75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Close-season banner ---------- */

.season-banner {
  background: linear-gradient(105deg, #5c2a0e 0%, #8a4518 55%, #6b3512 100%);
  color: #fff6ee;
  border-bottom: 1px solid rgba(255, 246, 238, .18);
}

.season-banner-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
}

.season-banner p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.5;
  color: rgba(255, 246, 238, .92);
}

.season-banner strong {
  display: inline-block;
  margin-right: .35rem;
  color: #fff;
  font-weight: 600;
}

.season-banner a {
  color: #ffd2a8;
  font-weight: 600;
  white-space: nowrap;
}
.season-banner a:hover { color: #fff; }

.season-banner-dismiss {
  flex-shrink: 0;
  margin: 0;
  padding: .35rem .7rem;
  border: 1px solid rgba(255, 246, 238, .35);
  border-radius: 8px;
  background: transparent;
  color: #fff6ee;
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}
.season-banner-dismiss:hover {
  background: rgba(255, 246, 238, .12);
}

:focus-visible {
  outline: 3px solid var(--sea-bright);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 33, 47, 0.72);
  backdrop-filter: blur(14px);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.is-stuck {
  background: rgba(4, 33, 47, 0.94);
  box-shadow: 0 8px 30px rgba(4, 33, 47, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--white);
  font-weight: 600;
}
.brand:hover { color: var(--white); }

.brand-mark {
  width: 60px;
  height: 27px;
  overflow: visible;
  fill: var(--sea-bright);
}
.brand-eye { fill: var(--deep); }
.dog-spots { fill: var(--deep); opacity: .42; }
.dog-gills {
  fill: none;
  stroke: var(--deep);
  stroke-width: .9;
  stroke-linecap: round;
  opacity: .45;
}

/* Dogfish swim cycle: body bobs, tail sweeps, fins trail behind. */
.dogfish { animation: dog-bob 3.2s ease-in-out infinite; }

.fin-tail {
  transform-origin: 19px 17px;
  animation: dog-tail 1.1s ease-in-out infinite;
}
.fin-pectoral {
  transform-origin: 49px 21.5px;
  animation: dog-fin 1.6s ease-in-out infinite;
}
.fin-pelvic {
  transform-origin: 35px 22px;
  animation: dog-fin 1.6s ease-in-out infinite .2s;
}
.fin-anal {
  transform-origin: 26.5px 20.8px;
  animation: dog-fin 1.6s ease-in-out infinite .35s;
}

.brand:hover .fin-tail { animation-duration: .6s; }
.brand:hover .dogfish { animation-duration: 1.8s; }

@keyframes dog-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.3px); }
}
@keyframes dog-tail {
  0%, 100% { transform: rotate(-12deg); }
  50% { transform: rotate(12deg); }
}
@keyframes dog-fin {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(7deg); }
}

.brand-text {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.brand-text span { color: var(--sea-bright); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav a {
  color: rgba(233, 246, 247, 0.82);
  font-size: .95rem;
  font-weight: 500;
}
.nav a:hover,
.nav a.is-active { color: var(--white); }
.nav a.is-active { text-decoration: underline; text-underline-offset: .35em; }
.nav a.btn { color: var(--deep); }
.nav a.btn.is-active { text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  background: none;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin-inline: auto;
  background: var(--foam);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--sea-bright);
  color: var(--deep);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 10px 24px rgba(23, 184, 189, .28);
}
.btn:hover {
  background: #2ad2d6;
  color: var(--deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(23, 184, 189, .34);
}
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; box-shadow: none; }
.btn-block { width: 100%; }
.btn-ghost {
  background: transparent;
  color: var(--foam);
  border: 1px solid rgba(233, 246, 247, .35);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(233, 246, 247, .1); color: var(--white); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  color: var(--foam);
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(6rem, 14vw, 9rem);
  overflow: hidden;
  margin-top: -72px;
  padding-top: calc(clamp(4rem, 12vw, 8rem) + 72px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(165deg, #062a3b 0%, #063f52 45%, #0a6474 100%);
}

.sun {
  position: absolute;
  top: 8%;
  right: 12%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 122, .55), rgba(255, 122, 77, .12) 60%, transparent 70%);
  filter: blur(6px);
}

.water {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(23, 184, 189, .18), rgba(4, 33, 47, .55));
}

.waves {
  position: absolute;
  inset: auto 0 -1px;
  width: 200%;
  height: 200px;
}
.wave { fill: rgba(255, 255, 255, .06); }
.wave-1 { animation: drift 18s linear infinite; }
.wave-2 { fill: rgba(255, 255, 255, .09); animation: drift 26s linear infinite reverse; }

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-inner { position: relative; max-width: 720px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--sea-bright);
  margin-bottom: .9rem;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(233, 246, 247, .82);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 2rem 0 3rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  margin: 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(233, 246, 247, .18);
}
.stats dt {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(233, 246, 247, .6);
}
.stats dd {
  margin: .15rem 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 2rem;
  color: var(--white);
}

/* ---------- Sections ---------- */

.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-alt { background: var(--sand); }

.home-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem 1.25rem;
  margin-top: 2rem;
}
.home-link {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(15, 61, 62, .12);
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}
.home-link strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--deep);
}
.home-link span {
  color: rgba(15, 61, 62, .72);
  font-size: .95rem;
  line-height: 1.45;
}
.home-link:hover strong { color: var(--sea); }

.section-head {
  max-width: 640px;
  margin-bottom: 2.75rem;
}
.section-head .eyebrow { color: var(--sea); }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Trip cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(23, 184, 189, .4);
}

.card.featured {
  background: linear-gradient(170deg, var(--deep) 0%, var(--deep-2) 100%);
  color: var(--foam);
  border-color: transparent;
}
.card.featured h3 { color: var(--white); }
.card.featured p { color: rgba(233, 246, 247, .8); }
.card.featured .card-tag { background: rgba(23, 184, 189, .18); color: var(--sea-bright); }
.card.featured .ticks li { color: rgba(233, 246, 247, .85); }
.card.featured .price strong { color: var(--white); }

.card-tag {
  align-self: flex-start;
  background: var(--foam);
  color: var(--sea);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.card p { color: var(--muted); }

.ticks {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: .45rem;
  font-size: .95rem;
}
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sea-bright);
  box-shadow: 0 0 0 4px rgba(23, 184, 189, .18);
}
.ticks-lg { font-size: 1rem; gap: .7rem; margin-bottom: 0; }

.swim-note {
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  font-size: .85rem;
  line-height: 1.5;
}
.card.featured .swim-note { border-top-color: rgba(233, 246, 247, .2); }

/* ---------- Swim map ---------- */

.swim-map-shell {
  margin-bottom: 1.75rem;
  scroll-margin-top: 5.5rem;
}

.swim-map {
  height: min(420px, 70vh);
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  z-index: 1;
  background: var(--foam);
}

.map-note {
  margin: .75rem 0 0;
  font-size: .9rem;
  color: var(--muted);
}

.card[data-swim] {
  scroll-margin-top: 5.5rem;
  cursor: pointer;
}

.card.is-active {
  border-color: var(--sea-bright);
  box-shadow: 0 0 0 3px rgba(23, 184, 189, .25), var(--shadow-lg);
}

.card.featured.is-active {
  box-shadow: 0 0 0 3px rgba(23, 184, 189, .4), var(--shadow-lg);
}

.swim-pin {
  background: transparent;
  border: none;
}

.swim-pin-dot {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--coral);
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(4, 33, 47, .35);
  transition: transform .2s ease, background .2s ease;
}

.swim-pin.is-active .swim-pin-dot {
  background: var(--sea-bright);
  transform: scale(1.25);
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
  font-family: Inter, system-ui, sans-serif;
  box-shadow: var(--shadow-lg);
}

.leaflet-popup-content {
  margin: .85rem 1rem;
  line-height: 1.45;
  color: var(--ink);
}

.leaflet-popup-content strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.05rem;
}

.leaflet-container a { color: var(--sea); }
.leaflet-container a:hover { color: var(--coral); }

.price {
  margin: auto 0 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: .9rem;
}
.price strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.7rem;
  color: var(--ink);
}
.price span { font-size: .85rem; }

.card-link { font-weight: 600; }

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.ticket-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow-sm);
}
.ticket-card.featured {
  background: linear-gradient(170deg, var(--deep) 0%, var(--deep-2) 100%);
  color: var(--foam);
  border-color: transparent;
}
.ticket-card.featured h3 { color: var(--white); }
.ticket-card.featured p { color: rgba(233, 246, 247, .8); }
.ticket-card.featured .card-tag {
  background: rgba(23, 184, 189, .18);
  color: var(--sea-bright);
}
.ticket-card.featured .ticks li { color: rgba(233, 246, 247, .85); }
.ticket-card.featured .card-link { color: var(--sea-bright); }
.ticket-card.featured .card-link:hover { color: var(--white); }
.ticket-card.featured .swim-note {
  border-top-color: rgba(233, 246, 247, .2);
  color: rgba(233, 246, 247, .7);
}

.ticket-card > .card-link { margin-top: auto; padding-top: 1rem; }
.ticket-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  margin: auto 0 0;
  padding-top: 1rem;
}

.ticket-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.ticket-list a { font-weight: 600; }

/* ---------- Species ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2rem;
}

.chip {
  padding: .5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font: inherit;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s ease;
}
.chip:hover { border-color: var(--sea-bright); color: var(--sea); }
.chip.is-active {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--foam);
}

.species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.species {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  animation: rise .35s ease both;
}
.species:hover { border-color: rgba(23, 184, 189, .5); }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.species-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .4rem;
}
.species h3 { font-size: 1.1rem; margin: 0; }
.species .species-tag {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  color: var(--sea);
  background: var(--foam);
  padding: .2rem .55rem;
  border-radius: 999px;
}
.species .latin {
  font-style: italic;
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: .8rem;
}
.species .meta {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  font-size: .85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: .7rem;
  margin-bottom: .85rem;
}
.species .meta strong { color: var(--ink); display: block; font-weight: 600; }

.species-method {
  margin: 0 0 .75rem;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ink);
}

.species-baits,
.bait-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.bait-chip {
  margin: 0;
  padding: .28rem .65rem;
  border: 1px solid rgba(14, 124, 138, .28);
  border-radius: 999px;
  background: var(--foam);
  color: var(--sea);
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.bait-chip:hover {
  border-color: var(--sea);
  color: var(--deep);
}
.bait-chip.is-active {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--foam);
}

.species-log-link {
  margin: .9rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sea);
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.species-log-link:hover { color: var(--coral); }

.species-note {
  margin: .8rem 0 0;
  font-size: .8rem;
  line-height: 1.45;
  color: var(--coral);
}

.method-panel {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(14, 124, 138, .22);
  border-radius: 14px;
  background: linear-gradient(165deg, var(--foam) 0%, #fff 70%);
}

.method-kicker {
  margin: 0 0 .35rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sea);
}

.method-title {
  margin: 0 0 .35rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  color: var(--ink);
}

.method-body {
  margin: 0 0 .65rem;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--muted);
}

.method-log {
  margin: 0 0 .75rem;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--deep);
}

.empty { color: var(--muted); font-style: italic; }

/* ---------- Tide calendar ---------- */

.tide-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  margin: 0 0 1.25rem;
}

.tide-toolbar-note {
  margin: 0;
  font-size: .88rem;
  color: var(--muted);
}

/* ---------- Today's tide curve ---------- */

.tide-chart {
  margin: 0;
  padding: 1.25rem 1.25rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.tide-chart-holder {
  position: relative;
  width: 100%;
  /* Same trick as the 7-day table: scroll rather than squash the labels. */
  overflow-x: auto;
}

.tide-chart-svg {
  display: block;
  width: 100%;
  min-width: 560px;
  height: auto;
}

.tide-chart-empty {
  margin: 0;
  padding: 2.5rem 0;
  text-align: center;
  color: var(--muted);
}

.chart-prime {
  fill: rgba(23, 184, 189, .14);
}

.chart-grid {
  stroke: var(--line);
  stroke-width: 1;
}

.chart-axis-label {
  fill: var(--muted);
  font-size: 11px;
  font-family: Inter, system-ui, sans-serif;
}

.chart-area {
  fill: rgba(14, 124, 138, .16);
}

.chart-line {
  fill: none;
  stroke: var(--sea);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart-allington {
  stroke: var(--coral);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  opacity: .75;
}

.chart-allington-label {
  fill: var(--coral);
  font-size: 11px;
  font-weight: 600;
  font-family: Inter, system-ui, sans-serif;
}

.chart-turn-dot {
  fill: var(--white);
  stroke: var(--sea);
  stroke-width: 2.5;
}

.chart-turn-label {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 600;
  font-family: Inter, system-ui, sans-serif;
}

.chart-now {
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-dasharray: 2 3;
  opacity: .55;
}

.chart-now-dot {
  fill: var(--coral);
  stroke: var(--white);
  stroke-width: 2;
}

.tide-chart-key {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-top: .85rem;
  font-size: .82rem;
  color: var(--muted);
}
.tide-chart-key .key-item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.tide-chart-key .key-item::before {
  content: "";
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}
.tide-chart-key .key-prime::before {
  width: 16px;
  height: 12px;
  border-radius: 3px;
  background: rgba(23, 184, 189, .3);
}
.tide-chart-key .key-curve::before { background: var(--sea); }
.tide-chart-key .key-allington::before { background: var(--coral); }
.tide-chart-key .key-now::before {
  width: 3px;
  height: 12px;
  background: var(--ink);
  opacity: .55;
}

.tide-chart-caption {
  margin: .6rem 0 0;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--muted);
}

.tide-print-brand {
  display: none;
}

.tide-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.tide-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: .95rem;
}
.tide-table th,
.tide-table td {
  padding: .95rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.tide-table th {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  background: var(--foam);
}
.tide-table tr:last-child td { border-bottom: 0; }
.tide-table tr.is-today td { background: rgba(23, 184, 189, .08); }
.tide-table .day-label {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.tide-table .tide-slot {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.tide-table .tide-slot strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  color: var(--ink);
}
.tide-table .tide-slot span { color: var(--muted); font-size: .85rem; }
.tide-table .tide-empty { color: var(--muted); }

.table-note {
  margin: 1rem 0 0;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Logbook ---------- */

.logbook-layout {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.logbook-list {
  display: grid;
  gap: 1rem;
}

.log-card {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--sea-bright);
}
.log-card h3 {
  margin: 0 0 .35rem;
  font-size: 1.15rem;
}
.log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .8rem;
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: .55rem;
}
.log-meta strong { color: var(--ink); font-weight: 600; }
.log-card p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}
.log-card .byline {
  margin-top: .7rem;
  font-size: .82rem;
  color: var(--muted);
}

.logbook-form h3 {
  margin: 0 0 1rem;
  color: var(--ink);
}

/* ---------- Conditions ---------- */

.session-tip {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  padding: 1.25rem 1.4rem;
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(23, 184, 189, .12), transparent 55%),
    linear-gradient(165deg, var(--foam) 0%, #fff 100%);
  border: 1px solid rgba(14, 124, 138, .22);
  box-shadow: var(--shadow-sm);
}

.session-tip-label {
  margin: 0 0 .4rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sea);
}

.session-tip-text {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.session-sun {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  margin: .85rem 0 0;
  font-size: .9rem;
  color: var(--muted);
}

.session-sun strong {
  color: var(--ink);
  font-weight: 600;
}

.session-tip-link {
  display: inline-block;
  margin-top: .75rem;
  font-weight: 600;
}

.conditions-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.conditions-copy p { color: var(--muted); }

.board {
  background: linear-gradient(170deg, var(--deep) 0%, #0a5468 100%);
  color: var(--foam);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: var(--shadow-lg);
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.board-head h3 { color: var(--white); margin: 0; }

.pill {
  font-size: .75rem;
  font-weight: 600;
  background: rgba(23, 184, 189, .2);
  color: var(--sea-bright);
  padding: .3rem .75rem;
  border-radius: 999px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
}

@media (min-width: 520px) {
  .board-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.board-item {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  padding: .9rem 1rem;
}
.board-item span {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(233, 246, 247, .6);
}
.board-item strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.5rem;
  color: var(--white);
  line-height: 1.3;
}
.board-item small { color: rgba(233, 246, 247, .55); font-size: .78rem; }

.bankside {
  margin: 1rem 0 0;
  padding: .75rem .9rem;
  border-radius: 12px;
  background: rgba(23, 184, 189, .12);
  border: 1px solid rgba(23, 184, 189, .22);
  color: rgba(233, 246, 247, .88);
  font-size: .9rem;
  line-height: 1.45;
}

.bite-meter { margin-top: 1.4rem; }
.bite-label {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(233, 246, 247, .7);
  margin-bottom: .5rem;
}
.bite-label strong { color: var(--sea-bright); }
.bite-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}
.bite-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sea-bright), var(--coral));
  transition: width 1.2s cubic-bezier(.22, 1, .36, 1);
}

.bite-alerts {
  margin-top: 1.15rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
}

.bite-alerts-copy {
  margin: 0 0 .7rem;
  font-size: .88rem;
  line-height: 1.45;
  color: rgba(233, 246, 247, .82);
}

.bite-alerts-copy strong { color: var(--sea-bright); }

.bite-alerts-btn {
  background: rgba(23, 184, 189, .2);
  color: var(--foam);
  border: 1px solid rgba(23, 184, 189, .45);
}
.bite-alerts-btn:hover {
  background: rgba(23, 184, 189, .32);
  color: var(--white);
}
.bite-alerts-btn.is-on {
  background: transparent;
  border-color: rgba(233, 246, 247, .35);
}

.bite-alerts-note {
  margin: .65rem 0 0;
  color: rgba(233, 246, 247, .65);
  font-size: .8rem;
}

.board-note {
  margin: 1.2rem 0 0;
  font-size: .78rem;
  line-height: 1.5;
  color: rgba(233, 246, 247, .55);
}

/* ---------- Tips ---------- */

.tips {
  counter-reset: tip;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.tips li {
  counter-increment: tip;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem;
  border: 1px solid var(--line);
}
.tips li::before {
  content: "0" counter(tip);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.6rem;
  color: var(--sea-bright);
  display: block;
  margin-bottom: .4rem;
}
.tips p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: .75rem;
  max-width: 760px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.35rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--sea);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.2;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p {
  margin: 0;
  padding: 0 1.35rem 1.2rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}

/* ---------- Quotes ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}
.quote {
  margin: 0;
  padding: 1.8rem;
  background: var(--foam);
  border-radius: var(--radius);
  border-left: 4px solid var(--sea-bright);
}
.quote blockquote {
  margin: 0 0 1rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.45;
}
.quote figcaption { font-size: .88rem; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--ink); }

/* ---------- Booking ---------- */

.book {
  background: linear-gradient(160deg, var(--deep) 0%, #0a4a5e 100%);
  color: var(--foam);
}
.book h2 { color: var(--white); }
.book p { color: rgba(233, 246, 247, .78); }
.book .eyebrow { color: var(--sea-bright); }

.book-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: .8rem;
}
.contact-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid rgba(233, 246, 247, .14);
  font-size: .95rem;
}
.contact-list span {
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .1em;
  color: rgba(233, 246, 247, .55);
  padding-top: .2rem;
}
.contact-list a { color: var(--sea-bright); }

.fineprint {
  margin-top: 1.5rem;
  font-size: .82rem;
  line-height: 1.6;
  color: rgba(233, 246, 247, .55);
}

.book-form {
  background: var(--white);
  border-radius: 24px;
  padding: 1.9rem;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .35rem;
}
.opt { color: var(--muted); font-weight: 400; }

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8rem .95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfd;
  font: inherit;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sea-bright);
  box-shadow: 0 0 0 4px rgba(23, 184, 189, .16);
}
.field.invalid input,
.field.invalid select { border-color: var(--coral); }

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.error {
  color: var(--coral);
  font-size: .8rem;
  margin: .3rem 0 0;
  min-height: 1em;
}

.form-note {
  margin: .9rem 0 0;
  font-size: .9rem;
  color: var(--sea);
  text-align: center;
  min-height: 1.2em;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #031a25;
  color: rgba(233, 246, 247, .7);
  padding-top: 3.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.site-footer h4 {
  color: var(--white);
  font-size: .95rem;
  margin-bottom: .8rem;
}
.site-footer nav { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.site-footer a { color: rgba(233, 246, 247, .7); font-size: .95rem; }
.site-footer a:hover { color: var(--sea-bright); }
.footer-blurb { max-width: 38ch; margin-top: 1rem; font-size: .95rem; }
.footer-base {
  border-top: 1px solid rgba(233, 246, 247, .12);
  padding: 1.2rem 0;
  font-size: .85rem;
}
.footer-base p { margin: 0; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .conditions-inner,
  .book-inner,
  .footer-inner,
  .logbook-layout { grid-template-columns: 1fr; }
  .footer-inner { gap: 2rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1.25rem 1.25rem;
    background: rgba(4, 33, 47, .97);
    backdrop-filter: blur(14px);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: .8rem 0;
    border-bottom: 1px solid rgba(233, 246, 247, .1);
  }
  .nav a.btn {
    margin-top: .9rem;
    border-bottom: 0;
    justify-content: center;
  }
  .board-grid { grid-template-columns: 1fr 1fr; }
  .stats { gap: 1.5rem 2rem; }
  .stats dd { font-size: 1.6rem; }
  .season-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
  }
  .season-banner-dismiss { align-self: flex-start; }
}

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

@media print {
  @page { margin: 12mm; }

  .skip-link,
  .season-banner,
  .site-header,
  .nav-toggle,
  .no-print,
  .site-footer,
  .bite-alerts {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    line-height: 1.3;
  }

  .section,
  .section-alt {
    padding: 0;
    background: #fff;
  }

  a { color: #000; text-decoration: none; }

  /* On /tides the tide card is the only thing worth putting on paper. The
     curve is dropped so the seven days still fit a single sheet. */
  body[data-page="tides"] .hero,
  body[data-page="tides"] #conditions,
  body[data-page="tides"] #today-tide {
    display: none !important;
  }

  #tide-calendar {
    display: block !important;
  }

  #tide-calendar .section-head .eyebrow,
  #tide-calendar .section-sub,
  #tide-calendar .table-note {
    display: none;
  }

  #tide-calendar .section-head h2 {
    font-size: 17pt;
    margin: 0 0 .5rem;
  }

  .tide-print-brand {
    display: flex !important;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .4rem;
    font-size: 9pt;
  }

  .tide-table-wrap {
    overflow: visible;
    border: 1px solid #ccc;
    box-shadow: none;
    border-radius: 0;
  }

  /* Keep all seven days on one sheet: trim the screen's roomy cells and put
     each tide's time and height on a single line. */
  .tide-table {
    min-width: 0;
    font-size: 11pt;
  }

  .tide-table th,
  .tide-table td {
    padding: .55rem .7rem;
    border-color: #ccc;
    color: #000;
  }

  .tide-table th {
    font-size: 8pt;
    letter-spacing: .08em;
  }

  .tide-table .day-label { font-size: 11pt; }

  .tide-table .tide-slot {
    flex-direction: row;
    align-items: baseline;
    gap: .35rem;
  }

  .tide-table .tide-slot + .tide-slot { margin-top: .3rem; }
  .tide-table .tide-slot strong { font-size: 12pt; }
  .tide-table .tide-slot span { font-size: 9pt; }

  thead { display: table-header-group; }

  .tide-table tr,
  .tide-table td,
  .tide-table th {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .tide-table tr.is-today td {
    background: #eee !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

