/* ============================================================
   Sauvegarde du Patrimoine Maritime Girondin — Comité de Langon
   Feuille de style principale — Revue littéraire patrimoniale
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --ivory:        #f7f3ec;
  --ivory-warm:   #ece6db;
  --ink:          #1a1614;
  --ink-mid:      #3d3230;
  --ink-light:    #6b5f5b;
  --navy:         #1B3A5C;
  --navy-mid:     #254d78;
  --gold:         #C8A96E;
  --gold-dark:    #a8874a;
  --rule-heavy:   #1a1614;
  --rule:         #c9bfb2;
  --rule-light:   #ddd6cc;
  --rule-faint:   #ede8e0;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }
p { margin: 0 0 1.4em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}
.container--narrow {
  width: 88%;
  max-width: 740px;
  margin: 0 auto;
}
.container--wide {
  width: 96%;
  max-width: 1380px;
  margin: 0 auto;
}

/* ── Horizontal rules — three weights ───────────────────────── */
hr, .rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}
.rule--heavy    { border-top-width: 2px; border-top-color: var(--ink); }
.rule--medium   { border-top-width: 1px; border-top-color: var(--rule); }
.rule--light    { border-top-width: 1px; border-top-color: var(--rule-light); }
.rule--faint    { border-top-width: 1px; border-top-color: var(--rule-faint); }
.rule--gold     { border-top-width: 1px; border-top-color: var(--gold); }

/* Double-rule chapter head (2 px above + hairline gap + 1 px below) */
.double-rule-top {
  border-top: 2px solid var(--ink);
  padding-top: 3px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
}

/* ── Kickers & labels ────────────────────────────────────────── */
.kicker {
  display: block;
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .55em;
  font-style: normal;
  font-variant: small-caps;
}
.section-label {
  display: block;
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-variant: small-caps;
  color: var(--ink-light);
  margin-bottom: .6em;
}

/* ── Typography ─────────────────────────────────────────────── */
h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: normal;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 .6em;
}
h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: normal;
  line-height: 1.22;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 .65em;
}
h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: normal;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 .5em;
}
h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 .4em;
}

/* ── Drop cap ─────────────────────────────────────────────────── */
.drop-cap::first-letter {
  float: left;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4.6em;
  font-weight: normal;
  font-style: normal;
  line-height: .79;
  color: var(--navy);
  margin-right: .09em;
  margin-top: .06em;
  padding-bottom: .02em;
}

/* ── Pull quote ──────────────────────────────────────────────── */
.pull-quote {
  margin: 3.5rem 0;
  padding: 2.2rem 2rem;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.pull-quote__text {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  font-style: italic;
  font-weight: normal;
  color: var(--navy);
  line-height: 1.45;
  max-width: 680px;
  margin: 0 auto .7em;
}
.pull-quote__attribution {
  display: block;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-light);
}

/* ── Matted photograph ───────────────────────────────────────── */
.mat {
  padding: 1.1rem;
  background: var(--ivory-warm);
  border: 1px solid var(--rule-light);
  display: block;
}
.mat img {
  display: block;
  width: 100%;
  height: auto;
}
.mat__caption {
  display: block;
  font-style: italic;
  font-size: .82rem;
  color: var(--ink-light);
  text-align: center;
  margin-top: .75rem;
  line-height: 1.55;
  letter-spacing: .01em;
}

/* ── Impact statistics register ─────────────────────────────── */
.stats-register {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.stats-register__item {
  padding: 2.8rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--rule);
}
.stats-register__item:last-child { border-right: none; }
.stats-register__num {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: normal;
  font-style: italic;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: .3em;
}
.stats-register__label {
  display: block;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-light);
}

/* ── Highlights — three-column magazine ─────────────────────── */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.highlight-item {
  padding: 2.5rem 2.2rem 2.5rem 0;
  border-right: 1px solid var(--rule-light);
}
.highlight-item:last-child { border-right: none; padding-right: 0; }
.highlight-item__icon {
  display: block;
  font-size: 1.3rem;
  margin-bottom: .8rem;
  color: var(--gold);
}
.highlight-item__title {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: .45em;
  line-height: 1.3;
}
.highlight-item__body {
  font-size: .91rem;
  color: var(--ink-mid);
  line-height: 1.72;
  margin: 0;
}

/* ── Programmes — contents register ─────────────────────────── */
.contents-register {
  border-top: 2px solid var(--ink);
}
.contents-register::after {
  content: '';
  display: block;
  border-top: 1px solid var(--rule);
  margin-top: 0;
}
.register-entry {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 2.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule-light);
  align-items: start;
}
.register-entry:last-child { border-bottom: none; }
.register-entry__num {
  font-size: 1.4rem;
  font-style: italic;
  color: var(--rule);
  line-height: 1.2;
  padding-top: .1rem;
  text-align: right;
}
.register-entry__body {}
.register-entry__title {
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: .3em;
  line-height: 1.25;
}
.register-entry__blurb {
  font-style: italic;
  color: var(--ink-mid);
  font-size: .95rem;
  margin-bottom: .8em;
  line-height: 1.65;
}
.register-entry__detail {
  font-size: .9rem;
  color: var(--ink-mid);
  line-height: 1.72;
  margin: 0;
}

/* ── Two-column body text ────────────────────────────────────── */
.two-col {
  column-count: 2;
  column-gap: 3.5rem;
  column-rule: 1px solid var(--rule-light);
}
.two-col p { break-inside: avoid; }

/* ── Section padding ─────────────────────────────────────────── */
.section { padding: 5.5rem 0; }
.section--tight { padding: 3.5rem 0; }
.section--ruled { border-top: 1px solid var(--rule); }
.section--top { padding-top: 4rem; }

.section__header { margin-bottom: 3rem; }
.section__header--center { text-align: center; }

/* ── Split layout ─────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.split--wide { grid-template-columns: 1.1fr .9fr; }

/* ── Trustees ─────────────────────────────────────────────────── */
.trustees {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
}
.trustee {
  padding: 2rem 2rem 2rem 0;
  border-right: 1px solid var(--rule-light);
}
.trustee:last-child { border-right: none; padding-right: 0; }
.trustee__name {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: .2em;
  font-style: italic;
}
.trustee__role {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ── Ways to help ─────────────────────────────────────────────── */
.ways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.way {
  padding: 2.5rem 2.5rem 2.5rem 0;
  border-right: 1px solid var(--rule-light);
}
.way:last-child { border-right: none; padding-right: 0; }
.way__icon {
  display: block;
  font-size: 1.3rem;
  margin-bottom: .9rem;
  color: var(--gold);
}
.way__title {
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: .45em;
}
.way__body {
  font-size: .91rem;
  color: var(--ink-mid);
  line-height: 1.72;
  margin: 0;
}

/* ── CTA section ─────────────────────────────────────────────── */
.cta-section {
  padding: 6rem 0;
  text-align: center;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.cta-section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-style: italic;
  color: var(--ink);
  margin-bottom: 1.6rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.btn {
  display: inline-block;
  padding: .85rem 2.8rem;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 10.5px;
  letter-spacing: .25em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .18s, color .18s;
  cursor: pointer;
  background: transparent;
  line-height: 1;
}
.btn:hover {
  background: var(--navy);
  color: var(--ivory);
}
.btn--gold {
  border-color: var(--gold);
  color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold);
  color: var(--ivory);
}

/* ── Blog article cards ──────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
}
.article-card {
  padding: 2.5rem 2.5rem 2.5rem 0;
  border-right: 1px solid var(--rule-light);
}
.article-card:last-child { border-right: none; padding-right: 0; }
.article-card__image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  margin-bottom: 1.3rem;
}
.article-card__title {
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: .4em;
}
.article-card__title a {
  color: inherit;
  text-decoration: none;
}
.article-card__title a:hover { color: var(--navy); }
.article-card__dek {
  font-style: italic;
  font-size: .88rem;
  color: var(--ink-mid);
  line-height: 1.62;
  margin-bottom: 1em;
}
.article-card__link {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
}
.article-card__link:hover { color: var(--gold-dark); }
.article-card__link::after { content: ' →'; }

/* ── Article page ────────────────────────────────────────────── */
.article-header {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}
.article-title {
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: normal;
  line-height: 1.12;
  letter-spacing: -.015em;
  max-width: 820px;
  margin: 0 0 .65em;
}
.article-dek {
  font-size: 1.08rem;
  font-style: italic;
  color: var(--ink-mid);
  max-width: 660px;
  line-height: 1.65;
  margin: 0;
}
.article-image-full {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.article-body {
  padding: 3.5rem 0 5rem;
}
.article-body p {
  font-size: 1rem;
  line-height: 1.84;
  color: var(--ink-mid);
  margin-bottom: 1.4em;
}
.article-body p:first-of-type { color: var(--ink); }
.article-body strong {
  font-weight: normal;
  font-style: italic;
  color: var(--navy);
}
.article-nav-back {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-decoration: none;
  margin-bottom: 2.5rem;
}
.article-nav-back:hover { color: var(--navy); }
.article-nav-back::before { content: '← '; }

/* ── Contact form ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: start;
  padding: 4rem 0 5rem;
}
.contact-info {}
.contact-info p {
  font-size: .95rem;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: .9em;
}
.contact-detail {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-light);
}
.contact-detail p {
  font-size: .88rem;
  color: var(--ink-light);
  margin-bottom: .4em;
}
.contact-email {
  display: block;
  font-size: .9rem;
  color: var(--navy);
  word-break: break-all;
  margin-bottom: .3em;
  text-decoration: none;
}
.contact-email:hover { color: var(--gold-dark); }
.form-field { margin-bottom: 1.6rem; }
label {
  display: block;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: .45em;
  font-family: Georgia, serif;
}
input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: .55rem 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: .97rem;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  display: block;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus { border-bottom-color: var(--navy); }
textarea { min-height: 110px; resize: vertical; }

/* ── Header / Navigation ─────────────────────────────────────── */
.site-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 200;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
  gap: 2rem;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand__icon {
  height: 42px;
  width: auto;
}
.brand__wordmark {
  height: 30px;
  width: auto;
  /* dark artwork on transparent bg — shows as-is on light header */
}
.site-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.site-nav a {
  display: block;
  padding: .28rem .8rem;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  border-right: 1px solid var(--rule-faint);
  transition: color .15s;
  white-space: nowrap;
}
.site-nav li:last-child a { border-right: none; }
.site-nav a:hover { color: var(--navy); }
.site-nav a.active { color: var(--navy); border-bottom: 1px solid var(--navy); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  padding: .38rem .65rem;
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ── Footer / Colophon ───────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: var(--ivory);
  border-top: 3px solid var(--gold);
  padding: 4.5rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 1.5rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: flex-start;
}
.footer-brand__icon {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-brand__wordmark {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-colophon p {
  font-size: .82rem;
  color: rgba(247,243,236,.65);
  line-height: 1.65;
  margin-bottom: .4em;
  font-family: Georgia, serif;
}
.footer-colophon p strong {
  color: rgba(247,243,236,.9);
  font-weight: normal;
  font-style: italic;
}
.footer-email-link {
  display: block;
  color: var(--gold);
  font-size: .82rem;
  text-decoration: none;
  margin-bottom: .25em;
  word-break: break-all;
  transition: color .15s;
}
.footer-email-link:hover { color: var(--ivory); }
.footer-nav-col { text-align: right; }
.footer-nav-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav-col ul li a {
  display: block;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(247,243,236,.5);
  text-decoration: none;
  padding: .28rem 0;
  transition: color .15s;
}
.footer-nav-col ul li a:hover { color: var(--ivory); }
.footer-bottom {
  text-align: center;
  font-size: .74rem;
  color: rgba(247,243,236,.28);
  letter-spacing: .1em;
  font-family: Georgia, serif;
}

/* ── Utilities ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-italic  { font-style: italic; }
.color-gold   { color: var(--gold); }
.color-navy   { color: var(--navy); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* Spacers */
.sp-1 { display: block; height: 1rem; }
.sp-2 { display: block; height: 2rem; }
.sp-3 { display: block; height: 3rem; }
.sp-4 { display: block; height: 4rem; }
.sp-5 { display: block; height: 5rem; }

/* ── Intro text block ─────────────────────────────────────────── */
.intro-block {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.06rem;
  line-height: 1.84;
  color: var(--ink-mid);
}

/* ── Page masthead (non-hero pages) ──────────────────────────── */
.page-masthead {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--rule);
}
.page-masthead .kicker { margin-bottom: .7rem; }
.page-masthead h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 820px;
  margin-bottom: .5em;
}
.page-masthead__sub {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink-mid);
  max-width: 640px;
  line-height: 1.65;
  margin: 0;
}

/* ── What we do text (two paragraphs on site) ────────────────── */
.prose {
  font-size: 1rem;
  line-height: 1.82;
  color: var(--ink-mid);
}
.prose p { margin-bottom: 1.4em; }
.prose p:first-child { color: var(--ink); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 980px) {
  .highlights,
  .ways { grid-template-columns: 1fr 1fr; }
  .highlight-item:nth-child(2) { border-right: none; }
  .way:nth-child(2) { border-right: none; }
  .split { grid-template-columns: 1fr; gap: 3rem; }
  .two-col { column-count: 1; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .article-card:nth-child(2) { border-right: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-nav-col { text-align: left; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .section { padding: 3.5rem 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .highlights,
  .ways,
  .trustees { grid-template-columns: 1fr; }
  .highlight-item,
  .way,
  .trustee {
    border-right: none;
    border-bottom: 1px solid var(--rule-light);
    padding: 1.8rem 0;
  }
  .highlight-item:last-child,
  .way:last-child,
  .trustee:last-child { border-bottom: none; }

  .stats-register { grid-template-columns: 1fr; }
  .stats-register__item {
    border-right: none;
    border-bottom: 1px solid var(--rule-light);
    padding: 1.8rem 1rem;
  }
  .stats-register__item:last-child { border-bottom: none; }

  .articles-grid { grid-template-columns: 1fr; }
  .article-card {
    padding: 1.8rem 0;
    border-right: none;
    border-bottom: 1px solid var(--rule-light);
  }
  .article-card:last-child { border-bottom: none; }

  .register-entry { grid-template-columns: 1fr; }
  .register-entry__num { display: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-nav-col { text-align: left; }

  .article-image-full { height: 260px; }
  .cta-section { padding: 4rem 0; }
  .pull-quote { margin: 2rem 0; padding: 1.5rem .5rem; }
  .drop-cap::first-letter { font-size: 3.8em; }

  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--rule);
    padding: .3rem 0;
    z-index: 300;
    box-shadow: 0 4px 12px rgba(26,22,20,.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    border-right: none;
    border-bottom: 1px solid var(--rule-faint);
    padding: .75rem 5%;
    font-size: 11px;
  }
  .site-nav li:last-child a { border-bottom: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 420px) {
  .container, .container--narrow, .container--wide { width: 94%; }
  .hero__title { font-size: 1.8rem; }
}
