:root {
  color-scheme: light;
  --background: oklch(0.985 0.002 247.839);
  --foreground: oklch(0.208 0.042 265.755);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.208 0.042 265.755);
  --primary: oklch(0.623 0.214 259.815);
  --primary-foreground: oklch(0.97 0.014 254.604);
  --secondary: oklch(0.929 0.013 255.508);
  --secondary-foreground: oklch(0.208 0.042 265.755);
  --muted: oklch(0.929 0.013 255.508);
  --muted-foreground: oklch(0.446 0.043 257.281);
  --accent: oklch(0.902 0.033 259.392);
  --accent-foreground: oklch(0.208 0.042 265.755);
  --border: oklch(0.869 0.022 252.894);
  --success: oklch(0.596 0.145 163.225);
  background: var(--background);
  color: var(--foreground);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-synthesis: none;
  line-height: 1.5;
  scrollbar-gutter: stable both-edges;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 10%, oklch(0.902 0.033 259.392 / 72%), transparent 25rem),
    linear-gradient(180deg, var(--card) 0, var(--background) 28rem);
}

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

.page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand,
.nav-links,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.625rem;
  color: var(--foreground);
  font-size: 0.95rem;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
}

.nav-links {
  gap: 0.5rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 0.375rem;
  padding: 0.45rem 0.65rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  background: var(--accent);
  color: var(--accent-foreground);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.78fr);
  gap: 3rem;
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0 2.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 42rem;
  margin-bottom: 1.1rem;
  color: var(--foreground);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.042em;
}

.hero-text {
  max-width: 42rem;
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.hero-text a {
  color: var(--foreground);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: oklch(0.623 0.214 259.815 / 45%);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18rem;
}

.hero-text a:hover {
  color: var(--primary);
  text-decoration-color: currentColor;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1;
  transition:
    background-color 140ms ease,
    color 140ms ease,
    border-color 140ms ease;
}

.github-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.button.primary:hover {
  background: oklch(0.623 0.214 259.815 / 85%);
}

.button.secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.button.secondary:hover {
  background: oklch(0.929 0.013 255.508 / 80%);
}

.railway-button {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.railway-button img {
  display: block;
}

.delegation-flow,
.feature-columns article,
.faq-item {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--card-foreground);
}

.delegation-flow {
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 24px 60px oklch(0.208 0.042 265.755 / 13%);
}

.window-bar {
  display: flex;
  gap: 0.375rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: oklch(0.985 0.002 247.839 / 78%);
}

.window-bar span {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 999px;
  background: var(--border);
}

.flow-steps {
  position: relative;
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem;
}

.flow-steps::before {
  position: absolute;
  top: 1.85rem;
  bottom: 1.85rem;
  left: 2rem;
  width: 1px;
  background: var(--border);
  content: '';
}

.flow-steps article {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.15rem 0.65rem;
  margin: 0;
  border-radius: 0.5rem;
  padding: 0.65rem;
  background: linear-gradient(135deg, oklch(0.929 0.013 255.508 / 48%), oklch(1 0 0 / 72%));
  color: var(--muted-foreground);
}

.flow-steps article:nth-child(2) {
  background: var(--accent);
  color: var(--accent-foreground);
}

.flow-steps span {
  grid-row: span 2;
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  color: var(--foreground);
  font-size: 0.75rem;
  font-weight: 600;
}

.flow-steps h2 {
  margin: 0;
  color: var(--foreground);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.flow-steps p {
  margin: 0;
  font-size: 0.875rem;
}

.features-section,
.architecture-section {
  display: grid;
  gap: 1rem;
}

.demo-section {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-heading {
  max-width: 44rem;
}

.section-heading p:not(.eyebrow) {
  margin: 0.75rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.feature-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.features-section,
.architecture-section {
  margin-bottom: 2.5rem;
}

.demo-section {
  width: auto;
  margin-left: 0;
  transform: none;
}

.live-demo-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid oklch(0.623 0.214 259.815 / 28%);
  border-radius: 0.75rem;
  background: linear-gradient(135deg, oklch(0.623 0.214 259.815 / 10%), oklch(1 0 0 / 88%)), var(--card);
  padding: 1rem;
  box-shadow: 0 18px 45px oklch(0.208 0.042 265.755 / 8%);
}

.live-demo-callout h3 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.live-demo-callout p:not(.eyebrow) {
  margin: 0.55rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.live-demo-callout .button {
  flex: 0 0 auto;
}

.static-demo-heading {
  max-width: 44rem;
  margin-top: 0.5rem;
}

.static-demo-heading h3 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.static-demo-heading p:not(.eyebrow) {
  margin: 0.55rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.static-demo-breakout {
  width: min(96vw, 92rem);
  margin-left: calc(50% - min(48vw, 46rem));
}

.architecture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.architecture-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  box-shadow: 0 18px 45px oklch(0.208 0.042 265.755 / 8%);
}

.architecture-card img {
  display: block;
  width: 100%;
  height: auto;
  padding: clamp(0.5rem, 1.5vw, 1rem);
  background: linear-gradient(135deg, oklch(0.929 0.013 255.508 / 45%), oklch(1 0 0));
}

.architecture-card figcaption {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.architecture-card strong {
  color: var(--foreground);
  font-size: 0.95rem;
}

.architecture-card span {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.static-demo-frame {
  overflow: hidden;
  border: 1px dashed var(--border);
  border-radius: 0.75rem;
  background: linear-gradient(135deg, oklch(0.929 0.013 255.508 / 72%), oklch(1 0 0 / 88%)), var(--card);
  box-shadow: 0 24px 60px oklch(0.208 0.042 265.755 / 12%);
}

.static-demo-frame iframe {
  display: block;
  width: 100%;
  height: clamp(42rem, 82vw, 56rem);
  border: 0;
  background: var(--card);
}

.feature-columns article,
.faq-item {
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.faq-item p {
  margin-bottom: 0;
  color: var(--muted-foreground);
  font-size: 0.925rem;
}

.faq-item .faq-note {
  font-size: 0.84rem;
}

.feature-columns ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  color: var(--muted-foreground);
  font-size: 0.925rem;
  list-style: none;
}

.feature-columns li {
  position: relative;
  padding-left: 1rem;
}

.feature-columns li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--primary);
  content: '';
}

.faq-item a {
  color: var(--primary);
  font-weight: 600;
}

.faq-item a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.faq-item code {
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  background: var(--background);
  padding: 0.08rem 0.25rem;
  color: var(--foreground);
  font-size: 0.86em;
}

.faq {
  margin-top: 2.5rem;
}

.faq > h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.faq-item h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.faq-item + .faq-item {
  margin-top: 0.75rem;
}

.faq-item p + p {
  margin-top: 0.85rem;
}

.blog-hero,
.post-shell {
  max-width: 48rem;
  margin-inline: auto;
}

.blog-hero {
  padding: clamp(3rem, 7vw, 5.25rem) 0 1rem;
}

.blog-hero h1,
.post-header h1 {
  max-width: none;
  margin-bottom: 1rem;
  font-size: clamp(2.35rem, 5vw, 4.35rem);
}

.blog-hero p:not(.eyebrow),
.post-description {
  margin-bottom: 0;
  color: var(--muted-foreground);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.blog-list {
  display: grid;
  max-width: 48rem;
  margin: 0.25rem auto 0;
  gap: 1rem;
}

.blog-card,
.empty-state {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  box-shadow: 0 18px 45px oklch(0.208 0.042 265.755 / 8%);
}

.blog-card {
  display: block;
  padding: 1.25rem;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.blog-card h2,
.empty-state h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.blog-card:hover {
  border-color: oklch(0.623 0.214 259.815 / 42%);
  box-shadow: 0 22px 52px oklch(0.208 0.042 265.755 / 12%);
  transform: translateY(-1px);
}

.blog-card:hover h2 {
  color: var(--primary);
}

.blog-card p:last-child,
.empty-state p {
  margin-bottom: 0;
  color: var(--muted-foreground);
}

.empty-state {
  padding: 1.5rem;
}

.post-shell {
  padding: clamp(2.75rem, 6vw, 4.75rem) 0 1rem;
}

.post-header {
  margin-bottom: 1.25rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1.25rem;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.back-link::before {
  margin-right: 0.35rem;
  content: '<';
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin: 0 0 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.post-meta span::before {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 999px;
  background: var(--border);
  content: '';
}

.post-body {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  color: var(--foreground);
  font-size: 1rem;
}

.post-navigation {
  display: grid;
  gap: 1rem;
  margin-top: 2.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.post-navigation__card {
  display: grid;
  gap: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  padding: 1rem;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.post-navigation__card:hover {
  border-color: oklch(0.623 0.214 259.815 / 42%);
  box-shadow: 0 18px 45px oklch(0.208 0.042 265.755 / 10%);
  transform: translateY(-1px);
}

.post-navigation__label {
  color: var(--muted-foreground);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-navigation__card strong {
  color: var(--foreground);
  font-size: 1.05rem;
  line-height: 1.2;
}

.post-navigation__card:hover strong {
  color: var(--primary);
}

.post-navigation__card--next {
  text-align: right;
}

@media (min-width: 720px) {
  .post-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-navigation__card--next {
    grid-column: 2;
  }
}

.post-body > * + * {
  margin-top: 1rem;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  color: var(--foreground);
  letter-spacing: -0.025em;
}

.post-body :is(h2, h3, h4, h5, h6)[id] {
  scroll-margin-top: 1.25rem;
}

.post-body h2 {
  margin-top: 2rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.15;
}

.post-body h3 {
  margin-top: 1.65rem;
  font-size: 1.3rem;
  line-height: 1.2;
}

.post-body p,
.post-body li {
  color: var(--muted-foreground);
}

.post-body a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18rem;
}

.post-body .heading-anchor {
  margin-left: 0.45rem;
  color: var(--muted-foreground);
  font-weight: 700;
  opacity: 0;
  text-decoration: none;
  transition:
    color 140ms ease,
    opacity 140ms ease;
}

.post-body :is(h2, h3, h4, h5, h6):hover .heading-anchor,
.post-body .heading-anchor:focus {
  opacity: 1;
}

.post-body .heading-anchor:hover {
  color: var(--primary);
}

.post-body ul,
.post-body ol {
  padding-left: 1.3rem;
}

.post-body li + li {
  margin-top: 0.35rem;
}

.post-body blockquote {
  margin-inline: 0;
  border-left: 0.25rem solid var(--primary);
  padding: 0.2rem 0 0.2rem 1rem;
  color: var(--muted-foreground);
}

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

.post-body blockquote > :last-child {
  margin-bottom: 0;
}

.post-body .twitter-embed {
  --twitter-embed-width: min(100%, 550px);
  position: relative;
  display: grid;
  min-height: var(--twitter-embed-reserve-height, 28rem);
  justify-items: center;
  margin: 1.75rem 0;
}

.post-body .twitter-embed[data-enhance='false'] {
  min-height: 0;
}

.post-body .twitter-embed[data-twitter-loaded],
.post-body .twitter-embed[data-twitter-failed] {
  min-height: 0;
}

.post-body .twitter-embed[data-align='left'] {
  justify-items: start;
}

.post-body .twitter-embed[data-align='center'] {
  justify-items: center;
}

.post-body .twitter-embed[data-align='right'] {
  justify-items: end;
}

.post-body .twitter-embed__placeholder,
.post-body .twitter-embed__mount,
.post-body .twitter-embed__fallback {
  width: var(--twitter-embed-width);
}

.post-body .twitter-embed__mount {
  display: flex;
  justify-content: center;
}

.post-body .twitter-embed__placeholder {
  display: none;
  min-height: var(--twitter-embed-reserve-height, 28rem);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  padding: 1rem;
  box-shadow: 0 18px 45px oklch(0.208 0.042 265.755 / 8%);
}

.post-body
  .twitter-embed[data-enhance='true']:not([data-twitter-loaded]):not([data-twitter-failed])
  .twitter-embed__placeholder {
  display: block;
}

.post-body
  .twitter-embed[data-enhance='true']:not([data-twitter-loaded]):not([data-twitter-failed])
  .twitter-embed__mount,
.post-body
  .twitter-embed[data-enhance='true']:not([data-twitter-loaded]):not([data-twitter-failed])
  .twitter-embed__fallback {
  position: absolute;
  top: 0;
  left: 50%;
  visibility: hidden;
  transform: translateX(-50%);
  pointer-events: none;
}

.post-body
  .twitter-embed[data-align='left']:not([data-twitter-loaded]):not([data-twitter-failed])
  .twitter-embed__mount,
.post-body
  .twitter-embed[data-align='left']:not([data-twitter-loaded]):not([data-twitter-failed])
  .twitter-embed__fallback {
  left: 0;
  transform: none;
}

.post-body
  .twitter-embed[data-align='right']:not([data-twitter-loaded]):not([data-twitter-failed])
  .twitter-embed__mount,
.post-body
  .twitter-embed[data-align='right']:not([data-twitter-loaded]):not([data-twitter-failed])
  .twitter-embed__fallback {
  right: 0;
  left: auto;
  transform: none;
}

.post-body .twitter-embed[data-twitter-loaded] .twitter-embed__placeholder,
.post-body .twitter-embed[data-twitter-loaded] .twitter-embed__fallback,
.post-body .twitter-embed[data-twitter-failed] .twitter-embed__placeholder,
.post-body .twitter-embed[data-twitter-failed] .twitter-embed__mount {
  display: none;
}

.post-body .twitter-embed__placeholder-header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.post-body .twitter-embed__placeholder-header > span {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--muted);
}

.post-body .twitter-embed__placeholder-header div,
.post-body .twitter-embed__placeholder-lines {
  display: grid;
  gap: 0.55rem;
  width: 100%;
}

.post-body .twitter-embed__placeholder-header div span,
.post-body .twitter-embed__placeholder-lines span,
.post-body .twitter-embed__placeholder-media {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--muted), var(--background), var(--muted));
}

.post-body .twitter-embed__placeholder-header div span:first-child {
  width: 42%;
  height: 0.75rem;
}

.post-body .twitter-embed__placeholder-header div span:last-child {
  width: 28%;
  height: 0.65rem;
}

.post-body .twitter-embed__placeholder-lines span {
  height: 0.75rem;
}

.post-body .twitter-embed__placeholder-lines span:nth-child(2) {
  width: 88%;
}

.post-body .twitter-embed__placeholder-lines span:nth-child(3) {
  width: 62%;
}

.post-body .twitter-embed__placeholder-media {
  height: clamp(18rem, 56vw, 32rem);
  margin-top: 1.25rem;
  border-radius: 0.65rem;
}

.post-body .twitter-embed__fallback blockquote {
  width: 100%;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  padding: 1rem;
  box-shadow: 0 18px 45px oklch(0.208 0.042 265.755 / 8%);
}

.post-body .twitter-embed__fallback blockquote > :first-child {
  margin-top: 0;
}

.post-body .twitter-embed__fallback blockquote > :last-child {
  margin-bottom: 0;
}

.post-body .twitter-embed p {
  color: var(--foreground);
}

.post-body .twitter-embed iframe {
  max-width: 100%;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  table-layout: fixed;
}

.post-body .table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.post-body .table-scroll table {
  min-width: 100%;
}

.post-body .table-scroll th,
.post-body .table-scroll td {
  overflow-wrap: anywhere;
}

.post-body .table-scroll--compact-leading table {
  width: max-content;
  table-layout: auto;
}

.post-body .table-scroll--wide-middle th:first-child,
.post-body .table-scroll--wide-middle td:first-child {
  width: 8rem;
}

.post-body .table-scroll--wide-middle th:last-child,
.post-body .table-scroll--wide-middle td:last-child {
  width: 9rem;
}

@media (min-width: 900px) {
  .post-body .table-scroll {
    width: min(92vw, 64rem);
    max-width: none;
    overflow-x: visible;
    margin-left: 50%;
    transform: translateX(-50%);
  }

  .post-body .table-scroll--compact-leading table {
    width: 100%;
  }

  .post-body .table-scroll--compact-leading th:not(:last-child),
  .post-body .table-scroll--compact-leading td:not(:last-child) {
    width: 1%;
    white-space: nowrap;
  }
}

.post-body .table-scroll--body-width {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  overflow-x: auto;
  transform: none;
}

.post-body th,
.post-body td {
  border: 1px solid var(--border);
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.post-body th {
  background: var(--secondary);
  color: var(--foreground);
  font-weight: 700;
}

.post-body td {
  color: var(--muted-foreground);
}

.post-body pre {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: oklch(0.208 0.042 265.755);
  padding: 1rem;
  color: var(--primary-foreground);
  font-size: 0.9rem;
}

.post-body code {
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  background: var(--background);
  padding: 0.08rem 0.25rem;
  color: var(--foreground);
  font-size: 0.9em;
}

.post-body pre code {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
}

.post-body img {
  max-width: 100%;
  border-radius: 0.75rem;
}

.post-body figure {
  margin: 1.5rem 0;
}

.post-body .architecture-figure {
  max-width: 33rem;
  margin-inline: auto;
}

.post-body figure img {
  display: block;
  margin-inline: auto;
}

.post-body figcaption {
  margin-top: 0.6rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  text-align: center;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.site-footer p {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
}

.build-icon,
.mail-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  color: var(--primary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-footer a {
  color: var(--foreground);
  font-weight: 600;
}

.site-footer a:not(.contact-button):hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  padding: 0.45rem 0.8rem;
  box-shadow: 0 10px 24px oklch(0.208 0.042 265.755 / 6%);
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.contact-button:hover {
  border-color: oklch(0.623 0.214 259.815 / 42%);
  background: var(--accent);
  color: var(--primary);
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 1rem, 1120px);
  }

  .nav {
    align-items: flex-start;
  }

  .nav-links {
    gap: 0.15rem;
  }

  .nav-links a {
    padding-inline: 0.5rem;
  }

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

  .hero {
    gap: 2rem;
    padding: 3rem 0 2.5rem;
  }
}

@media (max-width: 900px) and (min-width: 681px) {
  .architecture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .architecture-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, calc((100% - 1rem) / 2));
  }
}

@media (max-width: 680px) {
  .live-demo-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .architecture-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .architecture-card {
    width: min(100%, 22rem);
  }
}
