@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2'); }
/* genz.css — bold, bright "Gen Z" skin for DevOps Kit. Loaded AFTER style.css.
   Look: chunky outlines, hard shadows, sticker pills, electric violet + sunny yellow.
   Layout and behaviour are untouched; remove this file to go back to the old look. */

:root {
  color-scheme: light;
  --ink: #12101c;
  --canvas: #fbf9ff;
  --body: #25222f;
  --muted: #5a566b;
  --hair: #d9d3ea;
  --blue: #6a35ff;          /* electric violet (was blue) */
  --blue-dark: #4f22d6;
  --amber: #ffd23f;         /* sunny yellow */
  --green: #0f9d58;
  --mint: #d9ffe9;
  --red: #ff3d6e;
  --pink: #ff7ab8;
  --lime: #c6f432;
  --sky: #b9e4ff;
  --lav: #ece4ff;
  --pop: 4px 4px 0 var(--ink);
  --pop-sm: 3px 3px 0 var(--ink);
  --shadow-card: var(--pop);
  --shadow-float: 6px 6px 0 var(--ink);
  --display: 'Space Grotesk', var(--sans);
  --r: 18px;
}

::selection { background: var(--lime); color: var(--ink); }
html { scroll-padding-top: 72px; }
body {
  background-color: var(--canvas);
  background-image: radial-gradient(rgba(106, 53, 255, 0.13) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
  color: var(--body);
}

/* ---------- type ---------- */
h1, h2, h3, .hero h1, .wordmark { font-family: var(--display); letter-spacing: -0.02em; }
h2 { font-size: 24px; font-weight: 700; }
.hero h1 { font-size: clamp(34px, 8vw, 52px); line-height: 1.04; font-weight: 700; }
.hero h1::after {
  content: ''; display: block; width: 120px; height: 10px; margin-top: 12px; border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--pink) 55%, var(--amber));
}
.hero .subhead { font-size: 17px; color: #3d3a4c; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
code { background: var(--lav); border: 1px solid #d5c8ff; color: var(--ink); border-radius: 6px; }

/* ---------- header ---------- */
.site-header, .lesson-header, .sim-topbar { border-bottom: 2px solid var(--ink); }
.site-header { background: rgba(251, 249, 255, 0.92); backdrop-filter: blur(8px); }
.wordmark { font-weight: 700; }
.bill-pill {
  background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink); transform: rotate(-2deg);
}

/* ---------- buttons ---------- */
.btn {
  background: var(--blue); color: #fff; border: 2px solid var(--ink); border-radius: 14px;
  box-shadow: var(--pop-sm); font-weight: 700; font-family: var(--display); letter-spacing: 0;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); color: #fff; }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); background: var(--blue-dark); }
.btn.amber { background: var(--amber); color: var(--ink); border-color: var(--ink); }
.btn.amber:hover { color: var(--ink); background: #ffdb62; }
.btn.amber:active { background: #f5c52b; }
.btn.secondary, .btn.ghost { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn.disabled { background: #eee9f8; border: 2px dashed #b9b0d3; box-shadow: none; color: #6d6784; }
.hero .cta { height: 54px; font-size: 16px; }

/* ---------- cards ---------- */
.card, .simcard, .rail-step, .level-topic, details.curriculum, .stepcard, .buycard, .skill,
.callout, .simnote, .tryit, .mapbox, .flow-node, .auth-box, .lock-screen, .pager a, .faq details {
  border: 2px solid var(--ink) !important; border-radius: var(--r) !important; box-shadow: var(--pop);
}

/* ---------- landing soft cards (2026-11-30 phone-UI fix, follow-up to PR #126) ----------
   The Gen Z skin above paints every card heavy (2px ink border + hard
   offset shadow). On the landing page that reads as tough and scary for a
   beginner, so the homepage cards use the same soft system as the PR #126
   roadmap cards: 1px #E2E8F0 border + soft shadow. Scoped to
   body[data-page="landing"] so lesson and sim pages keep their Gen Z look.
   .auth-box (sign-in) is deliberately NOT softened here. */
body[data-page="landing"] .card,
body[data-page="landing"] .simcard,
body[data-page="landing"] .rail-step,
body[data-page="landing"] details.curriculum,
body[data-page="landing"] .faq details {
  border: 1px solid #E2E8F0 !important; border-radius: 14px !important; box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
body[data-page="landing"] .simcard:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
.simcard, .rail-step, .pager a, .buycard { transition: transform .15s ease, box-shadow .15s ease; }
.simcard:hover, .buycard:hover, .pager a:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.simcard h3, .buycard h3 { font-family: var(--display); font-size: 19px; margin-top: 10px; }
.rail-num {
  background: var(--amber) !important; color: var(--ink) !important; border: 2px solid var(--ink);
  font-family: var(--display); font-weight: 700; box-shadow: 2px 2px 0 var(--ink);
}
details.curriculum { background: #fff; margin-bottom: 14px; }
details.curriculum > summary { font-family: var(--display); font-weight: 700; }
.lesson-row { border-bottom: 2px dashed var(--hair); }
.lesson-row .n { font-family: var(--display); font-weight: 700; color: var(--blue); }

/* ---------- stickers (pills / chips) ---------- */
.chip, .pill, .tierpill, .steppill, .ptag, .stag, .phasebadge, .eyebrow {
  border: 2px solid var(--ink); border-radius: 99px; font-weight: 700; color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.chip { background: #fff; padding: 6px 12px; }
.hero-chips .chip:nth-child(1) { background: var(--sky); transform: rotate(-1.5deg); }
.hero-chips .chip:nth-child(2) { background: var(--lav); transform: rotate(1deg); }
.hero-chips .chip:nth-child(3) { background: var(--mint); transform: rotate(-1deg); }
.hero-chips .chip:nth-child(4) { background: #ffe1ef; transform: rotate(1.5deg); }
.eyebrow { display: inline-block; align-self: flex-start; background: var(--lime); padding: 6px 12px; letter-spacing: .04em; text-transform: none; font-size: 13px; }
.tierpill.free, .pill.sim { background: var(--lime); color: var(--ink); }
.tierpill:not(.free) { background: var(--lav); color: var(--ink); }
.steppill { background: #fff; }
.phasebadge { background: var(--lime); display: inline-block; padding: 4px 12px; }
.ptag, .stag { background: #fff; box-shadow: none; }

/* ---------- terminal: stays dark, now with attitude ---------- */
.terminal, .hero-term {
  border: 2px solid var(--ink) !important; border-radius: var(--r) !important; box-shadow: 6px 6px 0 var(--blue) !important;
}
.term-chrome, .hero-term-chrome { border-bottom: 2px solid #2d2a3d; }
.stepcard { background: #fff; box-shadow: 5px 5px 0 var(--amber); }
.stepcount { font-family: var(--display); color: var(--blue); }
.hint-toggle { background: var(--amber) !important; color: var(--ink) !important; border: 2px solid var(--ink) !important; box-shadow: 2px 2px 0 var(--ink); border-radius: 12px; font-weight: 700; }
.stepactions button { border: 2px solid var(--ink); border-radius: 12px; font-weight: 700; background: #fff; box-shadow: 2px 2px 0 var(--ink); transition: transform .1s; }
.stepactions button:hover { transform: translate(-1px, -1px); }
.stepactions button:active { transform: translate(2px, 2px); box-shadow: none; }
.quickkeys button { border-radius: 10px; }
.sim-prog-track { border: 2px solid var(--ink); background: #fff; border-radius: 99px; height: 12px; overflow: hidden; }
.sim-prog-fill, #lesson-progress-fill { background: linear-gradient(90deg, var(--blue), var(--pink), var(--amber)) !important; }
.lesson-progress { height: 6px; }

/* ---------- lessons ---------- */
.lesson-content h1 { font-size: clamp(30px, 6vw, 42px); }
.lesson-content h2 { font-size: 24px; margin-top: 34px; }
.sb-link { border-radius: 10px; font-weight: 500; }
.sb-link.current { background: var(--lav); color: var(--ink); border: 2px solid var(--ink); font-weight: 700; }
.sb-group-title { font-family: var(--display); letter-spacing: .06em; }
.ladder { border: 2px solid var(--ink); border-radius: var(--r); background: var(--mint); box-shadow: var(--pop); }
.ladder .step.done { background: var(--lime); border: 2px solid var(--ink); color: var(--ink); }
.exercise-answer { border: 2px solid var(--ink); border-radius: 14px; background: #fff; }
.exercise-answer > summary { font-weight: 700; cursor: pointer; }
.mark-done { background: var(--lime); color: var(--ink); border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--pop-sm); font-weight: 700; }

/* ---------- misc ---------- */
.toast { border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--pop-sm); background: var(--lime); color: var(--ink); font-weight: 700; }
.auth-modal { backdrop-filter: blur(3px); }
.auth-box input { border: 2px solid var(--ink); border-radius: 12px; }
.lang-switch { border: 2px solid var(--ink) !important; border-radius: 12px; font-weight: 700; background: #fff !important; color: var(--ink) !important; box-shadow: 2px 2px 0 var(--ink); }
.sim-topbar .lang-switch { background: #fff !important; color: var(--ink) !important; }
.lang-suggest { background: var(--amber); border-bottom: 2px solid var(--ink); }
.lock-screen { background: #fff; }
.sticky-cta { border-top: 2px solid var(--ink); background: #fff; }
footer, .site-footer { border-top: 2px solid var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- fun: celebration burst (see fun.js) ---------- */
.confetti { position: fixed; z-index: 9999; pointer-events: none; font-size: 26px; will-change: transform, opacity; animation: pop-out 1.1s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes pop-out {
  0% { transform: translate(0, 0) scale(.4) rotate(0); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(var(--rot)); opacity: 0; }
}
.win-banner {
  position: fixed; left: 50%; top: 64px; transform: translateX(-50%); z-index: 9998;
  background: var(--lime); color: var(--ink); border: 2px solid var(--ink); border-radius: 16px;
  padding: 12px 18px; font-family: var(--display); font-weight: 700; box-shadow: var(--pop);
  animation: rise .35s ease-out; max-width: calc(100vw - 32px); text-align: center;
}
@keyframes rise { from { transform: translate(-50%, -20px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .confetti { display: none; }
  .win-banner { animation: none; }
  .hero-chips .chip, .bill-pill { transform: none; }
  .btn:hover, .simcard:hover, .buycard:hover, .pager a:hover { transform: none; }
}
@media (max-width: 480px) {
  .btn { box-shadow: 2px 2px 0 var(--ink); }
  h2 { font-size: 22px; }
}

/* ---------- layout fixes ---------- */
body > .section { max-width: 860px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.rail-step { padding: 12px 14px; background: #fff; }
.rail-step:hover { transform: none; box-shadow: var(--pop); }
.skill { background: #fff; }

/* contrast: free pills always dark-on-lime */
.tierpill.free, .simcard .tierpill.free, .pill.sim { background: var(--lime) !important; color: var(--ink) !important; }

/* landing promo for the Linux Server Lab */
.lx-promo { margin: 26px 0 0; background: linear-gradient(135deg, #ece4ff, #fff7e0); border: 2px solid var(--ink); border-radius: 20px; box-shadow: var(--pop); padding: 18px 18px 20px; }
.lx-promo h2 { font-size: clamp(22px, 5vw, 30px); margin: 8px 0 6px; } .lx-promo p { margin: 0 0 12px; max-width: 62ch; }
.lx-promo-btns { display: flex; gap: 10px; flex-wrap: wrap; }
