/* the rust belt. "basement" style: rust wash over the background photo,
   gray green panel, two columns with boxed sidebar modules. desktop first. */

@font-face {
  font-family: "DSEG7";
  src: url("../fonts/DSEG7Classic-Bold.4ecf993fb87b.woff2") format("woff2");
}

:root {
  --base: #40261a;
  --overlay: rgba(70, 40, 26, 0.70);
  --panel: #dcdcd3;
  --box: #e8e8e1;
  --boxhead: #c9c7bb;
  --text: #222222;
  --muted: #66655d;
  --rule: #a9a79c;
  --head: #7d3519;
  --link: #1f3d66;
  --visited: #5a3d6e;
  --stamp: #ff9a2e;
}

body {
  margin: 0;
  background: linear-gradient(var(--overlay), var(--overlay)), url("../img/bg.5e2a68c3498e.jpg") center / cover fixed, var(--base);
  color: var(--text);
  font: 12px/1.55 "Trebuchet MS", Verdana, sans-serif;
  padding: 24px 16px;
}

a { color: var(--link); }
a:visited { color: var(--visited); }

.adminbar {
  width: 70%;
  margin: 0 auto 8px;
  padding: 4px 10px;
  background: #fff8c6;
  border: 1px solid #c9b860;
  font-size: 11px;
}
.adminbar form { display: inline; }
.adminbar button { font: inherit; padding: 0 4px; }

.panel { width: 70%; margin: 0 auto; background: var(--panel); border: 1px solid var(--rule); }
.head { padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.head h1 { font: bold 24px "Trebuchet MS", sans-serif; margin: 0; }
.head h1 a, .head h1 a:visited { color: var(--head); text-decoration: none; }
.head p { margin: 0; color: var(--muted); }
.nav { display: flex; background: var(--boxhead); border-bottom: 1px solid var(--rule); }
.nav a, .nav a:visited { color: var(--head); font-weight: bold; text-decoration: none; padding: 5px 16px; border-right: 1px solid var(--rule); }
.nav a.on { background: var(--panel); }
.nav a:hover { background: var(--head); color: var(--panel); }

.cols { display: grid; grid-template-columns: 1fr 180px; gap: 20px; padding: 16px 20px 20px; }
.main { min-width: 0; }

.entry { margin-bottom: 30px; }
.date { font-size: 11px; font-weight: bold; color: var(--muted); border-bottom: 1px solid var(--rule); margin: 0 0 8px; }
.listing { font-weight: bold; color: var(--muted); }
h2 { font: bold 17px "Trebuchet MS", sans-serif; color: var(--head); margin: 0 0 8px; }
h2 a, h2 a:visited { color: inherit; }
.draft { color: #a33; font-size: 12px; font-weight: normal; }
.meta { color: var(--muted); font-size: 11px; }
.posted { font-size: 11px; color: var(--muted); }

.body img { max-width: 100%; height: auto; border: 1px solid var(--rule); padding: 3px; background: var(--box); }
.body img.left { float: left; max-width: 50%; margin: 0 14px 8px 0; }
.body img.right { float: right; max-width: 50%; margin: 0 0 8px 14px; }
.body blockquote { margin: 1em 0; padding-left: 12px; border-left: 3px solid var(--rule); color: var(--muted); }

.cols.wide { grid-template-columns: 1fr; }

/* each section holds its own float, so the second always starts below the first photo */
.home { display: flow-root; margin-bottom: 14px; }
/* photo and text both grow a little on wide screens, so the text doesn't end far above the photo */
.home-photo { float: left; width: clamp(360px, 44%, 580px); margin: 0 16px 10px 0; border: 1px solid var(--rule); padding: 3px; background: var(--box); }
.home-photo.right { float: right; margin: 0 0 10px 16px; }
.home-photo img { display: block; width: 100%; height: auto; }
.home .body { font-size: clamp(13px, 1vw, 18px); }

.body .clear { clear: both; }

/* a post's featured photo, right of its text. the box holds the float so the grid starts below it. */
.featured { display: flow-root; }
.feature { float: right; width: 45%; margin: 0 0 10px 16px; border: 1px solid var(--rule); padding: 3px; background: var(--box); }
.feature img { display: block; width: 100%; height: auto; }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)); gap: 12px 10px; margin: 14px 0; }
.thumb { font-size: 10px; overflow-wrap: anywhere; }
.cities { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cities .thumb { font-size: 12px; }
.crop { display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--rule); padding: 3px; background: var(--box); }
.crop img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* /music/. the players are spotify's own iframes, so only the spacing is ours. */
/* 80px is spotify's compact player, the smallest it comes in */
.songs { display: grid; gap: 8px; margin: 0 0 14px; }
.songs iframe { display: block; border: 0; }

/* city map (leaflet, static/js/city_map.js). flattened to match the rest of the site. */
.mapframe { margin: 10px 0 14px; border: 1px solid var(--rule); padding: 3px; background: var(--box); }
#map { height: 420px; background: var(--panel); font: inherit; }
.leaflet-bar, .leaflet-bar a { border-radius: 0 !important; }
.leaflet-bar { border: 1px solid var(--rule) !important; box-shadow: none !important; }
.leaflet-bar a, .leaflet-bar a:visited { color: var(--head); background: var(--box); }
.leaflet-container .leaflet-control-attribution { background: var(--box); font-size: 10px; }
.map-pin {
  background: var(--head);
  border: 1px solid #fff;
  outline: 1px solid var(--head);
  box-sizing: border-box;
}
.map-pin:hover, .map-pin:focus { background: var(--stamp); }
.map-group {
  background: var(--head);
  border: 1px solid #fff;
  outline: 1px solid var(--head);
  box-sizing: border-box;
  color: #fff;
  font: bold 11px/20px "Trebuchet MS", Verdana, sans-serif;
  text-align: center;
}
.map-group:hover { background: var(--stamp); }
.leaflet-tooltip.map-tip {
  width: 160px;
  padding: 3px;
  background: var(--box);
  border: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
  color: var(--text);
  font-size: 10px;
  white-space: normal;
}
.leaflet-tooltip-top.map-tip::before { border-top-color: var(--rule); }
.leaflet-tooltip-bottom.map-tip::before { border-bottom-color: var(--rule); }
.leaflet-tooltip-left.map-tip::before { border-left-color: var(--rule); }
.leaflet-tooltip-right.map-tip::before { border-right-color: var(--rule); }
.map-tip img { display: block; width: 100%; height: auto; margin-bottom: 2px; }
.leaflet-tooltip.map-tip.many { width: min-content; }
.map-tip-grid { display: grid; grid-template-columns: repeat(2, 76px); gap: 3px; margin-bottom: 2px; }
.map-tip-grid.wide { grid-template-columns: repeat(3, 76px); }
.map-tip-grid img { width: 76px; height: 57px; object-fit: cover; margin: 0; }

.pager { text-align: center; }
.count { color: var(--muted); font-size: 11px; margin-left: 8px; }

.photo { border: 1px solid var(--rule); padding: 5px; background: var(--box); }
.frame { position: relative; container-type: inline-size; }
.frame img { display: block; width: 100%; height: auto; }
.stamp {
  position: absolute;
  right: 4%;
  bottom: 5%;
  font-family: "DSEG7", monospace;
  font-size: 3.4cqw;
  letter-spacing: 0.15em;
  color: var(--stamp);
  text-shadow: 0 0 3px rgba(255, 110, 0, 0.9), 0 0 1px #ffc080;
}
/* the seven segment font has no apostrophe */
.stamp .tick { font-family: Arial, sans-serif; font-weight: bold; }

.side { display: flex; flex-direction: column; gap: 14px; }
.box { border: 1px solid var(--rule); background: var(--box); }
.box b { display: block; background: var(--boxhead); padding: 3px 8px; border-bottom: 1px solid var(--rule); font-size: 11px; }
.box ul { margin: 0; padding: 6px 8px 8px 22px; }
.box ul.plain { list-style: none; padding-left: 8px; }

.foot { padding: 6px 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 11px; }
