/* What every page of www.pipeleo.com shares (story 370): the page base, the top bar, the footer and the
   plain text page. The bar and footer markup come from tools/site-frame/frame.html. Every colour, face and
   size is a site token in tokens.css (docs/DESIGN-TOKENS.md, "Site pages"). */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth;background:var(--site-paper);interpolate-size:allow-keywords}
body{max-width:var(--site-max);margin-inline:auto;background:var(--site-paper);color:var(--site-ink);font-weight:var(--weight-regular);font-size:var(--text-site-16);line-height:1.5;font-family:var(--font-site);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.g{padding-left:max(var(--site-gutter),env(safe-area-inset-left,0px));padding-right:max(var(--site-gutter),env(safe-area-inset-right,0px))}
a{color:inherit;text-decoration:none}
a,button,summary{touch-action:manipulation}
:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:6px}
.mono{font-weight:var(--weight-medium);font-size:var(--text-site-12);line-height:1.3;font-family:var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--site-muted)}
p{margin:0;text-wrap:pretty}
h1,h2,h3{margin:0;font-weight:var(--weight-medium);text-wrap:balance}
.ic{width:1.15em;height:1.15em;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* nav */
.nav{display:flex;align-items:center;gap:22px;height:var(--site-nav);font-size:var(--text-site-15);color:var(--site-muted);position:sticky;top:env(safe-area-inset-top,0px);z-index:6;background:var(--site-paper)}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:10;background:var(--site-paper)}
.logo{display:flex;align-items:center;gap:9px;min-height:44px;font-weight:var(--weight-strong);font-size:var(--text-site-18);line-height:1;font-family:var(--font-site);color:var(--site-ink);letter-spacing:-.02em;margin-right:auto}
.logo svg{width:22px;height:22px}
.nav a.l{display:none}
@media (min-width:760px){.nav a.l{display:block;padding-block:12px}}
.nav a.l:hover{color:var(--site-ink)}
/* phones: the same four links, in view under the top bar (they scroll away) */
.sub{display:flex;justify-content:space-between;font-size:var(--text-site-15);color:var(--site-muted)}
.sub a{display:flex;align-items:center;min-height:44px;padding:0 6px;margin-inline:-6px}
@media (min-width:760px){.sub{display:none}}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.btn{display:inline-flex;align-items:center;gap:10px;background:var(--site-ink);color:var(--site-paper);font-weight:var(--weight-medium);font-size:var(--text-site-16);line-height:1;font-family:var(--font-site);min-height:46px;padding:0 22px;white-space:nowrap;border-radius:999px;transition:transform .15s var(--site-ease)}
.btn .ic{transition:transform .25s var(--site-ease)}
.btn:hover .ic{transform:translateX(4px)}
.btn:active{transform:scale(.97)}
.btn.sm{min-height:44px;padding:0 16px;font-size:var(--text-site-15)}
/* the pause button belongs to pages with motion; home.css shows it */
.motion{display:none}

/* footer: three groups, then the small print */
.foot{display:flex;flex-direction:column;gap:12px;margin-top:clamp(24px,5vh,48px);padding-block:26px 22px;box-shadow:0 -1px 0 var(--site-soft);font-size:var(--text-site-14);color:var(--site-muted)}
/* The footer line starts and ends on the same edges as the top bar's logo and button (Chris, 2026-11-16: one spacing on every page). */
.foot.g{margin-inline:max(var(--site-gutter),env(safe-area-inset-left,0px)) max(var(--site-gutter),env(safe-area-inset-right,0px));padding-inline:0}
.foot-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px 16px}
.foot nav{display:flex;flex-direction:column;align-items:flex-start}
.foot h2{font-family:var(--font-mono);font-weight:var(--weight-medium);font-size:var(--text-site-12);line-height:1.3;letter-spacing:.06em;text-transform:uppercase;color:var(--site-muted);padding-block:8px}
.foot a{display:inline-flex;align-items:center;min-height:44px;font-size:var(--text-site-15);color:var(--site-ink)}
.foot a:hover{text-decoration:underline;text-underline-offset:3px}

/* a plain text page: the legal pages and the 404 page */
.doc{display:flex;flex-direction:column;gap:14px;max-width:calc(68ch + 2 * var(--site-gutter));margin-inline:auto;padding-block:clamp(24px,5vh,56px) 0}
.doc .crumbs{align-self:flex-start}
.doc .crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:4px 8px;font-size:var(--text-site-14);color:var(--site-muted)}
.doc .crumbs li{display:flex;align-items:center;gap:8px;font-size:var(--text-site-14);line-height:1.4}
.crumbs li+li::before{content:"/";color:var(--site-muted)}
.doc .crumbs a{text-decoration:none;color:var(--site-muted);display:inline-flex;align-items:center;min-height:24px}
.doc .crumbs a:hover{color:var(--site-ink);text-decoration:underline}
.crumbs [aria-current]{color:var(--site-ink)}
.doc h1{font-size:var(--text-site-h2);line-height:1;letter-spacing:-.045em}
.doc h2{font-size:var(--text-site-24);line-height:1.2;letter-spacing:-.02em;margin-top:16px}
.doc h3{font-size:var(--text-site-18);line-height:1.3;font-weight:var(--weight-strong);margin-top:8px}
.doc .hi{display:flex;align-items:center;gap:12px}
.doc .hi .ic{color:var(--site-accent)}
.doc h1.hi .ic{width:.6em;height:.6em;stroke-width:2}
.doc h3.hi{gap:10px}
.doc button .ic{margin-left:10px;width:1em;height:1em}
.doc ul,.doc ol{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:6px}
.doc p,.doc li{font-size:var(--text-site-17);line-height:1.55}
.doc .muted{color:var(--site-muted)}
.doc a{text-decoration:underline;text-underline-offset:3px}
/* questions on a text page: each opens and closes with a click, Enter or Space */
.doc details{box-shadow:0 1px 0 var(--site-soft)}
.doc summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:12px;min-height:44px;padding-block:8px;font-size:var(--text-site-17);font-weight:var(--weight-medium);line-height:1.3}
.doc summary::-webkit-details-marker{display:none}
.doc summary::after{content:"+";margin-left:auto;font-size:var(--text-site-24);line-height:1;color:var(--site-muted);transition:rotate .3s var(--site-ease)}
.doc details[open] summary::after{rotate:45deg}
.doc details p{padding:0 0 12px;color:var(--site-muted)}
.doc p>a:only-child{display:inline-flex;align-items:center;min-height:44px}
/* a link inside a sentence of small print stays inline, so its lines keep even gaps */
.doc p.muted>a:only-child{display:inline;min-height:0}
/* Site forms (/contact, /opt-out): one field per line, the label above its box, 44px targets. */
.doc form{display:flex;flex-direction:column;gap:18px;margin-top:8px}
.doc form p{margin:0}
.doc label{display:flex;flex-direction:column;gap:8px;font-size:var(--text-site-15);font-weight:var(--weight-medium);color:var(--site-ink)}
/* Soft fields (Chris, 2026-11-16: "softer, less dark edges"): a light fill and a pale edge, the edge turns ink on focus. */
.doc input,.doc textarea{font:inherit;font-weight:var(--weight-regular);font-size:var(--text-site-17);color:var(--site-ink);background:var(--site-card);border:1px solid var(--site-dot);border-radius:14px;min-height:52px;padding:12px 16px;width:100%;max-width:100%;transition:border-color .15s var(--site-ease),background-color .15s var(--site-ease),box-shadow .15s var(--site-ease)}
.doc input:hover,.doc textarea:hover{border-color:var(--site-muted)}
.doc input:focus,.doc textarea:focus{outline:none;background:var(--site-paper);border-color:var(--site-ink);box-shadow:0 0 0 4px var(--site-accent-soft)}
.doc textarea{resize:vertical;line-height:1.5}
.doc label .hint{font-size:var(--text-site-15);font-weight:var(--weight-regular);line-height:1.45;color:var(--site-muted);margin-top:-2px}
.doc input::placeholder,.doc textarea::placeholder{color:var(--site-muted);opacity:.75}
.doc button:focus-visible{outline:2px solid var(--site-ink);outline-offset:3px}
/* The send button: big, with room above it, the words in the strong weight (Chris, 2026-11-16). */
.doc form button{margin-top:10px;min-height:56px;padding:0 32px;font-size:var(--text-site-18);font-weight:var(--weight-strong);letter-spacing:-.01em}
@media (max-width:520px){.doc form button{width:100%}}
.doc button{align-self:flex-start;display:inline-flex;align-items:center;justify-content:center;font-family:var(--font-site);font-size:var(--text-site-16);font-weight:var(--weight-medium);line-height:1;min-height:46px;padding:0 22px;border:0;border-radius:999px;background:var(--site-ink);color:var(--site-paper);cursor:pointer}
.doc button:active{transform:scale(.97)}
