/* ssheep — the same house style as joinmyhomelab.com, for a different tool. */

* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  --bg: #07090c;
  --fg: #e6edf3;
  --mut: #79879a;
  --line: #18212b;
  --card: #0b1016;
  --wire: #33465e;
  --accent: #f5a623;
  --accent2: #ffd479;
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.6 "Courier New", Courier, "Nimbus Mono PS", "Liberation Mono", monospace;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
pre { margin: 0; overflow-x: auto; }
code { font-family: inherit; }
em { color: var(--fg); font-style: normal; }

/* ── the banner: one thin line, emoji inline ───────────────────────────── */
.vibe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(9px, 1.3vw, 11px);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--mut);
}
.vibe .hot { color: var(--accent); }
.vibe .bot { display: inline-flex; align-items: center; gap: 1px; line-height: 1; letter-spacing: 0; }
.vibe .arm { font-size: .95rem; display: inline-block; transform: translateY(2px); }
.vibe .arm.flip { transform: scaleX(-1) translateY(2px); }
.vibe .head { font-size: 1.15rem; }
.vibe a { color: var(--mut); border-bottom: 1px solid var(--line); }
.vibe a:hover { color: var(--accent); text-decoration: none; }

/* ── the wordmark: in the left column, above the pitch ─────────────────── */
.v3 { max-width: 1080px; margin: 0 auto; padding: 22px 20px 30px; }
.pitch .big { margin: 0 0 2px; }
.wordmark { display: block; width: 100%; height: auto; }
.wordmark .wm-word {
  font-family: Verdana, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 150px;
  font-weight: 800;
  fill: var(--accent);
}

/* ── two columns: the pitch on the left, the terminal on the right ─────── */
.v3grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px; align-items: stretch; }
@media (max-width: 820px) { .v3grid { grid-template-columns: 1fr; gap: 28px; } }
.pitch { display: flex; flex-direction: column; min-width: 0; }
.v3side { min-width: 0; }

/* ── the headline: an SVG text that stretches to the column width ─────── */
.headline {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 16px;
  overflow: visible;
}
.headline text {
  font-family: Verdana, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 62px;
  font-weight: 700;
  fill: var(--fg);
}

/* ── the install line, click to copy ───────────────────────────────────── */
.cmd {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 3px solid var(--accent);
  color: var(--fg);
  font: inherit;
  font-size: clamp(12px, 1.4vw, 14px);
  padding: 12px 16px;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  position: relative;
  animation: breathe 5.2s ease-in-out infinite;
}
.cmd .s { color: var(--accent); }
.cmd:hover, .cmd:focus-visible {
  border-color: var(--accent2);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.cmd:active { background: color-mix(in srgb, var(--accent) 24%, transparent); }
.cmd.copied { animation: lightup 1.1s ease-out; }
@keyframes lightup {
  0% {
    background: color-mix(in srgb, var(--accent) 30%, transparent);
    box-shadow: 0 0 0 1px var(--accent2), 0 0 30px 2px color-mix(in srgb, var(--accent) 55%, transparent);
  }
  100% {
    background: transparent;
    box-shadow: 0 0 0 0 transparent, 0 0 12px 0 transparent;
  }
}
.cmd.copied::after {
  content: "copied";
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent2);
  animation: label 1.6s ease-out forwards;
}
@keyframes label { 0% { opacity: 0 } 6% { opacity: 1 } 100% { opacity: 0 } }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 1px transparent, 0 0 16px color-mix(in srgb, var(--accent) 16%, transparent); }
  50% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 36%, transparent), 0 0 26px color-mix(in srgb, var(--accent) 30%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .cmd { animation: none; } }

/* the two halves, same outline as the install line, no glow */
.btnrow { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.btnrow a {
  display: block; text-align: center;
  border: 3px solid var(--accent);
  color: var(--fg);
  padding: 10px;
  font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  transition: background-color .16s, border-color .16s, color .16s;
}
.btnrow a:hover {
  border-color: var(--accent2);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  text-decoration: none;
}
.btnrow a:active, .btnrow a.lit {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  border-color: var(--accent2);
}

/* ── features: one line each ───────────────────────────────────────────── */
.fhead { color: var(--accent); font-weight: 700; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; margin: 24px 0 2px; }
.feat { list-style: none; margin: 22px 0 0; padding: 0; color: #b8c4d0; font-size: 14px; line-height: 1.5; }
.feat li { padding: 4px 0; border-top: 1px dashed var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat li:first-child { border-top: 0; }
.feat li.wide { white-space: normal; overflow: visible; }
@media (max-width: 620px) { .feat li { white-space: normal; overflow: visible; } }
.feat .ic { display: inline-block; min-width: 1.5em; margin-right: .75em; }

/* ── the terminal, and the picture under it ───────────────────────────── */
/* The column is as tall as the one beside it, and the picture takes up the
   slack: the terminal keeps its size and the map box grows. That way the two
   columns line up whatever the feature list is doing this week. */
.v3side { display: flex; }
.term { display: flex; flex-direction: column; width: 100%; max-width: none; margin: 0; padding: 0; }
.term .win { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); background: var(--card); box-shadow: 0 40px 90px -54px #000; }
.term .tbar { display: flex; gap: 8px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #0a0f15; }
.term .dt { width: 10px; height: 10px; border-radius: 50%; }
.term .dt.r { background: #ff5f57; } .term .dt.y { background: #febc2e; } .term .dt.g { background: #28c840; }
.term .tbar .tt { margin-left: 8px; color: var(--mut); font-size: 12.5px; }
.term .termbody { padding: 13px 12px; }
.term .termbody pre.dash {
  margin: 0; font: inherit;
  font-family: "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  font-size: clamp(8px, 0.95vw, 10.5px);
  line-height: 1.5;
  white-space: pre;
  overflow-x: hidden;
}
.term .dash .p, .term .dash .c { color: var(--accent); }
.term .dash .g { color: var(--accent2); }
.term .dash .m { color: var(--mut); }
.term .agent { background: none; }
.term .art { color: var(--accent2); background: none; }
.term .cp { cursor: pointer; border-bottom: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.term .cp:hover { color: var(--accent2); }
.term .cp.copied::after { content: " copied"; color: var(--accent2); }
.term .cur { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .term .cur { animation: none; } }

/* ── the diagram ───────────────────────────────────────────────────────── */
.diagram { border: 1px solid var(--line); background: var(--card); padding: 10px 8px 4px; }
.diagram svg { display: block; width: 100%; height: auto; }
.dg .box { fill: #0e141d; stroke: var(--wire); stroke-width: 1; }
.dg .master { stroke: var(--accent); }
.dg .flockbox { fill: none; stroke: var(--line); stroke-dasharray: 4 4; }
.dg text { fill: var(--fg); font: 12px "Courier New", Courier, monospace; }
.dg .lbl { fill: var(--mut); font-size: 11px; letter-spacing: .08em; }
.dg .fname { fill: var(--accent); font-size: 12.5px; letter-spacing: .1em; }
.dg .em { font-size: 26px; }
.dg .wire { fill: none; stroke: var(--wire); stroke-width: 1.2; }
.dg .fan { fill: none; stroke: #8b98a5; stroke-width: 1; opacity: .5; }
.dg .flow { fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-dasharray: 3 7; opacity: .85; animation: crawl 3.6s linear infinite; }
@keyframes crawl { to { stroke-dashoffset: -40; } }
@media (prefers-reduced-motion: reduce) { .dg .flow { animation: none; } }
.dg .sheep { fill: #0e141d; stroke-width: 1.5; }

/* ── the map: the shape of a flock, under the terminal ─────────────────── */
.mapbox { border-top: 1px solid var(--line); background: radial-gradient(120% 120% at 50% 0%, #0c131c, #080c11); padding: 16px 16px 12px; flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
.mapbox svg { display: block; width: 100%; height: auto; }

/* ── the about page: plain pre, tables, boxes ──────────────────────────── */
.v3 pre.plain { background: var(--card); border: 1px solid var(--line); padding: 11px 13px; font-size: 12px; line-height: 1.55; margin: 10px 0; }
.warn { margin: 16px 0; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, var(--card)); font-size: 12.5px; }
.warn strong { color: var(--accent); }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
td { padding: 8px 10px 8px 0; vertical-align: top; border-bottom: 1px dashed var(--line); }
td:first-child { white-space: nowrap; width: 1%; }
.v3 h1.pagetitle { font-size: clamp(24px, 4.2vw, 44px); font-weight: 400; letter-spacing: -.02em; margin: 0 0 6px; }
.v3 h2 { color: var(--accent); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 400; margin: 28px 0 8px; }
.v3 h3 { font-size: 13.5px; font-weight: 400; margin: 14px 0 4px; }
.v3 p { margin: .6rem 0; }
.muted { color: var(--mut); }
.step { display: flex; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); }
.step:first-child { border-top: 0; }
.step .n { color: var(--accent); flex: none; }
.step .x { color: var(--mut); min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 780px) { .grid2 { grid-template-columns: 1fr; } }

/* ── footer: links only, centred ───────────────────────────────────────── */
.foot { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; color: var(--mut); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; border-top: 1px solid var(--line); margin-top: 26px; padding-top: 14px; }
.foot a { color: var(--mut); }
.foot a:hover { color: var(--accent); text-decoration: none; }
