:root {
  color-scheme: dark;
  --bg: #050505;
  --fg: #f2f2f2;
  --muted: #a6a6a6;
  --faint: #2a2a2a;
  --link: #8db4ff;
  --max: 860px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  width: min(var(--max), calc(100vw - 36px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 54px;
}

.site-title {
  color: var(--fg);
  font-weight: 750;
  text-decoration: none;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--fg);
  opacity: 0.82;
  text-decoration: none;
}

.social-link:hover {
  opacity: 1;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.intro {
  max-width: 720px;
  margin: 8px auto 64px;
}

.intro-image {
  margin: 0;
  background: #fff;
}

.intro-image img {
  display: block;
  width: 100%;
  height: auto;
}

.post h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.intro-copy {
  padding-top: 16px;
}

.intro p,
.post-date {
  color: var(--muted);
  margin: 0;
}

.intro p {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.48;
}

.post-list {
  border-top: 1px solid var(--faint);
}

.post-link {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--faint);
  color: var(--fg);
  text-decoration: none;
}

.post-link-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--faint);
  background: #000;
}

.post-link-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.post-link-copy {
  display: block;
  min-width: 0;
  align-self: center;
}

.post-link-main {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.post-link-title {
  display: block;
  min-width: 0;
  overflow-wrap: break-word;
}

.post-link:hover .post-link-title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.post-link-date {
  color: var(--muted);
  white-space: nowrap;
}

.post-link-description {
  display: block;
  max-width: 560px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.48;
}

.post-header {
  margin-bottom: 40px;
}

.post-body h2,
.post-body h3 {
  margin-top: 44px;
  line-height: 1.2;
}

.post-body h3 {
  font-size: 1.2rem;
}

.post-body p,
.post-body ul,
.post-body ol,
.post-body blockquote {
  margin: 0 0 22px;
}

.post-body blockquote {
  border-left: 2px solid var(--fg);
  color: var(--fg);
  padding-left: 18px;
}

.post-note {
  color: var(--muted);
  font-size: 0.94rem;
  font-style: italic;
}

.post-hero,
.image-pair {
  margin: 34px 0;
}

.post-hero img,
.image-pair img {
  display: block;
  width: 100%;
  border: 1px solid var(--faint);
  background: #000;
}

.post-hero img {
  height: auto;
}

.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.image-pair img {
  aspect-ratio: 16 / 10;
  height: 100%;
  object-fit: cover;
}

.post-hero figcaption,
.image-pair figcaption {
  margin-top: 9px;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.post-body video {
  display: block;
  width: min(100%, 420px);
  max-height: 78vh;
  margin: 34px 0;
  margin-right: auto;
  margin-left: auto;
  border: 1px solid var(--faint);
  background: #000;
}

.post-body video.wide-video {
  width: 100%;
}

.post-body code {
  font-size: 0.92em;
}

.site-footer {
  display: flex;
  gap: 14px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--faint);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--fg);
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .page {
    width: min(var(--max), calc(100vw - 28px));
    padding-top: 32px;
  }

  .site-header {
    margin-bottom: 52px;
  }

  .intro {
    margin: 10px 0 50px;
  }

  .intro p {
    max-width: none;
    font-size: 0.95rem;
  }

  .post-link {
    display: block;
    padding: 26px 0;
  }

  .post-link-image {
    width: 100%;
    margin-bottom: 16px;
  }

  .post-link-main {
    display: block;
  }

  .post-link-date {
    display: block;
    margin-top: 4px;
  }

  .post h1 {
    font-size: 31px;
  }

  .image-pair {
    grid-template-columns: 1fr;
  }
}
