/* toytool — the pages the SEO build makes (tools/seo/): articles (blog, guides, the author), their lists, the faces
   catalog and a page per face, the 404. Served as /smalltv/ui/content.css after ui.css: only ui.css's tokens are used
   (colours, type, radii, --pad, --nav); its .faces/.face tiles, .dev, .card, .pill, .btn, .ava, .pagehead are reused
   as they are. Airy, one accent, nothing decorative. */

/* the floating header bar: the page starts below it */
.pg main.wrap,.pg .art-in{padding-top:calc(var(--nav) + clamp(28px,4vw,56px))}
.pg main.wrap{padding-bottom:40px}

/* ---------- the trail above the title ---------- */
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:6px 9px;margin:0 0 clamp(22px,3vw,34px);font-size:13.5px;color:var(--dim)}
.crumbs a{color:var(--dim);text-decoration:none;transition:color .2s}
.crumbs a:hover{color:var(--fg)}
.crumbs i{font-style:normal;color:var(--faint)}
.crumbs [aria-current]{color:#b4b4ba;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.eyebrow{color:var(--acc);font:600 14.5px var(--font);letter-spacing:.01em;margin-bottom:12px}
.eyebrow a{color:inherit;text-decoration:none}
.eyebrow a:hover{text-decoration:underline;text-underline-offset:3px}

/* ---------- an article ---------- */
.art-in{max-width:760px;margin:0 auto;padding-left:var(--pad);padding-right:var(--pad)}
.art-head h1{font-size:clamp(34px,5vw,54px);line-height:1.04;letter-spacing:-.03em}
.art-head .lead{color:var(--dim);font-size:clamp(17px,1.6vw,20px);line-height:1.5;margin-top:18px}
.art-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin-top:22px;color:var(--dim);font-size:14px}
.art-meta a{color:var(--fg);text-decoration:none}
.art-meta a:hover{text-decoration:underline;text-underline-offset:3px}
.art-meta i{font-style:normal;color:var(--faint)}
.art-meta .byline{color:#b4b4ba}
/* the article's main picture (docs/og.md): 16:9 under the title, rounded like the cards; a cover under it as it is */
.hero{margin:clamp(32px,5vw,48px) 0 0;aspect-ratio:16/9;border-radius:var(--r);overflow:hidden;background:#050506;border:1px solid var(--line)}
.hero picture{display:block;height:100%}
.hero img{display:block;width:100%;height:100%;object-fit:cover}
.cover{margin:clamp(32px,5vw,48px) 0 0;border-radius:var(--r);overflow:hidden;background:var(--card)}
.hero+.cover{margin-top:16px}
.cover img{display:block;width:100%;height:auto}

/* the contents of a long one */
.toc{margin:clamp(32px,5vw,44px) 0 0;padding:20px 24px;border:1px solid var(--line);border-radius:18px;background:var(--card)}
.toc-h{font:600 13px var(--font);letter-spacing:.06em;text-transform:uppercase;color:var(--dim);margin-bottom:10px}
.toc ol{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.toc ol ol{padding:6px 0 2px 16px;gap:4px}
.toc a{color:#c9c9cf;text-decoration:none;font-size:15px;transition:color .2s}
.toc a:hover{color:var(--acc)}

/* the text itself */
.prose{margin-top:clamp(32px,5vw,48px);font-size:17.5px;line-height:1.72;color:#dcdce1}
.prose>:first-child{margin-top:0}
.prose p,.prose ul,.prose ol,.prose blockquote,.prose pre,.prose .tbl-wrap,.prose figure,.prose .callout{margin:0 0 1.15em}
.prose h2{font-size:clamp(25px,2.6vw,30px);line-height:1.18;margin:2.1em 0 .6em;scroll-margin-top:calc(var(--nav) + 16px)}
.prose h3{font-size:20px;line-height:1.3;margin:1.7em 0 .5em;font-weight:650;scroll-margin-top:calc(var(--nav) + 16px)}
.prose h4{font:600 17.5px var(--font);margin:1.5em 0 .4em}
.prose .hash{margin-left:.35em;color:var(--faint);text-decoration:none;opacity:0;transition:opacity .2s}
.prose :is(h2,h3):hover .hash{opacity:1}
.prose a{color:var(--acc);text-decoration:underline;text-decoration-color:rgba(var(--acc-rgb),.4);text-underline-offset:3px;transition:text-decoration-color .2s}
.prose a:hover{text-decoration-color:var(--acc)}
.prose strong{color:var(--fg);font-weight:600}
.prose ul,.prose ol{padding-left:1.3em}
.prose li{margin:.35em 0}
.prose li::marker{color:var(--faint)}
.prose ol>li::marker{color:var(--dim);font-variant-numeric:tabular-nums}
.prose code{font-family:var(--font-mono);font-size:.86em;padding:.12em .38em;border-radius:6px;background:#ffffff10;color:#e8e8ec}
.prose pre{padding:18px 20px;border-radius:16px;background:var(--card);border:1px solid var(--line);overflow-x:auto;line-height:1.55}
.prose pre code{padding:0;background:none;font-size:14px}
.prose blockquote{padding:2px 0 2px 20px;border-left:2px solid rgba(var(--acc-rgb),.6);color:#bdbdc4}
.prose hr{border:0;height:1px;background:var(--line2);margin:2.6em 0}
.prose figure{margin:2em 0}
.prose img{max-width:100%;height:auto;border-radius:16px;display:block}
.prose picture{display:block}
.prose figcaption{margin-top:12px;color:var(--dim);font-size:14px;text-align:center}
.prose kbd{font:500 .85em var(--font-mono);padding:.1em .45em;border-radius:6px;border:1px solid var(--line2);border-bottom-width:2px}
.tbl-wrap{overflow-x:auto}
.prose table{width:100%;border-collapse:collapse;font-size:15.5px}
.prose th{text-align:left;font-weight:500;color:var(--dim);font-size:13.5px;padding:0 12px 10px;border-bottom:1px solid var(--line2)}
.prose td{padding:12px;border-bottom:1px solid var(--line);vertical-align:top}
.callout{border-radius:16px;padding:16px 20px;background:rgba(var(--acc-rgb),.07);border:1px solid rgba(var(--acc-rgb),.2);font-size:16px}
.callout>:last-child{margin-bottom:0}
.callout-t{font-weight:600;color:var(--fg)}
.callout.warning,.callout.caution{background:#ffb5470d;border-color:#ffb5472e}

/* a video: a picture until it is clicked (no YouTube until then) */
.yt a.yt-play{position:relative;display:grid;place-items:center;aspect-ratio:16/9;border-radius:18px;overflow:hidden;
  background:radial-gradient(80% 90% at 50% 40%,rgba(var(--acc-rgb),.16),transparent 70%),var(--card);border:1px solid var(--line)}
.yt a.yt-play :is(picture,img){position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:0}
.yt-btn{position:relative;width:72px;height:72px;border-radius:50%;background:rgba(10,10,13,.55);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  box-shadow:inset 0 1px .5px rgba(255,255,255,.4),0 10px 30px -8px #000;transition:transform .35s cubic-bezier(.2,.9,.25,1.35)}
.yt-btn::after{content:"";position:absolute;left:29px;top:24px;border:12px solid transparent;border-left:20px solid #fff;border-right:0}
.yt a.yt-play:hover .yt-btn{transform:scale(1.06)}
.yt iframe{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:18px;background:#000}

/* below the text: the guide's faces, tags, the author */
.art-faces{margin-top:48px}
.art-faces h2{font-size:22px;margin-bottom:18px}
.faces.mini{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin:40px 0 0}
.tags .pill{text-decoration:none;height:30px;padding:0 13px;font-size:13.5px;transition:background .2s,color .2s}
.tags .pill:hover{background:rgba(var(--acc-rgb),.14);color:var(--acc)}
.tags .pill small{margin-left:4px;color:var(--faint);font-size:12px}
.author{display:flex;gap:16px;align-items:flex-start;margin-top:48px;padding-top:28px;border-top:1px solid var(--line)}
.author .ava{width:46px;height:46px;font-size:18px}
.author-n{font:600 16px var(--font-display)}
.author-n a{text-decoration:none}
.author-n a:hover{color:var(--acc)}
.author-b{color:var(--dim);font-size:14.5px;margin-top:3px;line-height:1.5}

/* the product, once, quietly */
.cta-card{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px 40px;max-width:980px;
  margin:clamp(72px,9vw,112px) auto 0;padding:clamp(28px,4vw,44px);border-radius:var(--r-lg);border:1px solid var(--line);
  background:radial-gradient(90% 120% at 0% 0%,rgba(var(--acc-rgb),.1),transparent 60%),var(--card)}
.art .cta-card{margin-left:max(var(--pad),calc(50% - 490px));margin-right:max(var(--pad),calc(50% - 490px))}
.cta-card>div:first-child{flex:1 1 360px;max-width:560px}
.cta-card h2{font-size:clamp(22px,2.4vw,28px);margin-bottom:10px}
.cta-card p:not(.eyebrow){color:var(--dim);font-size:15.5px}
.ctas{display:flex;flex-wrap:wrap;gap:10px}

/* ---------- lists: posts, guides ---------- */
.related{max-width:980px;margin:clamp(64px,8vw,96px) auto 0;padding:0 var(--pad)}
.related h2{font-size:22px;margin-bottom:20px}
.lst .pagehead{margin-bottom:28px}
.lst .tags{margin:0 0 32px}
.rss{flex:none;color:var(--dim);font-size:13.5px;text-decoration:none;padding:7px 13px;border-radius:999px;background:#ffffff0b;transition:color .2s}
.rss:hover{color:var(--acc)}
.empty{color:var(--dim);padding:32px 0 8px;font-size:16px}
.pager{display:flex;gap:6px;margin-top:40px}
.pager a{display:grid;place-items:center;min-width:38px;height:38px;border-radius:12px;color:var(--dim);text-decoration:none;background:#ffffff08}
.pager a[aria-current]{color:var(--fg);background:rgba(var(--acc-rgb),.18)}

/* ---------- the faces catalog ---------- */
.fc .pagehead{display:block;margin-bottom:28px}
.fc .pagehead h1{font-size:clamp(38px,5.4vw,64px);letter-spacing:-.035em}
.fc .pagehead p{max-width:640px;font-size:clamp(16px,1.4vw,18px)}
.fc-note{font-size:15px!important;color:#6e6e75!important}
.chipnav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:clamp(40px,6vw,64px)}
.chipnav a{display:inline-flex;align-items:center;gap:7px;padding:8px 14px;border-radius:999px;background:#ffffff0b;color:#cfcfd6;font-size:14px;
  text-decoration:none;transition:background .2s,color .2s}
.chipnav a:hover{background:rgba(var(--acc-rgb),.14);color:var(--fg)}
.chipnav small{color:var(--faint);font-size:12.5px}
.fc-col{scroll-margin-top:calc(var(--nav) + 12px)}
.fc-col+.fc-col{margin-top:clamp(56px,7vw,88px)}
.fc-col .sechead{margin-bottom:8px}
.fc-col h2 a{text-decoration:none;transition:color .2s}
.fc-col h2 a:hover{color:var(--acc)}
.fc-col .sechead>a,.fc-note a{color:var(--dim);text-decoration:none;font-size:14px;transition:color .2s}
.fc-note a{color:var(--acc);font-size:inherit}
.fc-col .sechead>a:hover,.fc-note a:hover{color:var(--fg)}
.col-b{color:var(--dim);max-width:600px;margin-bottom:24px;font-size:15.5px}
.faces{list-style:none;margin:0;padding:0}
.faces .face>a{display:flex;flex-direction:column;gap:12px;color:inherit;text-decoration:none}
.faces .face>a:focus-visible{outline:none}
.faces .face>a:focus-visible .shot{outline:var(--ring);outline-offset:3px}
.face .shot :is(picture){display:block;width:100%;height:100%}
.face .meta .pill{flex:none;height:22px;font-size:11.5px}
/* the words written by hand (tools/content/faces/): above the tiles of the catalog or a collection, under a face */
.prose.fc-intro{max-width:720px;margin:0 0 clamp(36px,5vw,52px);font-size:16.5px}
.prose.fp-more-text{max-width:760px;margin-top:clamp(48px,6vw,72px);font-size:16.5px}
.fc .faces+.fp-guides{margin-top:clamp(56px,7vw,88px)}
.chipnav.fc-others{margin:clamp(56px,7vw,88px) 0 0}
.chipnav a[aria-current]{background:rgba(var(--acc-rgb),.18);color:var(--fg)}

/* ---------- a face ---------- */
.fp-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:clamp(36px,6vw,96px);align-items:center}
.fp-dev{position:relative;display:grid;place-items:center;padding:clamp(8px,3vw,32px) 0}
.fp-dev::before{content:"";position:absolute;inset:4% 2%;border-radius:50%;background:radial-gradient(closest-side,rgba(var(--acc-rgb),.18),transparent);pointer-events:none}
.fp-dev .dev{--s:min(78vw,380px)}
.dev .glass picture{display:block;width:100%;height:100%}
.fp-txt h1{font-size:clamp(40px,5.6vw,68px);line-height:1;letter-spacing:-.035em}
.fp-txt .lead{color:var(--fg);font-size:clamp(17px,1.6vw,20px);margin-top:16px}
.fp-about{color:var(--dim);font-size:16.5px;line-height:1.6;margin-top:14px;max-width:560px}
.fp-txt .ctas{margin:30px 0 18px}
.fp-note{color:var(--dim);font-size:14px;line-height:1.6;max-width:520px}
.fp-note a{color:var(--acc);text-decoration:none}
.fp-note a:hover{text-decoration:underline;text-underline-offset:3px}
.fp-by{color:#5c5c63;font-size:13px;margin-top:10px}
.fp-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-top:clamp(56px,7vw,96px)}
.fp-info>section+section{margin-top:0}   /* ui.css spaces main's sections 72px apart: not cards in a grid */
.fp-info h2{font-size:17px;margin-bottom:12px}
.fp-info ul{margin:0;padding-left:1.1em;color:#c9c9cf;font-size:15px;display:grid;gap:8px}
.fp-info li::marker{color:var(--faint)}
.fp-guides,.fp-more{margin-top:clamp(64px,8vw,104px)}
.fp-more .sechead a,.fp-guides .sechead a{font-size:14px;text-decoration:none}
.fp-more .sechead a:hover,.fp-guides .sechead a:hover{color:var(--fg)}
.fp-pn{display:flex;justify-content:space-between;gap:16px;margin-top:clamp(56px,7vw,88px);padding-top:24px;border-top:1px solid var(--line)}
.fp-pn a{display:flex;flex-direction:column;gap:2px;text-decoration:none;font:600 16px var(--font-display);color:var(--fg)}
.fp-pn a[rel=next]{text-align:right}
.fp-pn small{font:500 12.5px var(--font);color:var(--dim)}
.fp-pn a:hover{color:var(--acc)}
@media(max-width:820px){
  .fp-top{grid-template-columns:1fr}
  .fp-txt{text-align:center}
  .fp-txt .ctas{justify-content:center}
  .fp-about,.fp-note{margin-left:auto;margin-right:auto}
}

/* ---------- the author ---------- */
.about-head{display:flex;gap:24px;align-items:center}
.ava.big{width:76px;height:76px;font-size:30px}
.about-head .lead{margin-top:10px}
.prose ul.links{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:8px 20px}

/* ---------- 404 ---------- */
.nf{text-align:center;min-height:calc(100svh - var(--nav) - 160px);display:flex;flex-direction:column;align-items:center;justify-content:center}
.nf-code{font:700 clamp(84px,14vw,160px)/1 var(--font-display);letter-spacing:-.05em;color:#ffffff12;margin-bottom:6px}
.nf h1{font-size:clamp(30px,4vw,44px)}
.nf .lead{color:var(--dim);max-width:460px;margin:14px auto 30px}
.nf-links{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;justify-content:center;gap:10px}

@media(max-width:560px){
  .faces{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}   /* two faces a row on phones, not one huge one */
  .face .meta small{display:none}
  .face .meta b{font-size:14px}
  .prose{font-size:17px}
  .cta-card .ctas{width:100%}
  .cta-card .ctas .btn{flex:1 1 160px}
  .about-head{flex-direction:column;align-items:flex-start;gap:16px}
}
@media(prefers-reduced-motion:reduce){.post-card,.yt-btn{transition:none}}
