@font-face { font-family: 'EB Garamond'; src: url('fonts/EBGaramond.woff2') format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('fonts/EBGaramond-Italic.woff2') format('woff2'); font-weight: 400 800; font-style: italic; font-display: swap; }
/* The Catalogue of Ships: the film's look (dark ground, gold, cream, EB Garamond) */
:root {
  --bg: #12100c; --bg2: #1b1812; --bg3: #242018; --line: #3a3326;
  --gold: #ecc878; --gold2: #c9a75c; --cream: #f2e8d2; --text: #e6dfd1; --muted: #a99f8d; --dim: #7d7466;
  --troy: #e2836a; --sea: #242d3a;
  --serif: 'EB Garamond', Garamond, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 64px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--serif); font-size: 19px; line-height: 1.55;
       -webkit-font-smoothing: antialiased; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-weight: 500; line-height: 1.2; color: var(--cream); }
h2 { font-size: 34px; margin: 0 0 6px; }
h2 .gr { color: var(--gold); font-size: 0.8em; letter-spacing: 0.08em; margin-left: 10px; }
h3 { font-size: 24px; margin: 30px 0 8px; color: var(--gold); }
p { margin: 0 0 14px; }
.lede { color: var(--muted); font-style: italic; margin-bottom: 22px; }
.gr, [lang="grc"] { font-family: var(--serif); }
section { padding: 64px 0 24px; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }

/* top bar */
.top { position: sticky; top: 0; z-index: 1000; background: rgba(18, 16, 12, 0.93); backdrop-filter: blur(6px);
       border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 52px; overflow-x: auto; white-space: nowrap; }
.top .brand { color: var(--gold); letter-spacing: 0.14em; font-size: 15px; }
.top nav a { color: var(--text); font-size: 17px; margin-right: 18px; }
.top nav a:hover { color: var(--gold); text-decoration: none; }

/* hero */
.hero { padding-top: 40px; }
.kicker { color: var(--muted); font-style: italic; font-size: 18px; margin: 0 0 6px; }
.title-gr { color: var(--gold); letter-spacing: 0.22em; font-size: clamp(30px, 5.6vw, 58px); margin: 0; font-weight: 500; }
.title-en { font-size: clamp(26px, 4.2vw, 44px); margin: 2px 0 10px; }
.dek { font-size: 21px; color: var(--cream); max-width: 760px; }
.film { position: relative; aspect-ratio: 16 / 9; background: #000 url('img/poster.jpg') center / cover no-repeat;
        border: 1px solid var(--line); margin: 22px 0 10px; cursor: pointer; overflow: hidden; }
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film .play { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); width: 88px; height: 88px;
              border-radius: 50%; background: rgba(18, 16, 12, 0.72); border: 2px solid var(--gold); }
.film .play::after { content: ''; position: absolute; left: 34px; top: 26px; border-style: solid; border-width: 18px 0 18px 28px;
                     border-color: transparent transparent transparent var(--gold); }
.film .soon { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 18px; background: linear-gradient(transparent, rgba(0,0,0,0.78));
              color: var(--cream); font-style: italic; font-size: 17px; }
.film.nolink { cursor: default; }
.film.nolink .play { display: none; }
.filmmeta { color: var(--muted); font-size: 16px; }
.intro { columns: 2 340px; column-gap: 40px; margin-top: 24px; }
.intro p { break-inside: avoid; }

/* numbers */
.glance { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 30px 0 4px; }
.glance div { text-align: center; padding: 14px 6px; background: var(--bg2); border: 1px solid var(--line); }
.glance b { display: block; font-size: 38px; font-weight: 500; color: var(--gold); line-height: 1.1; }
.glance span { font-size: 15px; color: var(--muted); }

/* map */
.mapwrap { position: relative; }
.mapbox { position: relative; height: min(76vh, 760px); min-height: 440px; border: 1px solid var(--line); background: var(--sea); }
#leaf { position: absolute; inset: 0; background: var(--sea); font-family: var(--serif); }
.leaflet-container { font-family: var(--serif); font-size: 15px; }
.leaflet-control-attribution { background: rgba(18, 16, 12, 0.75) !important; color: var(--muted) !important; font-size: 12px; }
.leaflet-control-attribution a { color: var(--gold2) !important; }
.leaflet-bar a { background: var(--bg2); color: var(--gold); border-bottom-color: var(--line); }
.leaflet-bar a:hover { background: var(--bg3); color: var(--cream); }
.leaflet-tooltip.pl { background: rgba(18, 16, 12, 0.88); color: var(--cream); border: 1px solid var(--line); border-radius: 2px;
                      font-size: 15px; padding: 2px 8px; box-shadow: none; }
.leaflet-tooltip.pl::before { display: none; }
.leaflet-tooltip.pl .g { color: var(--gold); }
.mapctl { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 0 0 10px; font-size: 17px; }
.mapctl label { cursor: pointer; user-select: none; }
.mapctl input[type=checkbox] { accent-color: var(--gold); }
.mapctl input[type=search] { background: var(--bg2); color: var(--cream); border: 1px solid var(--line); font: inherit; font-size: 16px;
                             padding: 4px 10px; width: 240px; }
.key { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; }
.key i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #1a140c; }
.key i.a { background: var(--gold); } .key i.t { background: var(--troy); }
.key i.r { background: transparent; border: 1.6px dashed var(--cream); width: 16px; height: 16px; }
.panel { position: absolute; top: 12px; right: 12px; bottom: 12px; width: 360px; z-index: 900; background: rgba(18, 16, 12, 0.95);
         border: 1px solid var(--line); overflow-y: auto; padding: 0 0 14px; display: none; }
.panel.on { display: block; }
.panel .x { position: sticky; top: 0; float: right; margin: 6px 8px 0 0; background: none; border: 0; color: var(--muted); font-size: 26px;
            cursor: pointer; line-height: 1; z-index: 2; }
.panel img { width: 100%; display: block; cursor: zoom-in; }
.panel .in { padding: 10px 16px 0; }
.panel .pg { color: var(--gold); font-size: 30px; line-height: 1.1; }
.panel .pe { font-size: 21px; color: var(--cream); }
.panel .st { color: var(--muted); font-style: italic; font-size: 15px; margin: 2px 0 10px; }
.panel .note { font-size: 16px; color: var(--text); }
.panel .cr { font-size: 13px; color: var(--dim); margin-top: -2px; }
.panel .named { margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); }
.panel .named .ln { font-size: 14px; color: var(--muted); }
.panel .named .lg { color: var(--cream); font-size: 18px; }
.panel .named .le { color: var(--muted); font-size: 15px; font-style: italic; }
.unknown { margin: 14px 0 0; font-size: 16px; color: var(--muted); }
.chip { display: inline-block; margin: 3px 4px 3px 0; padding: 1px 9px; border: 1px solid var(--line); background: var(--bg2);
        color: var(--cream); font-size: 15px; cursor: pointer; border-radius: 2px; }
.chip:hover { border-color: var(--gold2); color: var(--gold); }
.chip.u { border-style: dashed; }
.chip.t { border-color: #5a3a30; }
.t { color: var(--gold2); font-size: 0.85em; white-space: nowrap; }
a.t { cursor: pointer; }
.t::before { content: '▶ '; font-size: 0.8em; }
span.t::before { content: ''; }

/* catalogue */
.toolbar { margin: 4px 0 14px; display: flex; gap: 12px; flex-wrap: wrap; }
button.btn { background: var(--bg2); border: 1px solid var(--line); color: var(--gold); font: inherit; font-size: 16px; padding: 4px 14px; cursor: pointer; }
button.btn:hover { border-color: var(--gold2); }
.chap { margin: 34px 0 10px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.chap h3 { margin: 0; }
.chap .meta { color: var(--muted); font-size: 16px; }
details.entry { border: 1px solid var(--line); background: var(--bg2); margin: 8px 0; }
details.entry > summary { list-style: none; cursor: pointer; padding: 10px 16px; display: grid; grid-template-columns: 44px 1fr auto; gap: 4px 14px;
                          align-items: baseline; }
details.entry > summary::-webkit-details-marker { display: none; }
details.entry > summary .num { color: var(--dim); font-size: 18px; }
details.entry > summary .eg { color: var(--gold); letter-spacing: 0.08em; font-size: 20px; }
details.entry > summary .ee { color: var(--cream); font-size: 19px; }
details.entry > summary .ships { color: var(--gold); font-size: 18px; text-align: right; white-space: nowrap; }
details.entry > summary .sub { grid-column: 2 / 4; color: var(--muted); font-size: 15px; }
details.entry[open] > summary { border-bottom: 1px solid var(--line); }
details.entry > summary:hover .ee { color: var(--gold); }
.ebody { padding: 12px 16px 16px; }
.leaders { margin: 0 0 8px; font-size: 17px; }
.leaders .g { color: var(--gold); }
.leaders span.l { margin-right: 16px; white-space: nowrap; }
.stories { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0 12px; }
.stories figure { margin: 0; width: 200px; }
.stories img { width: 200px; height: 140px; object-fit: cover; display: block; cursor: zoom-in; border: 1px solid var(--line); }
.stories figcaption { font-size: 14px; color: var(--muted); line-height: 1.3; margin-top: 4px; }
.stories figcaption b { color: var(--gold); font-weight: 500; }
table.text { width: 100%; border-collapse: collapse; margin-top: 8px; }
table.text td { vertical-align: top; padding: 3px 8px 3px 0; }
table.text td.n { color: var(--dim); font-size: 14px; width: 44px; padding-top: 6px; white-space: nowrap; }
table.text td.g { color: var(--cream); font-size: 19px; width: 52%; }
table.text td.e { color: var(--muted); font-size: 16px; font-style: italic; }
table.text tr.hl td { background: rgba(236, 200, 120, 0.08); }
.inv { border-color: #4a4030; }

/* ships */
.chart { width: 100%; height: auto; display: block; margin: 8px 0 14px; }
.chart text { font-family: var(--serif); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

/* film, stills */
ol.chapters { columns: 2 320px; padding-left: 0; list-style: none; margin: 0 0 18px; }
ol.chapters li { margin: 0 0 6px; break-inside: avoid; }
ol.chapters .tm { color: var(--gold2); display: inline-block; width: 56px; }
.how h4 { color: var(--gold); font-weight: 500; font-size: 20px; margin: 18px 0 4px; }
.stills { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.stills figure { margin: 0; }
.stills img { width: 100%; display: block; cursor: zoom-in; border: 1px solid var(--line); }
.stills figcaption { font-size: 13px; color: var(--muted); line-height: 1.3; margin-top: 3px; }

/* sources */
ul.src { padding-left: 18px; }
ul.src li { margin-bottom: 6px; }
details.pics summary { cursor: pointer; color: var(--gold); }
ol.pics { font-size: 15px; color: var(--muted); columns: 2 420px; column-gap: 30px; }
ol.pics li { break-inside: avoid; margin-bottom: 4px; }
ol.pics b { color: var(--cream); font-weight: 500; }
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 50px; color: var(--muted); font-size: 16px; }

/* lightbox */
#lb { position: fixed; inset: 0; z-index: 3000; background: rgba(8, 7, 5, 0.94); display: none; align-items: center; justify-content: center;
      flex-direction: column; padding: 20px; }
#lb.on { display: flex; }
#lb img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
#lb .cap { max-width: 900px; text-align: center; color: var(--cream); font-size: 17px; margin-top: 10px; }
#lb .cap small { display: block; color: var(--muted); font-size: 14px; }
#lb .x { position: absolute; top: 10px; right: 18px; background: none; border: 0; color: var(--cream); font-size: 34px; cursor: pointer; }

@media (max-width: 820px) {
  body { font-size: 18px; }
  .glance { grid-template-columns: repeat(3, 1fr); }
  .mapbox { height: 62vh; }
  .panel { position: static; width: auto; margin-top: 10px; max-height: none; }
  .two { grid-template-columns: 1fr; }
  table.text, table.text tbody, table.text tr, table.text td { display: block; width: auto !important; }
  table.text td.n { padding-top: 10px; }
  table.text td.e { padding-bottom: 6px; }
  details.entry > summary { grid-template-columns: 34px 1fr auto; }
}

/* the contingents */
.h3meta { color: var(--muted); font-size: 16px; font-weight: 400; margin-left: 8px; }
.tablewrap { overflow-x: auto; }
table.cont { width: 100%; border-collapse: collapse; font-size: 17px; margin: 6px 0 10px; }
table.cont th { text-align: left; color: var(--muted); font-weight: 400; font-size: 15px; border-bottom: 1px solid var(--line); padding: 4px 10px 6px 0; }
table.cont td { padding: 7px 10px 7px 0; border-bottom: 1px solid #2a251c; vertical-align: top; }
table.cont .num { color: var(--dim); width: 34px; }
table.cont .r { text-align: right; }
table.cont .big { color: var(--gold); font-size: 20px; }
table.cont .nowrap { white-space: nowrap; color: var(--muted); font-size: 15px; }
table.cont a { color: inherit; }
table.cont a:hover { text-decoration: none; }
table.cont a:hover .ee2 { color: var(--gold); }
table.cont .eg { color: var(--gold); letter-spacing: 0.06em; font-size: 16px; }
table.cont .ee2 { color: var(--cream); }
table.cont .g { color: var(--gold2); }
table.cont .le2 { color: var(--text); font-size: 15px; }
table.cont tr.grp td { color: var(--gold); font-size: 18px; padding-top: 18px; border-bottom: 1px solid var(--line); }
table.cont tr.tot td { color: var(--cream); border-bottom: 0; border-top: 1px solid var(--gold2); padding-top: 9px; }
button.onmap { background: none; border: 1px solid var(--line); color: var(--gold); font: inherit; font-size: 17px; line-height: 1; padding: 3px 7px; cursor: pointer; }
button.onmap:hover { border-color: var(--gold2); background: var(--bg3); }
button.onmap.wide { font-size: 15px; padding: 2px 9px; margin: 3px 0; }
.mapic { color: var(--gold); }
.small { color: var(--muted); font-size: 16px; margin-top: 8px; }
.panel .leaders { margin: 6px 0 8px; font-size: 16px; }
.panel .leaders .g { color: var(--gold); }
.panel p.ln { margin-top: 10px; font-size: 16px; }
#reading .film { max-width: 900px; }
a.t:empty::after { content: ''; }

@media (max-width: 600px) { table.cont .hide-s { display: none; } table.cont { font-size: 16px; } }
