@font-face {
  font-family: Inter;
  src: url("/previews/assets/inter-latin-wght-normal-Dx4kXJAl.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f6f1;
  --ink: #211e1b;
  --muted: #625b54;
  --line: #dad4cb;
  --accent: #ab3b23;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: 12px; left: 12px; padding: 12px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header, .footer { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header { border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 21px; font-weight: 750; letter-spacing: -.05em; }
.brand img { object-fit: contain; }
nav, .footer div { display: flex; align-items: center; gap: clamp(12px, 3vw, 30px); font-size: 14px; font-weight: 560; }
nav a, .footer a { text-decoration: none; }
.github { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.hero-copy { text-align: center; padding: clamp(48px, 7vw, 94px) 0 44px; }
.eyebrow { margin: 0 0 20px; color: var(--accent); font: 600 12px/1.4 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: .1em; }
h1, h2, h3 { text-wrap: balance; }
h1 { margin: 0; font-size: clamp(43px, 7.35vw, 104px); font-weight: 740; letter-spacing: -.085em; line-height: .99; }
h1 em { color: var(--accent); font-style: normal; }
.lede { margin: 22px auto 0; max-width: 540px; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.6; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 21px; justify-content: center; align-items: center; margin-top: 25px; }
.button, .secondary { display: inline-flex; gap: 12px; align-items: center; padding: 12px 16px; font-size: 14px; font-weight: 660; text-decoration: none; border-radius: 8px; }
.button { background: var(--accent); color: white; }
.button:hover { background: #892d19; color: white; }
.secondary:hover { background: #eee8df; }
.preview { margin: 0; background: #080808; border: 1px solid #302b26; border-radius: 17px; overflow: hidden; box-shadow: 0 20px 50px #3d2c1824; }
.preview > a { display: block; }
.preview > a:focus-visible { outline-offset: -5px; color: white; }
.preview img { display: block; width: 100%; height: auto; }
figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 13px clamp(12px, 3vw, 24px); background: #171614; border-top: 1px solid #39342d; color: #e6ded3; font: 12px/1.4 ui-monospace, monospace; }
figcaption .dot, figcaption a:hover { color: #ff8e70; }
.workspace, .install { padding-block: clamp(48px, 8vw, 96px); }
h2 { font-size: clamp(30px, 5vw, 55px); letter-spacing: -.065em; line-height: 1.04; margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.features article { border-top: 2px solid var(--accent); padding-top: 18px; }
h3 { margin: 0; font-size: 19px; letter-spacing: -.035em; }
.features p, .install p { color: var(--muted); line-height: 1.6; }
.install { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.install a { display: inline-block; margin: 0 14px 8px 0; font-size: 14px; font-weight: 600; }
.terminal { min-width: 0; background: #181715; color: #f8f4ef; border-radius: 12px; overflow: hidden; }
.terminal-header { display: flex; align-items: center; justify-content: space-between; min-height: 49px; gap: 12px; padding: 8px 16px; border-bottom: 1px solid #47403a; color: #e2d9ce; font: 13px ui-monospace, monospace; }
button { cursor: pointer; color: inherit; background: transparent; border: 1px solid #74675d; border-radius: 5px; padding: 5px 8px; font: inherit; }
button:hover { background: #3b332d; }
pre { padding: 0 16px; overflow: auto; font: 13px/1.7 ui-monospace, monospace; }
.terminal .copy-status { padding-inline: 16px; font-size: 13px; color: #f8c2b2; }
.copy-status:empty { margin: 0; }
.footer { border-top: 1px solid var(--line); }

@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .site-header { min-height: 64px; }
  .desktop-break { display: none; }
  .features, .install { grid-template-columns: 1fr; }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #161412;
  --ink: #f6efe6;
  --muted: #bdb1a6;
  --line: #423932;
  --accent: #ff9578;
}

.theme-toggle {
  flex: none;
  width: 48px;
  height: 28px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #716860;
}
.theme-toggle::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 160ms ease;
}
.theme-toggle:hover { background: #5d554e; }
.theme-toggle[aria-checked="true"] { background: #dc5632; border-color: #dc5632; }
.theme-toggle[aria-checked="true"]:hover { background: #c44928; }
.theme-toggle[aria-checked="true"]::before { transform: translateX(20px); }

@media (prefers-reduced-motion: reduce) {
  .theme-toggle::before { transition: none; }
}

[data-theme="dark"] .button { background: #ff9578; color: #211511; }
[data-theme="dark"] .button:hover { background: #ffaf99; }
[data-theme="dark"] .secondary:hover { background: #2c241f; }
[data-theme="dark"] .skip { background: var(--paper); }
[data-theme="dark"] .preview { box-shadow: 0 20px 50px #0006; }

@media (max-width: 560px) {
  nav a:first-child { display: none; }
}
@media (max-width: 430px) {
  nav a[href="#install"] { display: none; }
}

.architecture {
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}
.architecture-intro {
  max-width: 62ch;
  font-size: 18px;
}
.architecture p:not(.eyebrow), .workspace-modes dd {
  color: var(--muted);
  line-height: 1.6;
}
.architecture-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px minmax(0, 1fr);
  align-items: stretch;
  margin-block: 28px;
}
.architecture-card {
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 96%, var(--ink));
}
.architecture-card .eyebrow { margin-bottom: 8px; }
.architecture-card h3 { font-size: clamp(20px, 2.5vw, 27px); }
.architecture-card p:last-child { margin-bottom: 0; }
.architecture-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 10px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--paper));
}
.architecture-icon svg { width: 26px; height: 26px; }
.architecture-connection {
  align-self: center;
  display: grid;
  justify-items: center;
  color: var(--accent);
  font: 600 12px ui-monospace, monospace;
}
.architecture-connection svg { width: 104px; height: 24px; }
.workspace-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-block: 0 24px;
}
.workspace-modes dt { font-weight: 700; }
.workspace-modes dd { margin: 5px 0 0; }
.architecture > a { font-size: 14px; font-weight: 600; }

@media (max-width: 680px) {
  .architecture-diagram, .workspace-modes { grid-template-columns: 1fr; }
  .architecture-connection { padding-block: 10px; }
  .architecture-connection svg { width: 30px; transform: rotate(90deg); }
}

.workspace .eyebrow { margin-bottom: 12px; }
.workspace h2 { max-width: 18ch; }
.pillars { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.pillars li { position: relative; display: flex; flex-direction: column; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--paper) 96%, var(--ink)); }
.pillars li::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: 14px 14px 0 0; background: var(--accent); }
.pillar-num { color: var(--accent); font: 600 13px ui-monospace, monospace; letter-spacing: .08em; margin-bottom: 14px; }
.pillars h3 { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.15; }
.pillars p { color: var(--muted); line-height: 1.6; margin: 12px 0 0; }
.pillars code { font-size: .92em; color: var(--ink); }
.pillars .pillar-tag { margin-top: auto; padding-top: 18px; color: var(--ink); font-weight: 650; font-size: 14px; }

@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
}
