/* =========================================================
   SPMG ATLAS — EDITORIAL STYLESHEET
   Refined Literary / Heritage Foundation archetype
   ========================================================= */

:root {
  --ivory:  #f7f3ec;
  --ink:    #1a1a18;
  --navy:   #1B3A5C;
  --gold:   #C8A96E;
  --rule:   #cdc7bc;
  --rule-lt:#e2ddd6;
  --muted:  #7a7670;
  --bg-mat: #eee8de;
  --wide:   1200px;
  --prose:  720px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── BASE ── */
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: normal;
  line-height: 1.18;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5vw,  4.6rem); letter-spacing: -0.022em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem);  letter-spacing: -0.016em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.85rem); }
h4 { font-size: 1.1rem; letter-spacing: 0.01em; }
p  { margin-bottom: 1.5em; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }

.kicker {
  display: block;
  font-variant: small-caps;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  color: var(--navy);
  margin-bottom: 0.9rem;
  line-height: 1.4;
}

.dek {
  font-style: italic;
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 680px;
}

.intro-large {
  font-size: clamp(1.1rem, 1.9vw, 1.28rem);
  line-height: 1.72;
  max-width: 760px;
}

/* ── RULES ── */
.rule       { border: none; border-top: 1px solid var(--rule);    margin: 2.5rem 0; }
.rule--lt   { border: none; border-top: 1px solid var(--rule-lt); margin: 2rem 0; }
.rule--heavy{ border: none; border-top: 2px solid var(--ink);     margin: 3rem 0; }
.rule--gold { border: none; border-top: 1px solid var(--gold);    margin: 2rem 0; }

/* ── LAYOUT ── */
.wrap       { max-width: var(--wide);  margin: 0 auto; padding: 0 6vw; }
.prose-wrap { max-width: var(--prose); margin: 0 auto; padding: 0 6vw; }

section { padding: 5.5rem 0; }
section + section { padding-top: 0; }

/* ── NAVIGATION ── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--ivory);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo     { height: 46px; width: auto; }
.brand-wordmark { height: 30px; width: auto; }

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-variant: small-caps;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover        { color: var(--navy); }
.nav-links a.active       { color: var(--navy); border-bottom-color: var(--gold); }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.2s;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 6, 3, 0.80) 0%,
    rgba(8, 6, 3, 0.40) 45%,
    rgba(8, 6, 3, 0.08) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 6vw 9vh;
  max-width: 880px;
}
.hero-kicker {
  display: block;
  font-variant: small-caps;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.hero h1 {
  color: var(--ivory);
  font-size: clamp(2.6rem, 5.8vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  margin-bottom: 1.6rem;
}
.hero-sub {
  font-style: italic;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.68;
  color: rgba(247,243,236,0.86);
  max-width: 660px;
}

/* ── PAGE HERO (non-image pages) ── */
.page-hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--rule);
}
.page-hero .kicker { margin-bottom: 1rem; }
.page-hero h1 { max-width: 820px; margin-bottom: 1.5rem; }

/* ── DROP CAP ── */
.drop-cap::first-letter {
  float: left;
  font-size: 5em;
  line-height: 0.80;
  padding-right: 0.12em;
  padding-top: 0.08em;
  color: var(--navy);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: normal;
}

/* ── MULTI-COLUMN ── */
.columns-2 {
  column-count: 2;
  column-gap: 3.5rem;
  column-rule: 1px solid var(--rule);
}

/* ── PULL QUOTE ── */
.pull-quote {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 2.2rem 0 2.4rem;
  margin: 3.5rem 0;
}
.pull-quote blockquote {
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  line-height: 1.46;
  color: var(--navy);
}
.pull-quote cite {
  display: block;
  margin-top: 1.1rem;
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}

/* ── IMPACT STRIP ── */
.impact-strip {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--rule);
  gap: 1px;
}
.impact-item {
  background: var(--ivory);
  padding: 3rem 2.5rem;
  text-align: center;
}
.impact-stat {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.55rem;
  letter-spacing: -0.02em;
}
.impact-label {
  font-variant: small-caps;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--muted);
}

/* ── HIGHLIGHTS (editorial columns) ── */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.highlight-item {
  padding: 2.8rem 2.4rem 2.8rem 0;
  border-right: 1px solid var(--rule);
}
.highlight-item:first-child { padding-left: 0; }
.highlight-item:last-child  { border-right: none; padding-right: 0; }
.highlight-item:not(:first-child) { padding-left: 2.4rem; }
.highlight-icon { font-size: 1.4rem; margin-bottom: 1rem; display: block; }
.highlight-item h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}
.highlight-item p { font-size: 0.95rem; line-height: 1.72; margin: 0; }

/* ── PHOTO / FIGURE ── */
.photo-matted {
  background: var(--bg-mat);
  padding: 3.5rem 3.5rem 2.2rem;
}
.photo-matted img { width: 100%; }
.photo-matted figcaption {
  font-style: italic;
  font-size: 0.83rem;
  color: var(--muted);
  padding-top: 0.8rem;
  line-height: 1.55;
  border-top: 1px solid var(--rule);
  margin-top: 2px;
}
.photo-plain img { width: 100%; }
.photo-plain figcaption {
  font-style: italic;
  font-size: 0.83rem;
  color: var(--muted);
  padding-top: 0.7rem;
  line-height: 1.55;
}

/* ── PROGRAMMES / CONTENTS REGISTER ── */
.contents-register {
  counter-reset: programme;
}
.programme-entry {
  display: grid;
  grid-template-columns: 2.8rem 1fr;
  gap: 1.8rem;
  padding: 2.6rem 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.programme-entry:last-child { border-bottom: 1px solid var(--rule); }
.programme-numeral {
  font-size: 1.4rem;
  color: var(--gold);
  line-height: 1.5;
  padding-top: 0.1rem;
}
.programme-body > .kicker { margin-bottom: 0.4rem; }
.programme-body h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 0.5rem; }
.programme-blurb {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 0.9rem;
  font-size: 1rem;
}
.programme-detail { font-size: 0.95rem; line-height: 1.75; }

/* ── TRUSTEES ── */
.trustees-list { list-style: none; }
.trustee-entry {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
  gap: 2rem;
}
.trustee-entry:last-child { border-bottom: 1px solid var(--rule); }
.trustee-name { font-style: italic; font-size: 1.05rem; }
.trustee-role {
  font-variant: small-caps;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ── WAYS TO HELP ── */
.ways-list { list-style: none; }
.way-entry {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.8rem;
  padding: 2.6rem 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.way-entry:last-child { border-bottom: 1px solid var(--rule); }
.way-icon { font-size: 1.5rem; padding-top: 0.1rem; }
.way-body h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 0.5rem; }
.way-body p { font-size: 0.97rem; margin: 0; }

/* ── BLOG TEASERS ── */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.teaser-item {
  padding: 3rem 2.5rem 3rem 0;
  border-right: 1px solid var(--rule);
}
.teaser-item:first-child { padding-left: 0; }
.teaser-item:last-child  { border-right: none; padding-right: 0; }
.teaser-item:not(:first-child) { padding-left: 2.5rem; }
.teaser-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  margin-bottom: 1.6rem;
}
.teaser-item h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.teaser-item h3 a { text-decoration: none; color: var(--ink); }
.teaser-item h3 a:hover { color: var(--navy); }
.teaser-dek {
  font-style: italic;
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.58;
  margin-bottom: 1.1rem;
}
.read-more {
  font-variant: small-caps;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  display: inline-block;
}
.read-more:hover { color: var(--gold); }

/* ── CTA BLOCK ── */
.cta-block {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 4.5rem 0;
  text-align: center;
}
.cta-block h2 { margin-bottom: 0.8rem; }
.cta-block .dek { margin: 0 auto 2.2rem; text-align: center; }
.btn {
  display: inline-block;
  padding: 0.9rem 2.8rem;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-family: Georgia, 'Times New Roman', serif;
  font-variant: small-caps;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.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); }
.btn--solid { background: var(--navy); color: var(--ivory); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); }

/* ── MISSION BOX ── */
.mission-box {
  border-left: 3px solid var(--gold);
  padding: 0.4rem 0 0.4rem 2rem;
  margin: 3rem 0;
}
.mission-box p {
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.75;
  color: var(--navy);
  margin: 0;
}

/* ── CONTACT / COLOPHON ── */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 5rem;
  align-items: start;
}
.contact-details h3 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--navy);
}
.contact-email-block {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}
.contact-email-block a {
  display: block;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--navy);
  text-decoration: none;
  margin-bottom: 0.4rem;
  word-break: break-all;
}
.contact-email-block a:hover { color: var(--gold); }

/* FORM */
.form-row { margin-bottom: 1.8rem; }
.form-row label {
  display: block;
  font-variant: small-caps;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 0.55rem 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}
.form-row input:focus,
.form-row textarea:focus { border-bottom-color: var(--navy); }
.form-row textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

/* ── FOOTER / COLOPHON ── */
footer {
  background: var(--navy);
  color: rgba(247,243,236,0.78);
  padding: 5rem 6vw 3rem;
}
.footer-inner { max-width: var(--wide); margin: 0 auto; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(247,243,236,0.18);
}
.footer-logo     { height: 48px; filter: brightness(0) invert(1); }
.footer-wordmark { height: 32px; filter: brightness(0) invert(1); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-col h4 {
  font-variant: small-caps;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 1.1rem;
  font-weight: normal;
}
.footer-col p,
.footer-col address {
  font-size: 0.88rem;
  line-height: 1.75;
  font-style: normal;
  color: rgba(247,243,236,0.68);
}
.footer-col a { color: rgba(247,243,236,0.68); text-decoration: none; }
.footer-col a:hover { color: var(--gold); }
.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 0.35rem; }
.footer-bottom {
  border-top: 1px solid rgba(247,243,236,0.14);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.78rem;
  color: rgba(247,243,236,0.4);
  line-height: 1.6;
}

/* ── ARTICLE ── */
.article-header {
  padding: 5.5rem 0 3.5rem;
  border-bottom: 1px solid var(--rule);
}
.article-header h1 {
  max-width: 820px;
  margin: 1rem 0 1.5rem;
}
.article-header .dek { max-width: 660px; }
.article-img-wrap {
  background: var(--bg-mat);
  padding: 3rem 6vw 2rem;
}
.article-img-wrap img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.article-img-wrap figcaption {
  font-style: italic;
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 0.75rem;
  line-height: 1.55;
  max-width: var(--prose);
  margin: 0 auto;
}
.article-body {
  padding: 4rem 6vw 5rem;
  max-width: calc(var(--prose) + 12vw);
  margin: 0 auto;
}
.article-body p { margin-bottom: 1.6em; }
.article-body p:last-child { margin-bottom: 0; }
.article-back {
  font-variant: small-caps;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  display: inline-block;
  margin-bottom: 1.5rem;
  padding-bottom: 1px;
}
.article-back:hover { color: var(--gold); }

/* ── INTRO SPLIT (text + image) ── */
.intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: start;
}

/* ── LARGE LABEL / SECTION MARKER ── */
.section-marker {
  display: inline-block;
  font-variant: small-caps;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--navy);
  border-top: 2px solid var(--navy);
  padding-top: 0.55rem;
  margin-bottom: 2rem;
}

/* ── STORY SECTION ── */
.story-section { max-width: 780px; }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .columns-2        { column-count: 1; }
  .impact-grid      { grid-template-columns: 1fr; }
  .highlights-grid  { grid-template-columns: 1fr; }
  .highlight-item   {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 2.2rem 0;
  }
  .highlight-item:last-child { border-bottom: none; }
  .teaser-grid      { grid-template-columns: 1fr; }
  .teaser-item      {
    border-right: none;
    padding: 2.5rem 0;
    border-top: 1px solid var(--rule);
  }
  .teaser-item:first-child { border-top: none; padding-top: 0; }
  .intro-split      { grid-template-columns: 1fr; }
  .contact-grid     { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid      { grid-template-columns: 1fr; gap: 2.5rem; }
  .trustee-entry    { flex-direction: column; gap: 0.2rem; }
}

@media (max-width: 720px) {
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem 6vw 2rem;
    z-index: 199;
  }
  .nav-links.open li { border-bottom: 1px solid var(--rule-lt); }
  .nav-links.open a  { display: block; padding: 0.9rem 0; }
  .hero          { min-height: 100vh; }
  .hero-content  { padding-bottom: 7vh; }
  .photo-matted  { padding: 1.8rem 1.8rem 1.2rem; }
  section        { padding: 3.8rem 0; }
  .cta-block     { padding: 3.2rem 0; }
  .way-entry,
  .programme-entry { grid-template-columns: 2.4rem 1fr; }
  .article-img-wrap { padding: 2rem 6vw 1.2rem; }
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  .drop-cap::first-letter { font-size: 4em; }
}
