/* ============================================================
   William Salkeld — academic site
   Design tokens
   ============================================================ */
:root{
  --ink:        #17231C;   /* near-black, green-cast text */
  --ink-soft:   #3F4F45;   /* secondary text */
  --paper:      #FAF8F2;   /* warm off-white background */
  --paper-dim:  #F1EEE3;   /* slightly deeper paper, for cards */
  --moss:       #26402F;   /* deep moss green — primary brand */
  --moss-tint:  #E7EEE5;   /* pale moss tint for backgrounds */
  --gold:       #D79A34;   /* ochre/marigold accent — care, warmth */
  --gold-soft:  #F3E1B8;
  --sky:        #35608A;   /* institutional blue — politics thread */
  --sky-tint:   #E4ECF2;
  --rust:       #B94E2C;   /* rust/coral — CTAs, sparingly */
  --line:       #DCD6C4;   /* hairline border on paper */

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --maxw: 1120px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }

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

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 .4em 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1{ font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; line-height: 1.05; }
h2{ font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; }
h3{ font-size: 1.25rem; font-weight: 600; }

p{ margin: 0 0 1.1em 0; }
.lede{ font-size: 1.2rem; color: var(--ink-soft); font-weight: 400; }

.eyebrow{
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .74rem;
  color: var(--moss);
  font-weight: 600;
  display:block;
  margin-bottom: .9em;
}

/* ---------- header / nav ---------- */
header.site{
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top:0; z-index: 50;
}
.nav-row{
  display:flex; align-items:center; justify-content:space-between;
  padding: 20px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.wordmark{
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.wordmark span{ color: var(--gold); }
nav.links{ display:flex; gap: 28px; }
nav.links a{
  color: var(--ink-soft);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
nav.links a:hover, nav.links a.active{
  color: var(--moss);
  border-bottom-color: var(--gold);
}
.nav-toggle{ display:none; }

@media (max-width: 760px){
  .nav-row{ flex-wrap: wrap; gap: 14px; padding: 16px 20px; }
  nav.links{ gap: 16px; flex-wrap: wrap; width:100%; }
  .wrap{ padding: 0 20px; }
}

/* ---------- footer ---------- */
footer.site{
  border-top: 1px solid var(--line);
  margin-top: 100px;
  padding: 40px 32px 60px;
  color: var(--ink-soft);
  font-size: .9rem;
}
footer.site .wrap{
  display:flex; justify-content:space-between; align-items:center; gap: 20px; flex-wrap: wrap;
}
footer.site a{ color: var(--ink-soft); }
footer.site a:hover{ color: var(--moss); }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 22px;
  border-radius: 3px;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: all .15s ease;
}
.btn:hover{ background: var(--ink); color: var(--paper); text-decoration:none; }
.btn.primary{
  background: var(--moss); color: var(--paper); border-color: var(--moss);
}
.btn.primary:hover{ background: var(--ink); border-color: var(--ink); }
.btn.gold{ border-color: var(--gold); color: var(--ink); }
.btn.gold:hover{ background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------- page hero (interior pages) ---------- */
.page-hero{
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}

/* ---------- sections ---------- */
section{ padding: 72px 0; }
section.tint{ background: var(--moss-tint); }
.divider{
  border:0; height:1px; background: var(--line); margin: 0;
}

/* ---------- cards: three constituencies ---------- */
.constituencies{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.const-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.const-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(23,35,28,.08);
  border-color: var(--moss);
}
.const-card .icon{ width: 40px; height:40px; margin-bottom: 18px; color: var(--moss); }
.const-card h3{ margin-bottom: .35em; }
.const-card p{ color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.2em; }
.const-card a.goto{ font-weight:600; font-size:.9rem; color: var(--rust); }

@media (max-width: 820px){
  .constituencies{ grid-template-columns: 1fr; }
}

/* ---------- hero split ---------- */
.hero{ padding: 56px 0 20px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items:center;
}
.hero-photo{
  background: var(--moss);
  border-radius: 6px;
  overflow:hidden;
  aspect-ratio: 4/5;
  position:relative;
}
.hero-photo img{ width:100%; height:100%; object-fit:cover; }
.hero-tags{ display:flex; flex-wrap:wrap; gap:8px; margin: 22px 0 26px; }
.tag{
  font-family: var(--font-mono);
  font-size: .75rem;
  padding: 5px 11px;
  border-radius: 20px;
  background: var(--gold-soft);
  color: #7A5717;
  border: 1px solid #E8C878;
}
.tag.sky{ background: var(--sky-tint); color: var(--sky); border-color: #BFD3E2; }

@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-photo{ max-width: 320px; margin: 0 auto; }
}

/* ---------- CV styling ---------- */
.cv-block{ margin-bottom: 52px; }
.cv-block h2{
  display:flex; align-items:baseline; gap: 14px;
  border-bottom: 2px solid var(--moss);
  padding-bottom: 10px;
  margin-bottom: 26px;
}
.cv-item{
  display:grid;
  grid-template-columns: 130px 1fr;
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cv-item:last-child{ border-bottom:none; }
.cv-date{
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--ink-soft);
  white-space: normal;
}
.cv-title{ font-weight: 600; margin-bottom: 2px; }
.cv-sub{ color: var(--ink-soft); font-size: .95rem; }
.cv-detail{ font-size: .92rem; color: var(--ink-soft); margin-top: 6px; }
.cv-detail ul{ margin: 6px 0 0 18px; padding:0; }
.cv-detail li{ margin-bottom: 4px; }

@media (max-width: 640px){
  .cv-item{ grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- publication list ---------- */
.pub{
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.pub:first-child{ padding-top:0; }
.pub-kind{
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--moss);
}
.pub h3{ margin: 6px 0 4px; font-size: 1.12rem; }
.pub .meta{ color: var(--ink-soft); font-size: .92rem; }
.pub .meta a{ font-weight:600; }

/* ---------- testimonial ---------- */
.testimonial{
  background: var(--paper);
  border-left: 3px solid var(--gold);
  padding: 18px 22px;
  margin-bottom: 16px;
  font-style: italic;
  color: var(--ink-soft);
  font-size: .96rem;
}

/* ---------- contact ---------- */
.contact-grid{
  display:grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.contact-item{
  padding: 24px; background: var(--paper-dim); border-radius: 4px; border: 1px solid var(--line);
}
.contact-item .lbl{
  font-family: var(--font-mono); font-size: .74rem; text-transform:uppercase; letter-spacing:.1em;
  color: var(--moss); margin-bottom:8px; display:block;
}
@media (max-width: 700px){ .contact-grid{ grid-template-columns:1fr; } }

/* ---------- misc ---------- */
.section-head{ max-width: 640px; margin-bottom: 8px; }
.two-col{ display:grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 820px){ .two-col{ grid-template-columns:1fr; gap: 30px; } }

.animal-rule{
  display:flex; align-items:center; gap: 16px;
  margin: 8px 0 36px;
  color: var(--gold);
}
.animal-rule .line{ flex:1; height:1px; background: var(--line); }
