/* ═══════════════════════════════════════════════════════════════
   SAUVEGARDE DU PATRIMOINE MARITIME GIRONDIN — ANTENNE AURORE
   Refined Editorial / Literary Magazine
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ivory:       #f7f3ec;
  --ink:         #1c1a17;
  --navy:        #1B3A5C;
  --gold:        #C8A96E;
  --hairline:    #ccc7be;
  --light-rule:  #ddd8cf;
  --mid:         #6b6560;
  --max-w:       1160px;
  --text-w:      720px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { list-style: none; }

sup { font-size: 0.65em; vertical-align: super; }

/* ─── LAYOUT ──────────────────────────────────────────────────── */

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

.narrow {
  max-width: var(--text-w);
  margin-left: auto;
  margin-right: auto;
}

.section        { padding: 5rem 0; }
.section-sm     { padding: 3rem 0; }
.section-lg     { padding: 7rem 0; }

/* ─── MASTHEAD / HEADER ───────────────────────────────────────── */

.site-header {
  background: var(--ivory);
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 200;
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 2rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-lockup .logo-icon  { height: 44px; width: auto; }
.brand-lockup .wordmark   { height: 30px; width: auto; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.site-nav a {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--gold);
  text-decoration: none;
}

/* ─── TYPOGRAPHY ──────────────────────────────────────────────── */

.kicker {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.display-xl {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: normal;
  font-style: italic;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.display-lg {
  font-size: clamp(1.9rem, 3.5vw, 3.4rem);
  font-weight: normal;
  font-style: italic;
  line-height: 1.1;
}

.display-md {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: normal;
  font-style: italic;
  line-height: 1.2;
}

.subhead {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--mid);
  line-height: 1.65;
}

/* ─── HAIRLINE RULES ──────────────────────────────────────────── */

hr, .rule        { border: none; border-top: 1px solid var(--hairline); }
.rule-ink        { border: none; border-top: 1px solid var(--ink); }
.rule-heavy      { border: none; border-top: 2px solid var(--ink); }
.rule-gold       { border: none; border-top: 1px solid var(--gold); }

/* ─── DROP CAP ────────────────────────────────────────────────── */

.drop-cap::first-letter {
  font-size: 5.2em;
  font-style: normal;
  font-weight: normal;
  float: left;
  line-height: 0.77;
  margin-right: 0.08em;
  margin-top: 0.06em;
  color: var(--navy);
}

/* ─── PULL QUOTE ──────────────────────────────────────────────── */

.pull-quote {
  border-top: 2px solid var(--gold);
  border-bottom: 1px solid var(--hairline);
  padding: 2.75rem 1rem;
  margin: 4rem auto;
  text-align: center;
  max-width: 660px;
}

.pull-quote p {
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-style: italic;
  line-height: 1.42;
  color: var(--navy);
}

.pull-quote cite {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 1.1rem;
  font-style: normal;
}

/* ─── PHOTO / MAT TREATMENT ───────────────────────────────────── */

.photo-mat {
  margin: 3.5rem 0;
}

.photo-mat img {
  width: 100%;
  display: block;
}

.photo-mat figcaption {
  font-style: italic;
  font-size: 0.8rem;
  color: var(--mid);
  margin-top: 0.75rem;
  line-height: 1.55;
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
}

/* ─── HOME HERO — SPLIT ───────────────────────────────────────── */

.home-hero {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 82vh;
  border-bottom: 1px solid var(--hairline);
}

.home-hero-image {
  overflow: hidden;
}

.home-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-hero-text {
  padding: 5rem 4.5rem 5rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--hairline);
}

.home-hero-text .kicker { margin-bottom: 1.25rem; }
.home-hero-text .display-xl { margin-bottom: 0; }

/* ─── PAGE BANNER (inner pages) ───────────────────────────────── */

.page-banner {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--hairline);
}

.page-banner .kicker { margin-bottom: 1.25rem; }

/* ─── ARTICLE HERO IMAGE ──────────────────────────────────────── */

.article-hero {
  width: 100%;
  max-height: 560px;
  overflow: hidden;
  margin-bottom: 0;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── IMPACT STATS BAR ────────────────────────────────────────── */

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding: 3.5rem 0;
  margin: 0 0 5rem;
}

.stat-item {
  text-align: center;
  padding: 0 2rem;
}

.stat-item + .stat-item {
  border-left: 1px solid var(--hairline);
}

.stat-num {
  display: block;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-style: italic;
  font-weight: normal;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.stat-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ─── PILLARS / HIGHLIGHTS ────────────────────────────────────── */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
}

.pillar {
  border-top: 2px solid var(--gold);
  padding-top: 1.75rem;
}

.pillar-icon {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.pillar-title {
  font-size: 1.1rem;
  font-weight: normal;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 0.9rem;
  line-height: 1.3;
}

.pillar-text {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--mid);
}

/* ─── TWO-COLUMN BODY TEXT ────────────────────────────────────── */

.two-col {
  columns: 2;
  column-gap: 3.5rem;
}

.two-col p { break-inside: avoid; }

/* ─── CONTENTS REGISTER (programmes) ──────────────────────────── */

.contents-register {
  border-top: 2px solid var(--ink);
  margin: 2.5rem 0 4rem;
}

.contents-entry {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--light-rule);
  align-items: start;
}

.contents-num {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  padding-top: 0.15rem;
}

.contents-title {
  font-size: 1rem;
  font-weight: normal;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.contents-blurb {
  font-size: 0.83rem;
  color: var(--mid);
  line-height: 1.6;
}

/* ─── PROGRAMME DETAIL BLOCKS ──────────────────────────────────── */

.programme-block {
  padding: 3.5rem 0;
  border-top: 1px solid var(--hairline);
}

.programme-icon { font-size: 1.25rem; margin-bottom: 0.75rem; }

.programme-head-kicker {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  display: block;
}

.programme-title {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: normal;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.programme-body {
  font-size: 0.95rem;
  line-height: 1.82;
  color: var(--ink);
  max-width: 680px;
}

/* ─── BLOG TEASERS ────────────────────────────────────────────── */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.blog-teaser {
  border-top: 2px solid var(--ink);
  padding-top: 1.5rem;
}

.blog-teaser > a:first-child {
  display: block;
  overflow: hidden;
  margin-bottom: 0;
}

.blog-teaser > a:first-child img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}

.blog-teaser > a:first-child img:hover { opacity: 0.9; }

.blog-teaser-title {
  font-size: 1.1rem;
  font-weight: normal;
  font-style: italic;
  line-height: 1.35;
  margin: 1rem 0 0;
}

.blog-teaser-title a {
  color: var(--ink);
  text-decoration: none;
}

.blog-teaser-title a:hover { color: var(--navy); }

.blog-teaser-dek {
  font-size: 0.855rem;
  color: var(--mid);
  line-height: 1.65;
  margin-top: 0.75rem;
}

.blog-teaser-more {
  display: inline-block;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  margin-top: 1rem;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  text-decoration: none;
}

.blog-teaser-more:hover { color: var(--gold); text-decoration: none; }

/* ─── WAYS / GET INVOLVED ─────────────────────────────────────── */

.ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
  margin: 3rem 0;
}

.way-item { border-top: 1px solid var(--hairline); padding-top: 2rem; }

.way-icon  { font-size: 1.25rem; margin-bottom: 0.75rem; }

.way-title {
  font-size: 1.15rem;
  font-weight: normal;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 1rem;
}

.way-text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--mid);
}

/* ─── TRUSTEES ────────────────────────────────────────────────── */

.trustees-list {
  border-top: 2px solid var(--ink);
  margin: 2.5rem 0;
}

.trustee-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--light-rule);
}

.trustee-name {
  font-size: 1rem;
  font-style: italic;
  color: var(--ink);
}

.trustee-role {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ─── CTA BLOCK ───────────────────────────────────────────────── */

.cta-block {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 5.5rem 2rem;
  text-align: center;
}

.cta-headline {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: normal;
  font-style: italic;
  margin-bottom: 2.5rem;
  color: var(--ink);
}

.cta-button {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--navy);
  padding: 0.9rem 2.75rem;
  text-decoration: none;
  transition: background 0.2s;
}

.cta-button:hover { background: var(--ink); text-decoration: none; }

/* ─── CONTACT FORM ────────────────────────────────────────────── */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin: 3rem 0;
}

.form-group { margin-bottom: 2.25rem; }

.form-group label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.55rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 0.45rem 0;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus { border-bottom-color: var(--navy); }

.form-group textarea {
  height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.form-submit {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--navy);
  border: none;
  padding: 0.9rem 2.75rem;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover { background: var(--ink); }

.contact-info-block h3 {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: normal;
  margin-bottom: 1rem;
}

.contact-info-block p,
.contact-info-block a {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.8;
  display: block;
  text-decoration: none;
}

.contact-info-block a:hover { color: var(--navy); text-decoration: underline; }

.contact-info-block + .contact-info-block {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--hairline);
}

/* ─── ARTICLE PAGE ────────────────────────────────────────────── */

.article-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--hairline);
}

.article-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: normal;
  font-style: italic;
  line-height: 1.1;
  max-width: 820px;
  margin: 1.25rem 0 1.5rem;
}

.article-dek {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--mid);
  max-width: 640px;
  line-height: 1.65;
}

.article-image-caption {
  font-style: italic;
  font-size: 0.78rem;
  color: var(--mid);
  padding: 0.65rem 0 0.65rem 1rem;
  border-left: 2px solid var(--gold);
  margin: 0.75rem 0 0;
}

.article-body {
  max-width: var(--text-w);
  margin: 0 auto;
  padding: 3.5rem 0 6rem;
}

.article-body p {
  margin-bottom: 1.6rem;
  font-size: 1.0rem;
  line-height: 1.82;
}

.article-body p:first-of-type { margin-bottom: 1.6rem; }

/* ─── FOOTER / COLOPHON ───────────────────────────────────────── */

.site-footer {
  background: var(--navy);
  color: rgba(247,243,236,0.75);
  margin-top: 6rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 3rem 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.4fr;
  gap: 4rem;
  border-bottom: 1px solid rgba(247,243,236,0.12);
}

/* Brand lockup in footer — invert dark artwork to white */
.site-footer .brand-lockup .logo-icon  { filter: brightness(0) invert(1); height: 42px; }
.site-footer .brand-lockup .wordmark   { filter: brightness(0) invert(1); height: 28px; }

.footer-brand-text {
  font-size: 0.8rem;
  line-height: 1.8;
  color: rgba(247,243,236,0.55);
  margin-top: 1rem;
}

.footer-section h3 {
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: normal;
  margin-bottom: 1.25rem;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-nav-list a {
  font-size: 0.82rem;
  color: rgba(247,243,236,0.65);
  text-decoration: none;
  line-height: 1.9;
}

.footer-nav-list a:hover { color: var(--gold); text-decoration: none; }

.footer-contact-link {
  font-size: 0.78rem;
  color: rgba(247,243,236,0.65);
  line-height: 1.7;
  display: block;
  word-break: break-all;
  text-decoration: none;
}

.footer-contact-link:hover { color: var(--gold); text-decoration: none; }

.footer-contact-link + .footer-contact-link { margin-top: 1rem; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.62rem;
  color: rgba(247,243,236,0.35);
  letter-spacing: 0.05em;
}

/* ─── SPACING UTILITIES ───────────────────────────────────────── */

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

/* ─── RESPONSIVE ──────────────────────────────────────────────── */

@media (max-width: 960px) {
  .container { padding: 0 2rem; }

  .masthead-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
  }

  .site-nav { justify-content: flex-start; }
  .site-nav a { padding: 0.3rem 0.6rem; }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .home-hero-image { height: 52vw; min-height: 280px; }
  .home-hero-image img { height: 100%; }
  .home-hero-text {
    padding: 3rem 2rem;
    border-left: none;
    border-top: 1px solid var(--hairline);
  }

  .two-col { columns: 1; }

  .pillars { grid-template-columns: 1fr; gap: 2.5rem; }

  .stats-row { grid-template-columns: 1fr; padding: 2rem 0; }
  .stat-item + .stat-item {
    border-left: none;
    border-top: 1px solid var(--hairline);
    padding-top: 1.75rem;
    margin-top: 1.75rem;
  }

  .blog-grid { grid-template-columns: 1fr; gap: 3.5rem; }

  .ways-grid { grid-template-columns: 1fr; gap: 0; }
  .way-item { padding: 2rem 0; }

  .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 2rem 2.5rem;
  }

  .footer-bottom { padding: 1rem 2rem; flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  .masthead-inner { padding: 0.75rem 1.25rem; }
  .home-hero-text { padding: 2.5rem 1.25rem; }
  .article-title { font-size: 1.7rem; }
  .display-xl { font-size: 2.2rem; }
  .cta-block { padding: 3.5rem 1rem; }
  .pull-quote { padding: 2rem 0; }
  .drop-cap::first-letter { font-size: 4em; }
  .footer-bottom { padding: 1rem 1.25rem; }
  .trustee-item { flex-direction: column; gap: 0.3rem; }
}
