/* ZERA Mascots — shared styles for the family hub (index.html) and every seed kit
   (<slug>/index.html). Pages are generated by build-kit.py; a kit sets --accent on <body>. */
@font-face { font-family:"Oakes Grotesk"; font-weight:400; font-display:swap; src:url("../fonts/OG_Regular.ttf") format("truetype"); }
@font-face { font-family:"Oakes Grotesk"; font-weight:600; font-display:swap; src:url("../fonts/OG_SemiBold.ttf") format("truetype"); }

:root {
  --edu:#0A4F29; --edu-soft:#0a4f2914;
  --accent:#0A4F29;
  --paper:#FBF8F2; --card:#FFFFFF; --line:#EAE3D6;
  --ink:#2B2320; --muted:#766B5D;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--ink);
  font-family:"Oakes Grotesk","DM Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased; }
a { color:inherit; }

/* Top bar (kit pages): back to the hub + the six seeds */
.topbar { border-bottom:1px solid var(--line); }
.topbar-in { max-width:1180px; margin:0 auto; padding:12px 28px; display:flex; align-items:center;
  gap:10px 18px; flex-wrap:wrap; }
.topbar .back { margin:0; }
.strip { display:flex; gap:6px; flex-wrap:wrap; margin-left:auto; }
.fs { display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:500; text-decoration:none;
  color:var(--ink); padding:5px 11px 5px 5px; border-radius:999px; border:1px solid var(--line); background:var(--card); }
.fs b { display:inline-grid; place-items:center; width:20px; height:20px; border-radius:50%; font-size:11px;
  background:var(--edu-soft); color:var(--edu); }
a.fs:hover { border-color:var(--edu); }
.fs.is-on { border-color:var(--accent); color:var(--accent); font-weight:600; }
.fs.is-on b { background:var(--accent); color:#fff; }
.fs.is-soon { color:var(--muted); background:transparent; border-style:dashed; }
.fs.is-soon b { background:transparent; color:var(--muted); }

/* Hero */
.hero { max-width:1180px; margin:0 auto; padding:48px 28px 20px; }
.back { display:inline-block; font-size:13px; font-weight:600; color:var(--muted); text-decoration:none; margin-bottom:14px; }
.back:hover { color:var(--edu); }
.eyebrow { display:flex; align-items:center; gap:8px; font-size:12px; letter-spacing:.18em; text-transform:uppercase;
  color:var(--accent); font-weight:700; }
.letter { display:inline-grid; place-items:center; width:26px; height:26px; border-radius:8px; letter-spacing:0;
  font-size:15px; font-weight:700; background:var(--accent); color:#fff; }
.hero h1 { font-size:clamp(30px,5vw,50px); line-height:1.05; margin:12px 0 10px; letter-spacing:-.02em; font-weight:600; }
.hero h1 em { color:var(--accent); font-style:normal; }
.lede { font-size:16px; line-height:1.6; color:var(--muted); max-width:660px; margin:0; }
.lede b { color:var(--ink); font-weight:600; }
.actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-top:24px; }
.btn { display:inline-flex; align-items:center; gap:9px; font-size:15px; font-weight:600;
  padding:13px 20px; border-radius:12px; border:1px solid transparent; cursor:pointer; text-decoration:none; }
.btn-primary { background:var(--edu); color:#fff; }
.btn-primary:hover { background:#0c5f32; }
.count { font-size:13px; color:var(--muted); }
.hero > .count { margin:16px 0 0; }

/* Sticky toolbar */
.toolbar { position:sticky; top:0; z-index:20; background:rgba(251,248,242,.88);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
.toolbar-in { max-width:1180px; margin:0 auto; padding:12px 28px; display:flex; gap:14px;
  align-items:center; flex-wrap:wrap; }
.chips { display:flex; gap:8px; flex-wrap:wrap; }
.chip { font:inherit; font-size:13px; font-weight:600; color:var(--muted); background:transparent;
  border:1px solid var(--line); padding:7px 13px; border-radius:999px; cursor:pointer; }
.chip span { opacity:.6; font-weight:500; margin-left:2px; }
.chip:hover { border-color:var(--edu); color:var(--edu); }
.chip.is-on { background:var(--edu); color:#fff; border-color:var(--edu); }
.chip.is-on span { opacity:.8; }
.search { margin-left:auto; position:relative; }
.search input { font:inherit; font-size:14px; padding:9px 13px 9px 34px; border:1px solid var(--line);
  border-radius:10px; background:#fff; width:200px; color:var(--ink); }
.search input:focus { outline:none; border-color:var(--edu); }
.search svg { position:absolute; left:11px; top:50%; transform:translateY(-50%); color:var(--muted); }

/* Groups */
main { max-width:1180px; margin:0 auto; padding:8px 28px 40px; }
.group { padding-top:36px; }
.group-head h2 { font-size:21px; margin:0; letter-spacing:-.01em; font-weight:600; }
.group-head h2 .ct { font-size:13px; color:var(--muted); font-weight:500; vertical-align:middle; margin-left:4px; }
.group-head p { margin:5px 0 0; color:var(--muted); font-size:14px; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:16px; margin-top:18px; }

/* Card */
.card { margin:0; background:var(--card); border:1px solid var(--line); border-radius:16px;
  overflow:hidden; display:flex; flex-direction:column; transition:transform .15s, box-shadow .15s; }
.card:hover { transform:translateY(-3px); box-shadow:0 12px 28px -12px rgba(94,58,30,.28); }
.thumb { border:0; padding:0; cursor:zoom-in; aspect-ratio:1/1; background:
  radial-gradient(circle at 50% 42%, #fff 0%, #F6F1E8 100%); display:block; width:100%; }
.thumb img { width:100%; height:100%; object-fit:contain; padding:14px; display:block; mix-blend-mode:multiply; }
figcaption { display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:11px 13px; border-top:1px solid var(--line); }
.meta { display:flex; flex-direction:column; gap:2px; min-width:0; }
.meta .name { font-size:14px; line-height:1.3; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.meta .dim { font-size:11px; color:var(--muted); }
.dl { flex:none; display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:700;
  color:var(--edu); background:var(--edu-soft); border-radius:9px; padding:7px 10px; text-decoration:none; }
.dl:hover { background:var(--edu); color:#fff; }
.empty { grid-column:1/-1; text-align:center; color:var(--muted); padding:40px; font-size:14px; }

/* Family hub */
.family { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr)); gap:18px; margin-top:20px; }
.seed { display:flex; flex-direction:column; background:var(--card); border:1px solid var(--line); border-radius:20px;
  overflow:hidden; text-decoration:none; transition:transform .15s, box-shadow .15s, border-color .15s; }
.seed.is-live:hover { transform:translateY(-3px); border-color:var(--accent); box-shadow:0 14px 30px -14px rgba(94,58,30,.32); }
.seed-art { position:relative; aspect-ratio:4/3; display:grid; place-items:center;
  background:radial-gradient(circle at 50% 45%, #fff 0%, #F6F1E8 100%); }
.seed-art img { height:100%; width:100%; object-fit:contain; padding:14px; mix-blend-mode:multiply; }
.seed-art .badge { position:absolute; top:14px; left:14px; font-size:11px; font-weight:700; letter-spacing:.06em;
  text-transform:uppercase; color:#fff; background:var(--accent); padding:5px 10px; border-radius:999px; }
.seed-art .ghost { display:grid; place-items:center; width:42%; aspect-ratio:1; border-radius:50%;
  border:2px dashed var(--line); color:var(--line); font-size:clamp(48px,7vw,72px); font-weight:700; }
.seed-body { display:flex; flex-direction:column; gap:4px; padding:16px 18px 18px; border-top:1px solid var(--line); flex:1; }
.seed-value { display:flex; align-items:center; gap:8px; font-size:12px; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--accent); }
.seed-value .letter { width:24px; height:24px; font-size:14px; border-radius:7px; }
.seed h2 { margin:6px 0 0; font-size:24px; font-weight:600; letter-spacing:-.01em; }
.seed-line { margin:0; font-size:15px; color:var(--ink); }
.seed-tag { margin:0; font-size:13px; color:var(--muted); }
.seed-cta { margin-top:auto; padding-top:12px; font-size:14px; font-weight:700; color:var(--accent); }
.seed.is-soon { background:transparent; border-style:dashed; }
.seed.is-soon .seed-art { background:transparent; }
.seed.is-soon .seed-value { color:var(--muted); }
.seed.is-soon .seed-value .letter { background:transparent; color:var(--muted); border:1.5px solid var(--line); }
.seed.is-soon h2 { color:var(--muted); }
.seed.is-soon .seed-cta { color:var(--muted); font-weight:600; }

/* Lightbox */
.lb { position:fixed; inset:0; z-index:50; background:rgba(43,35,32,.82); backdrop-filter:blur(4px);
  display:none; align-items:center; justify-content:center; padding:32px; }
.lb.on { display:flex; }
.lb-inner { max-width:min(88vw,820px); max-height:88vh; display:flex; flex-direction:column; align-items:center; gap:16px; }
.lb img { max-width:100%; max-height:70vh; object-fit:contain; border-radius:16px;
  background:radial-gradient(circle at 50% 42%, #fff 0%, #F6F1E8 100%); }
.lb-bar { display:flex; align-items:center; gap:16px; color:#fff; flex-wrap:wrap; justify-content:center; }
.lb-bar .t { font-size:16px; font-weight:600; }
.lb-close { position:absolute; top:20px; right:24px; color:#fff; background:rgba(255,255,255,.14);
  border:0; width:40px; height:40px; border-radius:50%; font-size:22px; cursor:pointer; line-height:1; }
.lb-close:hover { background:rgba(255,255,255,.28); }

footer { border-top:1px solid var(--line); margin-top:40px; }
.foot { max-width:1180px; margin:0 auto; padding:26px 28px; color:var(--muted); font-size:13px;
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }

@media (max-width:640px) {
  .hero { padding:32px 16px 16px; }
  .topbar-in, .toolbar-in, main, .foot { padding-left:16px; padding-right:16px; }
  .strip { margin-left:0; }
  .search { margin-left:0; flex:1; }
  .search input { width:100%; }
  .grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .dl { padding:8px; } .dl span { display:none; }
  figcaption { padding:10px 10px 10px 12px; }
  .seed.is-soon .seed-art { aspect-ratio:auto; padding:22px 0; }
  .seed-art .ghost { width:92px; font-size:44px; }
  .lb { padding:16px; }
}
