/* =============================================================================
   kuules.com — one stylesheet, every page.
   Palette read from shared/KuulesPanel.h so the site and the plugins are
   recognisably the same object rather than a dark theme that happens to rhyme.
   ========================================================================== */
:root{
  --window:#1b1e23; --section:#21242a; --well:#14161a;
  --accent:#5bc8d3; --warm:#e8a33d;
  --ink:#dde3ea; --ink-soft:#c8ced8; --ink-muted:#8b95a3; --ink-faint:#6b7480;
  --grid:#2a3038;
  --measure:32rem;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--window);color:var(--ink-soft);
  font:16px/1.65 ui-sans-serif,-apple-system,"Segoe UI",Inter,Roboto,sans-serif;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
.wrap{max-width:62rem;margin:0 auto;padding:0 1.5rem}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3{color:var(--ink);line-height:1.12;letter-spacing:-.02em;margin:0}
p{margin:0 0 1rem}
.measure{max-width:var(--measure)}

/* ---- BUTTONS ---------------------------------------------------------------
   align-self:flex-start is not cosmetic. Every hero here is a flex COLUMN, and
   a flex column stretches its children to full width by default -- which turned
   a button into a teal bar the width of the page. Sized to its own content is
   the whole point of a button: it says "this much is clickable". */
.btn{
  display:inline-block;align-self:flex-start;
  background:var(--accent);color:#0d1013;font-weight:640;
  padding:.8rem 1.6rem;border-radius:6px;border:1px solid var(--accent);
}
.btn:hover{filter:brightness(1.1);text-decoration:none}
.btn-ghost{background:transparent;color:var(--ink);border-color:var(--grid)}
.btn-ghost:hover{border-color:var(--ink-faint);filter:none}
.under{display:block;font-size:.85rem;color:var(--ink-faint);margin-top:.9rem}

/* ---- HEADER / FOOTER ------------------------------------------------------ */
header{padding:1.5rem 0;position:relative;z-index:2}
header .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.brand{color:var(--ink);font-weight:650;letter-spacing:.08em;font-size:.95rem}
.brand:hover{text-decoration:none;color:var(--accent)}
nav a{color:var(--ink-muted);margin-left:1.6rem;font-size:.94rem}
nav a:hover{color:var(--ink);text-decoration:none}
nav a[aria-current]{color:var(--ink)}

footer{border-top:1px solid var(--grid);padding:2.5rem 0 3.5rem;
  color:var(--ink-faint);font-size:.88rem;margin-top:5rem}
footer .cols{display:flex;flex-wrap:wrap;gap:2.5rem;justify-content:space-between}
footer a{color:var(--ink-muted)}

/* ---- SPACE AS AN ARGUMENT -------------------------------------------------
   This is a suite about where things are. The layout should behave like it
   knows that: motifs bleed off the edge so the field continues past the frame,
   and content sits deliberately left, right or centred rather than defaulting
   to one column down the middle. */
.field-bleed{
  position:absolute;pointer-events:none;opacity:.5;
  right:-14vw;top:50%;transform:translateY(-50%);
  width:min(52rem,68vw);z-index:0;
}
.hero{position:relative;display:flex;flex-direction:column;justify-content:center;
  min-height:calc(100vh - 6rem);padding:2rem 0 4rem}
.hero > *{position:relative;z-index:1}
h1{font-size:clamp(2.4rem,7vw,4.2rem);font-weight:650;max-width:15ch}
.lede{font-size:clamp(1.05rem,2vw,1.2rem);color:var(--ink-muted);
  max-width:var(--measure);margin:1.5rem 0 0}

/* Centred is right when a thing is the SUBJECT rather than a step. */
.centre{text-align:center;display:flex;flex-direction:column;align-items:center}
.centre .btn{align-self:center}
.centre .lede,.centre .measure{margin-left:auto;margin-right:auto}

/* ---- PAGE HEADS ----------------------------------------------------------- */
.head{padding:4.5rem 0 3rem;position:relative}
.head h1{font-size:clamp(2rem,5vw,3.2rem)}
.eyebrow{color:var(--ink-faint);font-size:.8rem;letter-spacing:.14em;
  text-transform:uppercase;margin-bottom:1rem}

/* ---- SHOTS ---------------------------------------------------------------- */
.shot{background:var(--well);border:1px solid var(--grid);border-radius:10px;
  aspect-ratio:16/9;overflow:hidden;display:flex;align-items:center;
  justify-content:center;color:var(--ink-faint);font-size:.85rem}
.shot img{width:100%;height:100%;object-fit:cover;display:block}
.shot-hero{margin-top:3.5rem}

/* ---- ROW LISTS: a name, a line, an arrow. Denser and calmer than cards. ---- */
.rows{display:grid;gap:0}
.row{display:grid;grid-template-columns:8rem 1fr auto;gap:1.5rem;
  align-items:baseline;padding:1.15rem 0;border-bottom:1px solid var(--grid)}
.row:first-child{border-top:1px solid var(--grid)}
.row .n{color:var(--ink);font-weight:600}
.row .d{color:var(--ink-muted);font-size:.95rem}
.row .go{color:var(--ink-faint);font-size:.9rem}
a.row:hover{text-decoration:none}
a.row:hover .n,a.row:hover .go{color:var(--accent)}
.row.soon .n{color:var(--ink-muted)}
.row.soon .go{color:var(--ink-faint);font-size:.72rem;letter-spacing:.08em;
  text-transform:uppercase}

/* ---- THE CHAIN: the plugin index laid out as signal flow, because WHERE a
   plugin sits in a chain is most of what someone needs to know about it. ---- */
.stage{padding:3.25rem 0;border-top:1px solid var(--grid)}
.stage-head{display:flex;align-items:baseline;gap:1rem;margin-bottom:1.5rem}
.stage-num{color:var(--accent);font-size:.8rem;letter-spacing:.14em}
.stage h2{font-size:1.35rem}
.stage-why{color:var(--ink-muted);font-size:.95rem;max-width:var(--measure);
  margin:.4rem 0 1.5rem}

/* ---- BODY TEXT BLOCKS ----------------------------------------------------- */
section{padding:3.5rem 0}
section + section{border-top:1px solid var(--grid)}
h2{font-size:1.5rem;font-weight:600;margin-bottom:1rem}
h3{font-size:1.02rem;font-weight:600;margin-bottom:.3rem}
.does{display:grid;gap:1.5rem;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));
  margin-top:2rem}
.does p{color:var(--ink-muted);font-size:.94rem;margin:0}
dl{display:grid;grid-template-columns:auto 1fr;gap:.55rem 1.5rem;margin:0;
  max-width:var(--measure)}
dt{color:var(--ink-faint);font-size:.95rem}
dd{margin:0;color:var(--ink-soft);font-size:.95rem}
.note{background:var(--section);border-left:2px solid var(--warm);
  border-radius:0 6px 6px 0;padding:1rem 1.2rem;max-width:var(--measure)}
.note p:last-child{margin:0}
.qa{max-width:44rem}
.qa h3{margin-top:2.25rem}
.qa h3:first-child{margin-top:0}
.qa p{color:var(--ink-muted)}

/* ---- IN DEVELOPMENT ------------------------------------------------------- */
.soon-tag{color:var(--warm);border:1px solid var(--warm);border-radius:999px;
  padding:.12rem .55rem;font-size:.66rem;letter-spacing:.08em;
  text-transform:uppercase;vertical-align:middle;margin-left:.6rem}

@media (max-width:40rem){
  .row{grid-template-columns:1fr auto;gap:.3rem 1rem}
  .row .d{grid-column:1 / -1}
  .field-bleed{opacity:.25;right:-30vw;width:40rem}
  footer .cols{gap:1.5rem}
}
