/* Nickname Style — one stylesheet for every template. No framework, no reset library. */
:root{
  --pink:#ec4899; --pink-d:#db2777; --purple:#8b5cf6; --purple-d:#7c3aed;
  --indigo:#6366f1; --ink:#111827; --ink-2:#374151; --muted:#6b7280; --muted-2:#9ca3af;
  --line:#eceaf6; --line-2:#f1eefc; --card:#ffffff; --bg:#fbfaff;
  --surface:#ffffff; --surface-2:#fdfcff; --surface-3:#f7f7f9; --surface-4:#f4f4f6;
  --field:#fcfbff; --field-line:#e9e6f5; --focus:#c4b5fd;
  --header-bg:rgba(255,255,255,.78);
  --page-top:#fdfcff; --page-mid:#faf8ff;
  --grad:linear-gradient(90deg,#ec4899,#8b5cf6);
  --shadow-card:0 18px 50px rgba(88,28,135,.08);
  --shadow-hover:0 8px 24px rgba(124,58,237,.08);
  --r-sm:9px; --r-md:13px; --r-lg:18px; --r-xl:22px;
  --pad-x:clamp(15px,3vw,20px);
  --gap:clamp(14px,2.4vw,20px);
  --font:'Poppins',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-alt:'Nunito','Poppins',sans-serif;
  --mono:ui-monospace,Menlo,Consolas,monospace;
}
html[data-theme="dark"]{
  --ink:#ece9f5; --ink-2:#c8c4d8; --muted:#9d99ae; --muted-2:#807c93;
  --line:#2b2842; --line-2:#262239; --card:#181630; --bg:#100f1c;
  --surface:#181630; --surface-2:#1d1a34; --surface-3:#221f3b; --surface-4:#221f3b;
  --field:#1c1933; --field-line:#332f4e; --focus:#8b7bd8;
  --header-bg:rgba(16,15,28,.82);
  --page-top:#141227; --page-mid:#121021;
  --shadow-card:0 18px 50px rgba(0,0,0,.45);
  --shadow-hover:0 8px 24px rgba(0,0,0,.4);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);
  font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden;
  background-image:linear-gradient(180deg,var(--page-top) 0%,var(--page-mid) 34%,var(--bg) 100%);
  background-repeat:no-repeat;background-size:100% 900px;
}
img,svg{max-width:100%;display:block}
img{height:auto}
a{color:var(--purple-d);text-decoration:none;transition:color .18s ease}
a:hover{color:var(--pink-d)}
button,input,select,textarea{font:inherit;color:inherit}
h1,h2,h3,h4,p,ul,ol,figure,blockquote{margin:0}
ul,ol{padding-left:20px}
:focus-visible{outline:2px solid var(--purple);outline-offset:2px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:-9999px;top:0;z-index:100;background:var(--surface);padding:10px 16px;border-radius:0 0 var(--r-sm) 0}
.skip-link:focus{left:0}

/* ---------- layout ---------- */
.container{width:100%;max-width:1024px;margin-inline:auto;padding-inline:var(--pad-x)}
/* No overflow clipping here: it traps the page scroll and kills position:sticky for
   the header and the article sidebar. The decorative layer clips itself instead. */
.page{position:relative;min-height:100vh;display:flex;flex-direction:column}
.main{flex:1 0 auto;position:relative;z-index:1}
.section{margin-top:clamp(30px,5vw,52px)}
.spacer{height:clamp(30px,5vw,52px)}
.row{display:flex;flex-wrap:wrap;gap:var(--gap)}
.row--between{justify-content:space-between;align-items:center}
.stack{display:flex;flex-direction:column;gap:8px}

/* ---------- brand / header ---------- */
.site-header{position:sticky;top:0;z-index:40;background:var(--header-bg);backdrop-filter:blur(10px);border-bottom:1px solid var(--line-2)}
.site-header__inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding-block:13px}
.brand{display:flex;align-items:baseline;gap:5px;flex:none}
.brand__a{font:800 clamp(18px,4.6vw,22px)/1 var(--font-alt);color:var(--ink);letter-spacing:-.4px}
.brand__b{font:800 clamp(18px,4.6vw,22px)/1 var(--font-alt);letter-spacing:-.4px;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.brand__tld{font:700 10px/1 var(--font);color:#fff;background:#0f172a;border-radius:5px;padding:3px 5px;transform:translateY(-2px)}
html[data-theme="dark"] .brand__tld{background:#3b3660}
.brand--sm .brand__a,.brand--sm .brand__b{font-size:17px}
.brand--sm .brand__tld{font-size:8.5px;padding:2px 4px}
.nav{order:3;flex:1 1 100%;display:flex;justify-content:center;align-items:center;gap:clamp(14px,2.4vw,26px);overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.nav::-webkit-scrollbar{display:none}
.nav__link{flex:none;white-space:nowrap;font-weight:500;font-size:13.5px;color:var(--ink-2);padding-bottom:5px;border-bottom:2px solid transparent}
.nav__link:hover{color:var(--pink-d)}
.nav__link.is-active{color:var(--pink-d);border-bottom-color:var(--pink-d)}
.header-tools{order:2;flex:none;display:flex;align-items:center;gap:10px}
.icon-btn{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:10px;background:none;color:var(--ink-2);cursor:pointer;transition:color .18s ease,background .18s ease}
.icon-btn:hover{color:var(--purple);background:var(--surface-3)}
.icon-btn .moon{display:block}
.icon-btn .sun{display:none}
html[data-theme="dark"] .icon-btn .moon{display:none}
html[data-theme="dark"] .icon-btn .sun{display:block}
.fav-badge{display:flex;align-items:center;gap:6px;border:0;background:none;cursor:pointer;font-weight:700;font-size:13px;color:var(--ink-2)}
.fav-badge:hover{color:var(--pink-d)}

/* ---------- generic bits ---------- */
.pill{display:inline-flex;align-items:center;gap:7px;flex:none;white-space:nowrap;border-radius:999px;padding:8px 16px;font-weight:600;font-size:12.5px}
.pill--violet{background:#ede9fe;color:var(--purple-d)}
.pill--green{background:#dcfce7;color:#15803d}
.pill--amber{background:#fef3c7;color:#b45309}
.pill--blue{background:#dbeafe;color:#1d4ed8}
.tag{display:inline-flex;align-items:center;flex:none;white-space:nowrap;border-radius:999px;padding:6px 12px;font-weight:600;font-size:10.5px}
.tag--feature{background:var(--grad);color:#fff;letter-spacing:.4px}
.tag--c0{background:#f3f0ff;color:var(--purple-d)}
.tag--c1{background:#fff1e0;color:#b45309}
.tag--c2{background:#e6effd;color:#1d4ed8}
.tag--c3{background:#fdeaf6;color:var(--pink-d)}
.tag--c4{background:#e7f9ef;color:#15803d}
.tag--c5{background:#e3f7fb;color:#0e7490}
.tag--c6{background:#fdf1e7;color:#c2410c}
html[data-theme="dark"] .pill--violet,html[data-theme="dark"] .tag--c0{background:#2c2555;color:#c4b5fd}
html[data-theme="dark"] .pill--green,html[data-theme="dark"] .tag--c4{background:#123524;color:#6ee7b7}
html[data-theme="dark"] .pill--amber,html[data-theme="dark"] .tag--c1{background:#3a2a10;color:#fcd34d}
html[data-theme="dark"] .pill--blue,html[data-theme="dark"] .tag--c2{background:#152a4d;color:#93c5fd}
html[data-theme="dark"] .tag--c3{background:#40182f;color:#f9a8d4}
html[data-theme="dark"] .tag--c5{background:#123640;color:#67e8f9}
html[data-theme="dark"] .tag--c6{background:#3a2213;color:#fdba74}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);background:var(--surface);border-radius:11px;padding:12px 18px;font-weight:600;font-size:13px;color:var(--ink);cursor:pointer;transition:border-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease}
.btn:hover{border-color:var(--focus);color:var(--purple-d)}
.btn--primary{border:0;color:#fff;background:var(--grad);border-radius:var(--r-md);padding:16px 22px;font-weight:700;letter-spacing:.6px;box-shadow:0 10px 24px rgba(168,85,247,.32)}
.btn--primary:hover{color:#fff;filter:brightness(1.06)}
.btn--white{border:0;background:#fff;color:#a855f7;font-weight:700;letter-spacing:.5px;padding:16px 26px;border-radius:12px;box-shadow:0 8px 20px rgba(76,29,149,.22)}
.btn--white:hover{color:#a855f7;transform:translateY(-1px)}
.btn--ghost{width:100%;background:var(--surface-2);color:var(--purple-d);border-radius:14px;padding:16px}
.btn--ghost:hover{background:var(--surface-3);border-color:var(--focus)}
.btn--block{width:100%}
.btn.is-on{border-color:#f9a8d4;color:var(--pink-d)}
.btn.is-on svg{fill:currentColor}
.btn.is-done{color:#16a34a;border-color:#bbf7d0}
.btn[disabled]{opacity:.6;cursor:default}
.chip{flex:none;white-space:nowrap;border:1px solid var(--line);background:var(--surface-3);color:var(--ink-2);border-radius:var(--r-sm);padding:10px 15px;font-weight:500;font-size:12.5px;cursor:pointer;transition:background .18s ease,border-color .18s ease,color .18s ease}
.chip:hover{border-color:var(--focus)}
.chip--round{border-radius:999px;background:var(--surface);padding:10px 16px}
.chip__count{opacity:.55;margin-left:4px}
.chip.is-active{background:var(--pink);border-color:var(--pink);color:#fff}
.chip--round.is-active{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.step{display:flex;align-items:center;gap:9px;font-weight:600;font-size:13.5px;color:var(--ink)}
.step__n{display:grid;place-items:center;width:21px;height:21px;flex:none;border-radius:50%;background:var(--pink);color:#fff;font-weight:700;font-size:11px}
.sortbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.sortbar__label{font-size:12.5px;color:var(--muted)}
.select{border:1px solid var(--field-line);border-radius:11px;padding:11px 12px;font-size:12.5px;background:var(--surface);color:var(--ink);cursor:pointer;max-width:100%}
.select:focus{outline:none;border-color:var(--focus)}
.eyebrow{font-weight:700;font-size:11px;letter-spacing:.5px;color:var(--muted-2)}
.section-title{font-weight:700;font-size:17px;letter-spacing:-.2px}
.meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:11.5px;color:var(--muted-2)}
.meta__dot{color:var(--line)}
.avatar{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#fbcfe8,#ddd6fe);color:var(--purple-d);font-weight:700;font-size:13px;overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover}
.avatar--sm{width:26px;height:26px;font-size:10px;background:#fce7f3;color:var(--pink-d)}
.thumb{display:grid;place-items:center;overflow:hidden;border-radius:var(--r-md);background-color:var(--surface-3);color:var(--muted-2)}
.thumb img{width:100%;height:100%;object-fit:cover}
.thumb__glyph{font-size:clamp(30px,7vw,60px);line-height:1;opacity:.6}
.thumb--c0{background:#f6f2ff;color:#8b7bb8}
.thumb--c1{background:#fff1e0;color:#b4732f}
.thumb--c2{background:#e6effd;color:#3f6bb5}
.thumb--c3{background:#fdeaf6;color:#c04f92}
.thumb--c4{background:#e7f9ef;color:#3f9070}
.thumb--c5{background:#e3f7fb;color:#3d8b9c}
.thumb--c6{background:#fdf1e7;color:#b4642f}
html[data-theme="dark"] .thumb--c0{background:#231f3f}
html[data-theme="dark"] .thumb--c1{background:#33240f}
html[data-theme="dark"] .thumb--c2{background:#152540}
html[data-theme="dark"] .thumb--c3{background:#38162a}
html[data-theme="dark"] .thumb--c4{background:#122e21}
html[data-theme="dark"] .thumb--c5{background:#123038}
html[data-theme="dark"] .thumb--c6{background:#331f11}

/* ---------- hero ---------- */
.hero{text-align:center;padding-top:clamp(22px,4vw,34px)}
.hero__title{margin-top:20px;font-weight:700;font-size:clamp(29px,7.2vw,52px);line-height:1.16;letter-spacing:-1.1px;text-wrap:balance}
.hero__title .is-pink{color:var(--pink)}
.hero__title .is-purple{color:var(--purple)}
.hero__lead{margin:18px auto 0;max-width:640px;font-size:clamp(14px,3.2vw,16px);line-height:1.62;color:var(--ink-2);text-wrap:pretty}
.hero__pills{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:22px}
.hero__pills .pill{font-size:11.5px;padding:7px 14px}

/* ---------- generator card ---------- */
.card{background:var(--card);border:1px solid var(--line-2);border-radius:var(--r-xl);box-shadow:var(--shadow-card);padding:clamp(15px,2.6vw,26px)}
.gen__top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.tabs{display:flex;flex-wrap:wrap;gap:10px}
.tab{display:inline-flex;align-items:center;gap:8px;flex:none;border:0;border-radius:11px;padding:12px 18px;background:var(--surface-4);color:var(--ink-2);font-weight:600;font-size:13.5px;cursor:pointer;transition:background .18s ease,color .18s ease,box-shadow .18s ease}
.tab:hover{color:var(--purple-d)}
.tab.is-active{background:linear-gradient(90deg,#ec4899,#d946ef);color:#fff;box-shadow:0 8px 18px rgba(219,39,119,.28)}
.gen__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(272px,1fr));gap:clamp(20px,3vw,30px);margin-top:26px}
.field{position:relative;margin-top:13px}
.field__input{width:100%;border:1.5px solid var(--field-line);background:var(--field);color:var(--ink);border-radius:var(--r-md);padding:16px 62px 16px 18px;font-size:14px;transition:border-color .18s ease,background .18s ease}
.field__input:focus{outline:none;border-color:var(--focus);background:var(--surface)}
.field__count{position:absolute;right:16px;top:50%;transform:translateY(-50%);font-weight:600;font-size:12.5px;color:var(--muted-2)}
.field--search .field__input{padding:15px 16px 15px 42px;background:var(--surface)}
.field__icon{position:absolute;left:15px;top:50%;transform:translateY(-50%);display:grid;place-items:center;color:var(--muted-2)}
.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:15px}
.filters{display:flex;flex-wrap:wrap;gap:9px;margin-top:13px}
.results{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:16px}
.result{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface);padding:14px 12px 14px 16px;transition:border-color .18s ease,box-shadow .18s ease}
.result:hover{border-color:var(--focus);box-shadow:0 6px 18px rgba(124,58,237,.08)}
.result__text{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px;line-height:1.35}
.result__actions{display:flex;align-items:center;gap:6px;flex:none}
.mini-btn{display:grid;place-items:center;width:34px;height:34px;flex:none;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface);color:var(--ink-2);cursor:pointer;transition:border-color .18s ease,color .18s ease}
.mini-btn:hover{border-color:var(--focus);color:var(--purple-d)}
.mini-btn--fav{border-color:#fbe3ef;color:var(--pink)}
.mini-btn--fav:hover{border-color:#f9a8d4;color:var(--pink)}
.mini-btn.is-copied{color:#16a34a;border-color:#bbf7d0}
.mini-btn.is-fav svg{fill:var(--pink)}

/* glyph grids (symbols / emoji / kaomoji) */
.glyphs{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}
.glyph{flex:none;border:1px solid var(--line);background:var(--surface);border-radius:var(--r-sm);padding:10px 13px;min-width:44px;font-size:16px;line-height:1.3;color:var(--ink);cursor:pointer;transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}
.glyph:hover{border-color:var(--focus);transform:translateY(-1px);box-shadow:var(--shadow-hover)}
.glyph.is-copied{border-color:#bbf7d0;color:#16a34a}
.glyph--wide{font-size:15px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.deco{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin-top:16px;padding:14px;border:1px dashed var(--line);border-radius:var(--r-md);background:var(--surface-2)}
.deco label{display:block;font-size:11.5px;font-weight:600;color:var(--muted);margin-bottom:6px}
.deco .select{width:100%}

/* generator states */
.gen__panel[hidden]{display:none}
.note{margin-top:16px;border:1px dashed var(--line);border-radius:var(--r-md);background:var(--surface-2);padding:20px;text-align:center;font-size:12.5px;color:var(--muted)}
.loading{display:flex;align-items:center;gap:11px;margin-top:18px;font-size:13px;color:var(--muted)}
.loading__orb{width:22px;height:22px;flex:none;border-radius:50%;border:2.5px solid var(--line);border-top-color:var(--pink);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.skeleton{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:16px}
.skeleton i{display:block;height:62px;border-radius:var(--r-md);background:linear-gradient(90deg,var(--surface-3) 25%,var(--surface-4) 37%,var(--surface-3) 63%);background-size:400% 100%;animation:shimmer 1.3s ease infinite}
@keyframes shimmer{0%{background-position:100% 0}100%{background-position:0 0}}

/* community panel */
.community{margin-top:clamp(26px,4vw,36px)}
.community__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.community__form{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.community__form .field__input{flex:1 1 220px;padding-right:18px}
.chip-list{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}
.nick{display:inline-flex;align-items:center;gap:8px;flex:none;max-width:100%;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:8px 8px 8px 14px;font-size:14px;cursor:pointer;transition:border-color .18s ease}
.nick:hover{border-color:var(--focus)}
.nick__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nick__vote{display:inline-flex;align-items:center;gap:4px;border:0;background:var(--surface-3);color:var(--muted);border-radius:999px;padding:4px 9px;font-size:11px;font-weight:600;cursor:pointer}
.nick__vote:hover,.nick__vote.is-on{background:#fce7f3;color:var(--pink-d)}
html[data-theme="dark"] .nick__vote:hover,html[data-theme="dark"] .nick__vote.is-on{background:#3a1830;color:#f9a8d4}

/* stat lists (trending / most created) */
.stat-list{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}
.stat{display:inline-flex;align-items:center;gap:8px;flex:none;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:9px 14px;font-size:13px;font-weight:500;color:var(--ink);transition:border-color .18s ease,transform .18s ease}
.stat:hover{border-color:var(--focus);transform:translateY(-1px);color:var(--ink)}
.stat__n{font-size:11px;font-weight:700;color:var(--muted-2)}

/* favourites drawer */
.favs{position:fixed;inset:auto 0 0 0;z-index:60;max-height:70vh;overflow:auto;background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -18px 50px rgba(88,28,135,.14);padding:18px var(--pad-x) 26px;transform:translateY(100%);transition:transform .22s ease}
.favs.is-open{transform:translateY(0)}
.favs__inner{width:100%;max-width:1024px;margin-inline:auto}
.favs__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.favs__head .tab{padding:9px 14px;font-size:12.5px}
.favs [data-favs-panel][hidden]{display:none}
.glyph--blank{font-size:12px;font-weight:500;color:var(--muted);border-style:dashed}

/* ---------- features / uses ---------- */
.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(142px,1fr));gap:clamp(20px,2.6vw,22px);text-align:center}
.feature{display:flex;flex-direction:column;align-items:center;gap:11px}
.feature__tile{display:grid;place-items:center;width:60px;height:60px;border-radius:17px}
.feature__title{font-weight:700;font-size:13px;line-height:1.3}
.feature__desc{font-size:11.5px;line-height:1.65;color:var(--muted);max-width:150px}
.t-pink{background:#fdeaf6;color:var(--pink)}.t-orange{background:#fff1e0;color:#f97316}
.t-green{background:#e7f9ef;color:#10b981}.t-blue{background:#e6effd;color:#3b82f6}
.t-violet{background:#f2eafd;color:var(--purple)}.t-cyan{background:#e3f7fb;color:#06b6d4}
html[data-theme="dark"] .t-pink{background:#3a1730}html[data-theme="dark"] .t-orange{background:#33230f}
html[data-theme="dark"] .t-green{background:#123024}html[data-theme="dark"] .t-blue{background:#152540}
html[data-theme="dark"] .t-violet{background:#26204a}html[data-theme="dark"] .t-cyan{background:#123038}
.heading-deco{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px}
.heading-deco h2{font-weight:700;font-size:clamp(20px,4.6vw,23px);letter-spacing:-.4px}
.dots{display:flex;gap:5px}
.dots i{width:7px;height:7px;border-radius:50%;background:#a78bfa}
.dots i:last-child{background:#f472b6}
.uses{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:22px}
.use{display:inline-flex;align-items:center;gap:9px;flex:none;white-space:nowrap;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:12px 20px;font-weight:600;font-size:13px;color:var(--ink);box-shadow:0 3px 10px rgba(17,24,39,.04);transition:transform .18s ease,border-color .18s ease}
.use:hover{transform:translateY(-2px);border-color:var(--focus);color:var(--ink)}

/* ---------- CTA ---------- */
.cta{position:relative;overflow:hidden;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:22px;border-radius:20px;padding:clamp(22px,3.4vw,34px) clamp(20px,3.4vw,40px);background:linear-gradient(100deg,#ec4899 0%,#a855f7 55%,#6366f1 100%);box-shadow:0 20px 44px rgba(139,92,246,.3);color:#fff}
.cta__text{flex:1 1 240px;min-width:0}
.cta__title{font-weight:700;font-size:clamp(17px,3.4vw,21px);line-height:1.3}
.cta__sub{margin-top:6px;font-size:13px;line-height:1.55;color:rgba(255,255,255,.92)}
.cta::before,.cta::after{content:"";position:absolute;pointer-events:none;background-image:radial-gradient(rgba(255,255,255,.38) 2px,transparent 2.1px);background-size:14px 14px}
.cta::before{top:14px;left:20%;width:80px;height:50px}
.cta::after{bottom:12px;right:26%;width:70px;height:44px;opacity:.65}

/* ---------- blog list ---------- */
.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.toolbar .field--search{flex:1 1 240px;min-width:0;margin-top:0}
.featured{display:flex;flex-wrap:wrap;gap:clamp(15px,3vw,26px);background:var(--surface);border:1px solid var(--line-2);border-radius:var(--r-xl);box-shadow:var(--shadow-card);padding:clamp(14px,2.4vw,22px);color:inherit;transition:border-color .18s ease,box-shadow .18s ease}
.featured:hover{border-color:#e9d5ff;box-shadow:0 22px 56px rgba(88,28,135,.12);color:inherit}
.featured__media{flex:1 1 300px;min-width:0;min-height:190px;border-radius:16px}
.featured__body{flex:1 1 280px;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:11px;padding:4px}
.featured__title{font-weight:700;font-size:clamp(19px,4.2vw,26px);line-height:1.28;letter-spacing:-.5px;text-wrap:pretty}
.featured__excerpt{font-size:13px;line-height:1.7;color:var(--muted);text-wrap:pretty}
.post-list{display:flex;flex-direction:column;gap:14px;margin-top:16px}
.post{display:flex;flex-wrap:wrap;gap:clamp(13px,2.2vw,20px);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:clamp(12px,1.8vw,16px);color:inherit;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.post:hover{border-color:var(--focus);box-shadow:var(--shadow-hover);transform:translateY(-2px);color:inherit}
.post__media{flex:0 0 clamp(96px,22vw,170px);min-height:106px;border-radius:var(--r-md)}
.post__body{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:8px}
.post__title{font-weight:600;font-size:clamp(15px,3.2vw,17.5px);line-height:1.35;letter-spacing:-.3px;text-wrap:pretty}
.post__excerpt{font-size:12.5px;line-height:1.65;color:var(--muted);text-wrap:pretty}
.post__more{display:inline-flex;align-items:center;gap:8px;margin-top:2px;font-weight:600;font-size:11.5px;color:var(--purple-d)}
.empty{margin-top:16px;border:1px dashed #ddd6fe;border-radius:var(--r-lg);background:var(--surface);padding:44px 20px;text-align:center}
.empty__t{font-weight:600;font-size:14px}
.empty__d{margin-top:6px;font-size:12.5px;color:var(--muted)}
.is-hidden{display:none !important}
.pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:24px}
.pagination .page-numbers{display:grid;place-items:center;min-width:38px;height:38px;padding:0 12px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface);font-size:13px;font-weight:600;color:var(--ink-2)}
.pagination .page-numbers:hover{border-color:var(--focus);color:var(--purple-d)}
.pagination .page-numbers.current{background:var(--pink);border-color:var(--pink);color:#fff}
.pagination .dots{background:none;border:0}

/* ---------- article ---------- */
.progress{position:fixed;inset:0 auto auto 0;height:3px;width:0;z-index:60;background:var(--grad);transition:width .1s linear}
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:11.5px;color:var(--muted-2)}
.crumbs a{color:var(--muted-2)}
.crumbs a:hover{color:var(--purple-d)}
.crumbs span[aria-current]{color:var(--ink-2)}
.article__head{margin-top:clamp(16px,2.6vw,24px)}
.article__title{margin-top:15px;font-weight:700;font-size:clamp(25px,5.8vw,42px);line-height:1.18;letter-spacing:-1px;text-wrap:balance}
.article__lead{margin-top:15px;max-width:680px;font-size:clamp(14px,3.2vw,16.5px);line-height:1.7;color:var(--ink-2);text-wrap:pretty}
.byline{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;margin-top:20px;padding-bottom:18px;border-bottom:1px solid var(--line-2)}
.byline__who{display:flex;align-items:center;gap:11px}
.byline__name{font-weight:600;font-size:13px}
.byline__date{font-size:11.5px;color:var(--muted-2)}
.byline__tools{display:flex;flex-wrap:wrap;gap:8px}
.byline__tools .btn{padding:10px 14px;font-size:12px}
.article__cover{margin-top:clamp(20px,3vw,26px);min-height:clamp(180px,32vw,340px);border-radius:20px;overflow:hidden}
.article__cover img{width:100%;height:100%;object-fit:cover}
.article__cols{display:flex;flex-wrap:wrap;gap:clamp(20px,3.4vw,40px);margin-top:clamp(24px,3.6vw,36px)}
.prose{flex:1 1 440px;min-width:0;max-width:680px}
.prose > *{margin-top:16px}
.prose > *:first-child{margin-top:0}
.prose p{font-size:clamp(14px,3vw,15.5px);line-height:1.85;color:var(--ink-2);text-wrap:pretty}
.prose h2{margin-top:32px;font-weight:700;font-size:clamp(19px,4.2vw,24px);line-height:1.3;letter-spacing:-.5px;scroll-margin-top:96px}
.prose h3{margin-top:24px;font-weight:700;font-size:clamp(16px,3.6vw,19px);line-height:1.35;scroll-margin-top:96px}
.prose h4{margin-top:20px;font-weight:700;font-size:15px}
.prose h2 + p,.prose h3 + p{margin-top:12px}
.prose ul,.prose ol{margin-top:14px;display:flex;flex-direction:column;gap:9px}
.prose li{font-size:clamp(13.5px,3vw,15px);line-height:1.75;color:var(--ink-2)}
.prose blockquote{margin-top:24px;border-left:3px solid var(--pink);background:var(--surface);border-radius:0 14px 14px 0;padding:16px 18px;font-weight:500;font-size:clamp(14px,3vw,15.5px);line-height:1.7;color:var(--ink-2)}
.prose figure{margin-top:22px}
.prose img{border-radius:14px}
.prose figcaption{margin-top:8px;font-size:11.5px;color:var(--muted-2);text-align:center}
.prose hr{margin-top:28px;border:0;border-top:1px solid var(--line)}
.prose code{font:500 .92em/1.5 var(--mono);background:var(--surface-3);border-radius:6px;padding:2px 6px}
.prose pre{margin-top:18px;overflow-x:auto;background:var(--surface-3);border-radius:14px;padding:16px}
.prose pre code{background:none;padding:0}
.prose table{margin-top:0}
.prose .wp-block-image,.prose .wp-block-embed{margin-top:22px}
.prose .aligncenter{margin-inline:auto;text-align:center}
.prose .alignleft{float:left;margin:6px 18px 12px 0}
.prose .alignright{float:right;margin:6px 0 12px 18px}
.prose .wp-block-buttons{display:flex;flex-wrap:wrap;gap:10px}
.prose .wp-block-button__link{display:inline-flex;border:0;color:#fff;background:var(--grad);border-radius:var(--r-md);padding:13px 20px;font-weight:700;font-size:13px}
.sample{margin-top:18px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:clamp(14px,2vw,18px)}
.sample__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(148px,1fr));gap:10px;margin-top:12px}
.sample__item{border:1px solid var(--line-2);border-radius:12px;padding:13px 14px;background:var(--surface-2)}
.sample__text{font-size:17px;line-height:1.35}
.sample__note{margin-top:6px;font:400 10.5px/1.4 var(--mono);color:var(--muted-2)}
.table-wrap,.prose figure.wp-block-table{margin-top:18px;overflow-x:auto;border:1px solid var(--line);border-radius:16px;background:var(--surface);-webkit-overflow-scrolling:touch}
table{width:100%;border-collapse:collapse}
.prose table{min-width:420px}
th{text-align:left;padding:13px 16px;font-weight:600;font-size:11px;color:var(--muted);border-bottom:1px solid var(--line-2)}
td{padding:13px 16px;font-size:12.5px;border-bottom:1px solid var(--line-2)}
tr:last-child td{border-bottom:0}
.ok{color:#15803d}.warn{color:#b45309}.bad{color:#b91c1c}
.tags{display:flex;flex-wrap:wrap;gap:9px;margin-top:28px;padding-top:20px;border-top:1px solid var(--line-2)}
.tags a,.tags span{flex:none;white-space:nowrap;background:var(--surface-3);color:var(--muted);border-radius:999px;padding:8px 14px;font-weight:500;font-size:11.5px}
.tags a:hover{color:var(--purple-d)}
.aside{flex:1 1 210px;min-width:0;max-width:280px}
.aside__inner{position:sticky;top:88px;display:flex;flex-direction:column;gap:14px}
.toc{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px}
.toc__list{display:flex;flex-direction:column;gap:2px;margin-top:12px}
.toc__list a{font-weight:500;font-size:12px;line-height:1.5;color:var(--muted);padding:7px 10px;border-radius:var(--r-sm);border-left:2px solid transparent}
.toc__list a:hover,.toc__list a.is-active{background:var(--surface-2);color:var(--purple-d);border-left-color:var(--purple)}
.promo{background:linear-gradient(150deg,#ec4899,#8b5cf6);border-radius:16px;padding:18px;color:#fff}
.promo__t{font-weight:700;font-size:14px;line-height:1.35}
.promo__d{margin-top:6px;font-size:11.5px;line-height:1.6;color:rgba(255,255,255,.9)}
.promo .btn--white{margin-top:14px;padding:11px 15px;font-size:11.5px;border-radius:10px}
.related{display:grid;grid-template-columns:repeat(auto-fit,minmax(228px,1fr));gap:14px;margin-top:16px}
.rel{display:flex;flex-direction:column;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:14px;color:inherit;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.rel:hover{border-color:var(--focus);box-shadow:var(--shadow-hover);transform:translateY(-2px);color:inherit}
.rel__media{min-height:104px;border-radius:var(--r-md)}
.rel__title{font-weight:600;font-size:14px;line-height:1.4;text-wrap:pretty}
.rel .tag{align-self:flex-start}

/* reading page (about / privacy / …) */
.reading{max-width:760px;margin-inline:auto;padding-top:clamp(18px,3vw,28px)}
.reading__title{margin-top:14px;font-weight:700;font-size:clamp(25px,5.4vw,38px);line-height:1.2;letter-spacing:-.9px;text-wrap:balance}

/* ---------- legacy in-content blocks ----------
   Published articles carry their own inline <style> from the previous theme: a red
   accent and hard-coded light surfaces. Both are re-mapped here rather than edited
   into every post, so the content stays untouched and dark mode keeps working.
   Two-class selectors outrank the single-class rules inside the content. */
.prose .ns-wrap a,.prose .ns-toc a,.prose .ns-vals .v b,.prose .ns-reasons .r b,.prose .ns-lang .ns-big{color:var(--pink-d)}
.prose .ns-card,.prose .ns-vals .v,.prose .ns-reasons .r,.prose .ns-lang .ns-card,.prose .ns-chip{background:var(--surface);border-color:var(--line);color:var(--ink)}
.prose .ns-toc{background:var(--surface-2);border-color:var(--line)}
.prose .ns-toc strong,.prose .ns-sub{color:var(--ink)}
.prose .ns-note{background:var(--surface-2);border-color:var(--line);border-left-color:var(--pink);color:var(--ink-2)}
.prose .ns-chip:hover{border-color:var(--focus);background:var(--surface-3);box-shadow:var(--shadow-hover)}
.prose .ns-table th{background:var(--surface-3);color:var(--muted)}
.prose .ns-table th,.prose .ns-table td{border-color:var(--line)}
.prose .ns-table tr:nth-child(even) td{background:var(--surface-2)}
/* Legacy tables carry no min-width: let them reflow on a phone rather than scroll. */
.prose .ns-table{min-width:0}
@media (max-width:640px){
  .prose .ns-table{font-size:12.5px}
  .prose .ns-table th,.prose .ns-table td{padding:8px 9px}
}
.prose .ns-tested,.prose .ns-updated{color:var(--muted-2)}
.prose .ns-cta{background:var(--grad);border-radius:var(--r-md);box-shadow:0 10px 24px rgba(168,85,247,.32)}
.prose .ns-cta:hover{background:var(--grad);filter:brightness(1.06)}
.prose .ns-copied{background:var(--ink);color:var(--bg)}
/* Copy grids are the point of these pages — keep them light, never bolded. */
.prose .ns-chip,.prose .ns-chip--name,.prose .ns-chip--bio{font-weight:400}

/* ---------- footer ---------- */
.site-footer{margin-top:clamp(38px,6vw,56px);border-top:1px solid var(--line-2);background:var(--surface-2);position:relative;z-index:1}
.site-footer__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(178px,1fr));gap:clamp(22px,3vw,30px);padding-top:32px}
.site-footer h4{font-weight:700;font-size:12.5px}
.site-footer p,.site-footer a,.site-footer li{font-size:11.5px;color:var(--muted)}
.site-footer p{margin-top:12px;line-height:1.7;max-width:230px}
.site-footer .stack{margin-top:14px}
.site-footer a:hover{color:var(--purple-d)}
.site-footer ul{margin-top:14px;padding-left:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.foot-widget + .foot-widget{margin-top:18px}
.socials{display:flex;gap:9px;margin-top:14px}
.socials a{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;transition:transform .18s ease}
.socials a:hover{transform:translateY(-2px)}
.s-tw{background:#e0f2fe;color:#0ea5e9}.s-dc{background:#e9e5ff;color:#6366f1}
.s-rd{background:#ffe6dc;color:#f97316}.s-pt{background:#ffe4e9;color:#e11d48}
.footer-love{flex:none;font-size:11.5px;line-height:1.8;color:var(--ink-2)}
.footer-love b{color:var(--pink);font-weight:400}
.foot-legal{max-width:1024px;margin:24px auto 0;padding-inline:var(--pad-x);font-size:11px;line-height:1.75;color:var(--muted-2)}
.copyright{margin-top:16px;padding:16px 0 22px;border-top:1px solid var(--line-2);text-align:center;font-size:11px;color:var(--muted-2)}
.copyright a{font-size:11px;color:var(--muted-2)}
.copyright a:hover{color:var(--purple-d)}

/* ---------- toast ---------- */
.toast{position:fixed;left:50%;bottom:24px;z-index:80;display:flex;align-items:center;gap:9px;max-width:min(92vw,420px);transform:translate(-50%,20px);opacity:0;pointer-events:none;background:var(--ink);color:var(--bg);border-radius:999px;padding:11px 18px;font-size:12.5px;font-weight:600;transition:opacity .2s ease,transform .2s ease}
.toast.is-on{opacity:1;transform:translate(-50%,0)}
.toast__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.75;font-weight:500}

/* ---------- decorative shapes (home) ---------- */
.deco-art{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.deco-art i{position:absolute;display:block}
.d-dots{background-image:radial-gradient(#c4b5fd 2.2px,transparent 2.3px);background-size:13px 13px}
.d-dots--blue{background-image:radial-gradient(#7dd3fc 2.2px,transparent 2.3px);background-size:14px 14px}
.d-dots--pink{background-image:radial-gradient(#fda4af 3px,transparent 3.1px);background-size:17px 17px}
.d-tri{width:0;height:0;border-left:14px solid transparent;border-right:14px solid transparent;border-top:22px solid #fbbf24}
.d-circle{border-radius:50%}
.d-ring{border-radius:50%;border:3px solid #fbbf24}
.d-diamond{border:2.5px solid var(--indigo);border-radius:4px;transform:rotate(45deg)}
.d-diamond.float-b{animation-name:floaty-rot}
.d-plus{background:currentColor;border-radius:3px}
.float-a{animation:floaty 8s ease-in-out infinite}
.float-b{animation:floaty2 7s ease-in-out infinite}
@keyframes floaty{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-14px) rotate(8deg)}}
@keyframes floaty2{0%,100%{transform:translateY(0)}50%{transform:translateY(10px)}}
@keyframes floaty-rot{0%,100%{transform:rotate(45deg) translateY(0)}50%{transform:rotate(45deg) translateY(10px)}}
@media (max-width:1180px){.deco-art{display:none}}
@media (prefers-reduced-motion:reduce){*{animation:none !important;transition:none !important}html{scroll-behavior:auto}}

/* ---------- responsive tweaks ---------- */
@media (max-width:640px){
  .site-header__inner{padding-block:11px}
  .nav{justify-content:flex-start}
  .tab{flex:1 1 auto;justify-content:center;padding:11px 12px;font-size:12.5px}
  .actions .btn,.byline__tools .btn{flex:1 1 auto}
  .result__text{font-size:16px}
  .post__media{flex:1 1 100%;min-height:150px}
  .featured__media{min-height:160px}
  .aside{flex:1 1 100%;max-width:none;order:-1}
  .aside__inner{position:static}
  .promo{display:none}
  .cta::before,.cta::after{display:none}
  .prose .alignleft,.prose .alignright{float:none;margin:18px 0}
}
@media print{
  .site-header,.progress,.deco-art,.cta,.btn,.mini-btn,.icon-btn,.toast,.favs{display:none !important}
  body{background:#fff}
}
