/* Jenner Coast — site styles. Plain CSS, no build step. */

:root {
  --navy: #0f2a3d;
  --navy-2: #163a52;
  --sea: #1f6f8b;
  --sea-2: #2f8fae;
  --sea-tint: #e3f0f4;
  --fog: #eef2f4;
  --fog-2: #dfe6ea;
  --sand: #f6efe2;
  --sand-2: #e8dcc3;
  --kelp: #3f6b4c;
  --kelp-tint: #e4eee6;
  --sunset: #e07a5f;
  --sunset-2: #c8634a;
  --gold: #f2b263;
  --ink: #17232b;
  --ink-2: #4a5a65;
  --ink-3: #7a8893;
  --white: #ffffff;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 42, 61, .06), 0 8px 24px rgba(15, 42, 61, .08);
  --shadow-lg: 0 2px 4px rgba(15, 42, 61, .08), 0 20px 48px rgba(15, 42, 61, .18);
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
small { font-size: .875em; }
hr { border: 0; border-top: 1px solid var(--fog-2); margin: 2.5rem 0; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--fog-2);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--navy);
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span small { white-space: nowrap;
  display: block; font-family: var(--font-body); font-weight: 500; font-size: .7rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); line-height: 1; margin-top: 2px;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--navy-2); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.nav a:hover { background: var(--fog); }
.nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.nav-toggle {
  display: none; appearance: none; border: 1px solid var(--fog-2); background: #fff;
  border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--navy);
  font: inherit; font-weight: 600;
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--fog-2); box-shadow: var(--shadow); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px var(--gutter) 14px; }
  .nav a { padding: 12px 14px; border-radius: 10px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; isolation: isolate;
  min-height: min(78vh, 680px); display: grid; align-items: end;
  background: var(--navy);
}
.hero__img { position: absolute; inset: 0; z-index: -2; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,42,61,.15) 0%, rgba(15,42,61,.25) 45%, rgba(15,42,61,.85) 100%);
}
.hero .wrap { padding: clamp(48px, 10vh, 96px) 0 clamp(40px, 7vh, 72px); }
.hero h1 { color: #fff; margin-bottom: .35em; text-shadow: 0 2px 18px rgba(0,0,0,.25); max-width: 14ch; }
.hero p.lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 48ch; color: rgba(255,255,255,.92); margin-bottom: 1.5em; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sea); margin-bottom: .9em;
}
.hero .eyebrow { color: var(--gold); }
.hero__credit {
  position: absolute; right: 12px; bottom: 8px; font-size: .7rem; color: rgba(255,255,255,.7);
}
.hero__credit a { color: inherit; }

/* Compact page hero */
.page-hero {
  background: linear-gradient(180deg, var(--sand) 0%, #fff 100%);
  border-bottom: 1px solid var(--fog-2);
  padding: clamp(40px, 7vh, 72px) 0 clamp(28px, 5vh, 48px);
}
.page-hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; font-size: .98rem; line-height: 1.2; cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--sunset); color: #fff; }
.btn--primary:hover { background: var(--sunset-2); color: #fff; }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* ---------- Sections ---------- */
.section { padding: clamp(44px, 8vh, 84px) 0; }
.section--tint { background: var(--fog); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: #e8eef2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .eyebrow { color: var(--gold); }
.section--navy a { color: #ffd9a8; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 1.6rem; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 58ch; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

.card {
  background: #fff; border: 1px solid var(--fog-2); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 1px 2px rgba(15,42,61,.04);
  display: flex; flex-direction: column; gap: 6px;
}
.card h3 { margin-bottom: .2em; }
.card p { margin-bottom: .4em; color: var(--ink-2); }
.card p:last-of-type { margin-bottom: 0; }
.card .meta { font-size: .85rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0 6px; }
.card .meta span::before { content: "•"; margin-right: 6px; color: var(--sea-2); }
.card .meta span:first-child::before { content: none; }
.card .card__links { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .92rem; font-weight: 600; }
.card--link { text-decoration: none; color: inherit; transition: transform .12s ease, box-shadow .15s ease; }
.card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.card--img { padding: 0; overflow: hidden; }
.card--img img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card--img .card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card--img .card__body h3 { margin-bottom: .15em; }

.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; background: var(--sea-tint); color: var(--sea);
}
.pill--kelp { background: var(--kelp-tint); color: var(--kelp); }
.pill--sand { background: var(--sand-2); color: #7a5a2a; }
.pill--warn { background: #fde8e2; color: #a9402a; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }

/* ---------- Callouts ---------- */
.callout {
  border-left: 5px solid var(--sunset); background: #fff6f2; border-radius: var(--radius-sm);
  padding: 16px 20px; margin: 1.5rem 0;
}
.callout--info { border-color: var(--sea); background: var(--sea-tint); }
.callout--kelp { border-color: var(--kelp); background: var(--kelp-tint); }
.callout h3, .callout h4 { margin-top: 0; margin-bottom: .3em; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Feature split ---------- */
.split { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) { .split { grid-template-columns: 1.1fr 1fr; } .split--rev > :first-child { order: 2; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ---------- Seasons ---------- */
.seasons { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.season { background: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid var(--fog-2); }
.season h3 { font-size: 1.1rem; margin-bottom: .2em; }
.season .when { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 700; }
.season.is-now { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,178,99,.35); }
.season.is-now .when::after { content: " · now"; color: var(--sunset-2); }

/* ---------- Lists on the Links page ---------- */
.linklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.linklist li { margin: 0; }
.linklist a.link-item {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center;
  padding: 14px 18px; background: #fff; border: 1px solid var(--fog-2); border-radius: var(--radius-sm);
  text-decoration: none; color: inherit;
}
.linklist a.link-item:hover { border-color: var(--sea-2); box-shadow: var(--shadow); }
.linklist .link-item strong { color: var(--navy); }
.linklist .link-item .desc { grid-column: 1; color: var(--ink-2); font-size: .93rem; }
.linklist .link-item .host { grid-column: 2; grid-row: 1 / span 2; font-size: .78rem; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 560px) { .linklist .link-item { grid-template-columns: 1fr; } .linklist .link-item .host { grid-column: 1; grid-row: auto; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); grid-auto-flow: dense; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--fog); position: relative; }
.gallery figure.wide { grid-column: span 2; }
@media (max-width: 600px) { .gallery figure.wide { grid-column: auto; } }
.gallery button {
  appearance: none; border: 0; padding: 0; margin: 0; background: none; cursor: zoom-in; width: 100%; display: block;
}
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.gallery figure.wide img { aspect-ratio: 2 / 1; }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption {
  padding: 10px 12px 12px; font-size: .9rem; color: var(--ink-2); background: #fff; border: 1px solid var(--fog-2); border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}
.gallery figcaption .credit { display: block; font-size: .74rem; color: var(--ink-3); margin-top: 2px; }

dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); width: auto; color: #fff;
}
dialog.lightbox::backdrop { background: rgba(8, 20, 30, .92); }
.lightbox__inner { position: relative; display: grid; gap: 10px; justify-items: center; }
.lightbox img { max-height: 82vh; max-width: 96vw; width: auto; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__cap { text-align: center; font-size: .95rem; max-width: 70ch; color: rgba(255,255,255,.9); }
.lightbox__cap .credit { display: block; font-size: .78rem; color: rgba(255,255,255,.6); }
.lightbox__cap a { color: #ffd9a8; }
.lightbox__btn {
  position: absolute; top: 50%; transform: translateY(-50%); appearance: none; border: 0; cursor: pointer;
  width: 46px; height: 46px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: 1.6rem;
}
.lightbox__btn:hover { background: rgba(255,255,255,.3); }
.lightbox__prev { left: -4px; } .lightbox__next { right: -4px; }
.lightbox__close { position: absolute; top: -6px; right: -6px; appearance: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: 1.3rem; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--fog-2); vertical-align: top; }
.table th { background: var(--fog); color: var(--navy); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9d6de; padding: 48px 0 28px; margin-top: 40px; font-size: .93rem; }
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 8px; }
.site-footer .brand span small { color: #9fb3c0; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-bottom: 28px; }
.site-footer h4 { color: #fff; margin-bottom: .5em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .fine { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: .8rem; color: #9fb3c0; }

/* ---------- Utilities ---------- */
.muted { color: var(--ink-2); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media print {
  .site-header, .site-footer, .nav-toggle, .btn, dialog { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
}
