/* claude2tmux — single stylesheet. Light + dark via prefers-color-scheme.
   No CDN fonts, no frameworks, no analytics. */

:root {
  /* Terminal-green accent, the one colour that carries meaning on this page.
     Reserved for: the MOVE badge, the primary CTA, and inline command marks. */
  --accent:        oklch(0.55 0.13 155);
  --accent-quiet:  oklch(0.55 0.13 155 / 0.10);
  --warn:          oklch(0.62 0.14 75);
  --warn-quiet:    oklch(0.62 0.14 75 / 0.12);

  --bg:            oklch(0.99 0.002 250);
  --bg-sunk:       oklch(0.96 0.004 250);
  --fg:            oklch(0.22 0.01 250);
  --fg-mute:       oklch(0.48 0.012 250);
  --fg-faint:      oklch(0.62 0.01 250);
  --rule:          oklch(0.90 0.006 250);

  /* Terminal surfaces stay dark in both themes: they are product shots of a
     terminal, and a light-mode terminal would misrepresent the tool. */
  --term-bg:       oklch(0.20 0.012 260);
  --term-bg-bar:   oklch(0.26 0.014 260);
  --term-fg:       oklch(0.90 0.008 260);
  --term-mute:     oklch(0.64 0.010 260);
  --term-accent:   oklch(0.78 0.15 155);
  --term-warn:     oklch(0.82 0.13 80);
  --term-cyan:     oklch(0.80 0.10 220);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --measure: 68ch;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent:       oklch(0.76 0.15 155);
    --accent-quiet: oklch(0.76 0.15 155 / 0.14);
    --warn:         oklch(0.80 0.13 80);
    --warn-quiet:   oklch(0.80 0.13 80 / 0.14);

    --bg:           oklch(0.17 0.008 260);
    --bg-sunk:      oklch(0.21 0.010 260);
    --fg:           oklch(0.94 0.005 260);
    --fg-mute:      oklch(0.72 0.008 260);
    --fg-faint:     oklch(0.56 0.008 260);
    --rule:         oklch(0.30 0.010 260);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 clamp(1rem, 0.97rem + 0.15vw, 1.0625rem)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--pad); }

a { color: inherit; text-decoration-color: var(--fg-faint); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.018em; margin: 0; font-weight: 600; }

code {
  font: 0.9em/1.5 var(--mono);
  background: var(--bg-sunk);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.1em 0.36em;
}

/* ---------------------------------------------------------------- hero -- */

header { padding: clamp(3.5rem, 11vh, 6.5rem) 0 clamp(2rem, 5vh, 3rem); }

.eyebrow {
  font: 600 0.75rem/1 var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}

h1 {
  font-size: clamp(2.1rem, 1.5rem + 3vw, 3.4rem);
  margin-bottom: 0.9rem;
}

.lede {
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem);
  color: var(--fg-mute);
  margin: 0 0 2rem;
  max-width: 54ch;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 500 0.95rem/1 var(--sans);
  padding: 0.72rem 1.1rem;
  border-radius: 7px;
  border: 1px solid var(--rule);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: oklch(0.99 0 0);
  font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  .btn-primary { color: oklch(0.17 0.008 260); }
}
.btn:hover { filter: brightness(1.06); }

/* ------------------------------------------------------------ terminal -- */

.term {
  background: var(--term-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid oklch(0.32 0.012 260);
  box-shadow: 0 14px 40px -18px oklch(0.15 0.02 260 / 0.55);
  margin: 2.4rem 0;
}

.term-bar {
  background: var(--term-bg-bar);
  padding: 0.55rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dot-r { background: oklch(0.68 0.17 25); }
.dot-y { background: oklch(0.80 0.14 85); }
.dot-g { background: oklch(0.75 0.16 145); }
.term-title {
  margin-left: 0.5rem;
  font: 500 0.75rem/1 var(--sans);
  color: var(--term-mute);
}

.term pre {
  margin: 0;
  padding: 1.05rem 1.15rem 1.25rem;
  overflow-x: auto;
  font: 400 0.815rem/1.65 var(--mono);
  color: var(--term-fg);
  tab-size: 4;
}

/* Terminal semantic colours */
.t-prompt { color: var(--term-accent); }
.t-mute   { color: var(--term-mute); }
.t-move   { color: var(--term-accent); font-weight: 700; }
.t-stage  { color: var(--term-warn);   font-weight: 700; }
.t-path   { color: var(--term-cyan); }

/* ------------------------------------------------------------ sections -- */

section { padding: clamp(2.5rem, 7vh, 4rem) 0; border-top: 1px solid var(--rule); }

h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
  margin-bottom: 0.85rem;
}
h3 {
  font-size: 1.02rem;
  margin: 1.9rem 0 0.5rem;
}
p { margin: 0 0 1rem; }
p, li { max-width: 62ch; }

.sub { color: var(--fg-mute); }

ul, ol { padding-left: 1.25rem; margin: 0 0 1rem; }
li { margin-bottom: 0.45rem; }
li::marker { color: var(--fg-faint); }

/* A callout for the one thing a reader must not miss. */
.note {
  border-left: 3px solid var(--warn);
  background: var(--warn-quiet);
  border-radius: 0 7px 7px 0;
  padding: 0.9rem 1.1rem;
  margin: 1.4rem 0;
}
.note p:last-child { margin-bottom: 0; }
.note strong { font-weight: 650; }

/* Install blocks */
.cmd {
  background: var(--term-bg);
  color: var(--term-fg);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  font: 400 0.83rem/1.7 var(--mono);
  margin: 0 0 0.9rem;
}
.cmd .t-prompt { user-select: none; }

.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.tab {
  font: 500 0.8rem/1 var(--sans);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--fg-mute);
  background: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.4rem;
  font-size: 0.94rem;
  display: block;
  overflow-x: auto;
}
th, td {
  text-align: left;
  padding: 0.6rem 0.8rem 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
th { font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-faint); }
td:first-child { white-space: nowrap; padding-right: 1.2rem; }

.badge {
  font: 700 0.72rem/1 var(--mono);
  padding: 0.3em 0.5em;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.badge-move  { background: var(--accent-quiet); color: var(--accent); }
.badge-stage { background: var(--warn-quiet);   color: var(--warn); }
.badge-skip  { background: var(--bg-sunk);      color: var(--fg-faint); border: 1px solid var(--rule); }

dl { margin: 1rem 0; }
dt { font-weight: 600; margin-top: 1.1rem; }
dd { margin: 0.3rem 0 0; color: var(--fg-mute); max-width: 62ch; }

footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3.5rem;
  color: var(--fg-faint);
  font-size: 0.88rem;
}
footer a { color: var(--fg-mute); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
