/* cc.softwaresoftware.dev — softwaresoftware design system v2 "monochrome"
   values vendored from design-system.softwaresoftware.dev/css/tokens.css */

:root {
    --ink: #0a0a0a;
    --paper: #ffffff;
    --n-50: #fafafa;
    --n-100: #f5f5f5;
    --n-200: #e5e5e5;
    --n-300: #d4d4d4;
    --n-400: #a3a3a3;
    --n-500: #737373;
    --n-800: #262626;
    --n-900: #171717;
    --accent: #22c55e;

    --font-sans: 'Archivo', -apple-system, ui-sans-serif, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

    --track-display: -0.035em;
    --track-eyebrow: 0.14em;

    --container: 72rem;
    --space-section: 4.5rem;

    --bg: var(--paper);
    --fg: var(--ink);
    --muted: var(--n-500);
    --line: var(--n-200);
    --surface: var(--n-50);
}
@media (min-width: 640px) {
    :root { --space-section: 8rem; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 56px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.65;
    letter-spacing: 0.005em;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

h1, h2 { font-weight: 300; letter-spacing: var(--track-display); margin: 0; }
h1 { font-size: 2.4rem; line-height: 1.05; }
h2 { font-size: 1.6rem; line-height: 1.15; }
h3 { font-size: 1.1rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1.3; margin: 0 0 0.5rem; }
b, strong { font-weight: 500; }
@media (min-width: 640px) {
    h1 { font-size: 4rem; }
    h2 { font-size: 2.25rem; }
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.eyebrow {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: var(--track-eyebrow);
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 1.25rem;
}

code {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 0.1em 0.4em;
    font-family: var(--font-mono);
    font-size: 0.85em;
    font-weight: 400;
    overflow-wrap: anywhere;
}
h1 code {
    font-size: 0.8em;
    padding: 0 0.25em;
}

/* dark band sections — full width, alternating */
.section--dark {
    --bg: var(--ink);
    --fg: #fafafa;
    --muted: var(--n-400);
    --line: var(--n-800);
    --surface: var(--n-900);
    background: var(--bg);
    color: var(--fg);
}

/* nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.nav-logo {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-decoration: none;
    white-space: nowrap;
}
.logo-dot { color: var(--accent); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.82rem;
    font-weight: 400;
}
.nav-links a { color: var(--muted); text-decoration: none; transition: color 150ms ease; }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 640px) {
    .nav-links a:not(:last-child) { display: none; }
}

/* hero */
.hero { padding: var(--space-section) 0; }
.hero-sub {
    color: var(--muted);
    max-width: 60ch;
    font-size: 1.05rem;
    margin: 1.5rem 0 2.5rem;
}
.hero-sub code { color: var(--fg); }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn {
    display: inline-block;
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
    font: 400 0.9rem var(--font-sans);
    padding: 0.65rem 1.3rem;
    text-decoration: none;
    transition: opacity 150ms ease;
}
.btn:hover { opacity: 0.82; }
.btn.ghost {
    background: none;
    color: var(--ink);
    transition: background 150ms ease, color 150ms ease;
}
.btn.ghost:hover { background: var(--ink); color: var(--paper); opacity: 1; }

/* sections */
.band { padding: var(--space-section) 0; }
section:not(.band):not(.hero) { padding: var(--space-section) 0; }

/* commands */
.sub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}
@media (max-width: 960px) { .sub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sub-grid { grid-template-columns: minmax(0, 1fr); } }
.sub {
    border: 1px solid var(--line);
    padding: 1.25rem 1.5rem;
}
.sub > code {
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--fg);
    margin-bottom: 0.5rem;
}
.sub p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.sub p code { background: var(--surface); border-color: var(--line); color: var(--fg); }

/* demo pre — flat, no terminal chrome */
.demo {
    margin: 2.5rem 0 0;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 1rem 1.25rem;
    font: 400 0.78rem/1.8 var(--font-mono);
    color: var(--n-300);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.d-prompt { color: #fafafa; font-weight: 500; }

/* which session */
.cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}
@media (max-width: 760px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.cols > div {
    border: 1px solid var(--line);
    padding: 1.5rem;
    transition: border-color 150ms ease;
}
.cols > div:hover { border-color: var(--ink); }
.cols > .span2 { grid-column: 1 / -1; }
.cols p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* install */
.install-note { color: var(--muted); max-width: 58ch; margin: 1rem 0 2.5rem; }
.install-row { margin-bottom: 1.5rem; }
.install-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: var(--track-eyebrow);
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}
/* command block — code scrolls, copy never moves (design-system component) */
.cmd {
    display: flex;
    align-items: stretch;
    max-width: 38rem;
    border: 1px solid var(--line);
    background: var(--surface);
}
.cmd .cmd-code {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    overflow-wrap: normal;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.7;
    padding: 0.8rem 1.25rem;
    background: none;
    border: none;
    color: var(--fg);
}
.cmd .cmd-copy {
    flex-shrink: 0;
    border: 0;
    border-left: 1px solid var(--line);
    background: none;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: var(--track-eyebrow);
    text-transform: uppercase;
    padding: 0 1.25rem;
    cursor: pointer;
    transition: color 150ms ease;
}
.cmd .cmd-copy:hover { color: var(--fg); }
.cmd .cmd-copy.copied { color: var(--accent); }
.cmd .cmd-copy:focus-visible { outline: 1px solid var(--fg); outline-offset: -3px; }
.install-after { color: var(--muted); max-width: 60ch; margin: 2rem 0 0; }
.install-after a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--n-500); transition: border-color 150ms ease; }
.install-after a:hover { border-color: #fafafa; }

/* faq */
.faq {
    margin-top: 2.5rem;
    border-top: 1px solid var(--line);
}
.faq-item {
    display: grid;
    grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
    gap: 1rem 3rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { .faq-item { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; } }
.faq-item h3 { margin: 0; }
.faq-item h3 code { font-size: 0.9em; }
.faq-item p { margin: 0; color: var(--muted); font-size: 0.92rem; max-width: 68ch; }
.faq-item p code { color: var(--fg); }

/* footer */
.site-footer {
    background: var(--ink);
    color: #fafafa;
    padding: 4rem 0 1.5rem;
    overflow: hidden;
}
.site-footer p {
    margin: 0 0 4rem;
    font-size: 0.78rem;
    color: var(--n-500);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.site-footer a { color: var(--n-400); text-decoration: none; transition: color 150ms ease; }
.site-footer a:hover { color: #fafafa; }
.wordmark {
    font-size: clamp(2.6rem, 11.5vw, 9.5rem);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 0.85;
    white-space: nowrap;
    user-select: none;
    color: #ffffff;
}

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

/* share a link */
.share { border-top: 1px solid var(--line); }
.section-lede { color: var(--muted); max-width: 66ch; margin: 1.5rem 0 0; }
.section-lede code { color: var(--fg); }
.section-lede a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--n-400); transition: border-color 150ms ease; }
.section-lede a:hover { border-color: var(--ink); }
.share-setup { margin: 2.5rem 0 0; }
.share-caveat { color: var(--muted); font-size: 0.9rem; margin: 2rem 0 0; }
.sub p a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--n-500); transition: border-color 150ms ease; }
.sub p a:hover { border-color: #fafafa; }
