:root {
  /* Palette sampled from the Seal of the President */
  --navy: #31334e;        /* field behind the stars */
  --navy-2: #3d4063;      /* lighter field, for gradients and hovers */
  --navy-3: #25273b;      /* deepest field, for the top bar and footer */
  --ink: #2b2d3f;         /* lettering on the rim */
  --blue: #4459ad;        /* royal blue of the shield */
  --teal: #4f7c91;        /* teal of the shield */
  --gold: #d4ab4c;        /* the stars */
  --gold-light: #dbbf60;  /* rim highlight */
  --gold-deep: #8f661f;   /* bronze outer edge, for small text on light backgrounds */
  --cream: #f1e5c9;       /* cream band of the rim */
  --cream-light: #faf4e6;
  --cream-deep: #e6d1aa;
  --silver: #cecdd2;      /* laurel wreath */
  --muted: #5f6075;
  --line: #e8dfcb;
  --paper: #fdfbf6;
  --tint: #f6efdf;
  --serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1160px;
  --narrow: 780px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 100px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; box-shadow: 0 0 0 5px var(--cream); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; color: var(--navy); margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: var(--narrow); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--navy-3); padding: 8px 14px; z-index: 10; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.topbar { background: var(--navy-3); color: var(--silver); font-size: .8125rem; letter-spacing: .02em; padding: 6px 0; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-kicker { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.brand-name { font-family: var(--serif); font-size: 1.45rem; letter-spacing: .06em; text-transform: uppercase; }

.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: 10px 14px; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: .95rem; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--navy-2); border-bottom-color: var(--gold-light); }
.site-nav a[aria-current='page'] { color: var(--navy); border-bottom-color: var(--gold); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: var(--navy); margin: 0 auto; position: relative; content: '';
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(49, 51, 78, .08); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .site-nav a { border-bottom: 1px solid var(--line); padding: 14px 4px; }
  .site-nav a[aria-current='page'] { border-bottom-color: var(--line); color: var(--navy); box-shadow: inset 3px 0 0 var(--gold); padding-left: 12px; }
  .header-inner { min-height: 72px; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 1.2rem; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 2px; text-decoration: none;
  font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-gold { background: var(--gold); color: var(--navy-3); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy-3); }
.btn-outline { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }

.text-link {
  font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--navy-2);
}
.text-link::after { content: ' →'; color: var(--gold-deep); }
.text-link:hover { color: var(--navy-3); }

.eyebrow { margin: 0 0 14px; font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.eyebrow-dark { color: var(--gold-deep); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(212, 171, 76, .10), transparent 45%),
    linear-gradient(160deg, var(--navy), #2c2e47 55%, var(--navy-3));
  color: #fff;
  overflow: hidden;
  border-bottom: 3px solid var(--gold);
}
.hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.2vw, 4rem); }
.rule { display: block; width: 72px; height: 3px; background: var(--gold); margin: 28px 0; }
.lede { font-size: 1.2rem; line-height: 1.6; color: #dddce6; max-width: 34em; margin: 0 0 36px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; }
.hero-seal { width: min(360px, 80%); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); }

.portrait { margin: 0; position: relative; }
.hero .portrait { max-width: 400px; width: 100%; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero .portrait::before { content: ''; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--gold); z-index: -1; }
.hero .portrait { z-index: 0; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 64px; }
  .hero-visual { order: -1; justify-content: flex-start; }
  .hero-seal { width: 120px; }
  .hero .portrait { max-width: 260px; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0 88px; }
.section-tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.empty { color: var(--muted); font-style: italic; }

.meta { margin: 0 0 10px; display: flex; gap: 14px; align-items: center; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); flex-wrap: wrap; }
.category { color: var(--gold-deep); font-weight: 700; }

/* Latest news */
.news-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; }
.feature { background: #fff; border: 1px solid var(--line); }
.feature-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-body { padding: 32px; border-top: 4px solid var(--gold); }
.feature h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-bottom: 14px; }
.feature h3 a, .post-row h3 a, .archive-item h2 a { color: var(--navy); text-decoration: none; }
.feature h3 a:hover, .post-row h3 a:hover, .archive-item h2 a:hover { color: var(--blue); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.feature p { color: var(--muted); margin: 0 0 22px; }

.news-list { display: flex; flex-direction: column; }
.post-row { padding: 22px 0; border-bottom: 1px solid var(--line); }
.post-row:first-child { padding-top: 0; }
.post-row h3 { font-size: 1.2rem; margin-bottom: 8px; }
.post-row p:last-child { margin: 0; color: var(--muted); font-size: .98rem; }

@media (max-width: 860px) {
  .news-layout { grid-template-columns: 1fr; gap: 36px; }
  .feature-body { padding: 24px; }
  .section { padding: 56px 0; }
}

/* About band */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.about h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 18px; }
.about-text { color: var(--muted); font-size: 1.1rem; margin: 0 0 28px; }
.about-links { display: grid; gap: 16px; }
.tile {
  display: block; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  padding: 22px 24px; text-decoration: none; color: var(--muted); transition: transform .15s, box-shadow .15s;
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(49, 51, 78, .08); color: var(--muted); }
.tile-title { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--navy); margin-bottom: 4px; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Page header ---------- */
.page-header { background: linear-gradient(160deg, var(--navy), #2c2e47); color: #fff; padding: 64px 0 56px; border-bottom: 3px solid var(--gold); box-shadow: 0 4px 0 var(--cream-deep); }
.page-header h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); }
.page-meta { margin: 18px 0 0; color: #d4d4e0; font-size: 1.05rem; }

.draft-banner { background: #fff4d6; color: #6b4e00; text-align: center; padding: 10px 16px; font-weight: 600; font-size: .95rem; border-bottom: 1px solid #f0dca3; }

/* ---------- News archive ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.chip {
  padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 600;
}
.chip:hover { border-color: var(--gold); color: var(--navy); }
.chip[aria-current='true'] { background: var(--navy); border-color: var(--navy); color: #fff; }

.archive-item { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.archive-item:first-child { padding-top: 0; }
.archive-item > div:only-child { grid-column: 1 / -1; }
.archive-item h2 { font-size: 1.45rem; margin-bottom: 10px; }
.archive-item p:last-child { margin: 0; color: var(--muted); }
.archive-thumb img { width: 160px; aspect-ratio: 4 / 3; object-fit: cover; }

@media (max-width: 600px) {
  .archive-item { grid-template-columns: 1fr; gap: 14px; }
  .archive-thumb img { width: 100%; aspect-ratio: 16 / 9; }
}

.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; font-weight: 600; }
.pagination a { text-decoration: none; }
.page-count { color: var(--muted); font-size: .95rem; }

/* ---------- Article / prose ---------- */
.cover { margin: 0 0 36px; }
.cover img { width: 100%; }
.standfirst { font-size: 1.25rem; line-height: 1.55; color: var(--navy); font-family: var(--serif); margin: 0 0 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }

.prose { font-size: 1.125rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.7rem; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.35rem; margin: 1.8em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.25em; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--gold);
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.55; color: var(--navy); font-style: italic;
}
.prose blockquote p { margin: 0 0 .6em; }
.prose img { margin: 1.8em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 1rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.prose code { background: var(--tint); padding: 2px 6px; border-radius: 3px; font-size: .9em; }

.sign-off { margin: 48px 0 32px; font-family: var(--serif); font-style: italic; color: var(--muted); }
.back-link::after { content: ''; }
.back-link::before { content: '← '; color: var(--gold-deep); }

/* ---------- Biography ---------- */
.bio { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: start; max-width: 1040px; }
.bio-aside { position: sticky; top: 120px; }
.bio .portrait::after { content: ''; position: absolute; left: 0; right: 0; bottom: -12px; height: 4px; background: var(--gold); }
.portrait-empty { padding: 8px; }
.bio .portrait-empty::after { display: none; }
.portrait-empty img { filter: drop-shadow(0 12px 28px rgba(49, 51, 78, .25)); }

@media (max-width: 860px) {
  .bio { grid-template-columns: 1fr; gap: 40px; }
  .bio-aside { position: static; max-width: 260px; }
}

/* ---------- Cabinet ---------- */
.cabinet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 32px; }
.member { text-align: center; }
.member-photo {
  width: 168px; height: 168px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden;
  background: var(--navy); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold);
  display: grid; place-items: center;
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-photo span { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); }
.member-position { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.member h2 { font-size: 1.35rem; margin-bottom: 10px; }
.member-bio { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-3); color: #b9bacb; border-top: 3px solid var(--gold); padding: 56px 0 28px; font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand { display: flex; gap: 18px; align-items: center; }
.footer-name { margin: 0; font-family: var(--serif); font-size: 1.3rem; color: #fff; }
.footer-sub { margin: 4px 0 0; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a, .footer-base a { color: #e4e3ec; text-decoration: none; }
.footer-nav a:hover, .footer-base a:hover { color: var(--gold-light); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .85rem; }
.footer-base p { margin: 0; }

/* ---------- Seals ---------- */
.topbar .wrap { display: flex; align-items: center; gap: 8px; }
.topbar img { width: 18px; height: 18px; object-fit: contain; }

.page-header-emblem { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.page-header-emblem > img { width: 150px; height: 150px; flex: none; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }
@media (max-width: 700px) {
  .page-header-emblem { flex-direction: column-reverse; align-items: flex-start; gap: 20px; }
  .page-header-emblem > img { width: 88px; height: 88px; }
}

.member-photo { position: relative; overflow: visible; }
.member-photo > img:first-child { border-radius: 50%; }
.member-photo-seal { background: none; border: 0; box-shadow: none; }
.member-photo-seal > img:first-child { object-fit: contain; filter: drop-shadow(0 6px 14px rgba(49, 51, 78, .25)); }
.member-badge { position: absolute; right: -4px; bottom: -4px; width: 56px !important; height: 56px !important; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .3)); }
.member-dept { margin: -4px 0 10px; font-size: .9rem; color: var(--blue); font-weight: 600; }

.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 40px 28px; }
.dept { text-align: center; }
.dept img { width: 140px; height: 140px; object-fit: contain; margin: 0 auto 16px; filter: drop-shadow(0 8px 18px rgba(49, 51, 78, .2)); transition: transform .2s; }
.dept:hover img { transform: scale(1.04); }
.dept h3 { font-size: 1.1rem; line-height: 1.3; }
.dept p { margin: 8px 0 0; color: var(--muted); font-size: .92rem; }
