/* Political Theory North — theme
   Door black, Georgian stone, brass fittings, Durham palatinate. */
:root {
  --ink: #141414;
  --ink-2: #2a2628;
  --stone: #f4efe6;
  --stone-2: #e9e0cf;
  --stone-3: #d9cdb4;
  --brass: #b8893a;
  --brass-light: #e8b765;
  --palatinate: #68246d;
  --text: #1d1b18;
  --muted: #5d574d;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --display: "Playfair Display", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.075rem;
  line-height: 1.65;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--palatinate); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; color: var(--ink); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 .6em; }
h3 { font-size: 1.3rem; margin: 1.4em 0 .4em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--brass); color: var(--ink); padding: 8px 12px; z-index: 99; }

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  color: var(--stone);
  border-bottom: 3px solid var(--brass);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--stone); text-decoration: none; }
.brand img { width: 38px; height: auto; }
.brand-text { font-family: var(--serif); line-height: 1; }
.brand-text small { display: block; font-size: .62rem; letter-spacing: .32em; color: var(--stone-3); }
.brand-text strong { display: block; font-size: 1.45rem; letter-spacing: .08em; }
.nav-toggle { display: none; background: none; border: 1px solid var(--stone-3); color: var(--stone); padding: 6px 12px; border-radius: var(--radius); font: inherit; cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a {
  color: var(--stone); text-decoration: none; padding: 8px 10px; font-size: .95rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--brass-light); color: #fff; }

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); border-bottom: 3px solid var(--brass); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 20px 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink) url("durham-skyline.svg") center bottom / cover no-repeat;
  color: var(--stone);
  min-height: 620px;
  display: flex; align-items: flex-start;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,20,20,.75) 0%, rgba(20,20,20,.35) 45%, rgba(20,20,20,0) 70%);
}
.hero .wrap { position: relative; padding-top: 64px; padding-bottom: 260px; width: 100%; }
.hero-inner { display: grid; grid-template-columns: 150px 1fr; gap: 32px; align-items: center; max-width: 760px; }
.hero-door { width: 150px; filter: drop-shadow(0 10px 25px rgba(0,0,0,.5)); }
.eyebrow { font-family: var(--serif); letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; color: var(--brass-light); margin: 0 0 .4em; }
.hero h1 { color: var(--stone); font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 0; font-family: var(--serif); letter-spacing: .02em; }
.hero h1 span { display: block; font-size: .38em; letter-spacing: .34em; font-weight: 400; color: var(--stone-3); }
.hero .meta { font-size: 1.15rem; margin: .8em 0 1.4em; }
.hero .meta strong { color: var(--brass-light); font-weight: 600; }
@media (max-width: 640px) {
  .hero { min-height: 560px; }
  .hero-inner { grid-template-columns: 1fr; gap: 16px; }
  .hero-door { width: 96px; }
  .hero .wrap { padding-top: 36px; padding-bottom: 200px; }
}

.btn {
  display: inline-block; padding: 11px 20px; border-radius: var(--radius);
  background: var(--brass); color: var(--ink); text-decoration: none; font-weight: 600;
  border: 2px solid var(--brass); margin: 0 8px 8px 0;
}
.btn:hover { background: var(--brass-light); border-color: var(--brass-light); color: var(--ink); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.dark { background: var(--ink); color: var(--stone); border-color: var(--ink); }
.btn.dark:hover { background: var(--palatinate); border-color: var(--palatinate); color: #fff; }

/* ---------- Page banner (inner pages) ---------- */
.banner {
  background: var(--ink) url("durham-skyline.svg") center 85% / cover no-repeat;
  color: var(--stone);
  padding: 56px 0 120px;
  border-bottom: 3px solid var(--brass);
}
.banner h1 { color: var(--stone); font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.2rem); margin: 0; }
.banner p { max-width: 640px; color: var(--stone-2); margin: .5em 0 0; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--stone-2); }
section.dark { background: var(--ink); color: var(--stone); }
section.dark h2, section.dark h3 { color: var(--stone); }
section.dark a { color: var(--brass-light); }
.lead { font-size: 1.2rem; max-width: 760px; }
.prose { max-width: 760px; }
.prose ul { padding-left: 1.2em; }

.grid { display: grid; gap: 24px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: #fffdf8; border: 1px solid var(--stone-3); border-radius: var(--radius);
  padding: 24px; position: relative;
}
.card h3 { margin-top: 0; }
.card.brass { border-top: 4px solid var(--brass); }
.card .kicker { font-family: var(--serif); text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; color: var(--palatinate); margin: 0 0 .5em; }

/* key dates */
.dates { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--stone-3); }
.dates li { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--stone-3); }
.dates time, .dates .d { font-family: var(--serif); font-weight: 700; color: var(--palatinate); }
section.dark .dates li { border-color: #3a3a3a; }
section.dark .dates .d { color: var(--brass-light); }
@media (max-width: 560px) { .dates li { grid-template-columns: 1fr; gap: 2px; } }

/* keynotes */
.speaker { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: start; }
.speaker + .speaker { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--stone-3); }
.portrait {
  width: 160px; aspect-ratio: 4/5; border-radius: 80px 80px var(--radius) var(--radius);
  background: var(--ink); display: grid; place-items: center; color: var(--stone);
  font-family: var(--serif); font-size: 2.6rem; border: 4px solid var(--brass);
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait img + span { display: none; }
/* Even out head sizes between the two keynote photos */
#renzo .portrait img { transform: scale(1.7); transform-origin: 50% 18%; }
.portrait span { font-size: 1.1rem; letter-spacing: .05em; }
.speaker h2 { margin-bottom: .1em; }
.affil { font-family: var(--serif); color: var(--palatinate); margin: 0 0 1em; }
@media (max-width: 640px) { .speaker { grid-template-columns: 1fr; } .portrait { width: 120px; } }

/* notices */
.notice {
  border-left: 4px solid var(--brass); background: #fff7e6; padding: 12px 16px; margin: 0 0 24px;
  font-size: .95rem; border-radius: 0 var(--radius) var(--radius) 0;
}

/* directory */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; align-items: center; }
.filters input[type="search"] {
  flex: 1 1 260px; padding: 10px 14px; font: inherit; border: 1px solid var(--stone-3); border-radius: var(--radius); background: #fff;
}
.chip {
  border: 1px solid var(--ink); background: transparent; padding: 6px 14px; border-radius: 999px; font: inherit; font-size: .9rem; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--stone); }
.inst h3 { margin: 0; }
.inst .region { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.people { list-style: none; padding: 0; margin: 12px 0 0; }
.people li { padding: 10px 0; border-top: 1px dashed var(--stone-3); }
.people .name { font-weight: 600; }
.people .interests { display: block; font-size: .92rem; color: var(--muted); }
.empty { color: var(--muted); font-style: italic; font-size: .95rem; }
.count { color: var(--muted); font-size: .95rem; margin: 0 0 16px; }

/* footer */
.site-footer { background: var(--ink); color: var(--stone-3); padding: 48px 0 32px; border-top: 3px solid var(--brass); font-size: .95rem; }
.site-footer a { color: var(--stone); }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--stone); font-family: var(--serif); margin: 0 0 .6em; font-weight: 400; letter-spacing: .15em; text-transform: uppercase; font-size: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer .small { font-size: .82rem; margin-top: 24px; grid-column: 1 / -1; border-top: 1px solid #333; padding-top: 16px; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }
