/* ============================================================
   Broderick Mervyn — diplomatic / statesmanlike authority site
   Palette: Navy #0A2342 · Gold #D4AF37 · Pacific Teal #008080
   Type: Source Serif 4 (display) + Public Sans (US federal sans)
   Edit the :root tokens to restyle the whole site.
   ============================================================ */

:root {
  /* --- Colour --- */
  --navy:    #0A2342;   /* primary brand: mastheads, hero, footer */
  --navy-2:  #0E2C52;   /* layered navy panels                    */
  --gold:    #D4AF37;   /* awards & highlights, rules, on navy     */
  --gold-dk: #9A7B1F;   /* deep gold for large display on light    */
  --teal:    #008080;   /* accent, links                           */
  --teal-dk: #00696A;   /* link hover / safe contrast              */
  --white:   #FFFFFF;
  --gray:    #F5F5F5;   /* secondary background                    */
  --ink:     #182234;   /* body text on light (near-navy)          */
  --muted:   #56627A;   /* secondary text                          */
  --line:    #E3E6EC;   /* hairlines on light                      */
  --line-dk: rgba(212,175,55,0.32); /* gold hairlines on navy      */
  --cream:   #E9EEF6;   /* light text on navy                      */
  --cream-mut: #B9C4D6; /* muted light text on navy                */

  /* --- Type --- */
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --body:    "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* --- Scale & rhythm --- */
  --measure: 66ch;
  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 8.5vw, 7rem);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.07rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dk); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- layout primitives ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center p { margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--gray { background: var(--gray); }
.section--navy { background: var(--navy); color: var(--cream); }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.14; margin: 0 0 .5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 1.35rem + 1.8vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.08rem + 0.6vw, 1.5rem); }
p { margin: 0 0 1.1rem; max-width: var(--measure); }
.lede { font-size: clamp(1.12rem, 1.02rem + 0.5vw, 1.4rem); line-height: 1.5; font-family: var(--display); font-weight: 400; color: var(--ink); }
.section--navy .lede, .page-head .lede { color: var(--cream); }

/* eyebrow: navy label + gold rule on light; gold on navy */
.eyebrow {
  font-family: var(--body); font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--navy);
  margin: 0 0 1.1rem; display: flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--gold); display: inline-block; }
.section--navy .eyebrow, .page-head .eyebrow { color: var(--gold); }
.section--navy .eyebrow::before, .page-head .eyebrow::before { background: var(--gold); }

/* ---------- masthead / nav (gold top stripe = official signal) ---------- */
.masthead { background: var(--navy); color: var(--cream); position: sticky; top: 0; z-index: 50; border-top: 3px solid var(--gold); border-bottom: 1px solid var(--line-dk); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--display); font-weight: 600; font-size: 1.16rem; color: var(--cream); text-decoration: none; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand .post { color: var(--gold); font-size: .72rem; letter-spacing: .16em; margin-left: .15rem; font-family: var(--body); font-weight: 700; }
.nav-links { display: flex; gap: clamp(1rem, 2.2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--cream); text-decoration: none; font-size: .9rem; font-weight: 600; letter-spacing: .01em; padding-block: .4rem; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; border-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-dk); color: var(--cream); width: 44px; height: 40px; border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; inset: 74px 0 auto 0; flex-direction: column; gap: 0; background: var(--navy); border-bottom: 1px solid var(--line-dk); padding: .5rem var(--gutter) 1.25rem; display: none; }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding-block: .85rem; border-bottom: 1px solid var(--line-dk); width: 100%; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { border-color: var(--line-dk); color: var(--gold); }
}

/* ---------- hero: centred seal presentation (statesmanlike) ---------- */
.hero { background: var(--navy); color: var(--cream); position: relative; overflow: hidden; text-align: left; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% -8%, rgba(212,175,55,0.10), transparent 60%),
    radial-gradient(90% 70% at 50% 120%, rgba(0,128,128,0.16), transparent 60%);
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(3.5rem, 7vw, 6rem); }
.hero .role { font-family: var(--body); font-size: clamp(.72rem, .68rem + .25vw, .85rem); font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.hero h1 { margin-bottom: .35rem; }
.hero .post-line { font-family: var(--body); font-weight: 700; letter-spacing: .2em; color: var(--gold); font-size: .9rem; margin-bottom: 1.6rem; }
.hero .rule { width: 80px; height: 2px; background: var(--gold); margin: 0 0 1.6rem; border: 0; }
.hero .lede { max-width: 54ch; color: var(--cream); }
.hero .btn-row { justify-content: flex-start; }

/* ---------- honour roll band ---------- */
.honours { border-top: 1px solid var(--line-dk); position: relative; z-index: 1; }
.honours-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.honour { padding: 1.7rem 1.4rem; border-left: 1px solid var(--line-dk); text-align: center; }
.honour:first-child { border-left: 0; }
.honour .year { font-family: var(--body); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: .5rem; font-weight: 700; }
.honour .name { font-family: var(--display); font-size: clamp(1.02rem, .98rem + .3vw, 1.2rem); color: #fff; line-height: 1.25; }
.honour .note { font-size: .82rem; color: var(--cream-mut); margin: .4rem 0 0; }
@media (max-width: 720px) {
  .honours-inner { grid-template-columns: 1fr; }
  .honour { border-left: 0; border-top: 1px solid var(--line-dk); }
  .honour:first-child { border-top: 0; }
}

/* ---------- two-column ---------- */
.split { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 2.5rem; }
.pillar { background: var(--white); padding: clamp(1.5rem, 3vw, 2.2rem); }
.section--gray .pillar { background: var(--gray); }
.pillar h3 { margin-bottom: .35em; color: var(--navy); }
.pillar p { margin: 0; color: var(--muted); font-size: .96rem; }
.pillar .idx { font-family: var(--body); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dk); display: block; margin-bottom: .9rem; font-weight: 700; }
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- timeline ---------- */
.timeline { margin-top: 2.5rem; border-left: 2px solid var(--line); padding-left: clamp(1.25rem, 3vw, 2rem); }
.tl-item { position: relative; padding-bottom: 2.2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: calc(-1 * clamp(1.25rem,3vw,2rem) - 7px); top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gray); }
.section:not(.section--gray) .tl-item::before { box-shadow: 0 0 0 4px var(--white); }
.tl-item .yr { font-family: var(--body); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dk); font-weight: 700; }
.tl-item h3 { margin: .25rem 0 .4rem; color: var(--navy); }
.tl-item p { color: var(--muted); margin: 0; }

/* ---------- citations ---------- */
.citations { margin-top: 2.5rem; border-top: 2px solid var(--gold); }
.citation { display: grid; grid-template-columns: 7rem 1fr; gap: clamp(1rem, 3vw, 2.5rem); padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.citation .yr { font-family: var(--display); font-size: 1.4rem; color: var(--navy); font-weight: 600; }
.citation h3 { margin: 0 0 .4rem; color: var(--navy); }
.citation p { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .citation { grid-template-columns: 1fr; gap: .35rem; } .citation .yr { font-size: 1.05rem; color: var(--gold-dk); } }

/* ---------- press list ---------- */
.press { list-style: none; margin: 2rem 0 0; padding: 0; }
.press li { padding: 1.1rem 0; border-bottom: 1px solid var(--line-dk); display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: baseline; }
.press li:first-child { border-top: 1px solid var(--line-dk); }
.press .outlet { font-family: var(--display); font-size: 1.08rem; color: #fff; }
.press .headline { color: var(--cream-mut); font-size: .94rem; }
.press .when { margin-left: auto; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }

/* ---------- pull quote ---------- */
.pullquote { border-left: 3px solid var(--gold); padding: .3rem 0 .3rem 1.6rem; margin: 2.5rem 0; }
.pullquote blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.85rem); line-height: 1.34; font-weight: 400; color: var(--navy); }
.section--navy .pullquote blockquote { color: #fff; }
.pullquote cite { display: block; margin-top: 1rem; font-family: var(--body); font-style: normal; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.section--navy .pullquote cite { color: var(--cream-mut); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--body); font-weight: 700; font-size: .9rem; letter-spacing: .02em; padding: .85rem 1.6rem; border-radius: var(--radius); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn--gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn--gold:hover { background: #e0bf4d; border-color: #e0bf4d; color: var(--navy); }
.btn--ghost { background: transparent; color: var(--cream); border-color: rgba(233,238,246,0.4); }
.btn--ghost:hover { border-color: var(--gold); color: #fff; }
.btn--navy { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* ---------- facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dk); border-block: 1px solid var(--line-dk); }
.fact { padding: 1.7rem 1.2rem; background: var(--navy); text-align: center; }
.fact .n { font-family: var(--display); font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.7rem); color: var(--gold); line-height: 1; }
.fact .l { font-size: .82rem; color: var(--cream-mut); margin-top: .55rem; }
@media (max-width: 720px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin-bottom: .4rem; font-weight: 700; }
.field input, .field textarea { width: 100%; font-family: var(--body); font-size: 1rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.detail-list { list-style: none; margin: 0; padding: 0; }
.detail-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.detail-list .k { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dk); display: block; margin-bottom: .25rem; font-weight: 700; }

/* ---------- portrait slot ---------- */
.portrait { background: var(--gray); border: 1px dashed var(--line); border-radius: var(--radius); aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: .85rem; padding: 1.5rem; }
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* ---------- captioned figure & portrait image ---------- */
.figure { margin: 1.5rem 0 0; }
.figure img,
.portrait-img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); }
.portrait-img { aspect-ratio: 4/5; object-fit: cover; }
/* inline figures (not the wide band): cap height so tall photos don't dominate; whole photo shown, no crop/distortion */
.figure:not(.figure--band) img { width: auto; height: auto; max-width: 100%; max-height: 490px; }
.figure figcaption {
  font-family: var(--body); font-size: .82rem; line-height: 1.5;
  color: var(--muted); margin-top: .8rem; padding-left: 1rem;
  border-left: 3px solid var(--gold);
}
/* wide panorama rendered as a capped-height horizontal band */
.figure--band img { height: clamp(220px, 30vw, 340px); object-fit: cover; }

/* ---------- page head (interior) ---------- */
.page-head { background: var(--navy); color: var(--cream); }
.page-head .wrap { padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem); color: #fff; }
.page-head p { color: var(--cream); max-width: 58ch; }

/* ---------- footer ---------- */
.foot { background: var(--navy); color: var(--cream); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; border-top: 3px solid var(--gold); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.foot .brand { font-size: 1.25rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.foot-nav a { color: var(--cream); opacity: .85; text-decoration: none; font-size: .92rem; }
.foot-nav a:hover { opacity: 1; color: var(--gold); }
.foot-base { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dk); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .8rem; color: var(--cream-mut); }

/* ---------- reveal (enhancement only; visible without JS) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ---------- media & publications: coverage / video cards ---------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.media-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 1.9rem); display: flex; flex-direction: column; }
.media-card .src { font-family: var(--body); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dk); font-weight: 700; display: block; margin-bottom: .7rem; }
.media-card h3 { color: var(--navy); margin: 0 0 .5rem; }
.media-card p { color: var(--muted); font-size: .95rem; margin: 0 0 1.1rem; }
.media-card .meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: baseline; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .78rem; }
.media-card .date { color: var(--muted); letter-spacing: .04em; }
.media-card .link-slot { margin-left: auto; color: var(--gold-dk); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }

/* ---------- media & publications: photo gallery placeholders ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.gallery-cat { background: var(--gray); border: 1px dashed var(--line); border-radius: var(--radius); aspect-ratio: 4/3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.4rem; }
.section--gray .gallery-cat { background: var(--white); }
.gallery-cat h3 { color: var(--navy); margin: 0 0 .5rem; font-size: 1.1rem; }
.gallery-cat .hint { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- a11y ---------- */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--gold); color: var(--navy); padding: .6rem 1rem; z-index: 100; border-radius: var(--radius); font-weight: 700; }
