/* One stylesheet for every page. System fonts, one accent colour. */
:root {
  --bg: #ffffff;
  --fg: #15181c;
  --muted: #4a5159;
  --accent: #0a5aa8;
  --rule: #d5d9de;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --fg: #e9ecef;
    --muted: #aab2bb;
    --accent: #7db8f5;
    --rule: #2b3139;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  max-width: 70ch;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

h1, h2, h3 { line-height: 1.25; margin: 0; }
h1 { font-size: 2.1rem; letter-spacing: -0.01em; }
h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.25rem;
}
h3 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0.4rem 0 0; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--fg); }

a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

header { margin-bottom: 2.5rem; }
.lead { font-size: 1.2rem; margin-top: 0.75rem; }
.meta, .when { color: var(--muted); }
.meta { margin-top: 0.5rem; }
.back { margin: 0 0 1rem; font-size: 0.95rem; }
.stack { color: var(--muted); font-size: 0.95rem; margin-top: 0.1rem; }
.facts { margin: 1rem 0 0; padding-left: 1.25rem; font-weight: 600; }
.facts li + li { margin-top: 0.2rem; }

.links, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.25rem; }
.links { margin-top: 1rem; }
.actions { margin-top: 0.75rem; }
.links span:empty, .actions span:empty { display: none; }

.button {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border: 2px solid var(--accent);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}
.button:hover { background: var(--accent); color: var(--bg); }

section { margin-top: 2.75rem; }
main > section:first-child { margin-top: 0; }

.rows { list-style: none; margin: 0; padding: 0; }
.row { margin: 0 0 1.75rem; }
.row:last-child { margin-bottom: 0; }

.head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1.5rem;
}
.when { white-space: nowrap; font-size: 0.95rem; text-align: right; }

main ul:not(.rows):not(.photos) { padding-left: 1.25rem; margin: 0.4rem 0 0; }
main li + li { margin-top: 0.25rem; }
.rows li + li { margin-top: 0; }

.photos { list-style: none; display: grid; gap: 1rem; margin: 0.75rem 0 0; padding: 0; }
.photos img { display: block; max-width: 100%; height: auto; border-radius: 4px; }
.photos p { font-size: 0.95rem; color: var(--muted); }

footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); }

@media (max-width: 600px) {
  body { padding: 1.5rem 1rem 2.5rem; font-size: 1rem; }
  h1 { font-size: 1.75rem; }
  .head { display: block; }
  .when { display: block; white-space: normal; text-align: left; margin-top: 0.1rem; }
}

@media print {
  :root { --bg: #ffffff; --fg: #000000; --muted: #333333; --accent: #000000; --rule: #999999; }
  body { max-width: none; padding: 0; font-size: 10.5pt; line-height: 1.4; }
  section { margin-top: 1.25rem; break-inside: avoid; }
  .row { margin-bottom: 0.75rem; break-inside: avoid; }
  a { color: #000000; text-decoration: none; }
  a[href^="http"]::after, a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  .button { border: 0; padding: 0; }
  footer { display: none; }
}

/* Windstream gallery: photos and clips in a responsive grid. */
.gallery { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.gallery img, .gallery video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--rule); }
.gallery p { margin: 0.35rem 0 0; }
@media (min-width: 60rem) { body:has(.gallery) { max-width: 66rem; } }
