:root {
  --black-0: #000;
  --black-1: #050505;
  --black-2: #0b0b0d;
  --black-3: #141418;
  --white-0: #fff;
  --white-1: #f2f2f2;
  --white-2: #b7b7bd;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --accent: #f7f7f7;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black-0);
}

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.08), transparent 26rem),
    linear-gradient(180deg, var(--black-0), var(--black-1) 38%, var(--black-0));
  color: var(--white-1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-grid;
  gap: 2px;
  line-height: 1;
}

.brand-mark {
  color: var(--white-0);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-line,
.eyebrow,
.footer-kicker {
  color: var(--white-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--white-2);
  font-size: 14px;
}

.site-nav a:hover,
.footer-link:hover,
.article-footer a:hover {
  color: var(--white-0);
}

.hero {
  display: grid;
  align-content: end;
  min-height: min(62vh, 640px);
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero h1,
.article-header h1 {
  max-width: 960px;
  margin: 12px 0 0;
  color: var(--white-0);
  font-size: clamp(46px, 8vw, 112px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-deck,
.article-deck {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--white-2);
  font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1.35;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 -1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.post-card {
  min-height: 320px;
  background: rgba(5, 5, 5, 0.86);
}

.post-card-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  padding: 28px;
}

.post-card-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--white-2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.post-card h2 {
  margin: 28px 0 16px;
  color: var(--white-0);
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: 0;
}

.post-card p {
  margin: 0;
  color: var(--white-2);
  font-size: 15px;
}

.read-link {
  display: inline-flex;
  width: max-content;
  margin-top: 32px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--white-1);
  font-size: 14px;
  font-weight: 700;
}

.post-card:hover {
  background: var(--black-2);
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 300px;
  padding: 48px;
  background: var(--black-1);
}

.empty-state h2 {
  margin: 8px 0;
  font-size: 36px;
}

.pagination-wrap {
  padding: 28px 0 72px;
  color: var(--white-2);
}

.article-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.article {
  padding: 84px 0 96px;
}

.article-header {
  padding-bottom: 44px;
}

.feature-image {
  margin: 0 0 56px;
  border: 1px solid var(--line);
}

.feature-image figcaption {
  padding: 12px 16px;
  color: var(--white-2);
  font-size: 13px;
}

.article-content {
  color: var(--white-1);
  font-size: 20px;
  line-height: 1.72;
}

.article-content > * {
  margin: 0 0 1.25em;
}

.article-content h2,
.article-content h3 {
  margin-top: 2.2em;
  color: var(--white-0);
  line-height: 1.12;
  letter-spacing: 0;
}

.article-content h2 {
  font-size: 34px;
}

.article-content h3 {
  font-size: 26px;
}

.article-content blockquote {
  margin: 2em 0;
  padding: 8px 0 8px 24px;
  border-left: 2px solid var(--white-0);
  color: var(--white-0);
  font-size: 24px;
  line-height: 1.45;
}

.article-content code,
.article-content pre {
  background: var(--black-3);
  color: var(--white-0);
}

.article-content pre {
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--line);
}

.article-footer,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.article-footer {
  margin-top: 72px;
  padding-top: 24px;
  color: var(--white-2);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list a {
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--white-2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-footer {
  min-height: 120px;
  color: var(--white-2);
}

.footer-copy {
  margin: 6px 0 0;
  font-size: 13px;
}

@media (max-width: 860px) {
  .site-shell {
    padding: 0 18px;
  }

  .site-header,
  .site-footer,
  .article-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .site-nav ul {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero {
    min-height: 52vh;
    padding: 72px 0 48px;
  }

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

  .post-card,
  .post-card-link {
    min-height: 260px;
  }

  .article {
    padding: 60px 0 72px;
  }

  .article-content {
    font-size: 18px;
  }
}
