:root {
  /* Palette: fynbos, sandstone and paper */
  --paper: #f5f0e4;
  --paper-deep: #ebe3d0;
  --card: #fbf8f1;
  --ink: #26301f;
  --muted: #5d6552;
  --green: #34492f;
  --green-deep: #24331f;
  --sage: #8c9b76;
  --ochre: #b5762f;
  --ochre-soft: #e7cfa6;
  --line: #d6ccb5;
  --max: 1180px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  margin-top: 0;
  color: var(--green-deep);
}

h1 em, h2 em, .brand em {
  font-style: italic;
  font-weight: 400;
  color: var(--ochre);
}

.kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ochre);
  margin: 0 0 18px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.hero-badge {
  display: inline-block;
  padding: 8px 14px;
  margin: 12px 0;
  border: 1px solid #6b8064;
  border-radius: 30px;
  color: #40583b;
  background-color: #eef1e8;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.nav {
  max-width: var(--max);
  margin: auto;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--green-deep);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: .95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.nav-links a:hover { color: var(--green-deep); border-color: var(--ochre); }

/* Full-width photo banner. The gradient keeps the text legible on the left
   while the bird on the right of the photo stays clear. */
.hero-banner {
  position: relative;
  min-height: clamp(680px, 40vw, 1150px);
  display: flex;
  align-items: center;
  padding: 80px max(28px, calc((100vw - var(--max)) / 2 + 28px)) 90px;
  background:
    linear-gradient(90deg,
      rgba(245, 240, 228, .92) 0%,
      rgba(245, 240, 228, .78) 35%,
      rgba(245, 240, 228, .15) 60%,
      rgba(245, 240, 228, 0) 75%),
    url("images/hero.jpg") 70% 25% / cover no-repeat,
    var(--paper-deep);
}

.hero-content { max-width: 640px; }



h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  letter-spacing: -.015em;
  line-height: 1.04;
  margin-bottom: 26px;
}

h1 em { display: block; }

.hero-intro {
  max-width: 540px;
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 40px;
}

.event-details {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  margin: 0 0 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.event-details div {
  padding: 16px 28px;
  border-left: 1px solid var(--line);
}

.event-details div:first-child { padding-left: 0; border-left: 0; }

.event-details dt,
.info-item dt,
.label-title {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 4px;
}

.event-details dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--green-deep);
}

.button {
  display: inline-block;
  padding: 14px 26px;
  background: var(--green);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
}

.button:hover { background: var(--green-deep); transform: translateY(-1px); }

/* ---------- Figures & image slots ---------- */

.figure { margin: 0; }

.hero-banner > *,
.section > *,
.practical-grid > *,
.application-grid > * { min-width: 0; }

.photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(140, 155, 118, .12) 12px 13px),
    var(--paper-deep);
  border-radius: 3px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.photo.tall { aspect-ratio: 4 / 5; }

/* Show the whole image instead of cropping it to the frame. */
.photo.fit { background: none; }
.photo.fit img { object-fit: contain; }

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  padding: 16px;
  line-height: 1.5;
}

.photo-placeholder small {
  font-family: var(--sans);
  font-style: normal;
  font-size: .8rem;
  opacity: .75;
}



/* ---------- Sections ---------- */

.section {
  max-width: var(--max);
  margin: auto;
  padding: 100px 28px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
}

.section-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 8px;
  border-top: 2px solid var(--ochre);
  align-self: start;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-label .num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.8rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ochre);
}

.section-content h2 {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  letter-spacing: -.01em;
  max-width: 760px;
  margin-bottom: 30px;
}

.section-content p {
  max-width: 720px;
  color: var(--muted);
}

.section-content p.lead {
  font-size: 1.18rem;
  color: var(--ink);
}

/* Image plates */

.plates {
  max-width: var(--max);
  margin: -20px auto 0;
  padding: 0 28px 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Highlight band */

.highlight {
  background: var(--green);
  color: var(--paper);
}

.highlight-inner {
  max-width: var(--max);
  margin: auto;
  padding: 80px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}

.highlight .kicker { color: var(--ochre-soft); }

.highlight h2 {
  color: var(--paper);
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  margin: 0;
}

.highlight-text p {
  font-size: 1.15rem;
  color: #dfe3d3;
  margin: 0;
  max-width: 500px;
}

/* Programme cards */

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 10px 0 30px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--sage);
  padding: 26px 28px 30px;
}

.card-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ochre);
}

.card h3 {
  font-size: 1.4rem;
  margin: 14px 0 10px;
}

.card p { font-size: .98rem; margin: 0; }

.note {
  font-family: var(--serif);
  font-style: italic;
}

/* Application */

.band {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.application-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 64px;
}

.application-grid .button { margin-top: 16px; }

/* Styled like a museum specimen label */
.specimen-label {
  align-self: start;
  background: var(--card);
  border: 1px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: -7px;
  padding: 30px 32px;
}

.specimen-label strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1.15;
  color: var(--green-deep);
  margin: 6px 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.specimen-label p { margin: 0; font-size: .95rem; }

/* Practical information */

.practical-grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 48px;
  align-items: start;
}

.info-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.info-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.info-item dd { margin: 0; }
.info-item strong { font-weight: 600; color: var(--ink); }
.info-item p { margin: 4px 0 0; font-size: .97rem; }

/* Partners */

.partners {
  max-width: var(--max);
  margin: auto;
  padding: 0 28px 90px;
  text-align: center;
}

.logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  justify-content: center;
  gap: 20px;
}

.logo-slot {
  position: relative;
  height: 110px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  color: var(--sage);
  font-family: var(--serif);
  font-style: italic;
}

.logo-slot img {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: contain;
  background: var(--paper);
}

/* Footer */

footer {
  background: var(--green-deep);
  color: var(--paper);
}

.footer-inner {
  max-width: var(--max);
  margin: auto;
  padding: 50px 28px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}

footer strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
footer p { margin: 6px 0 0; color: #c9cfbb; font-size: .92rem; }
.footer-note { font-family: var(--serif); font-style: italic; }
/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-banner { min-height: 600px; background-position: 0 0, 72% 25%, 0 0; }
  .practical-grid { grid-template-columns: 1fr; }
  .practical-grid .figure { max-width: 420px; }
}

@media (max-width: 800px) {
  body { font-size: 16px; }
  .nav { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 16px; }
  .nav-links { gap: 6px 18px; font-size: .9rem; }
  .hero-banner { min-height: 0; padding: 44px 16px 72px; background: linear-gradient(180deg, rgba(245, 240, 228, .9) 0%, rgba(245, 240, 228, .82) 70%, rgba(245, 240, 228, .4) 100%), url("images/hero-small.jpg") 75% 30% / cover no-repeat, var(--paper-deep); }
  .event-details { grid-template-columns: 1fr; }
  .event-details div,
  .event-details div:first-child { padding: 12px 0; border-left: 0; }
  .event-details div + div { border-top: 1px solid var(--line); }
  .section { grid-template-columns: 1fr; gap: 24px; padding: 70px 16px; }
  .section-label { flex-direction: row; align-items: baseline; gap: 12px; }
  .plates { grid-template-columns: 1fr; padding: 0 16px 70px; margin-top: 0; }
  .highlight-inner { grid-template-columns: 1fr; gap: 24px; padding: 64px 16px; }
  .cards { grid-template-columns: 1fr; }
  .application-grid { grid-template-columns: 1fr; gap: 36px; }
  .info-item { grid-template-columns: 1fr; gap: 4px; }
  .partners { padding: 0 16px 70px; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; padding: 44px 16px; }
}
