:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e8e8e8;
  --link: #1f5bd8;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.site-header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 20px;
}

.home-link {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.post {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 20px 100px;
}

.intro-figure {
  margin: 0 0 18px;
}

.intro-image {
  display: block;
  width: 100%;
  border-radius: 10px;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

h1 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.subtitle {
  margin-top: 14px;
  font-family: "Inter", sans-serif;
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.6;
}

.meta {
  margin-top: 18px;
  margin-bottom: 42px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
}

h2 {
  margin-top: 52px;
  margin-bottom: 16px;
  font-family: "Inter", sans-serif;
  font-size: 1.7rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 700;
}

p {
  margin: 0 0 20px;
  font-size: 1.15rem;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
  margin: 22px 0 12px;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.local-video {
  width: 100%;
  border-radius: 10px;
  margin: 18px 0 10px;
  background: #000;
}

.benchmark-figure {
  margin: 18px auto 14px;
  max-width: 620px;
}

.benchmark-image {
  display: block;
  width: 100%;
  border-radius: 10px;
}

.caption {
  margin-top: 6px;
  font-size: 0.96rem;
  color: var(--muted);
}

blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--text);
  font-size: 1.2rem;
  color: #222;
}

hr {
  margin: 56px 0 32px;
  border: 0;
  border-top: 1px solid var(--border);
}

.references {
  padding-left: 22px;
}

.references li {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.7;
}

.ref-title {
  font-weight: 600;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #f6f6f6;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.92em;
}

@media (max-width: 640px) {
  .post {
    padding-top: 40px;
    padding-bottom: 72px;
  }

  p {
    font-size: 1.08rem;
  }

  h2 {
    font-size: 1.45rem;
  }
}
