/* A responsive continuation of the original Minima Black blog design.
   Original theme: Disparut and soren121, based on Minima by Stopdesign. */
:root {
  color-scheme: dark;
  --background: #000;
  --text: #eee;
  --muted: #aaa;
  --line: #383838;
  --link: #9ad;
  --title: #ad9;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  padding: 2.5rem 1.25rem;
  background: var(--background);
  color: var(--text);
  font: 1rem/1.65 "Trebuchet MS", Trebuchet, Verdana, sans-serif;
  overflow-wrap: break-word;
}
a { color: var(--link); text-decoration: none; text-underline-offset: .2em; }
a:hover { color: #bed4ff; text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--title); outline-offset: 5px; }
img { max-width: 100%; height: auto; }
blockquote { border-left: 3px solid var(--line); margin-inline: 0; padding-left: 1rem; }
pre { overflow-x: auto; max-width: 100%; padding: 1rem; background: #151515; }
code { overflow-wrap: anywhere; font-size: .9em; }
table { max-width: 100%; }
.site-shell { width: min(100%, 54rem); margin-inline: auto; }
.site-header {
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: -6px;
  padding: 1.8rem 1rem 1.4rem;
  text-align: center;
}
.site-title {
  display: inline-block;
  color: #fff;
  font-size: clamp(1.65rem, 5.8vw, 2.2rem);
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .19em;
}
.site-title:hover { color: #fff; text-decoration: none; }
.site-description {
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  margin: .4rem 0 0;
}
.archive-notice {
  color: var(--muted);
  margin: 1rem 0 1.3rem;
  font-size: .8rem;
  line-height: 1.6;
}
.site-layout { display: grid; grid-template-columns: minmax(0, 1fr) 12rem; gap: 2.25rem; align-items: start; }
main { min-width: 0; }
main:focus { outline: none; }
.post { margin: 0 0 2rem; border-bottom: 1px dotted #555; padding-bottom: 1.5rem; }
.date-header, .sidebar h2, .comments h2, .archive-month h2 {
  color: var(--muted);
  font: 700 .8rem/1.5 Verdana, sans-serif;
  text-transform: uppercase;
  letter-spacing: .13em;
}
.date-header { margin: .4rem 0 .4rem; }
.post-title {
  color: var(--title);
  margin: .2rem 0 .8rem;
  font-size: 1.13rem;
  line-height: 1.45;
  font-weight: 700;
  text-transform: uppercase;
}
.post-title a { color: inherit; }
.post-title a:hover { color: #d1efc0; }
.storycontent p { margin: 0 0 .85rem; }
.storycontent p:last-child { margin-bottom: .9rem; }
.storycontent ul, .storycontent ol { padding-left: 1.5rem; margin-block: .6rem 1rem; }
.storycontent img { vertical-align: middle; margin: .3rem .15rem; }
.storycontent a:has(img) { display: inline; }
.storycontent a:focus-visible:has(img) { outline-offset: 2px; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.post-meta time { color: var(--link); }
.sidebar { padding-top: .15rem; }
.sidebar-section { margin: 0 0 1.7rem; }
.sidebar h2 { margin: .25rem 0 .7rem; font-size: .75rem; letter-spacing: .16em; }
.sidebar p { margin: 0; }
.sidebar .event-info { font-size: .95rem; line-height: 1.6; }
.sidebar .event-year { color: var(--muted); font-size: .75rem; margin-top: .3rem; }
.sidebar ul { list-style: none; padding: 0; margin: 0; font-size: .84rem; line-height: 1.45; }
.sidebar li { margin-bottom: .4rem; }
.sidebar .all-articles { margin-top: .8rem; }
.feed-links { display: grid; gap: .35rem; font-size: .8rem; }
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: .8rem;
  font-size: .75rem;
  color: var(--muted);
}
.site-footer p { margin: 0; }
.pagination, .post-navigation { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; font-size: .85rem; margin-block: 1.4rem; }
.page-position { color: var(--muted); font-size: .75rem; }
.comments { margin: 1.5rem 0 2rem; }
.comments h2 { margin-bottom: 1.4rem; }
.comment-list { list-style-position: outside; padding-left: 1.5rem; }
.comment { padding: 0 0 1.3rem .25rem; margin-bottom: 1.3rem; border-bottom: 1px dotted var(--line); }
.comment::marker { color: var(--muted); font-size: .8rem; }
.comment-content { overflow-wrap: anywhere; }
.comment-content p { margin: 0 0 .7rem; }
.comment-meta { color: var(--muted); font-size: .75rem; line-height: 1.65; margin: .6rem 0 0; }
.comment:target { outline: 1px solid var(--title); outline-offset: .65rem; }
.comments-closed { color: var(--muted); font-size: .8rem; margin-top: 1.5rem; }
.standalone-page { padding-top: .4rem; }
.archive-header { margin-bottom: 1.4rem; }
.archive-intro { color: var(--muted); font-size: .9rem; }
.archive-month { margin-block: 1.6rem; }
.archive-month h2 { margin-bottom: .7rem; }
.archive-month h2 a { color: var(--muted); }
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list li { padding: .65rem 0; border-bottom: 1px dotted var(--line); }
.archive-list a { display: block; color: var(--title); font-weight: 700; }
.archive-list time { display: block; color: var(--muted); font-size: .75rem; margin-top: .15rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: .5rem; left: 1rem; transform: translateY(-200%); padding: .5rem .8rem; background: #111; z-index: 10; }
.skip-link:focus { transform: none; }

/* Native modal keeps focus inside the viewer and the page underneath inert. */
html.lightbox-open { overflow: hidden; scrollbar-gutter: stable; }
.storycontent a[aria-haspopup="dialog"] { cursor: zoom-in; }
.lightbox {
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  border: 0;
  background: rgb(0 0 0 / .94);
  color: var(--text);
  overflow: auto;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(0 0 0 / .85); }
.lightbox-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  width: min(100%, 80rem);
  height: 100%;
  min-height: 12rem;
  gap: .5rem;
}
.lightbox-header, .lightbox-footer, .lightbox-navigation { display: flex; align-items: center; gap: .75rem; }
.lightbox-header, .lightbox-footer { justify-content: space-between; }
.lightbox-header h2 {
  margin: 0;
  color: var(--title);
  font: 700 1rem/1.4 "Trebuchet MS", Trebuchet, Verdana, sans-serif;
  letter-spacing: .03em;
  text-transform: none;
}
.lightbox button {
  flex-shrink: 0;
  min-height: 44px;
  min-width: 44px;
  padding: .5rem .8rem;
  border: 1px solid #666;
  border-radius: 3px;
  background: #151515;
  color: var(--text);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}
.lightbox button:hover { border-color: var(--title); background: #242424; }
.lightbox-close span { margin-left: .3rem; font-size: 1.3em; line-height: 1; }
.lightbox-stage { display: grid; place-items: center; min-width: 0; min-height: 0; overflow: hidden; }
.lightbox-image { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; }
.lightbox [hidden] { display: none; }
.lightbox-status { margin: 0; color: var(--muted); font-size: .9rem; text-align: center; }
.lightbox-counter { min-width: 3.5rem; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.lightbox-original { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; }
#lightbox-help { margin: 0; color: var(--muted); text-align: center; font-size: .75rem; }
@media (max-width: 32rem) {
  .lightbox { padding: .65rem; }
  .lightbox-header h2 { font-size: .85rem; }
  .lightbox-footer { flex-direction: column; gap: .1rem; }
  .lightbox-navigation { justify-content: center; width: 100%; }
}
@media (max-height: 30rem) and (min-width: 32rem) {
  .lightbox { padding: .5rem 1rem; }
  .lightbox-panel { gap: .2rem; }
  #lightbox-help { display: none; }
}
@media (max-width: 44rem) {
  body { padding: 1.2rem 1rem; }
  .site-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .site-header { padding: 1.6rem .6rem 1.3rem; }
  .site-title { letter-spacing: .12em; }
  .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
  .sidebar-section { margin: 0; }
  .sidebar li { margin-bottom: .6rem; }
  .sidebar a { display: inline-block; padding-block: .15rem; }
  .pagination { gap: .8rem; }
  .page-position { order: 3; flex-basis: 100%; text-align: center; }
}
@media (max-width: 23rem) {
  .site-title { font-size: 1.45rem; letter-spacing: .08em; }
  .sidebar { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  :root { --background: #fff; --text: #111; --muted: #555; --line: #ccc; --link: #24476c; --title: #254c24; }
  body { padding: 0; font-size: 11pt; }
  .site-header { outline: none; }
  .site-title, .site-title:hover { color: #111; }
  .site-layout { display: block; }
  .sidebar, .pagination, .post-navigation, .skip-link { display: none; }
  .post, .comment { break-inside: avoid; }
}
