:root{
  --bg:#0b0f19;
  --panel:#121a2c;
  --panel-soft:#0f1626;
  --text:#e9eefb;
  --muted:#a9b4d6;
  --line:rgba(255,255,255,.12);
  --faint:rgba(255,255,255,.07);

  --accent:#7dd3fc;
  --accent2:#c084fc;
  --good:#34d399;
  --warn:#fbbf24;

  --radius:18px;
  --max-width:1180px;

  --shadow-soft:0 10px 30px rgba(0,0,0,.35);
  --shadow-deep:0 25px 60px rgba(0,0,0,.55);

  --serif: ui-serif, Georgia, "Times New Roman", Times, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  background:
    radial-gradient(1200px 800px at 18% 10%, rgba(125,211,252,.15), transparent 60%),
    radial-gradient(1000px 650px at 82% 15%, rgba(192,132,252,.15), transparent 60%),
    radial-gradient(900px 550px at 50% 95%, rgba(52,211,153,.06), transparent 60%),
    linear-gradient(180deg, #070b14 0%, var(--bg) 38%, #070b14 100%);
}

/* layout */
.container{max-width:var(--max-width); margin:0 auto; padding:0 18px}
.section{padding:72px 0}
@media (max-width:768px){ .section{padding:56px 0} }

/* links */
a{color:inherit; text-decoration:none}
a:hover{color:var(--accent)}
.link{color:var(--accent)}
.link:hover{color:var(--accent2)}

/* typography */
h1,h2,h3,h4{margin:0 0 14px; letter-spacing:.01em}
h1{font-size:42px; line-height:1.15; font-family:var(--serif); font-weight:650}
h2{font-size:26px; font-weight:650}
h3{font-size:18px; font-weight:650}
p{margin:0 0 16px; color:var(--muted); max-width:72ch}
.lead{font-size:18px; color:rgba(233,238,251,.96)}
.small{font-size:13px; color:rgba(169,180,214,.92)}
.kicker{
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:rgba(169,180,214,.95);
}

/* navbar */
.navbar{
  position:sticky; top:0; z-index:1000;
  backdrop-filter: blur(10px);
  background: rgba(11,15,25,.72);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  max-width:var(--max-width);
  margin:0 auto;
  padding:12px 18px;
  display:flex; align-items:center; justify-content:space-between; gap:14px;
}
.brand{
  display:flex; align-items:center; gap:10px; min-width:240px;
}
.mark{
  width:34px; height:34px; border-radius:10px;
  background:
    radial-gradient(14px 14px at 25% 30%, rgba(125,211,252,.85), rgba(125,211,252,.08) 60%),
    radial-gradient(16px 16px at 72% 65%, rgba(192,132,252,.85), rgba(192,132,252,.08) 60%),
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.16);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.brand-title{
  display:flex; flex-direction:column; gap:1px;
}
.brand-title b{
  font-size:13px; letter-spacing:.18em; text-transform:uppercase;
}
.brand-title span{font-size:12px; color:var(--muted)}
.nav-links{display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end}
.pill{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  font-size:12px;
  color:rgba(233,238,251,.92);
}
.pill:hover{border-color:rgba(125,211,252,.45); color:var(--accent)}
.pill.cta{
  border-color: rgba(125,211,252,.55);
  background: linear-gradient(90deg, rgba(125,211,252,.15), rgba(192,132,252,.12));
}
.menu-toggle{display:none; font-size:22px; padding:6px 10px; border:1px solid var(--line); border-radius:12px}
@media(max-width:820px){
  .menu-toggle{display:block}
  .nav-links{
    display:none;
    position:absolute;
    right:18px;
    top:62px;
    flex-direction:column;
    gap:10px;
    padding:14px;
    border-radius:var(--radius);
    background: rgba(18,26,44,.96);
    border:1px solid var(--line);
    box-shadow: var(--shadow-deep);
    width:min(320px, calc(100vw - 36px));
  }
  .nav-links.active{display:flex}
}

/* cards */
.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: var(--shadow-soft);
}
.card.pad{padding:22px}
.card:hover{box-shadow: var(--shadow-deep)}
.hr{height:1px; background:var(--faint); margin:18px 0}

/* grids */
.grid-2{display:grid; grid-template-columns: 1.1fr .9fr; gap:18px; align-items:start}
.grid-3{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}
@media(max-width:980px){ .grid-2{grid-template-columns:1fr} }
@media(max-width:980px){ .grid-3{grid-template-columns:1fr} }

/* buttons */
.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.02em;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color:#000;
  box-shadow: 0 16px 34px rgba(125,211,252,.18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover{transform:translateY(-2px); box-shadow: 0 22px 46px rgba(125,211,252,.26)}
.btn.ghost{
  background: transparent;
  color: rgba(233,238,251,.92);
  border:1px solid var(--line);
  box-shadow:none;
}
.btn.ghost:hover{border-color:rgba(125,211,252,.45); color:var(--accent)}

/* article */
.article-hero{padding:26px 22px}
.meta{
  display:flex; gap:10px; flex-wrap:wrap;
  font-size:12px; color:var(--muted);
}
.meta .chip{
  border:1px solid var(--line);
  background: rgba(0,0,0,.16);
  padding:6px 10px;
  border-radius:999px;
}
.toc{
  margin-top:14px;
  padding:14px 14px;
  border:1px solid var(--line);
  border-radius:16px;
  background: rgba(0,0,0,.16);
}
.toc b{display:block; margin-bottom:8px; font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:rgba(233,238,251,.92)}
.toc a{display:block; padding:6px 0; color:rgba(233,238,251,.86)}
.toc a:hover{color:var(--accent)}
blockquote{
  margin:18px 0;
  padding:14px 16px;
  border-left:3px solid rgba(125,211,252,.55);
  background: rgba(0,0,0,.18);
  border-radius:12px;
  color:rgba(233,238,251,.90);
}
blockquote p{color:inherit; margin:0}
.footnotes{
  margin-top:30px;
  padding-top:18px;
  border-top:1px solid var(--faint);
}
.footnotes ol{margin:0; padding-left:18px}
.footnotes li{margin:10px 0; color:var(--muted); max-width:85ch}
sup a{color:var(--accent)}
sup a:hover{color:var(--accent2)}
.backtop{display:inline-block; margin-top:8px; font-size:12px; color:var(--muted)}
.backtop:hover{color:var(--accent)}
kbd{
  font-family:var(--mono);
  font-size:12px;
  padding:2px 6px;
  border:1px solid var(--line);
  border-radius:8px;
  background: rgba(0,0,0,.22);
}

/* footer */
.footer{
  border-top:1px solid var(--line);
  padding:34px 0;
  color:var(--muted);
  font-size:13px;
}
.footer .row{display:flex; gap:14px; flex-wrap:wrap; justify-content:space-between; align-items:center}
.footer a{color:rgba(233,238,251,.82)}
.footer a:hover{color:var(--accent)}

/* ==============================
   CHICAGO NOTES + BIBLIO (HTML)
   ============================== */

.note-ref a{ color: var(--accent); }
.note-ref a:hover{ color: var(--accent2); }

.notes{
  margin-top:32px;
  padding-top:18px;
  border-top:1px solid var(--faint);
}
.notes h3{ margin-bottom:10px; }
.notes ol{ margin:0; padding-left:18px; }
.notes li{
  margin:12px 0;
  color:var(--muted);
  max-width:88ch;
}
.notes li b{ color: rgba(233,238,251,.92); }
.notes .return{
  margin-left:8px;
  font-size:12px;
  color:var(--muted);
}
.notes .return:hover{ color: var(--accent); }

.biblio{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid var(--faint);
}
.biblio ul{ margin:0; padding-left:18px; }
.biblio li{ margin:10px 0; color:var(--muted); max-width:92ch; }
.biblio em{ color: rgba(233,238,251,.86); }

.smallcaps{
  font-variant-caps: all-small-caps;
  letter-spacing:.06em;
}

:root{
  --bg:#0b0f19;
  --panel:#121a2c;
  --panel-soft:#0f1626;
  --text:#e9eefb;
  --muted:#a9b4d6;
  --line:rgba(255,255,255,.12);
  --faint:rgba(255,255,255,.07);

  --accent:#7dd3fc;
  --accent2:#c084fc;
  --good:#34d399;
  --warn:#fbbf24;

  --radius:18px;
  --max-width:1180px;

  --shadow-soft:0 10px 30px rgba(0,0,0,.35);
  --shadow-deep:0 25px 60px rgba(0,0,0,.55);

  --serif: ui-serif, Georgia, "Times New Roman", Times, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  background:
    radial-gradient(1200px 800px at 18% 10%, rgba(125,211,252,.15), transparent 60%),
    radial-gradient(1000px 650px at 82% 15%, rgba(192,132,252,.15), transparent 60%),
    radial-gradient(900px 550px at 50% 95%, rgba(52,211,153,.06), transparent 60%),
    linear-gradient(180deg, #070b14 0%, var(--bg) 38%, #070b14 100%);
}

/* layout */
.container{max-width:var(--max-width); margin:0 auto; padding:0 18px}
.section{padding:72px 0}
@media (max-width:768px){ .section{padding:56px 0} }

/* links */
a{color:inherit; text-decoration:none}
a:hover{color:var(--accent)}
.link{color:var(--accent)}
.link:hover{color:var(--accent2)}

/* typography */
h1,h2,h3,h4{margin:0 0 14px; letter-spacing:.01em}
h1{font-size:42px; line-height:1.15; font-family:var(--serif); font-weight:650}
h2{font-size:26px; font-weight:650}
h3{font-size:18px; font-weight:650}
p{margin:0 0 16px; color:var(--muted); max-width:72ch}
.lead{font-size:18px; color:rgba(233,238,251,.96)}
.small{font-size:13px; color:rgba(169,180,214,.92)}
.kicker{
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:rgba(169,180,214,.95);
}

/* navbar */
.navbar{
  position:sticky; top:0; z-index:1000;
  backdrop-filter: blur(10px);
  background: rgba(11,15,25,.72);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  max-width:var(--max-width);
  margin:0 auto;
  padding:12px 18px;
  display:flex; align-items:center; justify-content:space-between; gap:14px;
}
.brand{
  display:flex; align-items:center; gap:10px; min-width:240px;
}
.mark{
  width:34px; height:34px; border-radius:10px;
  background:
    radial-gradient(14px 14px at 25% 30%, rgba(125,211,252,.85), rgba(125,211,252,.08) 60%),
    radial-gradient(16px 16px at 72% 65%, rgba(192,132,252,.85), rgba(192,132,252,.08) 60%),
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.16);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.brand-title{
  display:flex; flex-direction:column; gap:1px;
}
.brand-title b{
  font-size:13px; letter-spacing:.18em; text-transform:uppercase;
}
.brand-title span{font-size:12px; color:var(--muted)}
.nav-links{display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end}
.pill{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  font-size:12px;
  color:rgba(233,238,251,.92);
}
.pill:hover{border-color:rgba(125,211,252,.45); color:var(--accent)}
.pill.cta{
  border-color: rgba(125,211,252,.55);
  background: linear-gradient(90deg, rgba(125,211,252,.15), rgba(192,132,252,.12));
}
.menu-toggle{display:none; font-size:22px; padding:6px 10px; border:1px solid var(--line); border-radius:12px}
@media(max-width:820px){
  .menu-toggle{display:block}
  .nav-links{
    display:none;
    position:absolute;
    right:18px;
    top:62px;
    flex-direction:column;
    gap:10px;
    padding:14px;
    border-radius:var(--radius);
    background: rgba(18,26,44,.96);
    border:1px solid var(--line);
    box-shadow: var(--shadow-deep);
    width:min(320px, calc(100vw - 36px));
  }
  .nav-links.active{display:flex}
}

/* cards */
.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: var(--shadow-soft);
}
.card.pad{padding:22px}
.card:hover{box-shadow: var(--shadow-deep)}
.hr{height:1px; background:var(--faint); margin:18px 0}

/* grids */
.grid-2{display:grid; grid-template-columns: 1.1fr .9fr; gap:18px; align-items:start}
.grid-3{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}
@media(max-width:980px){ .grid-2{grid-template-columns:1fr} }
@media(max-width:980px){ .grid-3{grid-template-columns:1fr} }

/* buttons */
.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.02em;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color:#000;
  box-shadow: 0 16px 34px rgba(125,211,252,.18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover{transform:translateY(-2px); box-shadow: 0 22px 46px rgba(125,211,252,.26)}
.btn.ghost{
  background: transparent;
  color: rgba(233,238,251,.92);
  border:1px solid var(--line);
  box-shadow:none;
}
.btn.ghost:hover{border-color:rgba(125,211,252,.45); color:var(--accent)}

/* article */
.article-hero{padding:26px 22px}
.meta{
  display:flex; gap:10px; flex-wrap:wrap;
  font-size:12px; color:var(--muted);
}
.meta .chip{
  border:1px solid var(--line);
  background: rgba(0,0,0,.16);
  padding:6px 10px;
  border-radius:999px;
}
.toc{
  margin-top:14px;
  padding:14px 14px;
  border:1px solid var(--line);
  border-radius:16px;
  background: rgba(0,0,0,.16);
}
.toc b{display:block; margin-bottom:8px; font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:rgba(233,238,251,.92)}
.toc a{display:block; padding:6px 0; color:rgba(233,238,251,.86)}
.toc a:hover{color:var(--accent)}
blockquote{
  margin:18px 0;
  padding:14px 16px;
  border-left:3px solid rgba(125,211,252,.55);
  background: rgba(0,0,0,.18);
  border-radius:12px;
  color:rgba(233,238,251,.90);
}
blockquote p{color:inherit; margin:0}
.footnotes{
  margin-top:30px;
  padding-top:18px;
  border-top:1px solid var(--faint);
}
.footnotes ol{margin:0; padding-left:18px}
.footnotes li{margin:10px 0; color:var(--muted); max-width:85ch}
sup a{color:var(--accent)}
sup a:hover{color:var(--accent2)}
.backtop{display:inline-block; margin-top:8px; font-size:12px; color:var(--muted)}
.backtop:hover{color:var(--accent)}
kbd{
  font-family:var(--mono);
  font-size:12px;
  padding:2px 6px;
  border:1px solid var(--line);
  border-radius:8px;
  background: rgba(0,0,0,.22);
}

/* footer */
.footer{
  border-top:1px solid var(--line);
  padding:34px 0;
  color:var(--muted);
  font-size:13px;
}
.footer .row{display:flex; gap:14px; flex-wrap:wrap; justify-content:space-between; align-items:center}
.footer a{color:rgba(233,238,251,.82)}
.footer a:hover{color:var(--accent)}

/* ==============================
   CHICAGO NOTES + BIBLIO (HTML)
   ============================== */

.note-ref a{ color: var(--accent); }
.note-ref a:hover{ color: var(--accent2); }

.notes{
  margin-top:32px;
  padding-top:18px;
  border-top:1px solid var(--faint);
}
.notes h3{ margin-bottom:10px; }
.notes ol{ margin:0; padding-left:18px; }
.notes li{
  margin:12px 0;
  color:var(--muted);
  max-width:88ch;
}
.notes li b{ color: rgba(233,238,251,.92); }
.notes .return{
  margin-left:8px;
  font-size:12px;
  color:var(--muted);
}
.notes .return:hover{ color: var(--accent); }

.biblio{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid var(--faint);
}
.biblio ul{ margin:0; padding-left:18px; }
.biblio li{ margin:10px 0; color:var(--muted); max-width:92ch; }
.biblio em{ color: rgba(233,238,251,.86); }

.smallcaps{
  font-variant-caps: all-small-caps;
  letter-spacing:.06em;
}

#about .card{
  background:
    radial-gradient(600px 320px at 20% 10%, rgba(125,211,252,.08), transparent 60%),
    radial-gradient(600px 320px at 80% 90%, rgba(192,132,252,.06), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}

#about img, .hero img, .page-foot img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}
