/* ============================================================
   Adriatic Architecture Lecture - shared slide engine (16:9)
   Theme-agnostic base: stage scaling, navigation, footer.
   Each option file layers its own theme on top.
   ============================================================ */
*{box-sizing:border-box;margin:0;padding:0}
:root{
  --orange:#c1531f;      /* Siegel warm accent */
  --orange-br:#e8731c;   /* brighter footer accent */
  --ink:#1a1a1a;
  --paper:#f5f1e8;
  --charcoal:#1e1e1e;
  --red:#e2231a;         /* the red dot */
  --stageW:1600px;
  --stageH:900px;
}
html,body{height:100%;background:#0c0c0c;overflow:hidden;
  font-family:"Lato","Helvetica Neue",Arial,sans-serif;color:var(--ink);
  -webkit-font-smoothing:antialiased;}
#viewport{position:fixed;inset:0;display:grid;place-items:center;}
#stage{width:var(--stageW);height:var(--stageH);position:relative;
  transform-origin:center center;background:#fff;overflow:hidden;
  box-shadow:0 20px 80px rgba(0,0,0,.5);}
.slide{position:absolute;inset:0;opacity:0;visibility:hidden;
  transition:opacity .45s ease;}
.slide.on{opacity:1;visibility:visible;}

/* shared full-bleed media helper */
.bleed{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.scrim{position:absolute;inset:0;}

/* shared footer (Siegel signature: page no | title | firm) */
.foot{position:absolute;left:46px;right:46px;bottom:30px;display:flex;
  align-items:center;gap:12px;font-size:15px;letter-spacing:.01em;z-index:5;}
.foot .pg{font-weight:700;}
.foot .tt{font-weight:700;}
.foot .sub{opacity:.6;font-weight:400;}
.foot .sp{flex:1}
.foot .firm{font-weight:700;color:var(--orange-br);letter-spacing:.02em;}

/* progress + hint (chrome, hidden in print) */
#hint{position:fixed;bottom:14px;left:50%;transform:translateX(-50%);
  color:#888;font-size:12px;letter-spacing:.08em;text-transform:uppercase;
  z-index:50;font-family:Arial;}
#bar{position:fixed;top:0;left:0;height:3px;background:var(--orange);
  z-index:60;transition:width .3s ease;}

/* small reusable label chip (Geomorphology (Mountains) style) */
.kicker{font-size:13px;font-weight:700;letter-spacing:.16em;
  text-transform:uppercase;color:var(--orange);}

/* SIEGEL pixel wordmark, drawn in CSS so it is crisp at any size */
.siegelmark{font-family:Arial;font-weight:900;letter-spacing:.18em;
  font-size:14px;}

/* ===== approved slide templates (one image per page) ===== */
#stage{font-family:"Lato",Arial,sans-serif;}
h1,h2{font-weight:900;letter-spacing:-.01em;}
/* full-bleed image / map / video page */
.full .bleed{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.full .grad{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.55),rgba(0,0,0,0) 42%);}
.full .fact{position:absolute;left:54px;bottom:78px;max-width:42ch;color:#fff;font-size:22px;
  line-height:1.4;text-shadow:0 2px 22px rgba(0,0,0,.6);z-index:600;}
.full .title{position:absolute;left:54px;bottom:96px;color:#fff;z-index:600;}
.full .title h1{font-size:60px;text-shadow:0 2px 30px rgba(0,0,0,.5);}
.full .title .sub{font-size:22px;font-weight:700;margin-top:6px;}
.full .title .meta{font-size:15px;font-weight:400;opacity:.82;margin-top:14px;}
/* title cover: full width, bottom-anchored so sky crops off. */
.titlecover{background:#1c1c1c;}
.titlecover .bleed{object-fit:cover;object-position:center bottom;}
/* chapter heroes: matted, never cropped. */
.chaptercover{background:#1c1c1c;}
.chaptercover .bleed{object-fit:contain;}
.factpill{position:absolute;left:46px;bottom:74px;z-index:600;background:rgba(255,255,255,.96);
  padding:14px 20px;max-width:44ch;font-size:20px;line-height:1.4;color:#1a1a1a;}
/* matted photo page: whole image, never cropped, on a charcoal ground */
.photopage{background:#1c1c1c;}
.photopage .contain{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;
  padding:40px 52px 104px;}
.photopage .fact{position:absolute;left:54px;right:54px;bottom:54px;color:#fff;font-size:21px;
  line-height:1.4;z-index:600;text-shadow:0 1px 12px rgba(0,0,0,.7);}
.photopage .foot{color:#fff;} .photopage .foot .firm{color:#ffcfa0;}
/* charcoal statement (intro / influence) */
.type{height:100%;display:flex;flex-direction:column;justify-content:center;padding:0 96px;
  background:var(--charcoal);color:#fff;}
.type h2{font-size:46px;line-height:1.18;max-width:26ch;}
.type .lede{font-size:24px;color:#cfc7b6;max-width:42ch;line-height:1.45;margin-top:22px;font-weight:400;}
.type em{font-style:normal;color:#ff8a3d;}
/* white statement */
.stmt-white{height:100%;display:flex;flex-direction:column;justify-content:center;padding:0 96px;background:#fff;}
.stmt-white h2{font-size:46px;line-height:1.18;max-width:26ch;}
.stmt-white .lede{font-size:24px;color:#56524a;max-width:42ch;line-height:1.45;margin-top:22px;font-weight:400;}
.stmt-white em{font-style:normal;color:var(--orange);}
/* stats page (charcoal, big numbers) */
.statpage{height:100%;display:flex;flex-direction:column;justify-content:center;padding:0 96px;background:var(--charcoal);color:#fff;}
.statpage .row{display:flex;gap:84px;flex-wrap:wrap;}
.statpage .n{font-size:120px;font-weight:900;color:#ff8a3d;line-height:1;}
.statpage .l{font-size:22px;color:#cfc7b6;margin-top:8px;max-width:13ch;line-height:1.25;}
.statpage .snote{font-size:21px;color:#cfc7b6;margin-top:46px;}
.statpage .foot{color:#fff;} .statpage .foot .firm{color:#ffcfa0;}
/* six empires: intro table (white) */
.etable{height:100%;display:flex;flex-direction:column;justify-content:center;background:#fff;padding:0 80px;}
.etable .etkick{font-size:13px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--orange);}
.etable h2{font-size:44px;margin:.2em 0 .5em;}
.etable .etbody{display:flex;flex-direction:column;}
.etable .etrow{display:grid;grid-template-columns:16px 200px 150px 1fr;align-items:center;gap:18px;
  padding:14px 0;border-top:1px solid var(--line);font-size:19px;}
.etable .etbar{width:6px;height:42px;border-radius:2px;}
.etable .etname{font-weight:900;}
.etable .etdates{color:var(--faint);font-size:15px;}
.etable .etleft{color:#3a362c;font-style:italic;}
/* six empires: a territorial map per empire (matted on charcoal) */
.empslide{height:100%;background:#1c1c1c;}
.empslide .emimg{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:34px 40px 150px;}
.empslide .emcap{position:absolute;left:54px;bottom:54px;color:#fff;z-index:600;}
.empslide .emname{font-size:34px;font-weight:900;}
.empslide .emdates{font-size:17px;color:#cfc7b6;margin-top:2px;}
.empslide .emleft{font-size:19px;color:#ff8a3d;margin-top:8px;}
.empslide .emcredit{position:absolute;right:18px;bottom:14px;color:#6f695e;font-size:11px;z-index:600;}
.empslide .foot{color:#fff;} .empslide .foot .firm{color:#ffcfa0;}
/* empire caption sitting on a (dark) map, e.g. Ragusan */
.mapslide .emcap{position:absolute;left:54px;bottom:60px;color:#fff;z-index:600;text-shadow:0 1px 14px rgba(0,0,0,.85);}
.mapslide .emname{font-size:32px;font-weight:900;}
.mapslide .emdates{font-size:17px;color:#e7e0d2;margin-top:2px;}
.mapslide .emleft{font-size:19px;color:#ff8a3d;margin-top:8px;}
/* empire sequence: real maps, dots coloured by ruler */
.empire{height:100%;display:flex;flex-direction:column;background:#fff;padding:42px 50px 60px;}
.empire .ehead h2{font-size:30px;}
.empire .esub{font-size:16px;color:#8d877b;margin-top:4px;max-width:84ch;}
.empire .erow{flex:1;display:grid;grid-template-columns:repeat(5,1fr);gap:14px;min-height:0;margin:16px 0 14px;}
.empire .ecell{display:flex;flex-direction:column;min-height:0;}
.empire .etitle{font-size:16px;font-weight:700;text-align:center;margin-bottom:6px;}
.empire .emap{flex:1;min-height:0;border:1px solid #e4ddce;}
.empire .elegend{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12.5px;color:#1a1a1a;align-items:center;}
.empire .elegend span{display:inline-flex;align-items:center;gap:6px;}
.empire .elegend i{width:18px;height:12px;border-radius:2px;display:inline-block;}
.empire .esrc{font-size:11px;color:#9a9384;margin-top:8px;}
.empire .foot{color:var(--ink);}
/* white drawing page */
.draw{height:100%;display:flex;flex-direction:column;background:#fff;padding:54px 60px 84px;}
.draw .art{flex:1;display:flex;align-items:center;justify-content:center;min-height:0;}
.draw .art img{max-width:100%;max-height:100%;}
.draw h2{font-size:30px;margin-top:14px;}
.draw .src{font-size:12px;color:#9a9384;margin-top:5px;}
/* footers per ground */
.foot{color:var(--ink);} .foot .firm{color:var(--orange-br);}
.full .foot,.type .foot{color:#fff;}
.full .foot .firm,.type .foot .firm{color:#ffcfa0;}
.leafm{width:100%;height:100%;}
.leaflet-container{background:#eef2f1;font-family:Lato,Arial;}

@media print{
  html,body{overflow:visible;background:#fff;}
  #viewport{display:block;}
  #stage{transform:none!important;width:100%;height:auto;box-shadow:none;}
  .slide{position:relative;opacity:1!important;visibility:visible!important;
    width:100%;height:100vh;page-break-after:always;}
  #hint,#bar{display:none;}
}
