@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --bg: #fff;
  --fg: #171a1f;
  --muted: #626a76;
  --panel: #f8f9fb;
  --line: #d7dce3;
  --faint-line: #e9ecf1;
  --orange: #ff730a;
  --link: #ac4200;
  --button-fg: #171a1f;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0d0f12;
  --fg: #e9ebef;
  --muted: #a3aab6;
  --panel: #171a1f;
  --line: #414752;
  --faint-line: #2a2f37;
  --orange: #ff8736;
  --link: #ff9e5c;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.55; }
button { font: inherit; }
button[hidden] { display: none; }
a { color: var(--link); text-underline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 2px; }
svg { flex: none; }
code { font-family: 'IBM Plex Mono', monospace; font-weight: 400; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 750; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; }
.wrap { width: min(100% - 80px, 1200px); margin-inline: auto; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 12px 16px; background: var(--bg); }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--faint-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 24px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 30px; width: auto; }
.brand .logo-dark, .icon-sun { display: none; }
[data-theme='dark'] .brand .logo-light, [data-theme='dark'] .icon-moon { display: none; }
[data-theme='dark'] .brand .logo-dark, [data-theme='dark'] .icon-sun { display: block; }
nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
nav a { color: var(--fg); font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 6px; white-space: nowrap; }
.nav-icon { display: inline-grid; place-items: center; min-width: 32px; min-height: 32px; color: var(--muted); }
.nav-icon svg { width: 18px; height: 18px; }
.theme-toggle { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--muted); cursor: pointer; }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 44px; align-items: center; padding: 76px 0 56px; }
.eyebrow { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
h1 { font-size: clamp(42px, 4.6vw, 66px); font-weight: 780; letter-spacing: -0.055em; line-height: 1.08; }
h1 span { display: block; }
.lede { font-size: 20px; line-height: 1.6; color: var(--muted); margin-top: 24px; max-width: 600px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 2px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--fg); }
.button.primary { background: var(--orange); border-color: var(--orange); color: var(--button-fg); }
.command { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 2px; font-size: 12px; line-height: 1.7; }
.command code { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.command code span { color: var(--muted); }
.install { font-size: 13px; min-height: 46px; }
.copy { flex: none; border: 1px solid var(--line); border-radius: 2px; background: var(--bg); padding: 4px 8px; color: var(--muted); font-family: Inter, sans-serif; font-size: 12px; cursor: pointer; }
.architecture { padding: 24px; border: 1px solid var(--line); background: var(--panel); border-radius: 2px; }
.architecture-label { width: fit-content; margin-left: auto; margin-bottom: 20px; border: 1px solid var(--link); border-radius: 2px; padding: 5px 10px; color: var(--link); font-size: 13px; }
.architecture svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1; stroke-linejoin: round; }
.tree-root, .tree li { display: flex; align-items: center; gap: 16px; font-size: 18px; }
.tree { list-style: none; margin: 12px 0 24px 14px; padding: 0 0 0 36px; border-left: 1px solid var(--muted); }
.tree li { position: relative; padding: 12px 0; }
.tree li::before { content: ''; position: absolute; left: -36px; width: 24px; border-top: 1px solid var(--muted); }
.tree li:last-child::after { content: ''; position: absolute; left: -37px; top: calc(50% + 1px); bottom: -1px; width: 2px; background: var(--panel); }
figcaption { color: var(--muted); font-size: 14px; }
.languages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 14px; }
.languages::before, .languages::after { content: ''; flex: 1; border-top: 1px solid var(--line); min-width: 24px; }
.languages li + li::before { content: '·'; margin-right: 22px; color: var(--muted); }
.benefits { padding-top: 56px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.benefit { display: flex; align-items: flex-start; gap: 16px; padding: 0 24px; border-left: 1px solid var(--faint-line); }
.benefit:first-child { padding-left: 0; border-left: 0; }
.benefit:last-child { padding-right: 0; }
.feature-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--faint-line); background: var(--panel); border-radius: 2px; }
.feature-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.benefit h3 { font-size: 18px; margin: 2px 0 10px; }
.benefit p { color: var(--muted); font-size: 15px; }
.workflow { padding-top: 64px; }
.section-intro { margin-top: 10px; color: var(--muted); font-size: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 24px 0 0; gap: 12px; }
.steps li { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 2px; }
.step-number { display: block; color: var(--link); border-top: 2px solid var(--orange); padding-top: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 15px; }
.steps h3 { margin: 8px 0 18px; }
.steps p { color: var(--muted); font-size: 14px; margin: 16px 0; }
.detail-link { font-size: 13px; text-decoration: none; }
.more { padding-top: 48px; }
.more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.more article { min-width: 0; display: flex; flex-direction: column; align-items: stretch; padding: 24px; border: 1px solid var(--line); border-radius: 2px; }
.more article p { margin: 12px 0 20px; color: var(--muted); font-size: 15px; max-width: 420px; }
.more .command { margin-top: auto; }
.more .detail-link { margin-top: 16px; }
.custom-rules { margin-top: 24px; text-align: center; font-size: 14px; }
.custom-rules a { text-decoration: none; }
.closing { text-align: center; margin-top: 32px; padding: 36px 0; border-top: 1px solid var(--line); }
.closing h2 { font-size: clamp(26px, 2.7vw, 32px); }
.closing .actions { justify-content: center; margin-top: 20px; }
.closing p { color: var(--muted); font-size: 12px; margin-top: 18px; }
footer.wrap { display: flex; justify-content: space-between; align-items: center; padding-block: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer nav { font-size: 13px; }
@media (hover: hover) {
  nav a:hover { text-decoration-color: var(--orange); }
  .nav-icon:hover, .theme-toggle:hover { color: var(--fg); }
  .button:hover, .copy:hover { border-color: var(--link); }
  .primary:hover { background: var(--link); color: var(--bg); }
  .detail-link:hover, .custom-rules a:hover { text-decoration: underline; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr 0.85fr; gap: 28px; padding-top: 56px; }
  .actions .install { flex-basis: 100%; }
  .benefit { gap: 12px; padding-inline: 16px; }
  .feature-icon { width: 34px; height: 34px; }
  .feature-icon svg { width: 22px; height: 22px; }
  .steps { grid-template-columns: 1fr; }
  .steps .command { max-width: 540px; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { gap: 16px; }
  .brand img { height: 26px; }
  nav { gap: 12px; }
  .nav-icon, .theme-toggle { width: 36px; height: 36px; }
  .hide-sm { display: none; }
  .hero { grid-template-columns: 1fr; padding: 44px 0 36px; gap: 32px; }
  h1 { font-size: clamp(40px, 9vw, 56px); }
  .eyebrow { margin-bottom: 18px; font-size: 13px; }
  .lede { font-size: 18px; margin-top: 20px; }
  .actions { margin-top: 24px; }
  .actions .install { flex-basis: auto; }
  .architecture { padding: 20px; }
  .architecture-label { font-size: 12px; }
  .tree-root, .tree li { font-size: 17px; }
  .languages { gap: 8px 16px; font-size: 12px; }
  .languages::before, .languages::after { display: none; }
  .languages li + li::before { margin-right: 16px; }
  .benefits { padding-top: 40px; }
  .benefit-grid, .more-grid { grid-template-columns: 1fr; gap: 22px; }
  .benefit, .benefit:first-child { padding: 0; border: 0; gap: 16px; }
  .feature-icon { width: 44px; height: 44px; }
  .workflow { padding-top: 44px; }
  .section-intro { font-size: 16px; }
  .steps li, .more article { padding: 20px; }
  .more { padding-top: 40px; }
  .custom-rules { text-align: left; }
  .closing { text-align: left; }
  .closing .actions { justify-content: flex-start; }
  footer nav { gap: 16px; }
}

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