:root {
  --navy: #01267f;        /* page background, as on the original site */
  --navy-dark: #011d67;   /* header and footer bars */
  --white: #ffffff;
  --text: #c3c5d5;        /* body text: the original's soft grey-white */
  --muted: #a9aec6;       /* captions, dates, attributions */
  --accent: #9fc3ff;      /* small labels, hover underline */
  --panel: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.25);
  --radius: 10px;
  --max: 1080px;
  --heading: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Poppins", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--white); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--heading); color: var(--white); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 1.25rem; text-transform: uppercase; letter-spacing: .08em; }
h2 { font-size: 1.45rem; margin-top: 2.5rem; letter-spacing: .02em; }
h3 { font-size: 1.15rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.narrow { max-width: 760px; }
main > section, main > article { padding-top: 2.5rem; padding-bottom: 3rem; }

/* Header */
.site-header { background: var(--navy-dark); color: var(--white); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: center; min-height: 64px; }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 2rem; }
.site-header nav a {
  color: var(--white); text-decoration: none; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--white); }
.site-header nav a[aria-current="page"] { font-weight: 600; }
.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 760px) {
  .nav-toggle-label { display: block; width: 32px; height: 24px; position: relative; cursor: pointer; margin: 0 auto; }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: var(--white);
  }
  .nav-toggle-label span { top: 11px; }
  .nav-toggle-label span::before { top: -8px; }
  .nav-toggle-label span::after { top: 8px; }
  .site-header nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy-dark); }
  .nav-toggle:checked ~ nav { display: block; }
  .site-header nav ul { flex-direction: column; align-items: center; gap: 0; padding: .5rem 16px 1rem; }
  .site-header nav a { display: block; padding: .7rem 0; }
}

/* Section titles: centred, regular weight, line either side (as on the original) */
.section-title {
  display: flex; align-items: center; gap: 1.5rem;
  font-family: var(--body); font-weight: 400; font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  text-transform: uppercase; letter-spacing: .1em; text-align: center; color: var(--white);
  margin: 2.5rem 0 2rem;
}
.section-title::before, .section-title::after { content: ""; flex: 1; border-top: 1px solid rgba(255,255,255,.75); }
main > section > .section-title:first-child { margin-top: .5rem; }
@media (max-width: 500px) { .section-title { gap: .9rem; } }

/* Site name below the menu bar, as on the original */
.site-title { text-align: center; padding: 1.75rem 16px 0; }
.site-title a {
  font-family: var(--heading); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.6rem, 4.5vw, 2.8rem); letter-spacing: .09em; line-height: 1.2;
  color: var(--white); text-decoration: none;
}
.site-title a:hover { color: var(--white); opacity: .85; }

/* Home */
.hero { padding: 4.5rem 0 4rem !important; }
.hero .lede { font-weight: 600; color: var(--text); font-size: 1.25rem; max-width: 820px; }
.hero h1 { margin-top: 2rem; text-transform: none; letter-spacing: .01em; color: var(--text); }
.hero p { max-width: 820px; }
.button {
  display: inline-block; background: var(--white); color: var(--navy); text-decoration: none; font-weight: 600;
  padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid var(--white); font-family: inherit; font-size: .95rem;
  cursor: pointer; margin: .3rem .4rem .3rem 0;
}
.button:hover { background: transparent; color: var(--white); }
.button.ghost { background: transparent; color: var(--white); }
.button.ghost:hover { background: var(--white); color: var(--navy); }

/* Themes */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 700px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--panel); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-title {
  font-family: var(--body); font-weight: 400; font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.3; color: var(--white); margin: 0; padding: 1.25rem 1.25rem 1rem;
}
.card img { aspect-ratio: 2 / 1; object-fit: cover; width: 100%; }
.card > p { margin: 1rem 1.25rem 0; }
.card .card-action { margin-top: auto; padding: 1rem 0 1.25rem; }
.more { font-weight: 600; text-decoration: none; color: var(--white); }
.more:hover { text-decoration: underline; color: var(--white); }

/* People */
.profile { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.profile h2 { margin-top: 0; }
.portrait { border-radius: var(--radius); }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } .portrait { max-width: 240px; } }

/* Partners */
.testimonial { margin: 0 0 2rem; padding: 1.75rem; background: var(--panel); border-radius: var(--radius); }
.partner-logo img { max-width: 220px; margin-bottom: 1rem; }
.testimonial blockquote { margin: 1rem 0; font-size: 1.05rem; }
.testimonial blockquote p::before { content: "\201C"; }
.testimonial blockquote p::after { content: "\201D"; }
.testimonial figcaption { font-style: italic; color: var(--muted); }

/* Contact */
.contact-form label { display: block; font-weight: 600; margin-bottom: .3rem; }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; padding: .65rem .8rem; color: #1b2233; background: var(--white);
  border: 1px solid var(--line); border-radius: 8px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; }

/* Posts */
.post h1 { margin-bottom: .25rem; text-transform: none; letter-spacing: .01em; }
.post-date { color: var(--muted); margin-top: 0; }
.post figure { margin: 1.25rem 0 1.75rem; }
.post figure img { border-radius: var(--radius); width: 100%; }
.post figure.portrait-fig { max-width: 360px; }
.post figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.post li { margin-bottom: .5rem; }
.post sup { line-height: 0; }

/* Footer */
.site-footer { background: var(--navy-dark); color: var(--muted); font-size: .92rem; padding: 2rem 0; }
.site-footer a { color: var(--white); }
.footer-inner p { margin: .3rem 0; }
.social { display: flex; gap: .75rem; margin-bottom: 1rem !important; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--white); text-decoration: none; font-size: 1.1rem;
  transition: background .15s, color .15s;
}
.social a:hover, .social a:focus-visible { background: var(--white); color: var(--navy); }
