:root {
  --bg: #f2f2f2;
  --bg-soft: #ffffff;
  --ink: #111111;
  --muted: #666666;
  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.22);
  --accent: #111111;
  --accent-soft: rgba(17, 17, 17, 0.05);
  --max-page: 70rem;
  --max-copy: 46rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(17, 17, 17, 0.04), transparent 26rem),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.72;
  min-height: 100dvh;
}

a {
  color: inherit;
  text-decoration-color: rgba(17, 17, 17, 0.3);
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-color: rgba(17, 17, 17, 0.85);
}

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

.page-shell {
  width: min(var(--max-page), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 100dvh;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-header {
  margin-bottom: 2.5rem;
  padding: 0.25rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.site-brand,
.site-tagline,
.site-footer,
.language-switch,
.eyebrow,
.post-meta,
.post-card-meta,
.post-home-link,
.section-head p,
.lead-label {
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.site-brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.language-switch {
  display: inline-flex;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-switch span,
.language-switch a {
  text-decoration: none;
}

.language-switch span {
  color: var(--ink);
}

.site-main {
  display: grid;
  gap: 2.5rem;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: rgba(17, 17, 17, 0.42);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: rgba(17, 17, 17, 0.42);
  text-decoration-color: rgba(17, 17, 17, 0.18);
}

.section-head {
  max-width: var(--max-copy);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.75rem;
}

.section-head h2 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-list {
  display: grid;
  gap: 0;
  width: 100%;
  max-width: var(--max-copy);
  margin: 0 auto;
}

.post-card {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.post-card:first-child {
  border-top: none;
}

.post-card:last-child {
  border-bottom: 1px solid var(--line);
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.post-card h3 {
  margin: 0;
  max-width: 42rem;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  line-height: 1.15;
}

.post-card h3 a {
  text-decoration: none;
}

.post-card h3 a:hover {
  color: var(--accent);
}

.post-card p:last-child {
  margin: 0.55rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.post {
  max-width: var(--max-copy);
  width: 100%;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 2.25rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.post-home-link {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-home-link a {
  text-decoration: none;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-meta p {
  margin: 0;
}

.post-summary {
  margin: 1rem 0 0;
  color: #2a2f38;
  font-size: 1.18rem;
  line-height: 1.55;
}

.post-content > :first-child {
  margin-top: 0;
}

.post-content h2,
.post-content h3 {
  margin: 2.2rem 0 0.65rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.2;
}

.post-content h2 {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-content h3 {
  font-size: 1.25rem;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content table,
.post-content blockquote {
  margin: 0.9rem 0;
}

.post-content ul,
.post-content ol {
  padding-left: 1.35rem;
}

.post-content li + li {
  margin-top: 0.3rem;
}

.post-content strong {
  font-weight: 700;
}

.post-content code {
  padding: 0.12rem 0.38rem;
  border-radius: 0.3rem;
  background: rgba(23, 23, 23, 0.06);
  font-size: 0.88em;
}

.post-content blockquote {
  margin-left: 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}

.post-content blockquote p {
  margin: 0;
}

.post-media {
  margin: 1.5rem 0;
}

.post-video {
  display: block;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  background: #111111;
  box-shadow: 0 1.25rem 3rem rgba(17, 17, 17, 0.14);
}

.post-media figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.86rem;
  line-height: 1.45;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.post-content th,
.post-content td {
  padding: 0.75rem 0.6rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.post-content th {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.post-nav-link,
.post-nav-spacer {
  min-height: 100%;
}

.post-nav-link {
  display: block;
  padding: 1rem 0;
  text-decoration: none;
}

.post-nav-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-nav-title {
  display: block;
  font-size: 1.08rem;
  line-height: 1.35;
}

.post-nav-link.is-older {
  text-align: right;
}

.post-nav-link:hover .post-nav-title {
  text-decoration: underline;
  text-decoration-color: rgba(17, 17, 17, 0.3);
  text-underline-offset: 0.16em;
}

.page-home .site-main {
  gap: 1.5rem;
}

@media (max-width: 720px) {
  html {
    font-size: 17px;
  }

  .page-shell {
    width: min(100% - 1.25rem, var(--max-page));
    padding-top: 1.25rem;
    padding-bottom: 2.75rem;
    justify-content: flex-start;
  }

  .site-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
  }

  .post-card {
    padding: 1.1rem 0;
  }

  .post h1 {
    font-size: clamp(1.95rem, 10vw, 3rem);
  }

  .post-summary {
    font-size: 1.08rem;
  }

  .post-content table {
    display: block;
    overflow-x: auto;
  }

  .post-nav {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .post-nav-link.is-older {
    text-align: left;
  }
}
