html {
  color-scheme: light dark;
}

body {
  max-width: 42em;
  margin: 3em auto;
  padding: 0 1.5em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15em;
  line-height: 1.6;
  color: #222;
  background: #fdfdfb;
}

@media (prefers-color-scheme: dark) {
  body {
    color: #ddd;
    background: #1a1a1a;
  }
  a { color: #8ab4f8; }
  a:visited { color: #b39ddb; }
  hr { border-color: #444; }
}

h1 {
  font-size: 2em;
  margin-top: 0;
  margin-bottom: 0.2em;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 1.3em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
  margin-top: 2em;
  margin-bottom: 0.75em;
}

@media (prefers-color-scheme: dark) {
  h2 { color: #999; }
}

p {
  margin: 0 0 1.1em;
}

em {
  color: #555;
}

@media (prefers-color-scheme: dark) {
  em { color: #aaa; }
}

hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 2em 0;
}

ul {
  padding-left: 1.3em;
}

li {
  margin-bottom: 0.6em;
}

a {
  color: #1a4b8c;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 75, 140, 0.3);
}

a:hover {
  border-bottom-color: currentColor;
}

@media (prefers-color-scheme: dark) {
  a { border-bottom-color: rgba(138, 180, 248, 0.35); }
}

small {
  color: #888;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85em;
  color: #666;
  margin-bottom: 0.25em;
}

.byline {
  font-style: italic;
  color: #555;
  margin-bottom: 1.5em;
}

figure {
  margin: 1.5em 0;
  text-align: center;
}

figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

figcaption {
  font-size: 0.85em;
  color: #666;
  margin-top: 0.4em;
}

@media (prefers-color-scheme: dark) {
  .byline, .kicker, .source, figcaption { color: #999; }
}

.top-matter {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5em;
}

.top-matter-left {
  flex: 1 1 auto;
}

.top-matter-right {
  flex: 0 0 auto;
}

.teaser-photo {
  display: block;
  width: 192px;
  border-bottom: none;
}

.teaser-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em;
  margin: 1.5em 0;
}

.gallery-grid a {
  border-bottom: none;
}

.gallery-grid a {
  width: calc(33.333% - 0.55em);
  aspect-ratio: 1 / 1;
  background: #f0efe9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  overflow: hidden;
}

.gallery-grid img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

@media (prefers-color-scheme: dark) {
  .gallery-grid a { background: #262626; }
}

@media (max-width: 500px) {
  .gallery-grid a {
    width: calc(50% - 0.4em);
  }
}
