/* ================================================================
   SAUVEGARDE DU PATRIMOINE MARITIME GIRONDIN — COMITÉ DE LACANAU
   Refined Editorial / Literary Magazine Design System
   ================================================================ */

/* --- CUSTOM PROPERTIES --- */
:root {
  --ivory:        #f7f3ec;
  --ink:          #1a1a14;
  --navy:         #1B3A5C;
  --gold:         #C8A96E;
  --caption:      #6b6460;
  --rule:         #c5bdb0;
  --rule-light:   #e0d9ce;
  --white:        #ffffff;
  --max-w:        1200px;
  --text-w:       680px;
  --gutter:       clamp(1.25rem, 4vw, 3rem);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; }

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

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

/* --- HEADINGS --- */
h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: normal;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5.25rem); }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
a:hover { text-decoration-color: var(--gold); }


/* =======================================================
   LAYOUT
   ======================================================= */

.container {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container--narrow {
  max-width: calc(var(--text-w) + 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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


/* =======================================================
   TYPOGRAPHY UTILITIES
   ======================================================= */

/* Small-caps kicker label above headings */
.kicker {
  display: block;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* Hairline / section rules */
.hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 4.5rem auto;
  max-width: var(--max-w);
  padding: 0 var(--gutter);
}

.hr--heavy  { border-top-width: 2px; border-color: var(--ink); }
.hr--gold   { border-top-width: 1px; border-color: var(--gold); }

/* Double rule — 2px ink + 1px hairline beneath */
.section-rule {
  border: none;
  border-top: 2px solid var(--ink);
  margin-bottom: 1.5rem;
  position: relative;
}
.section-rule::after {
  content: '';
  display: block;
  border-top: 1px solid var(--rule);
  margin-top: 4px;
}

/* Drop cap — first letter of opening paragraph */
.dropcap::first-letter {
  float: left;
  font-size: 4.25em;
  line-height: 0.82;
  padding-right: 0.12em;
  margin-top: 0.07em;
  color: var(--navy);
  font-family: Georgia, 'Times New Roman', serif;
}

/* Two-column text */
.col-2 {
  columns: 2;
  column-gap: 3.5rem;
  orphans: 3;
  widows: 3;
}
.col-2 p { break-inside: avoid; }

/* Italic accent */
em, .text-italic { font-style: italic; }
.text-navy   { color: var(--navy); }
.text-gold   { color: var(--gold); }
.text-caption{ color: var(--caption); }
.text-sc     { font-variant: small-caps; letter-spacing: 0.12em; font-size: 0.85em; }
.text-right  { text-align: right; }
.text-center { text-align: center; }


/* =======================================================
   MASTHEAD / SITE HEADER
   ======================================================= */

.site-header {
  background: var(--ivory);
  position: relative;
  z-index: 200;
}

/* Thin gold rule at very top */
.site-header__crown {
  height: 2px;
  background: var(--gold);
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__logo      { height: 54px; width: auto; }
.site-header__wordmark  { height: 36px; width: auto; }

/* Heavy ink rule below header area */
.site-header__base {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  height: 7px;
}

/* Main nav */
#main-nav { flex-shrink: 0; }

.site-nav {
  display: flex;
  list-style: none;
  gap: 0.125rem;
}

.site-nav a {
  display: block;
  padding: 0.3rem 0.8rem;
  font-variant: small-caps;
  letter-spacing: 0.13em;
  font-size: 0.8rem;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.15s;
  white-space: nowrap;
}

.site-nav a:hover     { color: var(--gold); text-decoration: none; }
.site-nav a.active    { color: var(--navy); border-bottom: 1px solid var(--navy); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--ink);
  transition: opacity 0.2s;
}


/* =======================================================
   HERO
   ======================================================= */

.hero {
  padding: 5.5rem var(--gutter) 3.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero__kicker { margin-bottom: 1.5rem; }

.hero__headline {
  font-size: clamp(2.75rem, 6.5vw, 5.75rem);
  letter-spacing: -0.025em;
  line-height: 1.04;
  font-style: italic;
  margin-bottom: 2rem;
  max-width: 16ch;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.175rem);
  line-height: 1.72;
  max-width: 58ch;
  color: var(--caption);
  margin-bottom: 2.5rem;
}

/* Page hero — inner pages */
.page-hero {
  padding: 5rem var(--gutter) 3.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}

.page-hero__kicker   { margin-bottom: 1rem; }

.page-hero__headline {
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
  font-style: italic;
  margin-bottom: 1.5rem;
  max-width: 20ch;
}

.page-hero__sub {
  font-size: 1.125rem;
  color: var(--caption);
  max-width: 55ch;
  line-height: 1.7;
}


/* =======================================================
   PHOTOGRAPHY MATTE
   ======================================================= */

.matte-wrap {
  padding: 0 var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto 0;
}

.matte {
  background: var(--white);
  padding: 1.625rem 1.625rem 1.125rem;
}

.matte img { width: 100%; display: block; }

.matte__caption {
  margin-top: 0.875rem;
  font-style: italic;
  font-size: 0.8125rem;
  color: var(--caption);
  line-height: 1.6;
  border-top: 1px solid var(--rule-light);
  padding-top: 0.625rem;
}


/* =======================================================
   PULL QUOTE
   ======================================================= */

.pull-quote {
  padding: 2.75rem 0;
  margin: 3.5rem 0;
  border-top: 2px solid var(--gold);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.pull-quote__text {
  font-size: clamp(1.375rem, 2.8vw, 2.125rem);
  font-style: italic;
  line-height: 1.42;
  color: var(--ink);
  max-width: 30ch;
  margin: 0 auto;
}

.pull-quote__attr {
  display: block;
  margin-top: 1.25rem;
  font-size: 0.72rem;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}


/* =======================================================
   IMPACT BAND
   ======================================================= */

.impact-band {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 3.5rem 0;
  margin: 0;
}

.impact-row {
  display: flex;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.impact-item {
  flex: 1;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
}

.impact-item + .impact-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 55%;
  width: 1px;
  background: var(--rule);
}

.impact-stat {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.625rem;
  font-style: italic;
}

.impact-label {
  font-variant: small-caps;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--caption);
  text-transform: uppercase;
  display: block;
}


/* =======================================================
   HIGHLIGHTS (3-COLUMN MAGAZINE)
   ======================================================= */

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.highlight-item {
  padding: 3rem 2.25rem;
  border-right: 1px solid var(--rule);
}
.highlight-item:last-child { border-right: none; }

.highlight-icon  { font-size: 1.375rem; margin-bottom: 1.25rem; display: block; line-height: 1; }
.highlight-title { font-size: 1.25rem; margin-bottom: 0.875rem; }
.highlight-blurb { font-size: 0.9375rem; line-height: 1.75; color: var(--caption); margin: 0; }


/* =======================================================
   CONTENTS REGISTER
   ======================================================= */

.contents-register { border-top: 2px solid var(--ink); }

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

.contents-num {
  font-size: 0.7rem;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  padding-top: 0.35rem;
  line-height: 1;
}

.contents-title  { font-size: 1.375rem; line-height: 1.25; margin-bottom: 0.5rem; }
.contents-blurb  { font-size: 0.9rem; color: var(--caption); line-height: 1.68; margin: 0; }


/* =======================================================
   PROGRAMME ENTRIES
   ======================================================= */

.programme-entry {
  padding: 3.5rem 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  column-gap: 2rem;
  align-items: start;
}

.programme-entry:first-of-type { border-top: 2px solid var(--ink); }

.programme-icon  { font-size: 1.5rem; line-height: 1; text-align: center; padding-top: 0.3rem; }
.programme-title { font-size: 1.625rem; margin-bottom: 0.75rem; }
.programme-blurb { font-size: 1rem; font-style: italic; color: var(--caption); margin-bottom: 1.25rem; }
.programme-detail{ font-size: 0.9375rem; line-height: 1.78; color: var(--ink); margin: 0; }


/* =======================================================
   MAGAZINE SPREAD (TEXT + IMAGE)
   ======================================================= */

.spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: start;
}


/* =======================================================
   WAYS TO HELP
   ======================================================= */

.ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
}

.way-item {
  padding: 3rem 2.25rem;
  border-right: 1px solid var(--rule);
}
.way-item:last-child { border-right: none; }

.way-icon  { font-size: 1.5rem; margin-bottom: 1.25rem; display: block; line-height: 1; }
.way-title { font-size: 1.375rem; margin-bottom: 0.875rem; }
.way-blurb { font-size: 0.9375rem; color: var(--caption); line-height: 1.75; margin: 0; }


/* =======================================================
   ARTICLE CARDS (BLOG GRID)
   ======================================================= */

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

.article-card { border-top: 1px solid var(--rule); padding-top: 1.5rem; }

.article-card__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 1.25rem;
}

.article-card__kicker { margin-bottom: 0.5rem; }

.article-card__title {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.article-card__title a { color: var(--ink); text-decoration: none; }
.article-card__title a:hover { color: var(--navy); }

.article-card__dek {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--caption);
  margin: 0;
  line-height: 1.68;
}


/* =======================================================
   BLOG MASTHEAD
   ======================================================= */

.blog-masthead {
  text-align: center;
  padding: 4.5rem var(--gutter) 2.5rem;
  border-bottom: 2px solid var(--ink);
}

.blog-eyeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.blog-eyeline::before,
.blog-eyeline::after {
  content: '';
  flex: 1;
  max-width: 100px;
  height: 1px;
  background: var(--rule);
}

.blog-eyeline-text {
  font-variant: small-caps;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--caption);
  text-transform: uppercase;
  white-space: nowrap;
}

.blog-masthead__title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 1rem;
}

.blog-masthead__sub {
  font-style: italic;
  color: var(--caption);
  font-size: 1.0625rem;
  margin-bottom: 0;
}


/* =======================================================
   ARTICLE PAGE
   ======================================================= */

.article-header {
  padding: 5rem var(--gutter) 3.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}

.article-header__kicker { margin-bottom: 1rem; }

.article-header__title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  max-width: 22ch;
  font-style: italic;
}

.article-header__dek {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--caption);
  max-width: 52ch;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.article-back {
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  text-decoration: none;
}
.article-back:hover { text-decoration-color: var(--gold); color: var(--gold); }

/* Article body — book-style continuous paragraphs */
.article-body {
  max-width: calc(var(--text-w) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 3.5rem var(--gutter) 3rem;
  font-size: 1.0625rem;
  line-height: 1.875;
}

.article-body p               { margin-bottom: 0; }
.article-body p + p           { text-indent: 1.75em; }
.article-body p:first-of-type { text-indent: 0; }

/* Pull quote inside article body */
.article-body .pull-quote { margin: 3rem -2rem; }


/* =======================================================
   TRUSTEES / COLOPHON LIST
   ======================================================= */

.trustees-list {
  list-style: none;
  border-top: 2px solid var(--ink);
}

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

.trustee-name { font-size: 1.0625rem; }

.trustee-role {
  font-variant: small-caps;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--gold);
  text-transform: uppercase;
}


/* =======================================================
   CONTACT FORM
   ======================================================= */

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

.form-label {
  display: block;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--caption);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

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

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

.form-textarea { min-height: 130px; resize: vertical; }


/* =======================================================
   BUTTONS
   ======================================================= */

.btn {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-variant: small-caps;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  text-decoration: none;
  border: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--navy);
  color: var(--ivory);
}
.btn-primary:hover { background: #142d4a; color: var(--ivory); text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--ivory); text-decoration: none; }


/* =======================================================
   COLOPHON / CONTACT DETAILS BLOCK
   ======================================================= */

.colophon-block {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 2.5rem 0;
  margin-bottom: 3rem;
}

.colophon-label {
  font-variant: small-caps;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.colophon-body {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--caption);
}
.colophon-body a { color: var(--navy); }


/* =======================================================
   CTA STRIP
   ======================================================= */

.cta-strip {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 4rem 0;
}

.cta-strip__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}


/* =======================================================
   SITE FOOTER
   ======================================================= */

.site-footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 5rem var(--gutter) 2rem;
  margin-top: 6rem;
}

.site-footer__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.6fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand__lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.375rem;
  text-decoration: none;
}

.footer-logo     { height: 46px; width: auto; }
.footer-wordmark { height: 30px; width: auto; filter: invert(1) brightness(3); }

.footer-tagline {
  font-style: italic;
  font-size: 0.9rem;
  color: #a09890;
  margin-bottom: 0.875rem;
  line-height: 1.65;
}

.footer-legal {
  font-size: 0.72rem;
  color: #5e5652;
  font-variant: small-caps;
  letter-spacing: 0.09em;
}

.footer-head {
  font-variant: small-caps;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-nav-list { list-style: none; }
.footer-nav-list li { margin-bottom: 0.625rem; }
.footer-nav-list a {
  color: #a09890;
  text-decoration: none;
  font-size: 0.875rem;
}
.footer-nav-list a:hover { color: var(--gold); }

.footer-contact-body {
  font-size: 0.84rem;
  color: #a09890;
  line-height: 1.9;
}
.footer-contact-body a { color: var(--gold); text-decoration: none; }
.footer-contact-body a:hover { text-decoration: underline; }
.footer-contact-body .footer-addr { color: #5e5652; font-size: 0.78rem; margin-top: 1.25rem; }

.site-footer__bottom {
  max-width: var(--max-w);
  margin: 1.75rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  color: #3e3a38;
  font-variant: small-caps;
  letter-spacing: 0.09em;
}


/* =======================================================
   RESPONSIVE — 900 px
   ======================================================= */

@media (max-width: 900px) {

  .highlights {
    grid-template-columns: 1fr;
  }
  .highlight-item {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .highlight-item:last-child { border-bottom: none; }

  .article-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  .ways-grid { grid-template-columns: 1fr; }
  .way-item { border-right: none; border-bottom: 1px solid var(--rule); }
  .way-item:last-child { border-bottom: none; }

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

  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 3rem; }

  .col-2 { columns: 1; }
}


/* =======================================================
   RESPONSIVE — 700 px (mobile)
   ======================================================= */

@media (max-width: 700px) {
  :root { --gutter: 1.25rem; }

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

  .impact-row    { flex-direction: column; gap: 2.5rem; }
  .impact-item + .impact-item::before { display: none; }
  .impact-band   { padding: 2.5rem 0; }

  .site-footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .site-footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  /* Mobile nav */
  .nav-toggle { display: flex; }

  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    border-top: 1px solid var(--rule);
    border-bottom: 2px solid var(--ink);
    padding: 1.5rem var(--gutter);
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  #main-nav.open { display: block; }
  .site-nav { flex-direction: column; gap: 0.25rem; }
  .site-nav a { padding: 0.5rem 0; }

  .site-header { position: relative; }

  /* Programme entries */
  .programme-entry { grid-template-columns: 1fr; gap: 0.75rem; }

  /* Contents register */
  .contents-item { grid-template-columns: 2.25rem 1fr; }

  /* Article body pull quote */
  .article-body .pull-quote { margin: 2.5rem 0; }

  /* CTA strip */
  .cta-strip__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero__headline { font-size: 2.25rem; }
  .blog-masthead__title { font-size: 3rem; }
}
