/* ============================================================================
   Slim64FS.com — store design system
   Aesthetic: the .org document-grade restraint, inverted to Pyy's own palette.
   Graphite, warm cream, one blue-green accent — Pyy is a platypus, so this
   store keeps its own mascot identity rather than the family's arterial red
   (that red lives on slim64fs.org, corecut4.com, 64-4.com, goibible.org —
   the serious/technical properties). The family tie here is the "Powered by
   64-4.com" footer credit instead of a matching accent color.
   --art / --art-plush are intentionally untouched: they're baked into the
   actual product photo crops and must keep matching the image pixels.
   ============================================================================ */

/* ---- Fonts (self-hosted, latin subset) ---------------------------------- */
@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap;
  src:url('assets/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap;
  src:url('assets/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap;
  src:url('assets/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap;
  src:url('assets/fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:400; font-display:swap;
  src:url('assets/fonts/jbmono-400.woff2') format('woff2'); }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:500; font-display:swap;
  src:url('assets/fonts/jbmono-500.woff2') format('woff2'); }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:700; font-display:swap;
  src:url('assets/fonts/jbmono-700.woff2') format('woff2'); }

/* ---- Tokens ------------------------------------------------------------- */
:root{
  --bg:#23272C;            /* page — a step deeper than brand graphite */
  --panel:#2B2F33;         /* brand graphite — cards and surfaces */
  --panel-deep:#1B1E22;    /* footer / nav CTA fills */
  --art:#1D262E;           /* background baked into the illustrated art crops */
  --art-plush:#17212A;     /* background baked into the plushie photo crops */
  --ink:#E8E1D9;           /* warm cream — primary text */
  --muted:#A7ABB0;         /* secondary text */
  --gold:#5FA8A8;          /* Pyy blue-green — links, badges, CTA (mascot identity) */
  --gold-bright:#7FC4C4;   /* hover lift for blue-green on dark */
  --cyan:#8A8F98;          /* family steel — secondary accent, quiet family nod */
  --cyan-bright:#A6ABB2;
  --line:#3A3F46;          /* hairlines */
  --line-strong:#4A5058;
  --sans:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --mono:'JetBrains Mono',ui-monospace,'SF Mono',Menlo,Consolas,monospace;
  --maxw:1100px;
  --pad:24px;
}

/* ---- Reset / base ------------------------------------------------------- */
*,*::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(--sans); font-size:17px; line-height:1.65;
  font-feature-settings:"kern","liga","calt"; text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{ font-family:var(--mono); font-weight:500; line-height:1.2;
  letter-spacing:-0.01em; color:var(--ink); margin:0 0 .6em; }
h2{ font-size:1.6rem; } h3{ font-size:1.2rem; } h4{ font-size:1rem; }
p{ margin:0 0 1.1em; } p:last-child{ margin-bottom:0; }
a{ color:var(--gold); text-decoration:none; transition:color .15s ease, border-color .15s ease; }
a:hover{ color:var(--gold-bright); text-decoration:underline; text-underline-offset:3px;
  text-decoration-thickness:1px; text-decoration-color:var(--gold); }
strong{ font-weight:600; color:var(--ink); }
hr{ border:0; border-top:1px solid var(--line); margin:0; }
img{ max-width:100%; height:auto; }
::selection{ background:rgba(200,155,90,.35); }
:focus-visible{ outline:2px solid var(--gold); outline-offset:2px; border-radius:2px; }
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ transition:none !important; }
}

/* ---- Layout ------------------------------------------------------------- */
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 var(--pad); }
section{ padding:84px 0; border-top:1px solid var(--line); }
section:first-of-type{ border-top:0; }
.section-num{ font-family:var(--mono); font-size:.8rem; color:var(--cyan);
  letter-spacing:.08em; text-transform:uppercase; margin:0 0 .4em; }
.lede{ font-size:1.12rem; color:var(--muted); max-width:64ch; }
.center{ text-align:center; }
section[id], a[id]{ scroll-margin-top:84px; }

/* ---- Top navigation ----------------------------------------------------- */
.nav{ position:sticky; top:0; z-index:50; background:rgba(35,39,44,.92);
  backdrop-filter:saturate(180%) blur(8px); border-bottom:1px solid var(--line); }
.nav-inner{ max-width:var(--maxw); margin:0 auto; padding:0 var(--pad);
  height:60px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.brand{ display:flex; align-items:center; gap:10px;
  font-family:var(--mono); font-weight:700; font-size:1.05rem; color:var(--ink);
  letter-spacing:-.01em; }
.brand:hover{ color:var(--ink); text-decoration:none; }
.brand img{ width:28px; height:28px; border-radius:50%; }
.brand .tm{ color:var(--muted); font-weight:400; font-size:.8rem; }
.nav-links{ display:flex; gap:22px; align-items:center; flex-wrap:wrap; }
.nav-links a{ font-size:.92rem; color:var(--muted); }
.nav-links a:hover{ color:var(--gold); text-decoration:none; }
.nav-links a.cta{ color:var(--bg); background:var(--gold); border:1px solid var(--gold);
  padding:5px 12px; border-radius:6px; font-weight:600; }
.nav-links a.cta:hover{ background:var(--gold-bright); border-color:var(--gold-bright); color:var(--bg); }

/* ---- Hero --------------------------------------------------------------- */
.hero{ text-align:center; padding:76px 0 76px; border-top:0; }
.hero .art{ width:560px; max-width:92%; margin:0 auto 8px; display:block;
  border-radius:14px; background:var(--art); }
.hero h1{ font-size:2.7rem; font-weight:700; letter-spacing:-.02em; margin:18px 0 .35em; }
.hero h1 .accent{ color:var(--cyan); }
.hero .tagline{ font-size:1.22rem; color:var(--muted); max-width:60ch; margin:0 auto 30px; }
.btn-row{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.btn{ font-family:var(--sans); font-size:.96rem; font-weight:500; line-height:1;
  padding:12px 20px; border-radius:7px; border:1px solid var(--line-strong);
  color:var(--ink); background:transparent; cursor:pointer;
  transition:border-color .15s ease, background .15s ease, color .15s ease; }
.btn:hover{ border-color:var(--gold); color:var(--gold-bright); text-decoration:none; }
.btn-primary{ background:var(--gold); border-color:var(--gold); color:#1B1E22; font-weight:600; }
.btn-primary:hover{ background:var(--gold-bright); border-color:var(--gold-bright); color:#1B1E22; }

/* ---- Stat boxes --------------------------------------------------------- */
.stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px;
  max-width:860px; margin:48px auto 0; }
.stat{ border:1px solid var(--line); border-radius:8px; padding:18px 16px; text-align:center;
  background:var(--panel); }
.stat .v{ font-family:var(--mono); font-weight:700; font-size:1.18rem; color:var(--ink); }
.stat .k{ font-size:.82rem; color:var(--muted); margin-top:4px; }

/* ---- Generic blocks ----------------------------------------------------- */
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:40px; }
.caption{ font-size:.84rem; color:var(--muted); margin-top:10px; }

/* ---- Meet Pyy gallery ---------------------------------------------------- */
.gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:30px; }
.gallery figure{ margin:0; border:1px solid var(--line); border-radius:10px;
  overflow:hidden; background:var(--art); display:flex; flex-direction:column; }
.gallery img{ display:block; width:100%; flex:1; min-height:0; object-fit:contain; }
.gallery figcaption{ font-family:var(--mono); font-size:.78rem; color:var(--muted);
  padding:10px 14px; border-top:1px solid var(--line); background:var(--panel);
  letter-spacing:.04em; text-transform:uppercase; }

/* ---- Product grid -------------------------------------------------------- */
.products{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px; margin-top:30px; }
.product{ border:1px solid var(--line); border-radius:12px; overflow:hidden;
  background:var(--panel); display:flex; flex-direction:column;
  transition:border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.product:hover{ border-color:var(--gold); transform:translateY(-2px);
  box-shadow:0 8px 28px rgba(0,0,0,.35); }
.product .pimg{ background:var(--art); display:flex; align-items:center; justify-content:center;
  min-height:230px; }
.product .pimg.plush{ background:var(--art-plush); }
.product .pimg img{ display:block; max-height:300px; width:auto; max-width:100%; }
.product .pbody{ padding:20px 22px 22px; display:flex; flex-direction:column; gap:8px; flex:1; }
.product h3{ margin:0; font-size:1.1rem; }
.product .pdesc{ color:var(--muted); font-size:.94rem; margin:0; flex:1; }
.product .prow{ display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin-top:8px; }
.badge{ font-family:var(--mono); font-size:.72rem; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; color:var(--gold); border:1px solid var(--gold);
  border-radius:5px; padding:4px 9px; white-space:nowrap; }
.notify{ font-family:var(--mono); font-size:.85rem; font-weight:500;
  color:var(--cyan); border:1px solid var(--line-strong); border-radius:6px;
  padding:8px 14px; white-space:nowrap; }
.notify:hover{ color:var(--cyan-bright); border-color:var(--cyan);
  text-decoration:none; }

/* featured (plushie) card spans the grid */
.product.featured{ grid-column:1/-1; flex-direction:row; }
.product.featured .pimg{ flex:0 0 46%; min-height:360px;
  background:var(--art-plush); }
.product.featured .pimg img{ max-height:420px; }
.product.featured .pbody{ padding:34px 36px; justify-content:center; }
.product.featured h3{ font-size:1.45rem; }
.product.featured .pdesc{ flex:0; font-size:1rem; }
.product.featured .thumbs{ display:flex; gap:10px; margin-top:14px; }
.product.featured .thumbs img{ width:72px; height:72px; object-fit:cover;
  border-radius:8px; border:1px solid var(--line); background:var(--art-plush); }
.spec-list{ list-style:none; padding:0; margin:12px 0 0; color:var(--muted); font-size:.92rem; }
.spec-list li{ padding:5px 0 5px 26px; position:relative; }
.spec-list li::before{ content:"\2713"; position:absolute; left:0; top:5px;
  color:var(--cyan); font-weight:700; font-family:var(--mono); }

/* ---- Brand & licensing --------------------------------------------------- */
.license-cards{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:26px; }
.lcard{ border:1px solid var(--line); border-radius:10px; padding:24px; background:var(--panel); }
.lcard .role{ font-family:var(--mono); font-size:.78rem; letter-spacing:.06em;
  text-transform:uppercase; margin-bottom:10px; }
.lcard.mit .role{ color:var(--cyan); }
.lcard.tm .role{ color:var(--gold); }
.lcard h3{ font-size:1.1rem; }
.lcard p{ color:var(--muted); font-size:.95rem; }

/* ---- FAQ ---------------------------------------------------------------- */
.faq{ margin-top:8px; }
.faq details{ border-bottom:1px solid var(--line); padding:14px 0; }
.faq summary{ font-family:var(--mono); font-weight:500; font-size:1rem; cursor:pointer;
  list-style:none; color:var(--ink); }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::before{ content:"+"; color:var(--gold); margin-right:12px; font-weight:700; }
.faq details[open] summary::before{ content:"\2013"; }
.faq .a{ color:var(--muted); padding:12px 0 2px 26px; font-size:.97rem; }

/* ---- Footer ------------------------------------------------------------- */
footer{ background:var(--panel-deep); color:#cfd0d2; margin-top:0; padding:54px 0 40px;
  border-top:1px solid var(--line); }
footer .wrap{ display:flex; flex-direction:column; align-items:center; gap:16px; text-align:center; }
footer .flinks{ display:flex; gap:24px; flex-wrap:wrap; justify-content:center; }
footer a{ color:#e7e8ea; font-size:.92rem; } footer a:hover{ color:var(--gold); }
footer .brand-f{ font-family:var(--mono); font-weight:700; color:#fff; font-size:1.05rem; }
footer .copy{ color:#9a9c9f; font-size:.82rem; max-width:70ch; }
footer .powered-by{ color:#9a9c9f; font-size:.82rem; }
footer .powered-by a{ color:var(--gold); }
footer .powered-by a:hover{ color:var(--gold-bright); }

/* ---------- Cookie consent bar (markup injected by cookie-consent.js) ---- */
.cookiebar{ position:fixed; left:0; right:0; bottom:0; z-index:100;
  background:var(--panel-deep); color:#e7e8ea; box-shadow:0 -2px 14px rgba(0,0,0,.45);
  border-top:1px solid var(--line); }
.cookiebar-inner{ max-width:1100px; margin:0 auto; padding:14px var(--pad);
  display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.cookiebar p{ margin:0; font-size:.88rem; color:#cfd0d2; max-width:760px; }
.cookiebar a{ color:var(--gold); }
.cookiebar-btns{ display:flex; gap:10px; }
.cookiebar button{ font-family:var(--mono); font-size:.85rem; padding:8px 18px;
  border-radius:6px; cursor:pointer; border:1px solid #6b6c70; background:transparent; color:#e7e8ea; }
.cookiebar button.cb-accept{ background:var(--gold); border-color:var(--gold); color:#1a1a1a; font-weight:600; }
.cookiebar button:hover{ filter:brightness(1.12); }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width:860px){
  .stats{ grid-template-columns:repeat(2,1fr); }
  .grid-2,.license-cards{ grid-template-columns:1fr; gap:24px; }
  .gallery{ grid-template-columns:repeat(2,1fr); }
  .product.featured{ flex-direction:column; }
  .product.featured .pimg{ flex:auto; min-height:280px; }
  .hero h1{ font-size:2.1rem; }
  .nav-links{ gap:14px; } .nav-links a{ font-size:.86rem; }
}
@media (max-width:560px){
  body{ font-size:16px; }
  section{ padding:60px 0; }
  .stats,.products,.gallery{ grid-template-columns:1fr; }
  .nav-inner{ height:auto; padding-top:10px; padding-bottom:10px; flex-direction:column; align-items:flex-start; }
}

/* ---- Print --------------------------------------------------------------- */
@media print{
  .nav,.cookiebar,.btn-row{ display:none; }
  body{ font-size:11pt; color:#000; background:#fff; }
  section{ padding:28px 0; break-inside:auto; }
  .stat,.product,.lcard{ break-inside:avoid; }
  a{ color:#000; text-decoration:underline; }
  footer{ background:none; color:#000; border-top:1px solid #000; }
  footer a,footer .brand-f,footer .copy{ color:#000; }
}
