@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Montserrat:wght@400;500;600&display=swap');

:root {
  --navy: #12703c;
  --deep: #0b4b28;
  --cream: #f1f6f2;
  --paper: #fbfcfa;
  --ink: #28382f;
  --muted: #687a70;
  --line: #d5e1d9;
  --gold: #6f9f82;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.75;
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 5vw;
  background: rgba(251,252,250,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.brand { text-decoration: none; display: flex; align-items: center; }
.brand-logo { width: 250px; height: auto; display: block; }
nav { display: flex; gap: 28px; }
nav a { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; }
nav a:hover { color: var(--navy); opacity: .72; }

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: var(--navy);
  color: white;
}
.hero-image {
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,.05), rgba(0,0,0,.25)),
    #2f7850;
  letter-spacing: .14em;
}
.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  display: block;
  object-fit: cover;
  object-position: left center;
}
.placeholder span { font-size: 12px; font-weight: 600; }
.placeholder small { display: block; margin-top: 8px; font-size: 10px; letter-spacing: .05em; opacity: .7; }
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vw 7vw;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 11px;
  font-weight: 600;
}
h1,h2 { font-family: "Cormorant Garamond", Georgia, serif; line-height: 1.03; font-weight: 600; }
h1 { font-size: clamp(54px, 6vw, 88px); margin: 0 0 30px; }
h1 em { font-weight: 400; }
h2 { font-size: clamp(42px, 5vw, 66px); margin: 0 0 28px; color: var(--navy); }
.lead { max-width: 480px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 25px; line-height: 1.35; }
.button {
  display: inline-block;
  align-self: flex-start;
  margin-top: 24px;
  padding: 13px 22px;
  border: 1px solid rgba(255,255,255,.5);
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 10px;
}
.button:hover { background: white; color: var(--deep); }

.section { padding: 110px max(6vw, 30px); }
.intro { max-width: 930px; margin: auto; text-align: center; }
.intro h2 { color: var(--navy); }
.large { font-family: "Cormorant Garamond", Georgia, serif; font-size: 29px; line-height: 1.5; }
.story { background: linear-gradient(180deg, #f3f8f4 0%, var(--cream) 100%); }
.section-heading { max-width: 820px; margin-bottom: 60px; }
.story-grid { max-width: var(--max); margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.timeline { border-left: 1px solid var(--gold); padding-left: 30px; }
.timeline div { margin-bottom: 30px; }
.timeline span { color: var(--gold); font-family: "Cormorant Garamond", Georgia, serif; font-size: 25px; font-weight: 600; }
.timeline p { margin: 0; }
.people { max-width: var(--max); margin: auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.photo-card { min-height: 540px; background: #e5e0d6; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); }
.staff-photo { margin: 0; min-height: 0; background: transparent; align-items: stretch; }
.staff-photo img { width: 100%; height: auto; display: block; }
.staff-photo figcaption { padding: 12px 0 0; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.thank-you { background: var(--navy); color: white; text-align: center; }
.thank-inner { max-width: 800px; margin: auto; }
.thank-you h2 { color: white; }
.signature { margin-top: 45px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 25px; line-height: 1.4; }
.practical { max-width: 1050px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact { font-size: 20px; line-height: 2; }
.contact a { color: var(--navy); }
.small { font-size: 12px; color: var(--muted); }
footer { padding: 65px 30px; text-align: center; background: var(--deep); color: white; }
.footer-brand { font-family: "Windsor Bold", Windsor, "Windsor LT", Georgia, serif; font-size: 34px; letter-spacing: .18em; font-weight: 700; }
footer p { margin: 7px 0; font-size: 11px; letter-spacing: .08em; }
.footer-note { color: #cfc8b7; }

@media (max-width: 800px) {
  .site-header { padding: 12px 20px; }
  .brand-logo { width: 190px; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-image { min-height: 45vh; }
  .hero-image img { min-height: 45vh; }
  .hero-copy { padding: 60px 28px 75px; }
  h1 { font-size: 57px; }
  .section { padding: 75px 25px; }
  .story-grid, .people, .practical { grid-template-columns: 1fr; gap: 45px; }
  .people { display: flex; flex-direction: column-reverse; align-items: stretch; }
  .photo-card { min-height: 360px; }
}

/* Archive history */
.story .section-heading { max-width: 900px; margin-left: auto; margin-right: auto; text-align: center; }
.story-intro { margin-bottom: 0; }
.history-feature { max-width: var(--max); margin: 85px auto 0; display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: center; }
.history-feature--reverse { grid-template-columns: .92fr 1.08fr; }
.history-feature--wide { margin-top: 60px; }
.history-copy { max-width: 520px; }
.history-year { margin: 0 0 8px; color: var(--gold); font-family: "Cormorant Garamond", Georgia, serif; font-size: 27px; font-weight: 600; }
.history-copy h3, .history-moments h3, .history-closing h3 { margin: 0 0 20px; color: var(--navy); font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(34px, 4vw, 50px); line-height: 1.08; font-weight: 600; }
.archive-photo { margin: 0; }
.archive-photo img { width: 100%; display: block; filter: sepia(.08); }
.archive-photo figcaption { padding-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.4; letter-spacing: .13em; text-transform: uppercase; }
.archive-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.archive-pair figure:nth-child(2) { margin-top: 70px; }
.history-moments { max-width: var(--max); margin: 105px auto 0; padding: 55px; background: #f9fcfa; border: 1px solid #d9e6dd; display: grid; grid-template-columns: .8fr 1fr .95fr; gap: 38px; align-items: center; }
.history-moments .archive-photo:first-child img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; }
.history-moments .archive-photo:last-child img { aspect-ratio: 4 / 3; object-fit: cover; }
.history-moments-copy { text-align: center; }
.history-moments-copy h3 { font-size: 38px; }
.history-closing { max-width: 780px; margin: 100px auto 0; padding-top: 55px; border-top: 1px solid var(--gold); text-align: center; }
.history-closing h3 { font-size: clamp(38px, 4vw, 55px); }
@media (max-width: 800px) {
  .history-feature, .history-feature--reverse { grid-template-columns: 1fr; gap: 35px; margin-top: 65px; }
  .history-feature--reverse .history-copy { order: 2; }
  .history-feature--reverse .archive-pair { order: 1; }
  .archive-pair { gap: 12px; }
  .archive-pair figure:nth-child(2) { margin-top: 35px; }
  .history-moments { margin-top: 70px; padding: 28px 20px; grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .history-moments-copy { grid-column: 1 / -1; grid-row: 1; }
  .history-closing { margin-top: 70px; }
}

/* Photo placeholders for the developing archive */
.photo-placeholder {
  min-height: 260px;
  padding: 28px;
  border: 1px dashed #8aa08f;
  background: rgba(255,255,255,.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--muted);
}
.photo-placeholder--large { min-height: 390px; }
.photo-placeholder span {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.photo-placeholder strong {
  max-width: 280px;
  color: var(--navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 600;
}
@media (max-width: 800px) {
  .photo-placeholder, .photo-placeholder--large { min-height: 230px; }
}

.archive-gallery { display:grid; grid-template-columns:1fr 1fr; gap:18px; align-items:start; }
.archive-gallery figure:last-child { grid-column:1 / -1; }
.archive-gallery img { aspect-ratio:4/3; object-fit:cover; }
@media (max-width:800px){ .archive-gallery { grid-template-columns:1fr 1fr; gap:12px; } }

/* Preserve the full Men Only archive advert so all wording remains legible. */
.history-moments .archive-photo--document img {
  aspect-ratio: auto;
  object-fit: contain;
  height: auto;
  max-height: 520px;
  margin: 0 auto;
}

/* v14: more editorial spacing for photo-rich history sections */
.history-feature--text-only { grid-template-columns: 1fr; max-width: 820px; padding: 38px 46px; background: #f4f1e9; border-left: 4px solid var(--green); }
.history-feature--text-only .history-copy { max-width: 720px; }
.history-chapter { max-width: var(--max); margin: 90px auto 0; }
.history-copy--wide { max-width: 820px; margin: 0 auto; }
.photo-row { display: grid; gap: 18px; margin: 34px 0 40px; align-items: start; }
.photo-row--two { grid-template-columns: repeat(2, 1fr); }
.photo-row--three { grid-template-columns: repeat(3, 1fr); }
.photo-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 800px) {
  .history-feature--text-only { padding: 28px 24px; }
  .history-chapter { margin-top: 65px; }
  .photo-row--three { grid-template-columns: 1fr 1fr; }
  .photo-row--three figure:last-child { grid-column: 1 / -1; max-width: 70%; margin: 0 auto; }
}
@media (max-width: 560px) {
  .photo-row--two, .photo-row--three { grid-template-columns: 1fr; }
  .photo-row--three figure:last-child { grid-column: auto; max-width: none; }
}

/* v18 archive documents */
.archive-document-highlight { display:grid; grid-template-columns:minmax(260px,.8fr) 1.2fr; gap:34px; align-items:center; max-width:920px; margin:28px auto 72px; padding:26px; background:#f4f0e7; }
.archive-document-highlight figure { max-width:420px; margin:0 auto; }
.archive-document-highlight img { width:100%; height:auto; object-fit:contain; }
.archive-document-highlight h3 { margin-top:6px; }
.archive-document-pair { grid-column:1 / -1; display:grid; grid-template-columns:1fr 1fr; gap:22px; align-items:start; max-width:760px; margin:6px auto 0; }
.archive-document-pair figure { margin:0; }
.archive-document-pair img { width:100%; height:auto; max-height:520px; object-fit:contain; background:#f4f0e7; }
@media (max-width:800px){
  .archive-document-highlight { grid-template-columns:1fr; gap:18px; margin-bottom:48px; padding:18px; }
  .archive-document-pair { grid-template-columns:1fr 1fr; gap:12px; }
}

/* v21: show archive documents in their original proportions, without cropping */
.history-moments .archive-document-pair .archive-photo img {
  aspect-ratio: auto;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

/* v23: later-years departmental and environmental layouts */
.photo-row--four { grid-template-columns: repeat(4, 1fr); }
.departmental-row { max-width: var(--max); margin-left: auto; margin-right: auto; }
.environmental-feature { align-items: center; }
.archive-photo--tree img { width: 100%; height: auto; object-fit: contain; }
@media (max-width: 1000px) { .photo-row--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .photo-row--four { grid-template-columns: 1fr; } }


/* v24: centenary archive and people gallery */
.document-row .archive-photo img { aspect-ratio: auto; height: auto; max-height: 560px; object-fit: contain; background: #f4f0e7; }
.document-row { align-items: end; }
.document-row--later { max-width: 900px; margin-left: auto; margin-right: auto; }
.people-section { max-width: var(--max); margin: auto; }
.people-copy { max-width: 780px; margin: 0 auto 42px; text-align: center; }
.people-photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.people-photo-grid .photo-card { margin: 0; }
.people-photo-grid .photo-card img { width: 100%; height: auto; display: block; }
.people-photo--wide { grid-column: 1 / -1; }
.people-photo--wide img { max-height: 650px; object-fit: contain; }
@media (max-width: 700px) {
  .people-photo-grid { grid-template-columns: 1fr; }
  .people-photo--wide { grid-column: auto; }
  .document-row .archive-photo img { max-height: none; }
}

/* v27: compact supporting images beneath text in split history features */
.history-feature--side-main { grid-template-columns: 1fr 1.08fr; align-items: start; }
.history-feature--side-main .history-copy { max-width: 540px; }
.mini-photo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 78%; margin: 22px 0 0; align-items: start; }
.mini-photo-row .archive-photo { margin: 0; }
.mini-photo-row .archive-photo img { width: 100%; height: 145px; object-fit: contain; object-position: center; background: #f4f0e7; }
.mini-photo-row .archive-photo figcaption { font-size: 9px; letter-spacing: .09em; }
.history-feature--side-main .side-main-photo img { width: 100%; height: auto; max-height: 570px; object-fit: contain; object-position: top center; }
@media (max-width: 800px) {
  .history-feature--side-main { grid-template-columns: 1fr; }
  .mini-photo-row { width: 82%; }
  .mini-photo-row .archive-photo img { height: auto; max-height: 190px; }
}
@media (max-width: 520px) { .mini-photo-row { width: 100%; } }

/* v28: centre the main image against the combined copy + supporting-image block */
.history-feature--side-main { align-items: center; }
.history-feature--side-main .side-main-photo { align-self: center; }
