/* History Council shared styles */
:root {
  --black: #000000;
  --vellum: #EADCBC;
  --vellum-dark: #DCCBA4;
  --ink: #2A1E10;
  --gold: #A87A2A;
  --gold-light: #D9B56A;
  --oxblood: #8A2F1E;
  --rule: rgba(42, 30, 16, 0.22);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--vellum);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.6;
}

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

a { color: var(--oxblood); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Header */
.site-header {
  background: var(--black);
  text-align: center;
  padding: 12px 20px;
}
.site-header .logo {
  width: 110px;
  margin: 0 auto;
}
.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 32px;
  padding: 18px 0 20px;
  margin-top: 8px;
  border-top: 1px solid rgba(217, 181, 106, 0.3);
}
.site-nav a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--gold-light);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--gold-light); }
.site-nav a[aria-current="page"] { color: #FFFFFF; border-bottom-color: var(--gold-light); }

/* Page body */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}
section + section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 12px;
}
h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); }
h3 { font-size: 1.2rem; }
.intro { font-size: 1.25rem; margin: 0 0 8px; }
.muted { color: rgba(42, 30, 16, 0.7); font-style: italic; }

/* Council register (homepage) */
.register { list-style: none; padding: 0; margin: 32px 0 0; }
.member {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.member:first-child { border-top: 1px solid var(--rule); }
.member:last-child { border-bottom: none; }
.numeral {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
  padding-top: 4px;
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--vellum-dark);
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--gold);
  overflow: hidden;
}
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member h3 { margin-bottom: 4px; }
.member .rank { margin: 0 0 10px; font-style: italic; color: var(--gold); }
.member p { margin: 0 0 8px; }

/* Affiliations */
.schools {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.school {
  flex: 1 1 220px;
  margin: 0;
  text-align: center;
}
.school .tile {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  height: 160px;
  display: grid;
  place-items: center;
  padding: 16px;
}
.school .tile img { max-height: 128px; width: auto; }
.school figcaption { margin-top: 8px; font-weight: 600; }

/* Page links on homepage */
.archives { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.archive-link {
  display: block;
  background: var(--black);
  color: var(--gold-light);
  text-decoration: none;
  padding: 22px;
  border: 1px solid var(--gold);
}
.archive-link:hover { background: #1F1608; }
.archive-link strong { display: block; font-family: var(--display); font-size: 1.25rem; color: #FFFFFF; margin-bottom: 4px; }
.archive-link span { color: var(--vellum); }

/* W Bildings ledger */
.bildings { list-style: none; padding: 0; margin: 32px 0 0; counter-reset: bilding; }
.bilding {
  counter-increment: bilding;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.bilding h2::before {
  content: counter(bilding) ". ";
  color: var(--gold);
}
.bilding .site { font-size: 1.3rem; margin: 0 0 4px; }
.bilding .meta { margin: 0 0 16px; color: rgba(42, 30, 16, 0.75); }
.bilding img { border: 1px solid var(--gold); max-height: 520px; width: auto; }
.l-bilding {
  margin-top: 16px;
  padding: 28px 0 0;
  border-top: 3px double var(--oxblood);
  color: var(--oxblood);
}
.l-bilding h2 { font-style: italic; }

/* Results */
.next-ceremony {
  background: var(--black);
  color: var(--vellum);
  padding: 28px 24px;
  border: 1px solid var(--gold);
  text-align: center;
}
.next-ceremony h2 { color: #FFFFFF; }
.countdown {
  font-family: var(--display);
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  color: var(--gold-light);
  margin: 8px 0;
  font-variant-numeric: tabular-nums;
}
.ceremony { margin-top: 40px; }
.ceremony .date { margin: 0 0 4px; color: var(--gold); font-style: italic; }
.ceremony .portrait-photo { margin: 16px 0 0; border: 1px solid var(--gold); background: var(--vellum-dark); min-height: 120px; }
.table-wrap { overflow-x: auto; margin-top: 24px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--rule); text-align: center; }
th:first-child, td:first-child { text-align: left; }
thead th { font-family: var(--display); font-size: 0.95rem; border-bottom: 2px solid var(--ink); }
.yes { color: var(--gold); font-weight: 600; }
.no { color: var(--oxblood); font-weight: 600; }
.na { color: rgba(42, 30, 16, 0.4); }
.highlight td { background: rgba(168, 122, 42, 0.12); }

/* Footer */
footer {
  background: var(--black);
  color: var(--vellum);
  text-align: center;
  padding: 32px 20px;
  font-size: 1rem;
}
footer a { color: var(--gold-light); }

@media (max-width: 560px) {
  .member { grid-template-columns: 36px 1fr; }
  .archives { grid-template-columns: 1fr; }
}
