
/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1a2744;
  --sand:   #c8a96e;
  --cream:  #f8f5ee;
  --coral:  #e05c3a;
  --dark:   #1c1c1c;
  --mid:    #555;
  --light:  #888;
  --border: #ddd;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

  --max-w: 1100px;
  --nav-h: 64px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--coral); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Site header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  height: var(--nav-h);
  border-bottom: 3px solid var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.site-logo img { height: 52px; width: auto; }
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: .02em;
}
.logo-diacritic { color: var(--coral); }

nav a {
  color: var(--navy);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem .75rem;
  border-radius: 3px;
  transition: background .15s, color .15s;
}
nav a:hover, nav a.active {
  background: var(--navy);
  color: #fff;
}

.nav-toggle { color: var(--navy); }

nav ul { list-style: none; display: flex; gap: .25rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: .5rem;
}

/* ── Hero / Carousel ────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
  overflow: hidden;
}
/* Dark gradient overlay above slides */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.6) 100%);
  z-index: 1;
  pointer-events: none;
}
.carousel-track {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  background: var(--navy) center/cover no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
}
.carousel-slide.active { opacity: 1; }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}
.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero-cta {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .75rem 2rem;
  border-radius: 3px;
  transition: background .15s;
}
.hero-cta:hover { background: #c44e2f; color: #fff; }

.carousel-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 2;
}
.carousel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}
.carousel-dot.active { background: #fff; border-color: #fff; }

.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(0,0,0,.35);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  padding: .6rem .9rem;
  cursor: pointer;
  border-radius: 3px;
  transition: background .15s;
}
.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }
.carousel-prev:hover, .carousel-next:hover { background: rgba(0,0,0,.65); }

/* ── Preserved banner ───────────────────────────────────────── */
.preserved-banner {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  text-align: center;
  padding: .9rem 1.5rem;
  font-size: .9rem;
  font-style: italic;
  letter-spacing: .02em;
  border-bottom: 3px solid var(--sand);
}

/* ── Home intro ─────────────────────────────────────────────── */
.home-intro {
  padding: 4rem 0;
  background: #fff;
  text-align: center;
}
.home-intro h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 1rem;
}
.home-intro p { max-width: 640px; margin: 0 auto 2rem; color: var(--mid); }
.home-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .7rem 1.75rem;
  border-radius: 3px;
  transition: background .15s;
}
.btn:hover { background: var(--coral); color: #fff; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ── Post grid ──────────────────────────────────────────────── */
.recent-posts { padding: 4rem 0; }
.recent-posts h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 2rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.post-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.post-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-date { font-size: .8rem; color: var(--light); margin-bottom: .4rem; }
.post-card h2 { font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: .6rem; }
.post-card h2 a { color: var(--navy); }
.post-card h2 a:hover { color: var(--coral); }
.post-excerpt { font-size: .9rem; color: var(--mid); margin-bottom: .75rem; flex: 1; }
.post-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .75rem; }
.tag {
  background: rgba(26,39,68,.08);
  color: var(--navy);
  font-size: .72rem;
  padding: .2rem .55rem;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: .04em;
}
.read-more { font-size: .85rem; font-weight: 600; color: var(--coral); }
.read-more:hover { color: var(--navy); }

.view-all { text-align: center; }

/* ── Page hero ──────────────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: .5rem;
}
.page-hero p { color: rgba(255,255,255,.7); font-size: 1.05rem; }

/* ── Page content ───────────────────────────────────────────── */
.page-content { padding: 3rem 0 4rem; }
.prose p, .about-text p, .page-content > .container > p {
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--mid);
  max-width: 720px;
}
.prose h2 { font-family: var(--font-serif); color: var(--navy); margin: 2rem 0 .75rem; }

.about-layout { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; align-items: start; }
.about-photo { border-radius: 6px; width: 100%; }

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.image-grid img { border-radius: 4px; height: 180px; object-fit: cover; width: 100%; }

/* ── Videos ─────────────────────────────────────────────────── */
.videos-intro { margin-bottom: 2rem; color: var(--mid); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2rem; }
.video-card {
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}
.video-embed {
  position: relative;
  aspect-ratio: 16/9;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-title {
  padding: .75rem 1rem;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  background: var(--navy);
}

/* ── Contact ─────────────────────────────────────────────────── */
.contact-list { list-style: none; margin-top: 1.5rem; }
.contact-list li { margin-bottom: .75rem; font-size: 1rem; }

/* ── Blog index ──────────────────────────────────────────────── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  padding: 3rem 0 4rem;
  align-items: start;
}
.blog-main { min-width: 0; }
.archive-heading {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 1.3rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--sand);
}
.archive-heading:first-child { margin-top: 0; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar { position: sticky; top: calc(var(--nav-h) + 1rem); }
.sidebar-section { margin-bottom: 2rem; }
.sidebar-section h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: .75rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.archive-list { list-style: none; }
.archive-list li { display: flex; justify-content: space-between; margin-bottom: .3rem; font-size: .9rem; }
.archive-list .count { color: var(--light); font-size: .8rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-cloud .tag { cursor: default; }

/* ── Blog post ───────────────────────────────────────────────── */
.post-full {
  max-width: 780px;
  margin: 2rem auto 4rem;
  padding: 2.5rem 2.5rem 4rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.post-cover { margin-bottom: 2rem; border-radius: 6px; overflow: hidden; }
.post-cover img { width: 100%; max-height: 480px; object-fit: cover; }
.post-header { margin-bottom: 2.5rem; }
.post-header .post-date { font-size: .85rem; color: var(--light); margin-bottom: .5rem; }
.post-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.post-tag {
  font-size: .78rem;
  color: var(--light);
  margin-right: .35rem;
}
.post-tag:hover { color: var(--coral); cursor: default; }
.post-body { font-size: 1.05rem; line-height: 1.8; color: #333; }
.post-body p { margin-bottom: 1.25rem; }
.post-body img {
  border-radius: 4px;
  margin: 1.5rem auto;
  max-height: 600px;
  object-fit: contain;
}
.post-body h2, .post-body h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  margin: 2rem 0 .75rem;
}

.post-nav {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .9rem;
}
.post-nav a { color: var(--navy); font-weight: 600; }
.post-nav a:hover { color: var(--coral); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: #fff;
  border-top: 3px solid var(--navy);
  color: var(--mid);
  padding: 3rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.footer-mermaid { height: 90px; width: auto; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--navy); font-size: .85rem; font-weight: 600; transition: color .15s; }
.footer-links a:hover { color: var(--coral); }
.footer-copy { font-size: .8rem; color: var(--light); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  nav { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
        background: #fff; padding: 1rem; border-top: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(0,0,0,.1); }
  nav.open { display: block; }
  nav ul { flex-direction: column; }
  nav a { display: block; padding: .6rem 1rem; color: var(--navy); }
  nav a:hover, nav a.active { background: var(--navy); color: #fff; }

  .about-layout { grid-template-columns: 1fr; }
  .about-sidebar { order: -1; }
  .about-photo { max-height: 300px; object-fit: cover; }

  .blog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }

  .post-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { min-height: 50vh; }
  .hero-tagline { font-size: 1.5rem; }
  .post-full { padding: 2rem 1rem 3rem; }
}

/* ── Eione page ─────────────────────────────────────────────── */
.eione-boat { margin-top: 2.5rem; }
.eione-boat img { border-radius: 6px; width: 100%; max-width: 720px; }
.eione-boat figcaption { font-size: .85rem; color: var(--light); margin-top: .5rem; font-style: italic; }

/* ── Home crew photos ───────────────────────────────────────── */
.home-crew { padding: 0 0 4rem; background: #fff; }
.crew-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.crew-photos figure { margin: 0; }
.crew-photos img { width: 100%; height: 340px; object-fit: cover; border-radius: 6px; }
.crew-photos figcaption { font-size: .85rem; color: var(--light); margin-top: .5rem; font-style: italic; text-align: center; }
@media (max-width: 600px) {
  .crew-photos { grid-template-columns: 1fr; }
  .crew-photos img { height: 260px; }
}
