:root {
  --bg: #2b2f22; --bar: #14160f; --accent: #f07a1a; --text: #e9e4d4; --line: #6b6f55; --rule: #4a4e3a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }   /* header never shifts between short and long pages */
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1200px; margin: 0 auto; }
.bar { background: var(--bar); padding: 12px 18px; }
.bar.top { border-bottom: 3px solid var(--accent); }
.bar.top .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center;
}
.mark { color: var(--text); font-weight: 700; letter-spacing: 2px; }
.mark span { color: var(--accent); }
.mark:hover { text-decoration: none; }
nav a { color: var(--text); opacity: .8; font-size: 13px; letter-spacing: 1px; margin-left: 14px; }
nav a:first-child { margin-left: 0; }
nav a.on, nav a:hover { color: var(--accent); opacity: 1; text-decoration: none; }
footer.bar { font-size: 13px; opacity: .85; border-top: 1px solid var(--rule); }

.col { max-width: 720px; margin: 0 auto; padding: 28px 18px 36px; }
.col.wide { max-width: 1236px; }
.label { color: var(--accent); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
h1 { font-size: 26px; line-height: 1.3; margin: 4px 0 10px; }
h2 { font-size: 20px; margin: 28px 0 8px; }
h3 { font-size: 17px; margin: 22px 0 6px; }
.tags, .dim { font-size: 13px; opacity: .7; }
.tags { margin-bottom: 18px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose li { margin-bottom: 4px; }
code { background: var(--bar); padding: 1px 5px; font-size: .92em; }

figure { margin: 18px 0; }
figure img { width: 100%; border: 1px solid var(--line); }
figcaption { font-size: 13px; opacity: .75; margin-top: 5px; }
.figrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.figrow figure { margin: 0; }

.box { border: 1px solid var(--line); padding: 10px 12px; font-size: 13px; margin-top: 18px; }
.box .label { margin-bottom: 4px; }
.prevnext { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; margin-top: 26px; }

.hero { display: grid; grid-template-columns: 1.3fr 1fr; margin-top: 24px; border: 1px solid var(--line); }
.home-latest { max-width: 1200px; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.pitch { padding: 24px 22px; }
.pitch h1 { font-size: 24px; }

.row { display: block; padding: 6px 0; color: var(--text); border-bottom: 1px solid var(--rule); }
.row:hover { color: var(--accent); text-decoration: none; }

.entry {
  display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--text);
}
.entry:hover { text-decoration: none; }
.entry:hover .etitle { color: var(--accent); }
.entry img, .noimg { width: 160px; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line); background: var(--bar); }
.etitle { display: block; font-size: 17px; font-weight: 700; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.gallery figure { margin: 0; }

@media (max-width: 1236px) {
  .hero { margin: 0; border-width: 0 0 1px; }
}
@media (max-width: 700px) {
  body { font-size: 15px; }
  .hero, .figrow { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 96px 1fr; gap: 12px; }
  .entry img, .noimg { width: 96px; }
  .gallery { grid-template-columns: 1fr; }
  nav a { margin-left: 10px; font-size: 12px; }
  h1 { font-size: 22px; }
}
@media (min-width: 1237px) {
  .home-latest { padding-left: 0; padding-right: 0; }
}
