:root {
  color-scheme: dark;
  --bg: #151515;
  --surface: #1f1f1f;
  --text: #eeeeee;
  --muted: #b8b8b8;
  --line: #444444;
  --link: #b7d8ff;
  --overlay: rgba(0, 0, 0, 0.64);
}

* {
  box-sizing: border-box;
}

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  font-size: 1rem;
}

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

img,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

iframe {
  border: 0;
  aspect-ratio: 16 / 9;
}

body > header,
body > main,
body > nav,
body > footer {
  width: min(100% - 1rem, 1120px);
  margin: 0 auto;
}

body > header {
  padding: 0.5rem 0;
  text-align: center;
}

.site-title {
  margin: 0.25rem 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

body > header a {
  color: inherit;
  text-decoration: none;
}

body > header p {
  margin: 0.25rem 0;
  color: var(--muted);
}

main {
  padding-top: 0.75rem;
  text-align: center;
}

body > nav {
  padding: 1rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  line-height: 2;
}

body > nav a {
  display: inline-block;
  margin: 0 0.35rem 0.75rem;
  padding: 0.1rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  text-decoration: none;
}

body > footer {
  padding: 0.5rem 0;
  text-align: center;
  color: var(--muted);
}

body > footer p {
  margin: 0;
}

.entries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.entry-card {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface);
  aspect-ratio: 16 / 9;
}

.entry-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.entry-card-title,
.entry-card footer {
  position: absolute;
  z-index: 1;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0.4rem;
  background: var(--overlay);
  text-align: left;
  line-height: 1.35;
  color: #fafafa;
}

.entry-card-title {
  top: 0;
  font-size: 0.82rem;
  font-weight: 400;
}

.entry-card footer {
  bottom: 0;
  font-size: 0.75rem;
}

.entry-card footer a {
  margin-right: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.entry-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

article {
  width: min(100%, 760px);
  margin: 0 auto;
  text-align: left;
}

article h1 {
  font-size: 1.75rem;
  line-height: 1.35;
}

article h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
  line-height: 1.4;
}

article p {
  margin: 0.75rem 0;
}

article figure {
  margin: 1rem 0;
}

article figure p {
  margin: 0;
}

article figcaption,
article cite {
  color: var(--muted);
  font-size: 0.85rem;
}

article img {
  display: block;
  margin: 0 auto;
}

article blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--line);
  background: var(--surface);
}

.categories {
  margin: 0 0 2.66rem;
  font-size: 0.75rem;
}

.categories a {
  margin-right: 0.5rem;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 720px) {
  body > header,
  body > main,
  body > nav,
  body > footer {
    width: min(100% - 0.75rem, 1120px);
  }

  .entries {
    grid-template-columns: 1fr;
  }
}
