/* ===========================================================
   Grouse Island — refined coastal / Pacific Northwest
   =========================================================== */

:root {
  /* Palette */
  --bg:        #F7F4EE;   /* warm off-white, like worn paper       */
  --bg-alt:    #ECE7DC;   /* section panel                          */
  --bg-deep:   #2C3934;   /* deep evergreen for dark sections       */
  --ink:       #1F2C2A;   /* primary text                           */
  --ink-muted: #4B5853;   /* secondary text                         */
  --sea:       #4A6859;   /* muted sea green — primary accent       */
  --sea-light: #8FA89A;
  --sand:      #C8B89A;   /* driftwood / sand                       */
  --rust:      #A86848;   /* warm cedar — used sparingly            */
  --line:      #D5CFC2;
  --white:     #FFFFFF;

  /* Type */
  --font-display: 'Cormorant Garamond', 'Garamond', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Scale */
  --max:    1180px;
  --narrow:  720px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; height: auto; }

a {
  color: var(--sea);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color .2s ease;
}
a:hover { color: var(--rust); }

/* =========== Typography =========== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 .6em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); font-weight: 400; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.05rem; font-family: var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--sea); font-weight: 600; }

p { margin: 0 0 1.1em; }
p.lede { font-size: 1.22rem; line-height: 1.55; color: var(--ink-muted); font-family: var(--font-display); font-style: italic; }

blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.6rem;
  border-left: 3px solid var(--sea-light);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-muted);
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

/* =========== Layout =========== */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow    { max-width: var(--narrow); margin: 0 auto; padding: 0 var(--gutter); }

section { padding: clamp(3rem, 7vw, 6rem) 0; }
section.tight { padding: clamp(2rem, 4vw, 3rem) 0; }
section.deep  { background: var(--bg-deep); color: #E5E0D3; }
section.deep h1, section.deep h2, section.deep h3 { color: #F4EFE2; }
section.deep a { color: var(--sand); }
section.alt   { background: var(--bg-alt); }

/* =========== Header / Nav =========== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  border: none;
  letter-spacing: .01em;
}
.brand-mark::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: .55rem;
  background: var(--sea);
  border-radius: 50%;
  vertical-align: middle;
  transform: translateY(-2px);
}
.nav-links {
  display: flex; gap: 2rem; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-size: .95rem;
  color: var(--ink-muted);
  border: none;
  font-weight: 500;
}
.nav-links a.active,
.nav-links a:hover { color: var(--sea); }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 4px;
  padding: .4rem .65rem; cursor: pointer;
  font-size: 1.1rem; color: var(--ink);
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; right: var(--gutter); left: var(--gutter);
    flex-direction: column; gap: 0;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: .5rem 0;
    display: none;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .8rem 1.2rem; }
}

/* =========== Hero =========== */
.hero {
  position: relative;
  min-height: clamp(480px, 80vh, 820px);
  background: var(--bg-deep);
  color: #F4EFE2;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.72) saturate(.95);
}
.hero-bg.placeholder {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(74,104,89,.4), transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(44,57,52,.7), transparent 60%),
    linear-gradient(160deg, #3a4a44 0%, #5a7561 100%);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.72) saturate(.95);
  z-index: 0;
}
.hero-bg-mobile {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.72) saturate(.95);
  z-index: 0;
  display: none;
}
@media (max-width: 760px) {
  .hero-video { display: none; }
  .hero-bg-mobile { display: block; }
}

/* =========== Good to know (Rentals) =========== */
.good-to-know {
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}
@media (min-width: 720px) {
  .good-to-know { grid-template-columns: 1fr 1fr; }
}
.good-to-know dl { margin: 0; padding: .9rem 1.1rem; background: var(--bg); border-radius: 2px; }
.good-to-know dt { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sea); font-weight: 600; margin-bottom: .35rem; }
.good-to-know dd { margin: 0; font-size: .98rem; color: var(--ink); line-height: 1.5; }

/* =========== Reviews placeholder =========== */
.review-block {
  max-width: 60ch;
  margin: 2rem auto 0;
}
.review-block blockquote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink);
  border-left: 3px solid var(--sea-light);
  padding: 1rem 1.6rem;
  margin: 1.5rem 0;
}
.review-block blockquote footer {
  font-family: var(--font-body);
  font-style: normal;
  font-size: .88rem;
  letter-spacing: .04em;
  color: var(--ink-muted);
  margin-top: .6rem;
}

/* =========== Stewards section =========== */
.img-slot.stewards-photo { aspect-ratio: 2 / 3; }
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(31,44,42,.55) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 var(--gutter) clamp(3rem, 6vw, 5rem);
  max-width: var(--max); width: 100%; margin: 0 auto;
}
.hero-content .eyebrow {
  font-size: .85rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sand); margin-bottom: 1rem;
}
.hero-content h1 {
  color: #F4EFE2;
  max-width: 16ch;
  margin-bottom: .5rem;
}
.hero-content .lede {
  color: #DBD3C4;
  font-style: italic;
  max-width: 38ch;
}

/* =========== Image / Placeholder =========== */
.img-slot {
  position: relative;
  background: linear-gradient(135deg, #D9D2C3 0%, #B5BFB1 100%);
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
}
.img-slot::before {
  content: attr(data-label);
  position: absolute;
  font-family: var(--font-body);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(31,44,42,.55);
  text-align: center;
  padding: 1rem;
  z-index: 0;
}
.img-slot img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
}
.img-slot img[src=""] { display: none; }
.img-slot.wide { aspect-ratio: 16 / 9; }
.img-slot.tall { aspect-ratio: 3 / 4; }
.img-slot.square { aspect-ratio: 1 / 1; }

figure {
  margin: 0 0 1rem;
}
figure figcaption {
  font-size: .85rem;
  color: var(--ink-muted);
  font-style: italic;
  padding: .65rem .1rem 0;
  line-height: 1.45;
}

/* =========== Buttons =========== */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid var(--sea);
  background: var(--sea);
  color: #F7F4EE;
  border-radius: 2px;
  cursor: pointer;
  transition: all .2s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #F4EFE2; }
.btn.ghost {
  background: transparent;
  color: var(--sea);
}
.btn.ghost:hover { background: var(--sea); color: #F7F4EE; }
.btn.light {
  background: transparent;
  border-color: rgba(244,239,226,.55);
  color: #F4EFE2;
}
.btn.light:hover { background: #F4EFE2; color: var(--ink); border-color: #F4EFE2; }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.3rem; }

/* =========== Grids =========== */
.grid-2 { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.grid-2.aligned { align-items: center; }

/* =========== Audience Cards (Home) =========== */
.audience-card {
  display: flex; flex-direction: column;
  gap: 1rem;
  padding: 0;
}
.audience-card h3 { margin: 0; }
.audience-card .arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--sea);
  border: none;
  margin-top: .4rem;
}
.audience-card .arrow:hover { color: var(--rust); }
.audience-card .arrow::after { content: '→'; transition: transform .2s; }
.audience-card .arrow:hover::after { transform: translateX(4px); }

/* =========== Feature blocks =========== */
.feature {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: .25rem 0;
}
.feature .icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--sea);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.feature h4 { margin: .15rem 0 .3rem; color: var(--ink); text-transform: none; letter-spacing: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.feature p { margin: 0; color: var(--ink-muted); font-size: .95rem; }

/* =========== Timeline (History) =========== */
.timeline {
  display: grid;
  gap: 3rem;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 14px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--sand);
}
.epoch {
  position: relative;
  padding-left: 50px;
}
.epoch::before {
  content: '';
  position: absolute;
  left: 9px; top: 11px;
  width: 11px; height: 11px;
  background: var(--bg);
  border: 2px solid var(--sea);
  border-radius: 50%;
}
.epoch h3 { margin-bottom: .2rem; }
.epoch .year { font-family: var(--font-body); color: var(--sea); font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6rem; }

/* =========== Footer =========== */
footer.site-footer {
  background: var(--bg-deep);
  color: #C8C3B5;
  padding: 3.5rem 0 2.2rem;
}
footer.site-footer h4 { color: var(--sand); }
footer.site-footer a { color: #E5E0D3; border-bottom-color: transparent; }
footer.site-footer a:hover { color: var(--sand); border-bottom-color: var(--sand); }
.footer-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-row { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: .82rem;
  color: #8A8576;
  text-align: center;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; font-size: .95rem; }

/* =========== Misc =========== */
.eyebrow {
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sea);
  font-weight: 600;
  margin-bottom: .8rem;
}

.callout {
  background: var(--bg-alt);
  border-left: 3px solid var(--sea);
  padding: 1.5rem 1.8rem;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}
.callout h4 { color: var(--ink); text-transform: none; letter-spacing: 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; margin-bottom: .4rem; }
.callout p:last-child { margin-bottom: 0; }

.coords {
  font-family: 'Courier New', monospace;
  font-size: .85rem;
  color: var(--ink-muted);
  letter-spacing: .03em;
}

.tag {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  background: var(--bg-alt);
  border-radius: 100px;
  color: var(--sea);
  font-weight: 600;
}

/* =========== Activities (Rentals page) =========== */
.activity {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.activity:first-of-type { border-top: none; padding-top: 0; }
.activity .activity-row {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 760px) {
  .activity .activity-row { grid-template-columns: 1fr 1fr; }
  .activity:nth-of-type(even) .activity-row { direction: rtl; }
  .activity:nth-of-type(even) .activity-row > * { direction: ltr; }
}
.activity .number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--sea-light);
  font-weight: 500;
  line-height: 1;
  margin-bottom: .4rem;
}
.activity h3 { margin-bottom: .3rem; font-size: 1.7rem; }
.activity .species {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin: .8rem 0 1rem;
}
.activity .species span {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--sea);
  font-weight: 500;
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-deep);
  border-radius: 2px;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-stack { display: grid; gap: 1rem; }

.cite {
  font-size: .85rem;
  color: var(--ink-muted);
  font-style: italic;
}

/* History page extras */
.history-hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
.history-prose figure { margin: 2.5rem auto; max-width: 540px; }
.history-prose img { border-radius: 2px; }
.history-prose .pull-right { float: right; margin: .3rem -1rem 1rem 2rem; width: 280px; }
.history-prose .pull-left  { float: left;  margin: .3rem 2rem 1rem -1rem; width: 280px; }
@media (max-width: 720px) {
  .history-prose .pull-right, .history-prose .pull-left { float: none; margin: 2rem auto; width: 100%; max-width: 380px; }
}
