/* peeza.app: what every page shares. Colours, type, the nav, sections, cards,
   buttons, the cookie notice. A page's own pieces go in a file of its own. */
@font-face { font-family:'Plus Jakarta Sans'; font-style:normal; font-weight:200 800; font-display:swap;
    src:url("/fonts/PlusJakartaSans-latin.woff2") format('woff2');
    unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Plus Jakarta Sans'; font-style:normal; font-weight:200 800; font-display:swap;
    src:url("/fonts/PlusJakartaSans-latin-ext.woff2") format('woff2');
    unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
:root {
    --bg:#17171a; --card:#1e1e23; --card2:#26262c; --text:#f0f0f3; --muted:#a5a5ad;
    --accent:#c6851a; --accent-ink:#ffffff; --ok:#3ecf8e; --line:#2a2a31; --line2:#3a3a43;
    --link:#e0a957; --link-hover:#eec27f; --chip:#211d15; --chip-line:#3a3020;
    --band:#1b1b1f; --shadow:0 24px 60px rgba(0,0,0,.45);
  }
:root[data-theme="light"] {
    --bg:#ffffff; --card:#ffffff; --card2:#f6f6f8; --text:#17171a; --muted:#6e6e76;
    --accent:#c6851a; --accent-ink:#ffffff; --ok:#12a150; --line:#ececee; --line2:#dcdce0;
    --link:#98650f; --link-hover:#7a4f0e; --chip:#fbf3e4; --chip-line:#f0dcb4;
    --band:#faf9f7; --shadow:0 24px 60px rgba(23,23,26,.13);
  }
@media (prefers-color-scheme:light) {
  :root:not([data-theme]) {
      --bg:#ffffff; --card:#ffffff; --card2:#f6f6f8; --text:#17171a; --muted:#6e6e76;
      --accent:#c6851a; --accent-ink:#ffffff; --ok:#12a150; --line:#ececee; --line2:#dcdce0;
      --link:#98650f; --link-hover:#7a4f0e; --chip:#fbf3e4; --chip-line:#f0dcb4;
      --band:#faf9f7; --shadow:0 24px 60px rgba(23,23,26,.13);
    }
}
* { box-sizing:border-box; margin:0; }
body { background:var(--bg); color:var(--text); font:16px/1.6 'Plus Jakarta Sans',-apple-system,"Segoe UI",Roboto,sans-serif; -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
.wrap { max-width:1000px; margin:0 auto; padding:0 22px; width:100%; }
.vh { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
nav { border-bottom:1px solid var(--line); position:sticky; top:0; z-index:10;
        background:color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
.nav-links { display:flex; gap:18px; align-items:center; font-size:14px; color:var(--muted); }
.nav-links a:hover { color:var(--text); }
.nav-cta { border:1px solid var(--line); padding:7px 16px; border-radius:9px; color:var(--text); font-weight:600; }
.nav-cta:hover { border-color:var(--muted); }
.lang-btn { font-weight:700; font-size:13px; letter-spacing:.03em; cursor:pointer; }
.icon-btn { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; padding:0; background:none; border:none; color:var(--muted); cursor:pointer; }
.icon-btn:hover { color:var(--text); }
.icon-btn svg { width:18px; height:18px; }
@media (max-width:760px) {
  .hide-sm { display:none; }
}
section { padding:88px 0; }
section.band { background:var(--band); border-block:1px solid var(--line); }
h1 { font-size:clamp(34px,5.8vw,62px); line-height:1.05; font-weight:800; letter-spacing:-0.035em; text-wrap:balance; max-width:13.5em; margin:0 auto; }
h2 { font-size:clamp(26px,3.6vw,38px); line-height:1.12; font-weight:800; letter-spacing:-0.03em; text-align:center; text-wrap:balance; }
h3 { font-size:17px; font-weight:700; letter-spacing:-0.01em; }
.lede { color:var(--muted); text-align:center; max-width:560px; margin:12px auto 0; font-size:17px; text-wrap:balance; }
.lede strong { color:var(--text); font-weight:700; }
.more { display:block; text-align:center; margin-top:28px; font-size:15px; font-weight:600; color:var(--link); }
.more a:hover { color:var(--link-hover); }
.more a + a { margin-left:22px; }
.dl { display:inline-flex; align-items:center; gap:12px; margin-top:44px; background:var(--accent); color:var(--accent-ink); font-weight:700; font-size:18px; padding:15px 30px; border-radius:14px; box-shadow:0 10px 26px color-mix(in srgb, var(--accent) 35%, transparent); transition:transform .15s, background .15s; }
.dl:hover { background:#d8952a; transform:translateY(-1px); }
.dl svg { width:20px; height:20px; fill:currentColor; }
.dl svg[hidden] { display:none; }
/* Direct and swarm */
.ways, .grid, .proof { list-style:none; padding:0; }
.ways { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:44px; }
.way { background:var(--card); border:1px solid var(--line); border-radius:18px; padding:26px 26px 28px; }
.way p { color:var(--muted); font-size:15px; margin-top:6px; }
/* Feature grid */
.grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:44px; }
.feat { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:22px; }
.feat svg { width:26px; height:26px; color:var(--accent); margin-bottom:12px; }
.feat p { color:var(--muted); font-size:14.5px; margin-top:5px; line-height:1.5; }
/* Trust: the promise, then where to check it. */
.proof { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:36px; }
.proof a { display:block; height:100%; border:1px solid var(--line); border-radius:14px; padding:18px 20px; background:var(--card); transition:border-color .15s; }
.proof a:hover { border-color:var(--muted); }
.proof strong { display:block; font-size:15px; font-weight:700; }
.proof span { color:var(--muted); font-size:14px; }
.cta { text-align:center; padding:96px 0 84px; }
.cta.band { border-bottom:none; }
body footer.site-foot { margin-top:0; }
.cta .dl { margin-top:30px; }
@media (max-width:820px) {
  section { padding:64px 0; }
  .grid { grid-template-columns:1fr 1fr; }
  .ways, .proof { grid-template-columns:1fr; }
}
@media (max-width:640px) {
  .grid { grid-template-columns:1fr; }
}
/* cookie banner */
.cookie-bar { position:fixed; left:50%; bottom:18px; transform:translateX(-50%); z-index:20; display:flex; align-items:center; gap:14px; max-width:calc(100% - 32px); background:var(--card); border:1px solid var(--line); border-radius:12px; padding:11px 14px 11px 18px; font-size:13.5px; color:var(--muted); box-shadow:0 8px 30px rgba(0,0,0,.25); }
.cookie-bar[hidden] { display:none; }
.cookie-ok { flex:none; background:var(--accent); color:var(--accent-ink); border:none; border-radius:8px; font:inherit; font-size:13px; font-weight:700; padding:6px 14px; cursor:pointer; }
.cookie-ok:hover { background:#d8952a; }
.cookie-no { flex:none; background:none; color:var(--text); border:1px solid var(--line); border-radius:8px; font:inherit; font-size:13px; font-weight:700; padding:5px 13px; cursor:pointer; }
.cookie-no:hover { border-color:var(--muted); }
@media (max-width:640px) {
  .cookie-bar { width:calc(100% - 32px); justify-content:space-between; }
}

/* A page that is read, not scanned: How it works and the reference pages. */
.page-head { padding:72px 0 12px; text-align:center; }
.page-head .lede { font-size:19px; max-width:620px; }
section.tight { padding:44px 0; }
section.tight + section.tight { border-top:1px solid var(--line); }
.prose { max-width:764px; }
.prose h2 { text-align:left; font-size:clamp(23px,2.8vw,30px); }
.prose h3 { margin-top:30px; }
.prose p { margin-top:14px; }
.prose p.note { color:var(--muted); font-size:14px; }
.prose ul, .prose ol { margin-top:14px; padding-left:22px; }
.prose li { margin-top:9px; }
.prose li::marker { color:var(--accent); }
.prose a { color:var(--link); text-decoration:underline; text-underline-offset:3px; }
.prose a:hover { color:var(--link-hover); }
/* Numbered steps, drawn as the home page's cards. */
.steps { counter-reset:step; margin-top:0; }
.steps .feat::before { counter-increment:step; content:counter(step); display:grid; place-items:center; width:30px; height:30px; margin-bottom:12px; border-radius:50%; background:var(--chip); border:1px solid var(--chip-line); color:var(--accent); font-weight:800; font-size:14px; }
.dl-note { color:var(--muted); font-size:14px; margin-top:14px; }
/* A page laid out like the home (body.left, docs/features/site-positioning):
   everything starts at the left edge, and the close is the words with the
   button beside them. */
.left h1 { margin:0; }
.left h2 { text-align:left; }
.left .page-head { text-align:left; padding-bottom:28px; }
.left .lede { margin-left:0; text-align:left; }
.left .page-head .lede { margin-top:18px; max-width:34em; }
.left .more { text-align:left; }
/* A prose section fills the column: its heading on the left, its text on the right. */
.left .wrap.prose { max-width:1000px; display:grid; grid-template-columns:minmax(0,.36fr) minmax(0,1fr); column-gap:56px; }
.left .prose > * { grid-column:2; }
.left .prose > h2 { grid-column:1; grid-row:1 / span 40; align-self:start; }
.left .prose > h2 + * { margin-top:0; }
.left .cta { text-align:left; padding:96px 0; }
.left .cta .dl { margin-top:0; }
.left .cta h2 { text-align:left; }
.cta-row { display:flex; justify-content:space-between; align-items:center; gap:32px; flex-wrap:wrap; }
/* Three short things side by side: a rule over each, no box, no number. */
.trio { list-style:none; padding:0; display:grid; grid-template-columns:repeat(3,1fr); gap:0 40px; }
.trio li { border-top:1px solid var(--line); padding:16px 0 8px; }
.trio p { color:var(--muted); font-size:15.5px; margin-top:4px; }
.trio.pair { grid-template-columns:repeat(2,1fr); }
.left h2:not(.vh) + .trio { margin-top:28px; }
@media (max-width:820px) {
  .left .wrap.prose { display:block; }
  .left .prose > h2 + * { margin-top:14px; }
}
@media (max-width:720px) { .trio, .trio.pair { grid-template-columns:1fr; } }
.dl-legacy { margin-top:4px; }
.dl-legacy[hidden] { display:none; }
.dl-legacy a { color:var(--link); text-decoration:underline; text-underline-offset:3px; }
.dl-legacy a:hover { color:var(--link-hover); }

/* Code: a word in a sentence, a terminal session, a command with its copy button. */
code { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; background:var(--card2); border:1px solid var(--line); color:var(--accent); padding:2px 7px; border-radius:6px; font-size:.86em; }
pre.term, pre.cmd { margin-top:14px; background:var(--card2); border:1px solid var(--line); border-radius:12px; padding:16px 18px; overflow-x:auto; white-space:pre-wrap; overflow-wrap:anywhere; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:13.5px; line-height:1.7; color:var(--muted); }
/* /about: Eric's picture beside his words; an empty figure draws as a placeholder. */
.left .prose > .portrait { grid-column:1; grid-row:1 / span 40; align-self:start; position:sticky; top:84px; }
.portrait { margin:0; aspect-ratio:4 / 5; border-radius:14px; overflow:hidden; background:var(--card2); }
.portrait:empty { border:1.5px dashed var(--line2); display:grid; place-items:center; color:var(--muted); font-size:13px; }
.portrait:empty::after { content:"Photo"; }
.portrait img { display:block; width:100%; height:100%; object-fit:cover; }
@media (max-width:820px) { .left .prose > .portrait { position:static; max-width:200px; margin-bottom:24px; } }
pre.term b { color:var(--text); font-weight:700; }
pre.term .a { color:var(--accent); }
pre.cmd { color:var(--text); }
/* A phone is narrower than one web address: a command scrolls sideways, whole, and is never cut mid-word. */
@media (max-width:760px) { pre.cmd { white-space:pre; overflow-wrap:normal; font-size:12.5px; } }
/* The space above belongs to the box, so the copy button's corner is the block's corner. */
.cmdbox { position:relative; margin-top:14px; }
.cmdbox pre.cmd { margin-top:0; padding-right:52px; }
.cmdbox .copy { position:absolute; top:13px; right:13px; }
.copy { width:28px; height:28px; padding:0; background:var(--card); border:1px solid var(--line); border-radius:7px; color:var(--muted); cursor:pointer; }
.copy:hover { color:var(--text); border-color:var(--chip-line); }
.copy svg { width:13px; height:13px; display:block; margin:0 auto; }
.copy.done { color:var(--ok); border-color:var(--ok); }
