/* Shared Foundry theme (slate "metal" identity) for the landing + Start Vocab + Activities pages. */
:root{
  --bg:#f4f6f9; --surface:#ffffff; --surface-2:#eef2f7; --text:#1e293b; --muted:#556173; --line:#dfe5ee;
  --accent:#475569; --accent-600:#334155; --accent-weak:#eef2f7; --ring:rgba(71,85,105,.28);
  --radius:16px; --radius-sm:10px; --shadow-sm:0 2px 8px rgba(30,41,59,.07); --red:#c0392b; --green:#0d9488;
}
*{ box-sizing:border-box; }
html.booting body{ visibility:hidden; }
body{ margin:0; font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; background:var(--bg); color:var(--text); line-height:1.5; }
body.dark{ --bg:#0f141b; --surface:#161d27; --surface-2:#1d2531; --text:#e9eef5; --muted:#94a3b8; --line:#2a3543; --accent:#94a3b8; --accent-600:#cbd5e1; --accent-weak:#1d2531; --ring:rgba(148,163,184,.30); }
a{ color:var(--accent); }
button{ font:inherit; cursor:pointer; }
.wrap{ max-width:1040px; margin:0 auto; padding:0 20px; }
header{ background:var(--surface); border-bottom:1px solid var(--line); }
.bar{ display:flex; align-items:center; gap:12px; padding:14px 0; }
.brand{ display:flex; align-items:center; gap:11px; color:inherit; margin-left:8px; text-decoration:none; padding:4px 8px; border-radius:10px; }
a.brand:hover{ background:var(--accent-weak); }
.chip{ width:30px; height:30px; border-radius:9px; flex:none; display:block; }
.brand .name{ font-weight:800; font-size:19px; letter-spacing:.3px; }
.spacer{ flex:1; } .who{ color:var(--muted); font-size:14px; }
.ghost{ background:transparent; border:1px solid var(--line); color:var(--text); padding:7px 12px; border-radius:10px; }
.ghost:hover{ background:var(--accent-weak); border-color:var(--accent); }
.classconvene-pill{ display:inline-flex; align-items:center; gap:7px; padding:7px 13px; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--text); font-weight:600; font-size:13.5px; }
.classconvene-pill:hover{ background:#e6f4ec; border-color:#7fcaa3; color:#1d2a25; }
h1{ font-size:24px; margin:22px 0 2px; }
.lead{ color:var(--muted); margin:0 0 18px; max-width:760px; }
.panel{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm); padding:18px; margin-bottom:16px; }
label{ display:block; font-size:13px; font-weight:600; margin:12px 0 5px; }
input,textarea,select{ padding:9px 11px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--bg); color:var(--text); font-size:14px; font-family:inherit; }
input:focus,textarea:focus,select:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--ring); }
.primary{ padding:9px 14px; border:0; border-radius:10px; background:var(--accent); color:#fff; font-weight:700; }
.primary:hover{ background:var(--accent-600); }
.btn{ padding:8px 12px; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--text); }
.btn:hover{ background:var(--surface-2); } .btn.sm{ padding:6px 10px; font-size:13px; }
.danger{ color:#fff; background:var(--red); border:0; }
.linkbtn{ background:none; border:0; padding:0; margin:0; font:inherit; color:var(--accent); text-decoration:underline; cursor:pointer; box-shadow:none; }
.linkbtn:hover{ background:none; color:var(--accent-600); }
.row{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.muted{ color:var(--muted); } .hidden{ display:none; } .ok{ color:var(--green); font-size:13px; } .err{ color:var(--red); font-size:13px; }
/* tiles (landing) */
.tiles{ display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:16px; margin:18px 0 40px; }
.tile{ display:block; text-decoration:none; color:inherit; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm); padding:20px; transition:transform .12s, box-shadow .12s, border-color .12s; }
.tile:hover{ transform:translateY(-2px); box-shadow:0 10px 26px rgba(30,41,59,.12); border-color:var(--accent); }
.tile .ic{ width:44px; height:44px; border-radius:12px; background:var(--accent-weak); display:flex; align-items:center; justify-content:center; font-size:22px; margin-bottom:12px; }
.tile h3{ margin:0 0 5px; font-size:17px; } .tile p{ margin:0; color:var(--muted); font-size:14px; }
.tile .tag{ display:inline-block; margin-top:10px; font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); }
.codebox{ display:flex; align-items:center; gap:10px; background:var(--accent-weak); border:1px solid var(--line); border-radius:10px; padding:10px 12px; margin-top:8px; flex-wrap:wrap; }
.codebox code{ font-size:20px; font-weight:800; letter-spacing:3px; }
footer{ border-top:1px solid var(--line); color:var(--muted); font-size:13px; padding:18px 0 40px; margin-top:8px; }
