/* Suffolk River Trips — spec build.
   Palette: estuary at low sun.
   Deben Ink #253540 · Salt #EFF1EC · Low Tide #A9BFC5 · Reed #B08A47 · Mudflat #7B6A55
   Type: Newsreader (display) / Public Sans (body) / Spline Sans Mono (tide-table data) */

/* Self-hosted variable fonts (fontsource 5.2.x, latin subset) — no CDN, no
   third-party request, and our own CSP (font-src 'self') allows them.
   font-display: swap = show text in the fallback font instantly, swap when loaded. */
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-wght-italic.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spline Sans Mono";
  src: url("/fonts/spline-sans-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colours matched to suffolkrivertrips.com (teal + gold) — same hue
     family as the live site, applied as accents against clean space rather
     than the flat saturated blocks/drop-shadows of the current design. */
  --ink: #1C3640;
  --salt: #F3EFE6;
  --low-tide: #A9C4CC;
  --low-tide-far: #CFE0E4;
  --reed: #DFA83A;
  --reed-deep: #8A6118;
  --mudflat: #4F6367;
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;
  --measure: 34rem;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--salt);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 0.5em;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.eyebrow {
  display: block;
  color: var(--mudflat);
  text-transform: lowercase;
  margin: 0 0 1rem;
}

a { color: var(--reed-deep); }

:focus-visible {
  outline: 3px solid var(--reed-deep);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: var(--salt);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: var(--pad); top: 0.5rem; }

/* ---------- header ---------- */

.site-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--pad);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
}
.wordmark em { color: var(--reed-deep); }

.head-cta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink);
  text-decoration-color: var(--reed);
  text-underline-offset: 4px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(30rem, 82vh, 46rem);
  display: flex;
  align-items: flex-end;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Darkens the left/bottom of the photo so the light-coloured hero copy stays
   readable — photo detail is untouched on the right side. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(37,53,64,.82) 0%, rgba(37,53,64,.45) 45%, rgba(37,53,64,.08) 75%),
    linear-gradient(0deg, rgba(37,53,64,.55) 0%, rgba(37,53,64,0) 40%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(2.5rem, 8vw, 6rem) var(--pad) clamp(3rem, 9vw, 5rem);
  max-width: var(--measure);
  color: var(--salt);
}

.hero-copy .eyebrow { color: var(--low-tide-far); }

.hero h1 {
  color: var(--salt);
  font-size: clamp(3.25rem, 11vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero h1::after {
  /* handwritten-chart flourish under the headline */
  content: "";
  display: block;
  width: 5.5rem;
  height: 3px;
  margin-top: 0.35em;
  background: var(--reed);
}

.lede {
  max-width: var(--measure);
  font-size: clamp(1rem, 2.4vw, 1.125rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.price-note { color: var(--low-tide-far); margin: 0; }

.cta {
  display: inline-block;
  background: var(--ink);
  color: var(--salt);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  min-height: 44px;
  border-radius: 2px;
}
.cta:hover { background: var(--reed-deep); }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- quays ---------- */

.quays { padding: clamp(3rem, 8vw, 5.5rem) var(--pad); }

.quays h2, .wildlife h2 { font-size: clamp(1.9rem, 5vw, 2.75rem); }

.quay-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 700px) {
  .quay-cards { grid-template-columns: repeat(3, 1fr); }
}

.quay-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--low-tide);
  border-radius: 3px;
  overflow: hidden;
}
.quay-photo { display: block; }
.quay-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.quay-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}
.quay-card h3 { font-size: 1.75rem; }
.quay-card p { margin: 0 0 0.75rem; }
.quay-card .eyebrow { margin-bottom: 0.75rem; }

.boats {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--reed-deep);
}

.meta { color: var(--mudflat); }

.card-cta {
  margin-top: auto;
  text-align: center;
}

/* ---------- wildlife ---------- */

.wildlife {
  background: var(--ink);
  color: var(--salt);
  padding: clamp(3rem, 8vw, 5.5rem) var(--pad);
}
.wildlife .eyebrow { color: var(--low-tide); }

.wildlife dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin: 2rem 0 0;
  max-width: 60rem;
}
@media (min-width: 700px) {
  .wildlife dl { grid-template-columns: repeat(3, 1fr); }
}

.wildlife-item { display: flex; flex-direction: column; }

.wildlife-photo { display: block; margin-bottom: 1rem; border-radius: 3px; overflow: hidden; }
.wildlife-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.wildlife dt {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.375rem;
  color: var(--reed);
  margin-bottom: 0.4rem;
}
.wildlife dd { margin: 0; font-size: 0.9375rem; }

.wildlife-caveat {
  margin: 2rem 0 0;
  color: var(--low-tide);
  font-size: 0.75rem;
  max-width: 34rem;
}

/* ---------- trust ---------- */

.trust { padding: clamp(2.5rem, 6vw, 4rem) var(--pad); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  max-width: 60rem;
  background: var(--low-tide);
  border: 1px solid var(--low-tide);
  border-radius: 3px;
  overflow: hidden;
}
@media (min-width: 700px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

.trust-item {
  background: #fff;
  padding: 1.75rem 1.25rem;
  text-align: center;
}

.trust-num {
  color: var(--reed-deep);
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
}

.trust-stat {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.35rem;
}

.trust-label {
  margin: 0;
  font-size: 0.875rem;
  color: var(--mudflat);
}

/* ---------- tide board ---------- */

.tide-board { padding: 0 var(--pad) clamp(3rem, 8vw, 5.5rem); }

.board {
  max-width: 34rem;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--low-tide);
  border-radius: 3px;
  padding: 1.75rem;
}

.board-title {
  text-align: center;
  color: var(--mudflat);
  text-transform: lowercase;
  margin: 0 0 1rem;
}

.board table {
  width: 100%;
  border-collapse: collapse;
}
.board th, .board td {
  text-align: left;
  font-weight: 400;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--low-tide);
  vertical-align: top;
}
.board td { text-align: right; color: var(--reed-deep); }

.board-note {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--mudflat);
}

/* ---------- footer ---------- */

.site-foot {
  background: var(--ink);
  color: var(--salt);
  text-align: center;
  padding: 2.5rem var(--pad);
}
.site-foot .wordmark { margin-bottom: 0.75rem; }
.site-foot .wordmark em { color: var(--reed); }
.site-foot .mono { margin: 0 0 0.5rem; }
.foot-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--low-tide);
}

.site-foot a { color: var(--salt); }
.foot-legal {
  margin: 1rem 0 0;
  font-size: 0.75rem;
}
.foot-legal a { color: var(--low-tide); }

/* ---------- utility pages (404, privacy) ---------- */

.container {
  max-width: 42rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 7vw, 5rem) var(--pad);
}
.container h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--ink);
  margin: 0 0 1rem;
}
.container h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  color: var(--ink);
  margin: 2rem 0 0.5rem;
}
.container p { line-height: 1.6; }
.container a { color: var(--reed-deep); }
.container a.cta { color: var(--salt); }
