:root{
  --paper: #EFEDE4;
  --paper-light: #FBFAF6;
  --ink: #1B2420;
  --ink-soft: #4A564D;
  --brass: #9C7A3C;
  --teal: #3C6E64;
  --line: #C9C4B5;
  --max: 920px;
}
 
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.001ms !important; transition-duration:0.001ms !important;}
}
 
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'IBM Plex Sans', sans-serif;
  font-size:16px;
  line-height:1.6;
}
 
h1,h2,h3{
  font-family:'Newsreader', serif;
  font-weight:500;
  color:var(--ink);
  margin:0;
}
 
a{ color:var(--teal); text-decoration:none; border-bottom:1px solid rgba(60,110,100,0.35); }
a:hover{ border-bottom-color:var(--teal); }
a:focus-visible, button:focus-visible{
  outline:2px solid var(--teal);
  outline-offset:3px;
}
 
.wrap{ max-width:var(--max); margin:0 auto; padding:0 24px; }
 
/* ---------- Header ---------- */
header{
  position:sticky; top:0; z-index:20;
  background:rgba(239,237,228,0.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  max-width:var(--max); margin:0 auto; padding:10px 24px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.brand{
  font-family:'Newsreader', serif; font-weight:600; font-size:1.25rem;
  display:flex; align-items:center; gap:12px; color:var(--ink); border:none;
}
.brand-mark{ width:auto; height:52px; flex-shrink:0; display:block; }
.brand span{ font-family:'IBM Plex Mono', monospace; font-size:0.65rem; color:var(--brass); border:none; }
@media (max-width:480px){
  .brand-mark{ height:56px; }
  .brand span{ display:none; }
}
nav ul{
  list-style:none; display:flex; gap:22px; margin:0; padding:0;
  font-size:0.92rem;
}
nav a{ color:var(--ink-soft); border-bottom:1px solid transparent; }
nav a:hover{ color:var(--teal); border-bottom-color:var(--teal); }
nav a.active{ color:var(--teal); border-bottom-color:var(--teal); font-weight:500; }
.nav-toggle{ display:none; }
 
@media (max-width:720px){
  nav ul{
    position:absolute; top:100%; left:0; right:0; background:var(--paper-light);
    flex-direction:column; gap:0; padding:8px 24px 16px;
    border-bottom:1px solid var(--line);
    transform:translateY(-12px); opacity:0; pointer-events:none;
    transition:opacity .18s ease, transform .18s ease;
  }
  nav ul.open{ transform:translateY(0); opacity:1; pointer-events:auto; }
  nav li{ border-top:1px solid var(--line); }
  nav a{ display:block; padding:12px 0; }
  .nav-toggle{
    display:inline-flex; flex-direction:column; gap:4px; background:none; border:none;
    cursor:pointer; padding:6px;
  }
  .nav-toggle span{ width:22px; height:2px; background:var(--ink); display:block; }
}
 
/* ---------- Hero ---------- */
.hero{ padding:64px 0 56px; border-bottom:1px solid var(--line); }
.hero-inner{
  display:grid; grid-template-columns: 280px 1fr; gap:48px; align-items:center;
}
@media (max-width:720px){ .hero-inner{ grid-template-columns:1fr; } .hero{ padding:40px 0 40px; } }
 
.reticle{ width:100%; height:auto; }
.reticle text{ font-family:'IBM Plex Mono', monospace; }
 
.hero h1{ font-size:2.5rem; line-height:1.15; max-width:14ch; }
.hero .lede{
  margin-top:18px; max-width:46ch; color:var(--ink-soft); font-size:1.05rem;
}
.est{
  font-family:'IBM Plex Mono', monospace; font-size:0.78rem; color:var(--brass);
  letter-spacing:0.02em; margin-top:16px;
}
 
.banner{
  margin-top:28px; padding:14px 18px; background:var(--paper-light);
  border-left:3px solid var(--teal); font-size:0.95rem; max-width:52ch;
}
.banner strong{ font-weight:600; }
 
/* ---------- Page header (non-home pages) ---------- */
.page-head{ padding:48px 0 40px; border-bottom:1px solid var(--line); }
.page-head .eyebrow{ font-family:'IBM Plex Mono', monospace; font-size:0.8rem; color:var(--brass); }
.page-head h1{ font-size:2.1rem; margin-top:8px; }
.page-head .lede{ margin-top:14px; max-width:60ch; color:var(--ink-soft); }
 
/* ---------- Sections ---------- */
section{ padding:56px 0; border-bottom:1px solid var(--line); }
section:last-of-type{ border-bottom:none; }
.section-head{ display:flex; align-items:baseline; gap:14px; margin-bottom:28px; }
.section-num{ font-family:'IBM Plex Mono', monospace; font-size:0.85rem; color:var(--brass); }
h2{ font-size:1.6rem; }
.intro{ max-width:64ch; color:var(--ink-soft); margin-bottom:28px; }
 
/* Overview / home quick links */
.overview-list{ list-style:none; padding:0; margin:0; }
.overview-list li{ border-top:1px solid var(--line); }
.overview-list li:first-child{ border-top:none; }
.overview-list a{
  display:flex; justify-content:space-between; align-items:baseline; gap:24px;
  padding:20px 0; border:none; color:var(--ink);
}
.overview-list a:hover .ov-title{ color:var(--teal); }
.ov-num{ font-family:'IBM Plex Mono', monospace; font-size:0.82rem; color:var(--brass); flex-shrink:0; }
.ov-title{ font-family:'Newsreader', serif; font-size:1.2rem; flex-shrink:0; }
.ov-desc{ color:var(--ink-soft); font-size:0.9rem; text-align:right; max-width:34ch; }
@media (max-width:600px){
  .overview-list a{ flex-direction:column; gap:6px; }
  .ov-desc{ text-align:left; max-width:none; }
}
 
/* Timeline */
.timeline{ position:relative; padding-left:26px; border-left:1px solid var(--line); }
.t-row{ position:relative; padding:0 0 22px 20px; }
.t-row::before{
  content:''; position:absolute; left:-31px; top:6px;
  width:9px; height:9px; border-radius:50%; background:var(--paper);
  border:2px solid var(--brass);
}
.t-row.current::before{ background:var(--teal); border-color:var(--teal); }
.t-year{ font-family:'IBM Plex Mono', monospace; font-size:0.85rem; color:var(--ink-soft); }
.t-title{ font-weight:600; margin-top:2px; }
.t-meta{ color:var(--ink-soft); font-size:0.92rem; }
 
.presidents{ margin-top:12px; color:var(--ink-soft); font-size:0.96rem; }
.presidents li{ margin-bottom:4px; }
 
/* Constitution */
.articles{ counter-reset:article; list-style:none; padding:0; margin:0; }
.articles li{
  counter-increment:article; position:relative; padding:16px 0 16px 44px;
  border-top:1px solid var(--line);
}
.articles li:first-child{ border-top:none; }
.articles li::before{
  content:counter(article, decimal-leading-zero);
  position:absolute; left:0; top:16px;
  font-family:'IBM Plex Mono', monospace; font-size:0.85rem; color:var(--brass);
}
.articles h3{ font-family:'IBM Plex Sans',sans-serif; font-size:1rem; font-weight:600; margin-bottom:4px; }
.articles p{ margin:0; color:var(--ink-soft); }
.amend-list{
  margin-top:20px; font-family:'IBM Plex Mono', monospace; font-size:0.82rem;
  color:var(--ink-soft); line-height:1.9;
}
 
/* Board */
.board-grid{ display:grid; grid-template-columns:1fr 1fr; gap:40px; }
@media (max-width:720px){ .board-grid{ grid-template-columns:1fr; gap:28px; } }
.board-current dl{ margin:0; }
.board-current dt{ font-family:'IBM Plex Mono', monospace; font-size:0.78rem; color:var(--brass); margin-top:14px; }
.board-current dt:first-child{ margin-top:0; }
.board-current dd{ margin:2px 0 0; font-weight:500; }
.secretariat{ margin-top:24px; padding-top:20px; border-top:1px solid var(--line); font-size:0.92rem; color:var(--ink-soft); }
 
.past-exec details{ border-top:1px solid var(--line); padding:12px 0; }
.past-exec summary{ cursor:pointer; font-weight:500; list-style:none; }
.past-exec summary::-webkit-details-marker{ display:none; }
.past-exec summary::before{ content:'+ '; color:var(--brass); font-family:'IBM Plex Mono', monospace; }
.past-exec details[open] summary::before{ content:'– '; }
.past-exec p{ color:var(--ink-soft); font-size:0.92rem; margin:10px 0 0; }
 
/* Member societies */
.societies{ display:flex; flex-wrap:wrap; gap:10px; }
.society{
  font-family:'IBM Plex Mono', monospace; font-size:0.82rem;
  padding:8px 14px; border:1px solid var(--line); color:var(--ink);
  background:var(--paper-light); border-bottom:1px solid var(--line);
  transition:border-color .15s ease, color .15s ease;
}
.society:hover{ border-color:var(--teal); color:var(--teal); }
 
/* Conferences / links */
.links-grid{ display:grid; grid-template-columns:1fr 1fr; gap:8px 32px; }
@media (max-width:600px){ .links-grid{ grid-template-columns:1fr; } }
.links-grid a{ font-size:0.95rem; }
 
/* Contact form */
.contact-form{ max-width:56ch; }
.form-row{ margin-bottom:18px; display:flex; flex-direction:column; gap:6px; }
.form-row label{ font-family:'IBM Plex Mono', monospace; font-size:0.78rem; color:var(--ink-soft); }
.form-row input, .form-row textarea{
  font-family:'IBM Plex Sans', sans-serif; font-size:0.95rem; color:var(--ink);
  background:var(--paper-light); border:1px solid var(--line); padding:10px 12px;
  resize:vertical;
}
.form-row input:focus, .form-row textarea:focus{ outline:none; border-color:var(--teal); }
.contact-form button{
  font-family:'IBM Plex Mono', monospace; font-size:0.85rem; letter-spacing:0.02em;
  background:var(--teal); color:var(--paper-light); border:none; padding:12px 22px;
  cursor:pointer; transition:background .15s ease;
}
.contact-form button:hover{ background:#2c554d; }
 
/* Per-page banner image, shown below the nav bar */
.page-banner{
  padding:20px 0 0;
  text-align:center;
}
.page-banner img{
  height:104px;
  width:auto;
  max-width:100%;
  display:inline-block;
}
 
footer{ padding:40px 0 56px; }
footer .wrap{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px; color:var(--ink-soft); font-size:0.85rem; }
footer a{ color:var(--ink-soft); }
.back-top{ font-family:'IBM Plex Mono', monospace; font-size:0.78rem; }