/* styles-vintage.css
   Shared type + table system for the site, based on the mid-century
   university-press look (paper tone, oldstyle serif, rule-based tables).
   Include this via `css: styles-vintage.css` in any .qmd's front matter,
   or list it under `format: html: css:` in _quarto.yml to apply site-wide.
*/

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root{
  --paper: #e7ddc3;
  --paper-mat: #c9bd9a;
  --ink: #2c2418;
  --ink-soft: #4a4030;
  --rule: #6b5f45;
}

body{
  background: var(--paper-mat);
  font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
  color: var(--ink);
}

/* main content column reads like a page laid on a mat */
#quarto-content, main.content{
  background:
    radial-gradient(ellipse at 20% 15%, rgba(255,255,255,0.15), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(0,0,0,0.06), transparent 50%),
    var(--paper);
  padding: 40px 56px !important;
}

h1, h2, h3{ font-weight: 600; }
h1.title{ font-size: 30px; }

em, i, .species{ font-style: italic; }

/* running head strip, used on standalone reference pages */
.running-head{
  display:flex;
  justify-content:flex-end;
  font-variant:small-caps;
  letter-spacing:.08em;
  font-size:14px;
  color:var(--ink-soft);
  border-bottom:1px solid var(--rule);
  padding-bottom:10px;
  margin-bottom:32px;
}

/* DT table rework: strip DataTables' default boxed look down to rules-only */
table.dataTable{
  border-collapse: collapse !important;
  font-size: 15px;
}
table.dataTable thead th{
  font-style: italic;
  font-weight: 400;
  border-bottom: 1.5px solid var(--ink) !important;
  background: transparent !important;
}
table.dataTable tbody td{
  border-top: 1px solid rgba(107,95,69,0.25);
  padding: 5px 10px !important;
}
table.dataTable tbody tr{ background: transparent !important; }
table.dataTable tbody tr:hover td{ background: rgba(107,95,69,0.08) !important; }

.dataTables_filter input,
.dataTables_length select{
  font-family: 'EB Garamond', serif;
  background: #fdf8ea;
  border: 1px solid var(--rule);
  border-radius: 2px;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate{
  font-family: 'EB Garamond', serif;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------
   Zine cover masthead -- used at the top of a post to give it its
   own "issue cover." Drop the .zine-cover HTML block at the top of
   a post's index.qmd and place the map image inside .zine-map.
   All type is EB Garamond, one weight, differing by size only.
   --------------------------------------------------------------- */
.zine-cover{
  margin: 0 0 40px;
}
.zine-cover .frame{
  border: 1.5px solid var(--ink);
  padding: 5px;
}
.zine-cover .frame-inner{
  border: 0.75px solid var(--ink);
  padding: 36px 40px 40px;
}
.zine-cover .masthead{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
}
.zine-cover .title-block{ flex: 1; }
.zine-cover .line-1{
  font-size: 34px; font-weight: 400; line-height: 1.12; margin: 0;
  letter-spacing: .005em; color: var(--ink);
}
.zine-cover .line-2{
  font-size: 23px; font-weight: 400; line-height: 1.15; margin: 10px 0 0;
  color: var(--ink);
}
.zine-cover .line-3{
  font-size: 17px; font-weight: 400; font-style: italic; line-height: 1.3;
  margin: 8px 0 0; color: var(--ink-soft);
}
.zine-cover .stamp{
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  padding: 8px 14px;
  text-align: center;
  font-variant: small-caps;
  letter-spacing: .08em;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
}
.zine-cover .zine-map{
  margin: 26px 0 20px;
}
.zine-cover .zine-map img{
  display: block;
  width: 100%;
  height: auto;
}
.zine-cover .colophon{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: var(--ink-soft);
}
.zine-cover .colophon .tag{ font-style: italic; }
.zine-cover .colophon .date{ font-variant: small-caps; letter-spacing: .06em; }
