:root {
  --bg: #f5f5f3;
  --text: #111111;
  --muted: #8e8e8a;
  --border: #e0e0dd;
  --accent: #111111;
  --max: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

code,
pre {
  font-family: "SFMono-Regular", "IBM Plex Mono", "Menlo", monospace;
}

.page-shell {
  min-height: 100vh;
}

.container {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 66px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  padding: 0 48px;
}

.nav-tagline {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a,
.footer-links a,
.eyebrow,
.card-kicker,
.article-row-index,
.article-row-meta,
.home-lead-meta,
.article-meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a,
.footer-links a {
  transition: opacity 0.2s;
}

.site-nav a:hover,
.footer-links a:hover,
.button:hover,
.home-lead-title a:hover,
.article-row-main h3 a:hover {
  opacity: 0.55;
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 52px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  padding: 0 48px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-license {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

#main-content {
  padding-top: 66px;
  padding-bottom: 52px;
}

.home-page,
.home-page .page-shell {
  height: 100vh;
  overflow: hidden;
}

.home-page #main-content {
  height: calc(100vh - 118px);
}

.home-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

.home-left,
.home-right {
  padding: 48px;
}

.home-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-right {
  overflow-y: auto;
  border-left: 1px solid var(--border);
  scroll-behavior: smooth;
}

.home-right::-webkit-scrollbar {
  width: 4px;
}

.home-right::-webkit-scrollbar-track {
  background: transparent;
}

.home-right::-webkit-scrollbar-thumb {
  background: #ccccca;
  border-radius: 2px;
}

.eyebrow,
.card-kicker {
  margin-bottom: 18px;
  color: var(--muted);
}

.lead-entry,
.article-row,
.article-header,
.article-body,
.panel-empty {
  border-top: 1px solid var(--border);
}

.home-lead-title,
.feed-title,
.section-title,
.article-title,
.article-row-main h3 {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.home-lead-title {
  max-width: 11ch;
  font-size: clamp(34px, 4.4vw, 70px);
}

.feed-title {
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.15;
}

.section-title,
.article-title {
  max-width: 14ch;
  font-size: clamp(34px, 4vw, 64px);
}

.home-lead-dek,
.feed-copy,
.section-copy,
.article-dek,
.article-row-main p,
.panel-empty p,
.prose p,
.prose li,
.prose blockquote {
  color: #555555;
}

.home-lead-dek,
.feed-copy,
.section-copy,
.article-dek {
  max-width: 36rem;
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.7;
}

.home-lead-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  color: var(--muted);
}

.home-caption {
  max-width: 320px;
  color: #555555;
  font-size: 14px;
}

.home-feed-intro {
  max-width: 560px;
  margin-bottom: 32px;
}

.article-feed {
  display: grid;
}

.article-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(150px, 220px);
  gap: 20px;
  padding: 22px 0;
}

.article-row-index,
.article-row-meta {
  color: var(--muted);
}

.article-row-main h3 {
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.08;
}

.article-row-main p {
  margin-top: 10px;
  font-size: 15px;
}

.article-row-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 32px;
  padding: 0 16px;
  border: 1px solid #111111;
  border-radius: 2px;
  background: #111111;
  color: #f5f5f3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.page-frame,
.article-shell {
  padding: 48px 0 80px;
}

.page-intro .container,
.page-feed .container,
.article-shell .container {
  padding: 0 48px;
}

.page-feed-list,
.article-header {
  border-top: 1px solid var(--border);
}

.page-detail,
.page-detail .site-header,
.page-detail .site-footer {
  background: #ffffff;
}

.article-grid {
  max-width: 840px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--text);
}

.article-label {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-header {
  padding-top: 0;
  border-top: 0;
}

.article-title {
  margin: 0;
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.article-dek {
  max-width: 580px;
  margin-top: 18px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
  color: #444444;
}

.article-meta {
  gap: 16px;
  margin-top: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.article-meta span + span::before {
  content: "/";
  margin-right: 16px;
  opacity: 0.4;
}

.article-body {
  margin-top: 48px;
  border-top: 0;
}

.article-divider {
  height: 1px;
  margin: 56px 0 0;
  background: var(--border);
}

.prose {
  max-width: 840px;
  font-size: 16px;
  line-height: 1.75;
}

.prose p {
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: #222222;
}

.prose a {
  color: var(--text);
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(17, 17, 17, 0.32);
  text-underline-offset: 0.18em;
  transition: color 0.2s, text-decoration-color 0.2s, background-color 0.2s;
}

.prose a:hover {
  color: #000000;
  text-decoration-color: rgba(17, 17, 17, 0.72);
  background-color: rgba(17, 17, 17, 0.05);
}

.prose h2,
.prose h3 {
  color: var(--text);
}

.prose h2 {
  margin: 56px 0 20px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 36px 0 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.prose ul,
.prose ol {
  margin: 0 0 24px;
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 10px;
  color: #222222;
}

.prose code {
  padding: 2px 6px;
  background: #f0f0ee;
  color: #1a1a1a;
  font-size: 13px;
}

.prose pre,
.prose .highlight {
  margin: 24px 0;
}

.prose .highlight {
  overflow-x: auto;
  border: 1px solid var(--border);
  background: #f4f4f2;
}

.prose .highlight pre,
.prose pre code {
  display: block;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
}

.prose pre {
  border: 1px solid var(--border);
  background: #f4f4f2;
}

.prose .highlight pre {
  margin: 0;
  border: 0;
  background: transparent;
}

.prose pre code {
  padding: 18px 20px;
  background: transparent;
}

.prose .highlight pre code {
  padding: 0;
}

.prose blockquote {
  margin: 32px 0;
  padding: 18px 24px;
  border-left: 3px solid var(--text);
  background: #fafaf8;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose table {
  width: 100%;
  margin: 32px 0;
  border-collapse: collapse;
  font-size: 13px;
}

.prose th {
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-align: left;
  text-transform: uppercase;
}

.prose td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--border);
  color: #333333;
  vertical-align: top;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.panel-empty {
  padding: 24px 0;
}

.posts-hero-frame {
  padding-top: 0;
}

.posts-hero {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 28px;
  padding: 26px 0 0;
}

.posts-hero-rail {
  color: var(--muted);
}

.posts-hero-date,
.posts-hero-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.posts-hero-date {
  margin-top: 14px;
}

.posts-hero-title {
  max-width: 12ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 5vw, 78px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.posts-hero-title a {
  transition: opacity 0.2s;
}

.posts-hero-title a:hover {
  opacity: 0.55;
}

.posts-hero-dek {
  max-width: 620px;
  margin-top: 20px;
  color: #444444;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
}

.posts-hero-meta {
  margin-top: 24px;
}

.home-page .hero-body-blog {
  width: 100%;
  max-width: 100%;
}

.launch-home .posts-hero {
  grid-template-columns: 1fr;
  gap: 0;
  padding-top: 0;
}

.launch-home .card-kicker,
.launch-home .article-row-index,
.launch-home .article-row-meta,
.launch-home .posts-hero-date,
.launch-home .posts-hero-meta {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.launch-home .posts-hero-date {
  display: block;
  margin-top: 10px;
  white-space: nowrap;
}

.launch-home .posts-hero-title {
  max-width: none;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.launch-home .posts-hero-dek {
  max-width: none;
  color: #444444;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
}

.launch-home .posts-readmore {
  margin-top: 18px;
}

.launch-home .posts-readmore a {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s;
}

.launch-home .posts-readmore a:hover {
  opacity: 0.55;
}

.launch-blog-feed {
  margin-top: 28px;
}

.launch-blog-empty {
  margin-top: 28px;
  border-top: 1px solid var(--border);
}

.launch-home .article-row {
  grid-template-columns: 36px minmax(0, 1fr) minmax(110px, 150px);
  gap: 14px;
  padding: 16px 0;
}

.launch-home .article-row-main h3 {
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.28;
}

.launch-home .article-row-main p {
  margin-top: 8px;
  color: #555555;
  font-size: 15px;
  line-height: 1.6;
}

.launch-home .article-row-main .posts-readmore {
  margin-top: 14px;
}

@media (max-width: 1280px) {
  .launch-home .posts-hero {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .launch-home .posts-hero-title {
    font-size: clamp(26px, 2.5vw, 34px);
  }

  .launch-home .posts-hero-dek {
    max-width: none;
    font-size: 15px;
  }

  .launch-home .article-row {
    grid-template-columns: 32px minmax(0, 1fr) minmax(96px, 128px);
    gap: 12px;
  }

  .launch-home .article-row-main h3 {
    font-size: clamp(17px, 1.35vw, 21px);
  }

  .launch-home .article-row-main p {
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .home-page,
  .home-page .page-shell {
    height: auto;
    overflow: auto;
  }

  .home-page #main-content {
    height: auto;
  }

  .header-row,
  .footer-row,
  .page-intro .container,
  .page-feed .container,
  .article-shell .container,
  .home-left,
  .home-right {
    padding-left: 24px;
    padding-right: 24px;
  }

  .home-split {
    display: flex;
    flex-direction: column;
  }

  .home-right {
    overflow-y: visible;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .site-footer {
    position: static;
    height: auto;
  }

  .footer-row {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  #main-content,
  .home-page #main-content {
    padding-bottom: 0;
  }

  .article-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .article-row-meta {
    grid-column: 2;
    justify-items: start;
  }

  .article-shell {
    padding-bottom: 56px;
  }

  .posts-hero {
    grid-template-columns: 1fr;
  }

  .launch-home .posts-hero-title {
    font-size: clamp(28px, 5vw, 36px);
  }

  .launch-home .posts-hero-dek {
    max-width: 100%;
    font-size: 15px;
  }

  .launch-blog-feed {
    margin-top: 24px;
  }

  .launch-home .article-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .article-grid,
  .prose {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: auto;
  }

  .header-row {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  #main-content,
  .home-page #main-content {
    padding-top: 102px;
  }

  .site-nav,
  .footer-links {
    flex-wrap: wrap;
    gap: 14px;
  }

  .article-shell {
    padding-top: 28px;
    padding-bottom: 56px;
  }

  .back-link {
    margin-bottom: 32px;
  }

  .article-title {
    font-size: clamp(36px, 10vw, 48px);
  }

  .article-dek {
    font-size: 17px;
  }

  .article-meta {
    gap: 10px;
    padding-bottom: 24px;
  }

  .article-meta span + span::before {
    margin-right: 10px;
  }

  .posts-hero-title {
    font-size: clamp(38px, 11vw, 56px);
  }

  .posts-hero-dek {
    font-size: 17px;
  }

  .prose pre,
  .prose .highlight {
    margin: 20px 0;
  }

  .prose .highlight pre,
  .prose pre code {
    padding: 14px 16px;
    font-size: 13px;
  }

  .article-row {
    grid-template-columns: 1fr;
  }

  .article-row-meta {
    grid-column: auto;
  }
}
