/* Consolidated Archives Holdings Ltd - site styles
   Rebuilt Nov 2026 from the 2019 EverWeb site. Colours and type follow the original. */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:ital,wght@0,300;0,400;0,700;1,400&display=swap');

:root {
  --red: #E62003;
  --red-hover: #FF2600;
  --ink: #1a1a1a;
  --muted: #A4A4A4;
  --rule: #e6e6e6;
  --bg: #FEFFFF;
  --serif: 'Libre Baskerville', 'Baskerville Old Face', Baskerville, Georgia, serif;
  --sans: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-hover); }

/* Header */
.site-header {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 30px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.logo img { width: 280px; height: auto; }
.nav { display: flex; gap: 28px; }
.nav a {
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
}
.nav a:hover { color: var(--red-hover); }
.nav a[aria-current="page"] { color: var(--red); }

/* Home: header sits over the slideshow, as on the original */
.home .site-header {
  position: absolute;
  left: 0; right: 0; top: 0;
  z-index: 3;
}
.home .site-header .nav a { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.home .site-header .nav a:hover { color: var(--red-hover); }

.slideshow {
  position: relative;
  height: min(693px, 80vh);
  overflow: hidden;
  background: #000;
}
.slideshow img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
}
.slideshow img.active { opacity: 1; }
.slideshow::after { /* light top shade so the white nav stays legible */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 180px;
  background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,0));
  z-index: 2;
}
.home-intro {
  max-width: 640px; margin: 48px auto 0; padding: 0 30px; text-align: center;
}

/* Page body */
main { display: block; }
.page { max-width: 1000px; margin: 0 auto; padding: 0 30px 40px; }
.eyebrow {
  font-family: Arial, sans-serif; font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; text-align: center; margin: 40px 0 18px;
}
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--red); text-align: center; line-height: 1.2; }
h1 { font-size: clamp(36px, 6vw, 58px); margin: 0 auto 28px; max-width: 700px; }
h2 { font-size: 36px; margin: 64px 0 24px; }
.lede, .narrow { max-width: 600px; margin-left: auto; margin-right: auto; }
.lede { text-align: center; }
.wide-img { margin: 40px -30px; }

/* Timeline */
.timeline { max-width: 600px; margin: 0 auto; padding: 0; list-style: none; }
.timeline li { margin: 0 0 18px; }
.timeline .year { font-weight: 700; }
.timeline figure { margin: 28px 0 32px; }
.timeline figcaption { font-size: 13px; color: #585555; font-style: italic; margin-top: 6px; }

/* Titles */
.titles { max-width: 760px; margin: 0 auto; display: grid; gap: 0; }
.title-card { padding: 28px 0; border-top: 1px solid var(--rule); }
.title-card h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--red); margin: 0 0 4px; }
.title-card .dates { font-family: Arial, sans-serif; font-size: 12px; letter-spacing: .14em; color: #585555; margin: 0 0 10px; }
.title-card p { margin: 0; }

/* Contact */
.contact { text-align: center; max-width: 640px; margin: 0 auto; }
.contact address { font-style: normal; margin: 24px 0; }
.contact .secondary { font-weight: 400; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 40px;
  padding: 24px 30px 36px;
  text-align: center;
}
.site-footer .nav { justify-content: center; margin-bottom: 12px; }
.site-footer p {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500; font-size: 14px; color: var(--muted); margin: 0;
}

@media (max-width: 640px) {
  .site-header { justify-content: center; padding-top: 28px; }
  .logo img { width: 220px; }
  body { font-size: 16px; }
}
