:root {
  color-scheme: light;
  --logo-primary: #ff6b35;
  --logo-amber: #f7931e;
  --logo-deep: #c1440e;
  --logo-glow: #ffaa55;
  --logo-line: #ff8855;
  --logo-cream: #fff8f3;
  --ink: #211711;
  --muted: #6d5d55;
  --line: #e9d9cf;
  --paper: #fffdfb;
  --surface: #fff8f3;
  --accent: var(--logo-primary);
  --accent-strong: var(--logo-deep);
  --code: #20110c;
  --code-bar: #2d1811;
  --code-fg: #fff8f3;
  --code-muted: #d5aa96;
  --rl-syntax-primary: var(--logo-primary);
  --rl-syntax-secondary: var(--logo-amber);
  --rl-syntax-soft: var(--logo-glow);
  --rl-syntax-line: var(--logo-line);
  --rl-syntax-muted: #bc8b74;
  --rl-syntax-strong: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: white;
}

.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(233, 217, 207, 0.88);
  background: rgba(255, 253, 251, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 620;
}

nav a { text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent-strong); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.92fr);
  gap: clamp(40px, 7vw, 88px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) 32px 80px;
}

.hero h1, .page-title h1, .article-shell h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(3.25rem, 7vw, 6.3rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.status-label { display: flex; align-items: center; gap: 9px; }
.status-label span { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 5px rgba(255, 107, 53, 0.13); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  font-weight: 730;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--accent); color: white; }
.button.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.button.secondary { background: transparent; color: var(--accent-strong); }
.button.secondary:hover { background: var(--surface); }
.button.dark { margin-top: 16px; border-color: var(--ink); background: var(--ink); color: white; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.82rem;
  list-style: none;
}

.hero-facts li::before { content: "·"; margin-right: 7px; color: var(--accent); font-weight: 900; }

.compiler-visual {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #4b271a;
  border-radius: 12px;
  background: var(--code);
  color: var(--code-fg);
  box-shadow: 0 26px 70px rgba(95, 38, 14, 0.22);
}

.visual-bar, .visual-output {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--code-bar);
  color: var(--code-muted);
  font-size: 0.76rem;
}

.visual-state::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 999px; background: #62c980; }

.compiler-visual pre, .article-shell pre, .inline-code {
  margin: 0;
  overflow: auto;
  font-size: 0.9rem;
  line-height: 1.72;
}

.compiler-visual pre { padding: clamp(22px, 4vw, 32px); }
.compiler-visual code, .article-shell code, .inline-code code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
pre code.language-restrict { display: block; color: var(--code-fg); white-space: pre; }
.language-restrict .hljs-keyword { color: var(--rl-syntax-primary); font-weight: 720; }
.language-restrict .hljs-title { color: var(--rl-syntax-strong); font-weight: 720; }
.language-restrict .hljs-type { color: var(--rl-syntax-secondary); font-weight: 650; }
.language-restrict .hljs-literal { color: var(--rl-syntax-line); font-weight: 650; }
.language-restrict .hljs-string, .language-restrict .hljs-number { color: var(--rl-syntax-soft); }
.language-restrict .hljs-comment { color: var(--rl-syntax-muted); font-style: italic; }
.language-restrict .hljs-operator { color: var(--rl-syntax-primary); font-weight: 720; }

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1136px;
  margin: 0 auto 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.signal-strip div { padding: 19px 24px; }
.signal-strip div + div { border-left: 1px solid var(--line); }
.signal-strip strong, .signal-strip span { display: block; }
.signal-strip strong { font-size: 0.9rem; }
.signal-strip span { margin-top: 2px; color: var(--muted); font-size: 0.78rem; }

.band { border-top: 1px solid var(--line); background: var(--surface); padding: 84px 32px; }
.section-heading, .feature-grid, .split, .post-list, .page-shell, .article-shell { max-width: 1136px; margin: 0 auto; }
.section-heading { max-width: 1136px; }
.section-heading > p:last-child { max-width: 670px; color: var(--muted); }
.section-heading h2, .split h2, .release-callout h2 { margin: 0; max-width: 760px; font-size: clamp(2.25rem, 4.5vw, 4rem); line-height: 1.04; letter-spacing: -0.04em; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.feature-grid article { display: flex; min-height: 300px; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.feature-index { color: var(--accent); font-size: 0.78rem; font-weight: 800; }
.feature-grid h3, .post-list span { margin: 28px 0 8px; font-size: 1.2rem; line-height: 1.25; }
.feature-grid p, .split p, .page-title p, .article-shell p, .post-list p, .post-list small { color: var(--muted); }
.feature-grid .text-link { margin-top: auto; padding-top: 20px; }

.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; padding: 96px 32px; }
.prose-stack > p { margin-top: 0; font-size: 1.08rem; }
.inline-code { margin-top: 28px; padding: 24px; border-radius: 10px; background: var(--code); color: var(--code-fg); }

.release-callout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 72px; max-width: 1136px; margin: 0 auto 96px; padding: 48px; border-radius: 14px; background: var(--accent); color: #2c1107; }
.release-callout .eyebrow { color: #5b210c; }
.release-callout p { margin-top: 0; }

.horizontal-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.post-list.single { grid-template-columns: minmax(0, 760px); }
.post-list.standalone { grid-template-columns: 1fr; max-width: 860px; margin: 42px 0 0; }
.post-list a { display: flex; min-height: 220px; flex-direction: column; padding: 25px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); text-decoration: none; transition: transform 160ms ease, border-color 160ms ease; }
.post-list a:hover { transform: translateY(-2px); border-color: var(--accent); }
.post-list span { margin-top: 22px; }
.post-list p { margin: auto 0 0; font-size: 0.9rem; }
.post-list small { font-size: 0.75rem; }

.text-link { color: var(--accent-strong); font-weight: 730; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.page-shell, .article-shell { padding: 80px 32px 100px; }
.page-title { max-width: 820px; }
.page-title h1 { font-size: clamp(3rem, 7vw, 5.8rem); }
.page-title p { max-width: 700px; font-size: 1.1rem; }

.article-shell article { max-width: 780px; }
.article-shell h1 { font-size: clamp(2.7rem, 6vw, 4.8rem); }
.article-shell h2 { margin-top: 48px; font-size: 1.65rem; line-height: 1.25; }
.article-shell p, .article-shell li { font-size: 1.03rem; }
.article-lede { color: var(--ink) !important; font-size: 1.2rem !important; line-height: 1.7; }
.article-summary { margin: 36px 0; padding: 24px 26px; border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 8px; background: var(--surface); }
.article-summary strong { font-size: 0.84rem; letter-spacing: 0.08em; text-transform: uppercase; }
.article-summary p { margin: 8px 0 0; }
.article-shell pre { margin: 30px 0; padding: 26px; border-radius: 10px; background: var(--code); color: var(--code-fg); }
.article-shell code:not(.language-restrict) { padding: 0.12em 0.35em; border-radius: 4px; background: var(--surface); color: var(--accent-strong); }
.article-meta { margin: 18px 0 34px; font-size: 0.88rem !important; }
.article-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.not-found { max-width: 800px; min-height: calc(100vh - 69px); padding: 110px 32px; margin: 0 auto; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px max(32px, calc((100vw - 1136px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; }
footer a { color: var(--accent-strong); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .compiler-visual { max-width: 680px; }
  .feature-grid, .post-list { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 230px; }
  .split, .release-callout { grid-template-columns: 1fr; gap: 34px; }
  .signal-strip { margin-inline: 24px; }
}

@media (max-width: 640px) {
  .header-inner { min-height: auto; align-items: flex-start; flex-direction: column; padding: 14px 20px; }
  nav { width: 100%; gap: 0; justify-content: space-between; font-size: 0.82rem; }
  .hero { padding: 52px 20px 60px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero-actions .button { width: 100%; }
  .signal-strip { grid-template-columns: 1fr; margin-inline: 20px; }
  .signal-strip div + div { border-top: 1px solid var(--line); border-left: 0; }
  .band { padding: 66px 20px; }
  .split { padding: 72px 20px; }
  .release-callout { margin: 0 20px 72px; padding: 30px 24px; }
  .horizontal-heading { align-items: flex-start; flex-direction: column; }
  .page-shell, .article-shell { padding: 58px 20px 80px; }
  .post-list.standalone { margin-top: 32px; }
  footer { align-items: flex-start; flex-direction: column; padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
