/* Shared styles for the news index, the news posts and the commissioning page.
 *
 * Same typographic system as the existing pages (Libre Baskerville headings,
 * Georgia body, cream header, navy footer, teal accent), written once here so
 * new pages do not each carry their own <style> block.
 */

:root {
  --primary: #1a3a5c;
  --primary-dark: #0d1f30;
  --accent: #2e6f85;
  --accent-light: #85c1e9;
  --paper: #fbfaf7;
  --light-bg: #f7f9fb;
  --text: #2c3e50;
  --text-light: #5d6d7e;
  --border: #d5dbdb;
  --header-bg: #f1eee7;
  --header-border: #ded8cd;
  --white: #ffffff;
  --measure: 760px;
  --wide: 1000px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--paper);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

a { color: var(--accent); }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* Header ------------------------------------------------------------------ */

.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
}

.site-header .site-logo {
  height: 56px;
  margin-bottom: 0.5rem;
}

.site-header .org-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

.site-header .org-label a { color: inherit; text-decoration: none; }

.site-header h1 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
  margin: 0.75rem auto 0;
  max-width: var(--measure);
}

.site-header p.subtitle {
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0.75rem auto 0;
  color: var(--text);
}

/* Nav --------------------------------------------------------------------- */

.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  text-align: center;
}

.site-nav a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 0.7rem;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}

.site-nav a:hover { text-decoration: underline; }

/* Main -------------------------------------------------------------------- */

main {
  background: var(--white);
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

main.wide { max-width: var(--wide); }

h2 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.4rem;
  color: var(--primary);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

h3 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.1rem;
  color: var(--primary);
  margin: 2rem 0 0.75rem;
}

p, ul, ol, blockquote, figure, table { margin-bottom: 1.1rem; }

ul, ol { margin-left: 1.4rem; }

li { margin-bottom: 0.4rem; }
li p { margin-bottom: 0.4rem; }

blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1.1rem;
  color: var(--text-light);
  font-size: 0.97rem;
}

blockquote p:last-child { margin-bottom: 0; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Post -------------------------------------------------------------------- */

.post-back {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.post-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.post-date {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2rem;
}

.post figure {
  margin: 1.75rem 0;
}

.post figure img { display: block; margin: 0 auto; }

.post figcaption,
.post .caption {
  font-size: 0.88rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 0.5rem;
}

.post .portraits {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.75rem 0 0.5rem;
}

.post .portraits img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--border);
}

.post .logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  margin: 0 0 2rem;
}

.post .logos img { max-height: 70px; width: auto; }

.post-foot {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.post-foot .source-note {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Commissioning page ------------------------------------------------------ */

.lede {
  font-size: 1.08rem;
}

.note {
  background: var(--light-bg);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  font-size: 0.97rem;
}

.note p:last-child { margin-bottom: 0; }

.contact-line {
  margin: 2rem 0 0;
  font-size: 1.02rem;
}

dl.qa { margin-bottom: 1.1rem; }

dl.qa dt {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 700;
  color: var(--primary);
  margin: 1.75rem 0 0.5rem;
}

dl.qa dd { margin: 0 0 0.75rem; }

.terms dt {
  font-weight: 700;
  color: var(--primary);
  margin-top: 1.1rem;
  font-family: Georgia, 'Times New Roman', serif;
}

.terms dd { margin: 0.25rem 0 0; }

.last-updated {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 1.75rem 1.5rem;
  font-size: 0.9rem;
}

.site-footer a { color: var(--accent-light); }

.site-footer p { margin-bottom: 0; }

.site-footer .footer-note {
  font-size: 0.78rem;
  opacity: 0.7;
  margin-top: 0.75rem;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 700px) {
  .site-header h1 { font-size: 1.6rem; }
  .post-title { font-size: 1.45rem; }
  .site-nav a { margin: 0 0.45rem; font-size: 0.85rem; }
  .post .portraits img { width: 120px; height: 120px; }
}
