@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --sheet: #fffdf8;
  --tint: #efebe3;
  --graphite: #1e252e;
  --graphite-2: #2a333e;
  --ink: #1b2129;
  --muted: #5b6470;
  --line: #e2ddd3;
  --line-strong: #cfc8bb;
  --cyan: #1ba8e8;
  --link: #0b6fa4;
  --green: #2ac769;
  --green-text: #1a7f45;
  --warn-text: #8a5a00;
  --warn-bg: #fdf1d6;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --shadow: 0 1px 2px rgb(30 37 46 / .06), 0 12px 32px -12px rgb(30 37 46 / .18);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: #cbe9f8; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, textarea:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
button, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; color: var(--graphite); letter-spacing: -.03em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.05; font-weight: 750; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; font-weight: 700; margin-bottom: 2rem; }
h3 { font-size: 1.1rem; line-height: 1.35; font-weight: 650; }
code, pre { font-family: var(--mono); }
p code, li code, td code { font-size: .88em; background: var(--tint); padding: .1em .35em; border-radius: 4px; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.container { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: -6rem; left: 1rem; padding: .7rem 1rem; background: var(--graphite); color: #fff; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--graphite); text-decoration: none; font-family: var(--mono); font-weight: 700; font-size: 1.2rem; letter-spacing: -.04em; }
.brand b { color: var(--link); font-weight: 700; }
.brand:hover { color: var(--graphite); }
.header-nav { display: flex; align-items: center; gap: 1.5rem; }
.header-nav a { color: var(--muted); font-size: .92rem; text-decoration: none; }
.header-nav a:hover, .header-nav [aria-current="page"] { color: var(--graphite); }
.header-nav .nav-install { color: #fff; background: var(--graphite); padding: .45rem .9rem; border-radius: 8px; }
.header-nav .nav-install:hover { color: #fff; background: var(--graphite-2); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.2rem; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--sheet); color: var(--graphite); font-weight: 600; font-size: .95rem; text-decoration: none; }
.button:hover { border-color: var(--graphite); color: var(--graphite); }
.button-primary { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.button-primary:hover { background: var(--graphite-2); color: #fff; }
.text-link { display: inline-block; margin-top: .25rem; font-weight: 600; font-size: .93rem; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Hero */
.hero { padding: 4.5rem 0 4rem; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .75rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--sheet); font-size: .8rem; color: var(--muted); margin-bottom: 1.5rem; }
.dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--green); }
.hero h1 { max-width: 13ch; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 44ch; margin: 1.5rem 0 2rem; }
.hero-meta { margin: 1.5rem 0 0; font-family: var(--mono); font-size: .8rem; color: var(--muted); }

/* Hero scene */
.scene { position: relative; margin: 0; display: grid; grid-template-columns: 1.25fr 1.75rem .9fr; align-items: center; }
.scene-code { position: relative; padding: 1.4rem 1.3rem 1.3rem 2.6rem; background: var(--graphite); border-radius: 18px; box-shadow: var(--shadow), 0 2px 0 #10151b; color: #e8edf3; }
.scene-rail { position: absolute; left: 1.15rem; top: 0; bottom: 0; width: 3px; background: var(--cyan); }
.scene-rail::before, .scene-rail::after { content: ""; position: absolute; left: -6px; width: 15px; height: 15px; border-radius: 4px; background: var(--cyan); }
.scene-rail::before { top: 4.1rem; }
.scene-rail::after { top: 6.6rem; background: var(--green); }
.scene-label { font-family: var(--mono); font-size: .72rem; color: #9aa6b4; margin-bottom: .9rem; }
.diff { display: flex; gap: .6rem; align-items: center; margin: 0 0 .55rem; padding: .55rem .7rem; border-radius: 8px; font-size: .86rem; }
.diff code { font-size: inherit; background: none; padding: 0; color: #f3f6f9; white-space: nowrap; }
.diff span { font-family: var(--mono); font-weight: 700; }
.diff-removed { background: #3a2427; }
.diff-removed span { color: #ff9b94; }
.diff-added { background: #1f3b2b; }
.diff-added span { color: #6fe39c; }
.scene-tag { margin: .9rem 0 0; font-family: var(--mono); font-size: .7rem; color: #ffd27a; text-transform: uppercase; letter-spacing: .06em; }
.scene-link { height: 3px; background: var(--cyan); position: relative; }
.scene-link::after { content: ""; position: absolute; right: -2px; top: -5px; width: 13px; height: 13px; border-radius: 3px; background: var(--cyan); }
.scene-doc { position: relative; padding: 1.3rem 1.2rem 1.2rem; background: var(--sheet); border: 1px solid var(--line); border-radius: 14px 30px 14px 14px; box-shadow: var(--shadow); transform: rotate(1.2deg); }
.doc-name { font-family: var(--mono); font-weight: 700; font-size: .85rem; color: var(--graphite); margin-bottom: .2rem; }
.doc-section { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-bottom: .9rem; }
.doc-line { display: block; height: 7px; border-radius: 4px; background: #e6e1d8; margin-bottom: .55rem; }
.doc-line-hit { background: #b9e2f6; box-shadow: inset 4px 0 0 var(--cyan); }
.doc-line-short { width: 60%; }
.doc-status { display: inline-block; margin: .6rem 0 0; padding: .25rem .6rem; border-radius: 6px; background: var(--warn-bg); color: var(--warn-text); font-size: .78rem; font-weight: 650; }
.scene figcaption { grid-column: 1 / -1; margin-top: 1.4rem; font-size: .85rem; color: var(--muted); text-align: center; }

/* Sections */
.section { padding: 5rem 0; border-top: 1px solid var(--line); }
.section-tint { background: var(--tint); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 0; margin: 0 0 3rem; list-style: none; }
.steps li { padding: 1.5rem; background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; }
.step-number { display: block; font-family: var(--mono); font-size: .8rem; color: var(--link); margin-bottom: .8rem; }
.steps h3 { margin-bottom: .5rem; }
.steps p { margin: 0; color: var(--muted); font-size: .94rem; }

/* PR comment */
.comment { max-width: 780px; margin-inline: auto; background: var(--sheet); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.comment-head { display: flex; align-items: center; gap: .6rem; padding: .8rem 1.2rem; background: var(--tint); border-bottom: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.comment-head p { margin: 0; }
.comment-head strong { color: var(--graphite); }
.comment-body { padding: 1.3rem 1.2rem .4rem; }
.comment-summary { font-size: .97rem; }
.comment-needs { margin: 1.2rem 0 .3rem; font-weight: 650; color: var(--graphite); }
.comment-target { margin-bottom: 1rem; }
.comment-foot { margin: 0; padding: .7rem 1.2rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { background: var(--paper); font-weight: 600; color: var(--muted); font-size: .78rem; }
tbody tr:last-child td { border-bottom: 0; }
.badge-warn { display: inline-block; padding: .1rem .45rem; border-radius: 5px; background: var(--warn-bg); color: var(--warn-text); font-size: .78rem; font-weight: 600; }

/* Install */
.install-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem; align-items: start; }
.card { min-width: 0; padding: 1.6rem; background: var(--sheet); border: 1px solid var(--line); border-radius: 16px; }
.card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.card > p { color: var(--muted); font-size: .94rem; }
.code-panel { margin: 1.2rem 0; border-radius: 10px; background: var(--graphite); overflow: hidden; }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .8rem; border-bottom: 1px solid #36404c; color: #9aa6b4; font-family: var(--mono); font-size: .72rem; }
.copy-button { min-height: 32px; min-width: 64px; padding: .2rem .6rem; border: 1px solid #4a5563; border-radius: 6px; background: var(--graphite-2); color: #f3f6f9; font-family: var(--mono); font-size: .72rem; }
.copy-button:hover { background: #36404c; }
pre.code { margin: 0; padding: 1rem; overflow-x: auto; color: #e8edf3; font-size: .76rem; line-height: 1.75; tab-size: 2; }
.copy-fallback { padding: .9rem; border-top: 1px solid #36404c; }
.copy-fallback p { color: #c9d1db; font-size: .8rem; margin-bottom: .5rem; }
.copy-fallback textarea { display: block; width: 100%; min-height: 8rem; padding: .6rem; background: #10151b; color: #f3f6f9; border: 1px solid #4a5563; border-radius: 6px; font-family: var(--mono); font-size: .75rem; resize: vertical; }
.skill-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.skill-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.skill-list li:last-child { border-bottom: 0; }
.skill-list code { display: block; width: fit-content; margin-bottom: .2rem; color: var(--graphite); }
.cli-note { margin: 1.8rem 0 0; text-align: center; color: var(--muted); font-size: .9rem; }

/* Honest */
.honest { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.honest p { color: var(--muted); max-width: 46ch; }
.stat { margin: 0 0 .6rem; font-family: var(--mono); font-size: 1.6rem; color: var(--muted); letter-spacing: -.04em; }
.stat span { font-size: 4rem; font-weight: 700; color: var(--graphite); line-height: 1; }
.h2-small { font-size: 1.35rem; margin: .6rem 0 1.2rem; }
.plain-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.plain-list li { position: relative; padding: .55rem 0 .55rem 1.5rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .55rem; height: .55rem; border-radius: 2px; background: var(--cyan); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer-brand .brand { font-size: 1rem; margin-bottom: .6rem; }
.footer-brand p { margin: 0; color: var(--muted); font-size: .85rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1.4rem; max-width: 34rem; }
.footer-links a { color: var(--muted); font-size: .88rem; text-decoration: none; }
.footer-links a:hover { color: var(--graphite); text-decoration: underline; }

/* Prose pages */
.prose-page { padding: 4rem 0 5rem; }
.prose-header { max-width: 720px; margin-bottom: 3rem; }
.prose-header h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 1.2rem; }
.prose-header .lead { margin: 0 0 1rem; }
.page-date { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.prose-layout { display: grid; grid-template-columns: 220px 1fr; gap: 4rem; align-items: start; }
.page-toc { position: sticky; top: 1.5rem; }
.toc-title { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .8rem; }
.page-toc ol { list-style: none; padding: 0; margin: 0; }
.page-toc li { margin-bottom: .5rem; }
.page-toc a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.page-toc a:hover { color: var(--graphite); text-decoration: underline; }
.prose { min-width: 0; max-width: 720px; }
.prose section { margin-bottom: 2.5rem; }
.prose h2 { font-size: 1.4rem; margin-bottom: .9rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.prose p, .prose li { color: #3b434d; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.notice { padding: .8rem 1rem; border-left: 3px solid var(--cyan); background: var(--sheet); border-radius: 0 8px 8px 0; font-size: .93rem; }
.support-links { display: grid; gap: .8rem; margin: 1.4rem 0; }
.support-link { display: block; padding: 1rem 1.1rem; background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.support-link:hover { border-color: var(--line-strong); }
.support-link strong { display: block; color: var(--graphite); margin-bottom: .2rem; }
.support-link span { display: block; color: var(--muted); font-size: .9rem; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .steps { grid-template-columns: 1fr; }
  .install-grid { grid-template-columns: 1fr; }
  .honest { grid-template-columns: 1fr; gap: 3rem; }
  .prose-layout { grid-template-columns: 1fr; gap: 2rem; }
  .page-toc { position: static; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 2rem); }
  .header-nav { gap: 1rem; }
  .header-nav a:not(.nav-install) { display: none; }
  .hero { padding: 3rem 0; }
  .scene { grid-template-columns: 1fr; }
  .scene-link { width: 3px; height: 2rem; margin-left: 2.1rem; }
  .scene-link::after { right: -5px; top: auto; bottom: -2px; }
  .scene-doc { transform: none; }
  .section { padding: 3.5rem 0; }
  .actions .button { flex: 1 1 100%; }
  .footer-inner { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}

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