/* ============================================================
   Sauvegarde du Patrimoine Maritime Girondin
   Refined Editorial / Literary Magazine Stylesheet
   ============================================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* --- Base --- */
body {
  background-color: #f7f3ec;
  color: #1a1a14;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.72;
}

a { color: #1c3d2f; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
em { font-style: italic; }

/* --- Layout Containers --- */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 6vw, 5.5rem);
}
.wrap--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 6vw, 5.5rem);
}
.wrap--medium {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 6vw, 5.5rem);
}

/* --- Hairline Rules --- */
.rule-heavy  { border: none; border-top: 2px  solid #1a1a14; }
.rule-mid    { border: none; border-top: 1px  solid #1a1a14; }
.rule-thin   { border: none; border-top: 1px  solid rgba(26,26,20,.25); }
.rule-accent { border: none; border-top: 1px  solid #1c3d2f; }

/* --- Typography Scale --- */
h1 {
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: normal;
  line-height: 1.04;
  letter-spacing: -0.01em;
  font-style: italic;
}
h2 {
  font-size: clamp(1.7rem, 3.5vw, 3rem);
  font-weight: normal;
  line-height: 1.15;
  font-style: italic;
}
h3 {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: normal;
  line-height: 1.3;
  font-style: italic;
}
h4 {
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.35;
  font-style: italic;
}

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

/* --- Kicker / Section Label --- */
.kicker {
  display: block;
  font-family: Georgia, serif;
  font-style: normal;
  font-size: .64rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #1c3d2f;
  margin-bottom: .8rem;
}
.section-label {
  display: block;
  font-family: Georgia, serif;
  font-style: normal;
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(26,26,20,.65);
  margin-bottom: .5rem;
}

/* --- Drop Cap --- */
.drop-cap::first-letter {
  float: left;
  font-size: 5em;
  line-height: .76;
  margin-right: .08em;
  margin-top: .06em;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  color: #1c3d2f;
}

/* --- Pull Quote --- */
.pull-quote {
  padding: 3.5rem 0;
  text-align: center;
  border-top: 2px solid #1a1a14;
  border-bottom: 1px solid #1a1a14;
}
.pull-quote__text {
  font-size: clamp(1.3rem, 2.8vw, 2.1rem);
  font-style: italic;
  line-height: 1.5;
  color: #1a1a14;
  max-width: 36ch;
  margin: 0 auto;
}
.pull-quote__attribution {
  display: block;
  margin-top: 1.25rem;
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #1c3d2f;
}

/* --- Figure / Caption --- */
figure { margin: 0; }
figcaption {
  font-size: .75rem;
  font-style: italic;
  color: #5a5a4a;
  margin-top: .8rem;
  border-left: 2px solid #1c3d2f;
  padding-left: .75rem;
  line-height: 1.55;
}

/* --- CTA Button --- */
.btn {
  display: inline-block;
  padding: .7rem 2.4rem;
  border: 1px solid #1c3d2f;
  color: #1c3d2f;
  font-family: Georgia, serif;
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn:hover {
  background-color: #1c3d2f;
  color: #f7f3ec;
  text-decoration: none;
}

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

.site-header {
  background-color: #f7f3ec;
  border-bottom: 2px solid #1a1a14;
  position: sticky;
  top: 0;
  z-index: 200;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 6vw, 5.5rem);
  max-width: 1240px;
  margin: 0 auto;
}

/* Brand Lockup */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-lockup .logo-icon    { height: 46px; width: auto; }
.brand-lockup .logo-wordmark{ height: 30px; width: auto; max-width: 230px; }

/* Nav links */
.site-nav { display: flex; align-items: center; }
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.site-nav__links a {
  font-family: Georgia, serif;
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #1a1a14;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.site-nav__links a:hover,
.site-nav__links a.active {
  color: #1c3d2f;
  border-bottom-color: #1c3d2f;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: #1a1a14;
}

/* ============================================================
   SITE FOOTER — COLOPHON
   ============================================================ */

.site-footer {
  background-color: #1c3d2f;
  color: #f0f3f1;
  margin-top: 7rem;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.6fr;
  gap: 3.5rem;
  padding: 4.5rem clamp(1.25rem, 6vw, 5.5rem) 3.5rem;
  max-width: 1240px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(240,243,241,.22);
}

/* Inverted brand lockup for dark footer */
.footer-brand .brand-lockup .logo-icon    { filter: brightness(0) invert(1); }
.footer-brand .brand-lockup .logo-wordmark{ filter: brightness(0) invert(1); }
.footer-brand .brand-lockup { margin-bottom: 1.5rem; }

.site-footer p,
.site-footer address {
  font-size: .85rem;
  line-height: 1.85;
  color: rgba(240,243,241,.82);
  font-style: normal;
}
.site-footer a {
  color: rgba(240,243,241,.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer a:hover { color: #f0f3f1; }

.footer-nav h4,
.footer-contact h4 {
  font-style: normal;
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(240,243,241,.55);
  margin-bottom: 1.2rem;
  font-weight: normal;
}
.footer-nav li { margin-bottom: .55rem; }
.footer-nav a {
  font-size: .85rem;
  color: rgba(240,243,241,.8);
  text-decoration: none;
}
.footer-nav a:hover { color: #f0f3f1; text-decoration: none; }
.footer-contact address a { display: block; word-break: break-all; }

.site-footer__bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.4rem clamp(1.25rem, 6vw, 5.5rem);
  display: flex;
  justify-content: space-between;
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(240,243,241,.38);
}

/* ============================================================
   ISSUE LINE
   ============================================================ */

.issue-line {
  background-color: #f7f3ec;
  border-top: 1px solid #1a1a14;
  border-bottom: 1px solid rgba(26,26,20,.22);
}
.issue-line__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .45rem clamp(1.25rem, 6vw, 5.5rem);
  max-width: 1240px;
  margin: 0 auto;
  font-size: .59rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(26,26,20,.52);
}

/* ============================================================
   HOMEPAGE
   ============================================================ */

.hero { padding: 4rem 0 0; }

.hero__headline {
  max-width: 16ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.8rem, 6.5vw, 5.8rem);
}
.hero__sub {
  font-size: 1.05rem;
  line-height: 1.72;
  color: #3a3a2e;
  max-width: 52ch;
  font-style: italic;
  margin-bottom: 0;
}
.hero__figure { margin-top: 3rem; }
.hero__figure img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
}

.home-intro { padding: 5rem 0; }
.home-intro__inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 5rem;
  align-items: start;
}
.home-intro__text { font-size: 1.02rem; line-height: 1.78; }
.home-intro__aside {
  padding-left: 2.5rem;
  border-left: 1px solid #1a1a14;
}
.home-intro__aside-stat {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-style: italic;
  color: #1c3d2f;
  line-height: 1;
  display: block;
  margin-bottom: .35rem;
}
.home-intro__aside-label {
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #1a1a14;
  display: block;
  margin-bottom: 2.5rem;
}
.home-intro__aside-label:last-of-type { margin-bottom: 0; }

.impact-strip {
  padding: 3.5rem 0;
  border-top: 2px solid #1a1a14;
  border-bottom: 1px solid #1a1a14;
}
.impact-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.impact-item { text-align: center; padding: 1.5rem 1rem; }
.impact-item + .impact-item { border-left: 1px solid rgba(26,26,20,.2); }
.impact-item__stat {
  display: block;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-style: italic;
  color: #1c3d2f;
  line-height: 1;
  margin-bottom: .55rem;
}
.impact-item__label {
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #1a1a14;
}

.highlights { padding: 5rem 0; }
.highlights__header { margin-bottom: 2.5rem; }
.highlights__header h2 { max-width: 22ch; }
.highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #1a1a14;
}
.highlight-item {
  padding: 2.5rem 2.5rem 2.5rem 0;
  border-right: 1px solid rgba(26,26,20,.18);
}
.highlight-item:last-child { border-right: none; padding-right: 0; }
.highlight-item:not(:first-child) { padding-left: 2.5rem; }
.highlight-item__icon {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  opacity: .65;
}
.highlight-item__title {
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: .75rem;
  line-height: 1.3;
}
.highlight-item__blurb { font-size: .9rem; line-height: 1.72; color: #3a3a2e; }

.cta-band {
  margin: 4rem 0;
  padding: 4rem;
  border-top: 2px solid #1a1a14;
  border-bottom: 2px solid #1a1a14;
  text-align: center;
}
.cta-band h2 { margin-bottom: 2rem; font-size: clamp(1.5rem, 3vw, 2.4rem); }

/* ============================================================
   PAGE HEADER — interior pages
   ============================================================ */

.page-header {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid #1a1a14;
  margin-bottom: 4.5rem;
}
.page-header__kicker { margin-bottom: 1rem; }
.page-header__headline { max-width: 24ch; margin-bottom: 1.2rem; }
.page-header__sub {
  font-size: 1rem;
  font-style: italic;
  color: #3a3a2e;
  max-width: 52ch;
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-columns {
  column-count: 2;
  column-gap: 4rem;
  column-rule: 1px solid rgba(26,26,20,.18);
  font-size: 1rem;
  line-height: 1.78;
  margin-bottom: 4rem;
}
.about-figure { margin: 3rem 0 4rem; }
.about-figure img { width: 100%; max-height: 520px; object-fit: cover; }

.section-block {
  padding: 4rem 0;
  border-top: 1px solid #1a1a14;
}
.section-block--heavy { border-top-width: 2px; }

.two-col-section {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 4.5rem;
}
.two-col-section__label { padding-top: .15rem; }
.two-col-section__content { font-size: 1rem; line-height: 1.78; }

.trustees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
  border-top: 1px solid rgba(26,26,20,.28);
}
.trustee-item {
  padding: 1.75rem 2rem 1.75rem 0;
  border-right: 1px solid rgba(26,26,20,.14);
}
.trustee-item:last-child { border-right: none; }
.trustee-item:not(:first-child) { padding-left: 2rem; }
.trustee-item__name { font-size: 1.1rem; font-style: italic; margin-bottom: .3rem; }
.trustee-item__role {
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #1c3d2f;
}

/* ============================================================
   OUR WORK PAGE
   ============================================================ */

.contents-register {
  margin: 2rem 0 4rem;
  border-top: 2px solid #1a1a14;
}
.contents-register__row {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(26,26,20,.17);
  align-items: start;
}
.contents-register__icon { font-size: .9rem; margin-top: .2rem; opacity: .68; }
.contents-register__title {
  font-size: 1.05rem;
  font-style: italic;
  display: block;
  margin-bottom: .25rem;
  color: #1a1a14;
}
.contents-register__blurb {
  font-size: .85rem;
  color: #4a4a3e;
  line-height: 1.6;
  margin: 0;
}

.programme-entry {
  padding: 4rem 0;
  border-top: 1px solid rgba(26,26,20,.2);
}
.programme-entry__inner {
  display: grid;
  grid-template-columns: 1fr 2.8fr;
  gap: 4rem;
}
.programme-entry__icon { display: block; font-size: 1.6rem; margin-bottom: 1rem; opacity: .65; }
.programme-entry__title { font-size: 1.2rem; font-style: italic; margin-bottom: .75rem; }
.programme-entry__blurb { font-size: .85rem; color: #4a4a3e; line-height: 1.65; margin: 0; }
.programme-entry__detail { font-size: .98rem; line-height: 1.78; }

.work-figure { margin: 3.5rem 0; }
.work-figure img { width: 100%; max-height: 480px; object-fit: cover; }

/* ============================================================
   GET INVOLVED PAGE
   ============================================================ */

.ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid #1a1a14;
  padding-top: 3rem;
  margin-top: 3rem;
}
.way-item {
  padding-right: 3rem;
  border-right: 1px solid rgba(26,26,20,.18);
}
.way-item:last-child { border-right: none; padding-right: 0; }
.way-item:not(:first-child) { padding-left: 3rem; }
.way-item__icon { display: block; font-size: 1.3rem; margin-bottom: 1.1rem; opacity: .68; }
.way-item__title { font-size: 1.2rem; font-style: italic; margin-bottom: .75rem; }
.way-item__blurb { font-size: .92rem; line-height: 1.72; color: #3a3a2e; }

.gi-figure { margin: 5rem 0; }
.gi-figure img { width: 100%; max-height: 480px; object-fit: cover; }

/* ============================================================
   BLOG PAGE
   ============================================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #1a1a14;
  margin-top: 1rem;
}
.blog-card {
  padding: 2.5rem 2.5rem 2.5rem 0;
  border-right: 1px solid rgba(26,26,20,.17);
}
.blog-card:last-child { border-right: none; padding-right: 0; }
.blog-card:not(:first-child) { padding-left: 2.5rem; }
.blog-card__figure { margin-bottom: 1.75rem; }
.blog-card__figure img { width: 100%; height: 210px; object-fit: cover; }
.blog-card__kicker { margin-bottom: .5rem; }
.blog-card__title { font-size: 1.15rem; font-style: italic; line-height: 1.35; margin-bottom: .75rem; }
.blog-card__dek { font-size: .9rem; line-height: 1.65; color: #3a3a2e; margin-bottom: 1.25rem; }
.blog-card__read {
  font-size: .59rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #1c3d2f;
  text-decoration: none;
  border-bottom: 1px solid #1c3d2f;
  padding-bottom: 2px;
}
.blog-card__read:hover { color: #1a1a14; border-bottom-color: #1a1a14; text-decoration: none; }

/* ============================================================
   ARTICLE PAGES
   ============================================================ */

.article-header {
  padding: 4rem 0 3.5rem;
  border-bottom: 2px solid #1a1a14;
  margin-bottom: 4rem;
}
.article-header__kicker { margin-bottom: 1.1rem; }
.article-header__title {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-style: italic;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  max-width: 26ch;
  font-weight: normal;
}
.article-header__dek {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  max-width: 54ch;
  color: #3a3a2e;
  margin: 0;
}

.article-figure { margin: 0 0 4rem; }
.article-figure img { width: 100%; max-height: 560px; object-fit: cover; }

.article-body {
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 64ch;
  margin: 0 auto;
}
.article-body p { margin-bottom: 1.5em; }

.article-end {
  text-align: center;
  margin: 3rem auto 4rem;
  font-size: 1.4rem;
  color: #1c3d2f;
  letter-spacing: .6em;
  display: block;
}
.article-back {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid rgba(26,26,20,.22);
  margin-top: 2rem;
}
.article-back a {
  font-size: .59rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #1c3d2f;
  border-bottom: 1px solid #1c3d2f;
  padding-bottom: 2px;
  text-decoration: none;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 6rem;
  padding: 4rem 0 5rem;
}
.contact-details {
  border-right: 1px solid rgba(26,26,20,.2);
  padding-right: 2rem;
}
.contact-details__title { font-size: 1.5rem; font-style: italic; line-height: 1.3; margin-bottom: 2rem; }
.contact-details address { font-style: normal; font-size: .95rem; line-height: 2; color: #3a3a2e; }
.contact-details address a { color: #1c3d2f; }

.contact-form-section {}
.contact-form legend {
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #1c3d2f;
  margin-bottom: 2.5rem;
  display: block;
  font-style: normal;
}
.form-row { margin-bottom: 2rem; }
.form-row label {
  display: block;
  font-size: .59rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(26,26,20,.7);
  margin-bottom: .45rem;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(26,26,20,.45);
  padding: .5rem 0;
  font-size: 1rem;
  font-family: Georgia, 'Times New Roman', serif;
  color: #1a1a14;
  outline: none;
  border-radius: 0;
  transition: border-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus { border-bottom-color: #1c3d2f; }
.form-row textarea { resize: vertical; min-height: 130px; line-height: 1.65; padding-top: .5rem; }
.form-submit { margin-top: 1.5rem; }

/* ============================================================
   RESPONSIVE — tablet & mobile
   ============================================================ */

@media (max-width: 960px) {
  .site-nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #f7f3ec;
    border-bottom: 2px solid #1a1a14;
    padding: 1.5rem clamp(1.25rem, 6vw, 5.5rem);
    gap: 1.25rem;
    z-index: 199;
  }
  .site-nav__links.is-open { display: flex; }
  .site-header { position: relative; }
  .nav-toggle { display: flex; }

  .home-intro__inner,
  .two-col-section,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .home-intro__aside {
    border-left: none;
    border-top: 1px solid rgba(26,26,20,.22);
    padding-left: 0;
    padding-top: 2rem;
  }
  .impact-strip__inner { grid-template-columns: 1fr; }
  .impact-item + .impact-item { border-left: none; border-top: 1px solid rgba(26,26,20,.2); }
  .highlights__grid { grid-template-columns: 1fr; }
  .highlight-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(26,26,20,.18);
    padding: 2rem 0 !important;
  }
  .highlight-item:last-child { border-bottom: none; }
  .about-columns { column-count: 1; }
  .trustees-grid { grid-template-columns: 1fr; }
  .trustee-item { border-right: none !important; padding-left: 0 !important; }
  .programme-entry__inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .ways-grid { grid-template-columns: 1fr; }
  .way-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(26,26,20,.18);
    padding: 2rem 0 !important;
  }
  .way-item:last-child { border-bottom: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card {
    border-right: none !important;
    border-bottom: 1px solid rgba(26,26,20,.17);
    padding: 2.5rem 0 !important;
  }
  .blog-card:last-child { border-bottom: none; }
  .cta-band { padding: 3rem 1.5rem; }
  .site-footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .contact-details {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid rgba(26,26,20,.18);
    padding-bottom: 2.5rem;
  }
  .article-body { max-width: 100%; }
  .site-footer__bottom { flex-direction: column; gap: .5rem; }
  .issue-line__inner { justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
}

@media (max-width: 580px) {
  .brand-lockup .logo-wordmark { max-width: 160px; height: 22px; }
  .brand-lockup .logo-icon { height: 36px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.5rem; }
  .pull-quote__text { font-size: 1.2rem; }
  .hero__figure img { max-height: 300px; }
  .article-figure img { max-height: 280px; }
}
