/* GENERATED by templates/site-scaffold/render.sh from templates/site-scaffold/base.css.
   Do not edit this file: edit that one, then run templates/site-scaffold/render.sh. */
/* The family scaffold: tokens, type, header, footer, hero, sections, rows,
   buttons, the copy block and forms. Rendered into every .tools site from one
   template; a site's own file follows it and sets --signal and --wire. */
:root {
  --ink: #14161d; --ink-2: #1a1d27; --ink-3: #21252f;
  --paper: #f4f5f8; --paper-2: #ffffff; --paper-3: #eef0f4;
  --line-d: #2b2f3b; --line-l: #e3e5ec;
  --fg-d: #e8eaf1; --fg-l: #1a1d27;
  --muted-d: #969cae; --muted-l: #59606f;
  /* Each tool's signal. Dark values are the palette's. Light values are the
     palette's darkened where needed so they read as text at 4.5:1 or better
     on paper and on surface-2 (muster, hail, muda); marks and favicons keep
     the palette values. */
  --c-galley-d: #5fb6c9;   --c-galley-l: #146e85;
  --c-muster-d: #eba63f;   --c-muster-l: #8f590d;
  --c-channels-d: #98a3ec; --c-channels-l: #5661b8;
  --c-hail-d: #6fc79a;     --c-hail-l: #1c754c;
  --c-kempt-d: #c08cd6;    --c-kempt-l: #7a3f9e;
  --c-tackle-d: #d98f66;   --c-tackle-l: #a4512a;
  --c-muda-d: #b9c06d;     --c-muda-l: #646b1e;
  --c-casebook-d: #d98a9e; --c-casebook-l: #a8425e;
  --c-diazo-d: #b490e2;    --c-diazo-l: #7a4bb8;
  --ok-d: #6fc79a; --ok-l: #1c754c;
  --warn-d: #eba63f; --warn-l: #8f590d;
  --danger-d: #f0686c; --danger-l: #c22a2a;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 60rem;
  --radius: 12px;
  /* The hub has no hue. A site's own file sets these to its tool's colours;
     each resolves per theme because the --c-* tokens do. */
  --signal: var(--text); --wire: var(--muted);
}
:root, :root[data-theme="dark"] {
  --bg: var(--ink); --surface: var(--ink-2); --surface-2: var(--ink-3);
  --text: var(--fg-d); --muted: var(--muted-d); --line: var(--line-d);
  --on-signal: var(--ink);
  --c-galley: var(--c-galley-d); --c-muster: var(--c-muster-d); --c-channels: var(--c-channels-d);
  --c-hail: var(--c-hail-d); --c-kempt: var(--c-kempt-d); --c-tackle: var(--c-tackle-d);
  --c-muda: var(--c-muda-d); --c-casebook: var(--c-casebook-d); --c-diazo: var(--c-diazo-d);
  --ok: var(--ok-d); --warn: var(--warn-d); --danger: var(--danger-d);
  --shadow: 0 1px 0 rgba(255,255,255,.03), 0 18px 40px -24px rgba(0,0,0,.7);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: var(--paper); --surface: var(--paper-2); --surface-2: var(--paper-3);
    --text: var(--fg-l); --muted: var(--muted-l); --line: var(--line-l);
    --on-signal: #ffffff;
    --c-galley: var(--c-galley-l); --c-muster: var(--c-muster-l); --c-channels: var(--c-channels-l);
    --c-hail: var(--c-hail-l); --c-kempt: var(--c-kempt-l); --c-tackle: var(--c-tackle-l);
    --c-muda: var(--c-muda-l); --c-casebook: var(--c-casebook-l); --c-diazo: var(--c-diazo-l);
    --ok: var(--ok-l); --warn: var(--warn-l); --danger: var(--danger-l);
    --shadow: 0 1px 0 rgba(0,0,0,.02), 0 18px 40px -28px rgba(20,22,29,.28);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: var(--paper); --surface: var(--paper-2); --surface-2: var(--paper-3);
  --text: var(--fg-l); --muted: var(--muted-l); --line: var(--line-l);
  --on-signal: #ffffff;
  --c-galley: var(--c-galley-l); --c-muster: var(--c-muster-l); --c-channels: var(--c-channels-l);
  --c-hail: var(--c-hail-l); --c-kempt: var(--c-kempt-l); --c-tackle: var(--c-tackle-l);
  --c-muda: var(--c-muda-l); --c-casebook: var(--c-casebook-l); --c-diazo: var(--c-diazo-l);
  --ok: var(--ok-l); --warn: var(--warn-l); --danger: var(--danger-l);
  --shadow: 0 1px 0 rgba(0,0,0,.02), 0 18px 40px -28px rgba(20,22,29,.28);
  color-scheme: light;
}
/* a family name wears its tool's colour wherever it appears */
.t-galley { --t: var(--c-galley); } .t-muster { --t: var(--c-muster); } .t-channels { --t: var(--c-channels); }
.t-hail { --t: var(--c-hail); } .t-kempt { --t: var(--c-kempt); } .t-tackle { --t: var(--c-tackle); }
.t-muda { --t: var(--c-muda); } .t-casebook { --t: var(--c-casebook); } .t-diazo { --t: var(--c-diazo); }

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.62; -webkit-font-smoothing: antialiased; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
a { color: var(--signal); }
code { font-family: var(--mono); font-size: .86em; background: var(--surface); border: 1px solid var(--line); padding: .05em .38em; border-radius: 5px; color: var(--text); overflow-wrap: anywhere; }
.mstr { font-family: var(--mono); color: var(--signal); font-weight: 600; font-size: .94em; letter-spacing: -.01em; }
.nw { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header: brand and the site's nav on the left; ↑ subaud and Account on the right */
.statusbar { border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.statusbar .bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.15rem; padding-top: .85rem; padding-bottom: .85rem; }
.statusbar a { text-decoration: none; }
.sb-brand { display: inline-flex; align-items: center; gap: .4em; color: var(--text); flex: none; }
.sb-brand b { font-weight: 600; }
.sb-brand .dot { color: var(--signal); }
.sb-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .95rem; min-width: 0; }
.sb-nav a { color: var(--muted); }
.sb-nav a:hover, .sb-nav a:focus-visible { color: var(--text); text-decoration: underline; }
.sb-nav a[aria-current] { color: var(--text); }
.sb-nav.fam a { color: var(--t); }
.sb-right { margin-left: auto; display: flex; align-items: center; gap: 1rem; flex: none; }
.sb-family { color: var(--muted); white-space: nowrap; }
.sb-family:hover, .sb-family:focus-visible { color: var(--text); }
.sb-account { color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: .28rem .65rem; white-space: nowrap; }
.sb-account:hover, .sb-account:focus-visible, .sb-account[aria-current] { border-color: var(--muted); }
@media (max-width: 44rem) {
  .sb-nav { order: 3; flex-basis: 100%; gap: .3rem .8rem; }
}

/* footer: the site's name and tagline, its links, the theme toggle last */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3.5rem; }
.foot { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.foot .mm { color: var(--text); font-weight: 600; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; }
.foot-links a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.foot-links a:hover { color: var(--text); border-bottom-color: var(--muted); }
.theme-toggle { font: inherit; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: .25rem .6rem; cursor: pointer; }
.theme-toggle:hover { color: var(--text); border-color: var(--muted); }

/* hero */
.hero { padding: clamp(3.25rem, 8vw, 5.5rem) 0 2.5rem; }
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--signal); margin: 0 0 1.3rem; }
.wordmark { font-family: var(--mono); font-weight: 600; font-size: clamp(2.5rem, 8vw, 4.2rem); letter-spacing: -.02em; margin: 0; line-height: 1; display: flex; align-items: center; gap: .14em; }
.wordmark .mark { flex: none; width: .82em; height: .82em; }
.wordmark .cursor { display: inline-block; width: .56ch; height: .88em; margin-left: .12em; transform: translateY(.06em); background: var(--signal); animation: blink 1.15s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
h1.lede { font-size: clamp(1.6rem, 4.3vw, 2.5rem); line-height: 1.14; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; margin: 1.4rem 0 1rem; max-width: 24ch; }
.sub { font-size: 1.1rem; color: var(--muted); max-width: 62ch; margin: 0 0 2rem; }
.sub b { color: var(--text); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.cta + .quiet { margin-top: 1rem; }

/* page title, for pages without a hero */
.page-head { padding: clamp(2.5rem, 6vw, 3.5rem) 0 .5rem; }
.page-head h1 { font-size: clamp(1.6rem, 4.3vw, 2.4rem); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .6rem; }
.page-head .sub { margin-bottom: 1.5rem; }
.narrow { max-width: 38rem; }

/* buttons */
.btn { font-family: var(--mono); font-size: .92rem; text-decoration: none; border-radius: 8px; padding: .7rem 1.15rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid transparent; cursor: pointer; background: none; color: var(--text); transition: transform .12s ease, background .15s ease, border-color .15s ease; }
.btn-primary { background: var(--signal); color: var(--on-signal); font-weight: 600; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); background: var(--surface); }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-sm { font-size: .8rem; padding: .42rem .8rem; }
.btn-block { width: 100%; }
.btn:focus-visible, .linkbtn:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.linkbtn { font: inherit; color: var(--text); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* sections */
section { padding: clamp(2.75rem, 6.5vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.kicker { font-family: var(--mono); font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.kicker::before { content: "$ "; color: var(--signal); }
h2 { font-size: clamp(1.4rem, 3.3vw, 1.95rem); letter-spacing: -.015em; line-height: 1.16; margin: 0 0 1rem; text-wrap: balance; }
.lead { font-size: 1.06rem; color: var(--muted); max-width: 64ch; margin: 0 0 1.75rem; }
.lead b, .note b { color: var(--text); font-weight: 600; }
.note { margin: 1.5rem 0 0; font-size: .98rem; color: var(--muted); max-width: 66ch; }
.quiet { font-size: .9rem; color: var(--muted); margin: .75rem 0 0; }

/* the family grid, and its sibling the link cards */
.toolgroups, .cards, .modes { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 44rem) {
  .toolgroups, .cards { grid-template-columns: 1fr 1fr; }
  .toolgroups > :last-child:nth-child(odd), .cards > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .modes { grid-template-columns: repeat(3, 1fr); }
}
.tg, .mode { background: var(--bg); padding: 1.3rem; }
.tg h3 { font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); margin: 0 0 .6rem; }
.tg h3 a { color: var(--t, var(--signal)); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.tg h3 a:hover { text-decoration: underline; }
.tg p, .mode p { margin: .45rem 0 0; color: var(--muted); font-size: .93rem; }
.mode .t { font-family: var(--mono); color: var(--signal); font-size: .82rem; letter-spacing: .04em; margin: 0 0 .5rem; }
.tico { width: 18px; height: 18px; border-radius: 4px; flex: none; }
.card { background: var(--bg); padding: 1.4rem; text-decoration: none; color: inherit; display: block; }
.card:hover, .card:focus-visible { background: var(--surface); outline: none; }
.card h3 { font-family: var(--mono); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); margin: 0 0 .55rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* rows: a key and its description */
.rows { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: grid; grid-template-columns: 1fr; gap: .3rem; padding: 1.2rem 1.3rem; }
@media (min-width: 44rem) { .row { grid-template-columns: 8rem 1fr; gap: 1.4rem; align-items: baseline; } }
.row + .row { border-top: 1px solid var(--line); }
.row .k { font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--signal); }
.row .d { color: var(--text); font-size: .98rem; }

/* lists: one thing per line, with its actions on the right */
.list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: auto 1fr auto; gap: .3rem 1rem; align-items: center; padding: 1.1rem 1.25rem; background: var(--bg); }
.item + .item { border-top: 1px solid var(--line); }
.item > * { min-width: 0; }
.item .ico { width: 22px; height: 22px; color: var(--muted); }
.item .name { font-family: var(--mono); font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; color: var(--t, var(--text)); font-weight: 600; }
.item .name.plain { text-transform: none; letter-spacing: 0; color: var(--text); }
.item .what, .item .meta { color: var(--muted); font-size: .92rem; margin-top: .15rem; }
.item .side { display: flex; align-items: center; gap: .8rem; justify-self: end; flex-wrap: wrap; justify-content: flex-end; }
.item .full { grid-column: 1 / -1; }
.price { font-family: var(--mono); font-size: .95rem; color: var(--text); font-weight: 600; white-space: nowrap; }
.have { font-family: var(--mono); font-size: .78rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 34rem) {
  .item { grid-template-columns: auto 1fr; align-items: start; }
  .item > .tico, .item > .ico, .item > .swatch2 { margin-top: .2rem; }
  .item .side { grid-column: 2; justify-self: start; justify-content: flex-start; }
}

/* code, and the block you paste to your agent */
pre.code { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; overflow-x: auto; font-family: var(--mono); font-size: .85rem; line-height: 1.8; margin: 0; color: var(--text); box-shadow: var(--shadow); }
pre.code .cm { color: var(--muted); } pre.code .pr { color: var(--signal); }
.hero pre.code { margin: 1.5rem 0 1.25rem; }
.say { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.15rem 3.1rem; font-family: var(--mono); font-size: .82rem; line-height: 1.65; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; margin: .75rem 0 0; }
.say .lead-line { font-weight: 700; }
.say .copy { position: absolute; right: .7rem; bottom: .65rem; }
.copy { font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .3rem .7rem; cursor: pointer; }
.copy:hover { border-color: var(--muted); }
details.more { margin-top: .4rem; }
details.more > summary { cursor: pointer; font-family: var(--mono); font-size: .82rem; color: var(--text); }

/* screenshots: a light and a dark capture, the one matching the theme shows */
.shot { margin: 1.75rem 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { font-family: var(--mono); font-size: .8rem; color: var(--muted); padding: .8rem 1.2rem; border-top: 1px solid var(--line); }
.shot .on-l { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .shot .on-d { display: none; } :root:not([data-theme="dark"]) .shot .on-l { display: block; } }
:root[data-theme="light"] .shot .on-d { display: none; } :root[data-theme="light"] .shot .on-l { display: block; }

/* notices: one status at the top of a page */
.banner { border: 1px solid var(--line); border-left: 3px solid var(--tone, var(--muted)); background: var(--surface); border-radius: 10px; padding: 1.1rem 1.25rem; margin: 0 0 1.5rem; }
.banner .h { font-weight: 600; margin: 0 0 .25rem; display: flex; gap: .5rem; align-items: center; }
.banner .h svg { color: var(--tone, var(--muted)); flex: none; }
.banner p { margin: .25rem 0 0; color: var(--muted); }
.banner .acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.tone-ok { --tone: var(--ok); } .tone-warn { --tone: var(--warn); } .tone-danger { --tone: var(--danger); } .tone-muted { --tone: var(--muted); }

/* forms */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.25rem; margin: 0 0 .5rem; }
label { display: block; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 1.1rem 0 .4rem; }
input[type=text], input[type=email] { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .7rem .85rem; }
input:focus { outline: 2px solid var(--signal); outline-offset: 1px; }
input[aria-invalid=true] { border-color: var(--danger); }
input + .btn, .err + .btn { margin-top: 1rem; }
.err { color: var(--danger); font-size: .9rem; margin: .45rem 0 0; }
.err:empty { display: none; }
.buying { display: flex; gap: .75rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: .75rem .9rem; margin: .75rem 0 0; background: var(--bg); }
.buying b { display: block; font-size: .95rem; }
.buying span { color: var(--muted); font-size: .88rem; }
.buying .dots { display: flex; gap: 3px; padding-top: .3rem; }
.buying .dots i { width: 10px; height: 10px; border-radius: 3px; background: var(--t); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .wordmark .cursor { animation: none; } .btn { transition: none; } }
