/* Cyberskolen Ghost theme. Ported from the mockups: tokens + components + page layouts + lesson slideshow. Dark first, light via prefers-color-scheme. */
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); }
:root {
  --paper: #0E1014;
  --paper-raised: #161920;
  --paper-sunk: #0A0B0E;
  --ink: #ECEEF3;
  --ink-muted: #9BA3B4;
  --line: #232832;
  --line-strong: #646D80;
  --brand: #3DDC97;
  --brand-soft: #0F2E22;
  --on-brand: #04140C;
  --violet: #A894FF;
  --violet-soft: #221C45;
  --on-violet: #12093A;
  --pink: #FF7AC6;
  --pink-soft: #3A1630;
  --on-pink: #2A0A1C;
  --accent: #FF7A59;
  --accent-soft: #3B1A12;
  --on-accent: #1A0905;
  --accent-text: #FF9A80;
  --level-3: #FFC857;
  --level-3-soft: #33270C;
  --focus: #8CC2FF;
  --fur: #FFD9C2;
  --fur-shade: #E9A989;
  --blush: #FF8FC8;
  --spike: #7B61FF;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 32px rgba(0,0,0,0.35);
  --glow-brand: 0 0 0 1px rgba(61,220,151,0.5), 0 8px 32px rgba(61,220,151,0.25);
  --glow-violet: 0 0 0 1px rgba(168,148,255,0.45), 0 12px 48px rgba(123,97,255,0.28);
  color-scheme: dark; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  --paper: #F6F7F9;
  --paper-raised: #FFFFFF;
  --paper-sunk: #ECEEF2;
  --ink: #12141A;
  --ink-muted: #5A6272;
  --line: #E2E5EB;
  --line-strong: #878F9F;
  --brand: #0A7452;
  --brand-soft: #DDF6EA;
  --on-brand: #FFFFFF;
  --violet: #5B45E0;
  --violet-soft: #ECE8FF;
  --on-violet: #FFFFFF;
  --pink: #B8226F;
  --pink-soft: #FFE4F2;
  --on-pink: #FFFFFF;
  --accent: #C2411D;
  --accent-soft: #FFE6DE;
  --on-accent: #FFFFFF;
  --accent-text: #B23A1B;
  --level-3: #8A5A00;
  --level-3-soft: #FFF1D1;
  --focus: #1B6FD1;
  --fur: #FFD9C2;
  --fur-shade: #E9A989;
  --blush: #FF8FC8;
  --spike: #7B61FF;
  --shadow-card: 0 1px 2px rgba(18,20,26,0.06), 0 8px 24px rgba(18,20,26,0.06);
  --glow-brand: 0 0 0 1px rgba(11,127,87,0.5), 0 8px 24px rgba(11,127,87,0.18);
  --glow-violet: 0 0 0 1px rgba(91,69,224,0.35), 0 12px 32px rgba(91,69,224,0.16);
  color-scheme: light; } }
:root[data-theme="light"] {
  --paper: #F6F7F9;
  --paper-raised: #FFFFFF;
  --paper-sunk: #ECEEF2;
  --ink: #12141A;
  --ink-muted: #5A6272;
  --line: #E2E5EB;
  --line-strong: #878F9F;
  --brand: #0A7452;
  --brand-soft: #DDF6EA;
  --on-brand: #FFFFFF;
  --violet: #5B45E0;
  --violet-soft: #ECE8FF;
  --on-violet: #FFFFFF;
  --pink: #B8226F;
  --pink-soft: #FFE4F2;
  --on-pink: #FFFFFF;
  --accent: #C2411D;
  --accent-soft: #FFE6DE;
  --on-accent: #FFFFFF;
  --accent-text: #B23A1B;
  --level-3: #8A5A00;
  --level-3-soft: #FFF1D1;
  --focus: #1B6FD1;
  --fur: #FFD9C2;
  --fur-shade: #E9A989;
  --blush: #FF8FC8;
  --spike: #7B61FF;
  --shadow-card: 0 1px 2px rgba(18,20,26,0.06), 0 8px 24px rgba(18,20,26,0.06);
  --glow-brand: 0 0 0 1px rgba(11,127,87,0.5), 0 8px 24px rgba(11,127,87,0.18);
  --glow-violet: 0 0 0 1px rgba(91,69,224,0.35), 0 12px 32px rgba(91,69,224,0.16);
  color-scheme: light; }
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 112px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --stroke-ui: 1px;
  --stroke-strong: 1.5px;
  --font-display: var(--gh-font-heading, "Erode"), Georgia, "Times New Roman", serif;
  --font-body: var(--gh-font-body, "Recia"), Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}
.display { font-family: var(--font-display); font-size: 68px; line-height: 1.0; font-weight: 600; letter-spacing: -0.025em; }
.h1 { font-family: var(--font-display); font-size: 48px; line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; }
.h2 { font-family: var(--font-display); font-size: 34px; line-height: 1.12; font-weight: 600; letter-spacing: -0.015em; }
.h3 { font-family: var(--font-display); font-size: 22px; line-height: 1.25; font-weight: 600; }
.h4 { font-family: var(--font-display); font-size: 18px; line-height: 1.3; font-weight: 600; }
.lead { font-family: var(--font-body); font-size: 20px; line-height: 1.55; font-weight: 400; }
.body { font-family: var(--font-body); font-size: 17px; line-height: 1.6; font-weight: 400; }
.small { font-family: var(--font-body); font-size: 14px; line-height: 1.5; font-weight: 400; }
.label { font-family: var(--font-mono); font-size: 12px; line-height: 1.3; font-weight: 600; letter-spacing: 0.08em; }
.code { font-family: var(--font-mono); font-size: 14px; line-height: 1.5; font-weight: 400; }

/* Cyberskolen components v2. Plain CSS classes (prefix cs-), no JavaScript required,
   so the same file drops into a Ghost theme as assets/css/components.css.
   Fonts: Erode + Recia load from Fontshare in production. The Google faces
   below are stand-ins used only where Fontshare cannot load (previews). */

.cs-root, .cs-root * { box-sizing: border-box; }
.cs-root { background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.cs-root h1, .cs-root h2, .cs-root h3, .cs-root h4 { font-family: var(--font-display); font-weight: 600; margin: 0; }
.cs-root a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cs-root :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Eyebrow: mono label with a mint dot */
.cs-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.cs-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px var(--brand); }
/* Highlight one word of a heading */
.cs-mark { color: var(--pink); font-style: italic; }
.cs-kbd { font-family: var(--font-mono); font-size: 12px; padding: 1px 6px; border: var(--stroke-ui) solid var(--line-strong); border-bottom-width: 2px; border-radius: var(--radius-sm); color: var(--ink-muted); }

/* Button */
.cs-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-5); border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-md); font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer; transition: box-shadow .15s ease, border-color .15s ease, background-color .15s ease, transform .1s ease; }
.cs-root a.cs-btn { text-decoration: none; }
.cs-btn:active { transform: translateY(1px); }
.cs-btn--primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand) !important; }
.cs-btn--primary:hover { box-shadow: var(--glow-brand); }
.cs-btn--secondary { background: var(--paper-raised); color: var(--ink) !important; }
.cs-btn--secondary:hover { border-color: var(--line-strong); background: var(--paper-sunk); }
.cs-btn--violet { background: var(--violet); border-color: var(--violet); color: var(--on-violet) !important; }
.cs-btn--violet:hover { box-shadow: var(--glow-violet); }
.cs-btn--ghost { background: transparent; border-color: transparent; color: var(--ink) !important; }
.cs-btn--ghost:hover { background: var(--paper-raised); }
.cs-btn--sm { min-height: 36px; padding: 0 var(--space-4); font-size: 14px; }
.cs-btn[disabled], .cs-btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* Tag */
.cs-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; color: var(--ink); background: var(--paper-raised); white-space: nowrap; }
.cs-tag--l1 { background: var(--brand-soft); border-color: transparent; }
.cs-tag--l1 .cs-tag__dots { color: var(--brand); }
.cs-tag--l2 { background: var(--violet-soft); border-color: transparent; }
.cs-tag--l2 .cs-tag__dots { color: var(--violet); }
.cs-tag--l3 { background: var(--level-3-soft); border-color: transparent; }
.cs-tag--l3 .cs-tag__dots { color: var(--level-3); }
.cs-tag--workshop { background: var(--pink-soft); border-color: transparent; }
.cs-tag__dots { display: inline-flex; gap: 3px; }
.cs-tag__dots i { width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid currentColor; }
.cs-tag__dots i.on { background: currentColor; }

/* Card (course card) */
.cs-card { display: flex; flex-direction: column; background: var(--paper-raised); border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-lg); overflow: hidden; color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.cs-root a.cs-card { color: var(--ink); text-decoration: none; }
a.cs-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.cs-card__art { aspect-ratio: 16 / 9; background: var(--paper-sunk); border-bottom: var(--stroke-ui) solid var(--line); display: block; }
.cs-card__art img, .cs-card__art svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.cs-card__title { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.2; }
.cs-card__text { margin: 0; font-size: 16px; color: var(--ink-muted); }
.cs-card__meta { margin-top: auto; padding-top: var(--space-3); font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* Progress */
.cs-progress { height: 6px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.cs-progress__bar { height: 100%; border-radius: var(--radius-pill); background: var(--brand); box-shadow: 0 0 12px var(--brand); }

/* Callout */
.cs-callout { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; padding: var(--space-4) var(--space-5); border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-lg); background: var(--violet-soft); color: var(--ink); }
.cs-callout--tip { background: var(--brand-soft); }
.cs-callout--warn { background: var(--accent-soft); }
.cs-callout__icon { width: 32px; height: 32px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--violet); color: var(--on-violet); font-family: var(--font-mono); font-weight: 600; font-size: 15px; line-height: 1; }
.cs-callout--tip .cs-callout__icon { background: var(--brand); color: var(--on-brand); }
.cs-callout--warn .cs-callout__icon { background: var(--accent); color: var(--on-accent); }
.cs-callout__title { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.3; margin: 0 0 4px; }
.cs-callout p { margin: 0; font-size: 16px; }

/* Speech (Piggen talks) */
.cs-speech { display: flex; align-items: flex-end; gap: var(--space-3); }
.cs-speech__piggen { width: 84px; flex: none; }
.cs-speech__bubble { position: relative; margin: 0; padding: var(--space-3) var(--space-4); background: var(--paper-raised); border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px; font-size: 16px; }

/* Quiz choice */
.cs-choices { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.cs-choice { display: flex; gap: var(--space-3); align-items: center; width: 100%; text-align: left; padding: var(--space-3) var(--space-4); min-height: 56px; border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-md); background: var(--paper-raised); color: var(--ink); font: inherit; font-size: 16px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.cs-choice:hover { border-color: var(--line-strong); }
.cs-choice__key { flex: none; width: 28px; height: 28px; border-radius: var(--radius-sm); border: var(--stroke-strong) solid var(--line-strong); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.cs-choice__result { margin-left: auto; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cs-choice[aria-pressed="true"] { border-color: var(--violet); }
.cs-choice.is-correct { background: var(--brand-soft); border-color: var(--brand); }
.cs-choice.is-correct .cs-choice__key { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.cs-choice.is-correct .cs-choice__result { color: var(--brand); }
.cs-choice.is-wrong { background: var(--accent-soft); border-color: var(--accent); }
.cs-choice.is-wrong .cs-choice__key { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.cs-choice.is-wrong .cs-choice__result { color: var(--accent-text); }

/* Checklist */
.cs-checklist { list-style: none; margin: 0; padding: 0; border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-lg); background: var(--paper-raised); overflow: hidden; }
.cs-checklist li + li { border-top: var(--stroke-ui) solid var(--line); }
.cs-check { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); cursor: pointer; font-size: 16px; line-height: 1.45; }
.cs-check:hover { background: var(--paper-sunk); }
.cs-check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border: var(--stroke-strong) solid var(--line-strong); border-radius: var(--radius-sm); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background-color .15s ease, box-shadow .15s ease; }
.cs-check input::after { content: ""; width: 10px; height: 5px; border-left: 2.5px solid var(--on-brand); border-bottom: 2.5px solid var(--on-brand); transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.cs-check input:checked { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 10px var(--brand); }
.cs-check input:checked::after { opacity: 1; }
.cs-check input:checked + span { color: var(--ink-muted); }
.cs-check small { display: block; color: var(--ink-muted); font-size: 14px; }

/* Slide (lesson) */
.cs-slide { background: var(--paper-raised); border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: var(--space-6); display: grid; gap: var(--space-5); align-content: start; }
.cs-slide__count { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.cs-slide__title { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1.1; letter-spacing: -.015em; }
.cs-slide__text { font-size: 18px; line-height: 1.6; margin: 0; color: var(--ink-muted); }
.cs-slide__art { border-radius: var(--radius-lg); border: var(--stroke-ui) solid var(--line); overflow: hidden; background: var(--paper-sunk); }
.cs-slide__art img, .cs-slide__art svg { width: 100%; height: auto; display: block; }
@container slide (min-width: 820px) {
  .cs-slide { padding: var(--space-7); }
  .cs-slide__title { font-size: 48px; line-height: 1.05; letter-spacing: -.02em; }
  .cs-slide__text { font-size: 20px; }
  .cs-slide--split { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--space-7); }
}

/* Slide dots */
.cs-dots { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cs-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--radius-pill); background: var(--line-strong); cursor: pointer; transition: width .2s ease, background-color .2s ease; }
.cs-dots button.done { background: var(--brand); }
.cs-dots button[aria-current="step"] { width: 28px; background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.cs-dots button.end { background: transparent; outline: 1.5px solid var(--line-strong); outline-offset: -1.5px; }
.cs-dots button.end[aria-current="step"] { background: var(--pink); outline: 0; box-shadow: 0 0 10px var(--pink); }

@media (prefers-reduced-motion: reduce) { .cs-btn, .cs-card, .cs-dots button { transition: none; } }

/* ---------- Page layout (Ghost: site.css) ---------- */
html, body { background: var(--paper); }
body { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.read { max-width: 680px; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-muted); }
.cs-root p { margin: 0; }
.cs-root h1, .cs-root h2 { text-wrap: balance; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: var(--stroke-ui) solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: var(--space-5); min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink) !important; font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -.01em; }
.logo img { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); border: var(--stroke-ui) solid var(--line); padding: 2px; }
.nav { display: flex; gap: var(--space-5); margin-left: auto; align-items: center; }
.nav a:not(.cs-btn) { color: var(--ink); text-decoration: none; font-size: 17px; }
.nav a:not(.cs-btn):hover { text-decoration: underline; }
@media (max-width: 720px) { .nav a:not(.cs-btn) { display: none; } }

/* Sections */
.section { padding-block: var(--space-7); }
@media (min-width: 900px) { .section { padding-block: var(--space-8); } }
.section-head { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); max-width: 680px; }
.section-head h2 { font-size: 32px; line-height: 1.15; letter-spacing: -.01em; }
@media (min-width: 900px) { .section-head h2 { font-size: 44px; line-height: 1.08; } }
.band { background: var(--paper-sunk); border-block: var(--stroke-ui) solid var(--line); }

/* Hero */
.hero { padding-block: var(--space-7); }
.hero .wrap { display: grid; gap: var(--space-7); align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.02; letter-spacing: -.02em; }
.hero .lead { font-size: 21px; line-height: 1.5; max-width: 34ch; }
.hero-copy { display: grid; gap: var(--space-5); min-width: 0; }
.hero-ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero-proof { display: flex; gap: var(--space-5); flex-wrap: wrap; font-size: 15px; color: var(--ink-muted); }
.hero-proof b { color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.hero-art { position: relative; background: var(--brand-soft); border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--glow-violet); aspect-ratio: 5 / 4; max-width: 100%; overflow: hidden; }
.hero-art .piggen { position: absolute; width: 58%; left: 8%; bottom: -4%; }
.hero-art .msg { position: absolute; z-index: 1; right: 6%; top: 10%; width: 52%; background: var(--paper-raised); border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: var(--space-3) var(--space-4); display: grid; gap: 6px; font-size: 14px; line-height: 1.4; }
.hero-art .msg .from { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); overflow-wrap: anywhere; }
.hero-art .msg .from s { color: var(--accent-text); text-decoration: none; background: var(--accent-soft); padding: 0 3px; border-radius: 4px; }
.hero-art .msg .subj { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.hero-art .flag { position: absolute; right: 4%; top: 52%; }
@media (min-width: 900px) {
  .hero { padding-block: var(--space-9) var(--space-8); }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: var(--space-8); }
  .hero h1 { font-size: 64px; }
}

/* Steps */
.steps { display: grid; gap: var(--space-5); list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { display: grid; gap: var(--space-2); align-content: start; }
.steps .n { width: 44px; height: 44px; border-radius: 50%; border: var(--stroke-ui) solid var(--line); background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-bottom: var(--space-2); }
.steps h3 { font-size: 24px; line-height: 1.25; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }

/* Path / levels */
.level { display: grid; gap: var(--space-5); padding-block: var(--space-6); border-top: var(--stroke-ui) solid var(--line); }
.level:first-of-type { border-top: 0; padding-top: 0; }
.level-head { display: flex; gap: var(--space-4); align-items: baseline; flex-wrap: wrap; }
.level-head h3 { font-size: 28px; line-height: 1.2; }
.grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* Workshops */
.workshop { display: grid; gap: var(--space-4); grid-template-columns: 1fr; padding: var(--space-5); background: var(--paper-raised); border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.workshop h3 { font-size: 24px; line-height: 1.2; }
.workshop .when { display: flex; gap: var(--space-4); flex-wrap: wrap; font-size: 15px; color: var(--ink-muted); }
.date { width: 72px; height: 72px; border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-md); background: var(--pink-soft); display: grid; place-content: center; text-align: center; line-height: 1; }
.date b { font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.date span { font-family: var(--font-mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
@media (min-width: 640px) { .workshop { grid-template-columns: auto 1fr auto; align-items: center; } }

/* Free band */
.free { display: grid; gap: var(--space-6); align-items: center; }
.free img { width: 200px; max-width: 60%; }
.free h2 { font-size: 32px; line-height: 1.12; }
@media (min-width: 760px) { .free { grid-template-columns: 240px 1fr; } .free img { width: 100%; max-width: 240px; } .free h2 { font-size: 44px; } }

/* Footer */
.site-foot { border-top: var(--stroke-ui) solid var(--line); padding-block: var(--space-6); font-size: 15px; color: var(--ink-muted); }
.site-foot .wrap { display: flex; gap: var(--space-5); flex-wrap: wrap; justify-content: space-between; align-items: center; }

/* Course page */
.crumbs { font-size: 15px; color: var(--ink-muted); padding-top: var(--space-5); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-muted); }
.course-hero { display: grid; gap: var(--space-6); padding-block: var(--space-5) var(--space-7); align-items: center; }
.course-hero h1 { font-size: 40px; line-height: 1.05; letter-spacing: -.015em; }
.course-hero .lead { font-size: 20px; line-height: 1.5; }
.course-hero .art { border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--glow-violet); max-width: 100%; }
.course-hero .art img { display: block; width: 100%; height: auto; }
.facts { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.resume { display: grid; gap: var(--space-2); padding: var(--space-4); border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-md); background: var(--paper-raised); }
.resume-row { display: flex; justify-content: space-between; gap: var(--space-3); font-size: 15px; }
@media (min-width: 900px) { .course-hero { grid-template-columns: 1.1fr 1fr; gap: var(--space-8); } .course-hero h1 { font-size: 56px; } }

.course-body { display: grid; gap: var(--space-7); padding-bottom: var(--space-8); }
@media (min-width: 900px) { .course-body { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-8); align-items: start; } .aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); } }
.learn { display: grid; gap: var(--space-3); list-style: none; padding: 0; margin: 0; }
.learn li { display: flex; gap: var(--space-3); align-items: flex-start; }
.learn li::before { content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; border: var(--stroke-ui) solid var(--line); background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 14px; font-weight: 600; margin-top: 2px; }
.lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.lesson { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-4); align-items: center; padding: var(--space-4); background: var(--paper-raised); border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-md); text-decoration: none; color: var(--ink) !important; }
a.lesson:hover { box-shadow: var(--shadow-card); transform: translate(-2px,-2px); }
.lesson .num { width: 40px; height: 40px; border-radius: 50%; border: var(--stroke-ui) solid var(--line); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; font-size: 14px; background: var(--paper); }
.lesson.done .num { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.lesson.current { box-shadow: var(--shadow-card); background: var(--brand-soft); }
.lesson h3 { font-size: 19px; line-height: 1.3; }
.lesson p { font-size: 15px; color: var(--ink-muted); }
.lesson .state { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; }
.lesson.done .state { color: var(--brand); }
.lesson.current .state { color: var(--ink); }
.aside-card { display: grid; gap: var(--space-4); padding: var(--space-5); background: var(--paper-raised); border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-md); }
.aside-card h3 { font-size: 21px; }
.aside-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--space-4); margin: 0; font-size: 16px; }
.aside-card dt { color: var(--ink-muted); }
.aside-card dd { margin: 0; font-weight: 600; }
.stack { display: grid; gap: var(--space-5); }

/* ---------- Lesson slideshow (Ghost: post.hbs for lessons + lesson.js) ---------- */
html.is-lesson, html.is-lesson body { height: 100%; }
.lesson-app { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--paper-sunk); }
.lbar { background: var(--paper); border-bottom: var(--stroke-ui) solid var(--line); padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; }
.lbar .x { width: 44px; height: 44px; border-radius: 50%; border: var(--stroke-ui) solid var(--line); display: grid; place-items: center; text-decoration: none; color: var(--ink) !important; font-size: 22px; line-height: 1; background: var(--paper-raised); }
.lbar .titles { min-width: 0; display: grid; gap: 6px; }
.lbar .titles span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbar .t1 { font-size: 13px; color: var(--ink-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.lbar .t2 { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.2; }
.lbar .count { font-family: var(--font-mono); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lbar .cs-progress { grid-column: 1 / -1; height: 10px; }
.cs-progress__bar { transition: width .25s ease; }

.stage { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; min-width: 0; }
.stage::-webkit-scrollbar { display: none; }
.cell { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; overflow-y: auto; padding: var(--space-4) max(16px, env(safe-area-inset-right, 0px)) var(--space-6) max(16px, env(safe-area-inset-left, 0px)); display: grid; }
.cell > .cs-slide { width: 100%; max-width: 1040px; margin: auto; }
.cs-slide > * { min-width: 0; }
.cs-slide .txt { display: grid; gap: var(--space-4); align-content: start; }
.cs-slide figure { margin: 0; }
.cs-slide h2 { font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1.12; letter-spacing: -.01em; }
.cs-slide p { font-size: 19px; line-height: 1.55; }
.cs-slide .cs-eyebrow { font-size: 13px; }
.cs-slide figure.piggen { max-width: 260px; justify-self: center; border: 0; background: none; }
@media (min-width: 900px) { .cell { padding: var(--space-6) var(--space-7) var(--space-6); } }
@container slide (min-width: 820px) {
  .cs-slide h2 { font-size: 44px; line-height: 1.08; letter-spacing: -.015em; }
  .cs-slide p { font-size: 21px; }
  .cs-slide figure.piggen { max-width: 320px; }
}

.lnav { background: var(--paper); border-top: var(--stroke-ui) solid var(--line); padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; }
.lnav .cs-dots { justify-content: center; }
.lnav .cs-btn { min-width: 0; }
@media (max-width: 520px) { .lnav .lbl { display: none; } .lnav .cs-btn { width: 52px; padding: 0; } }

/* Fake SMS / email examples inside slides */
.phone { justify-self: center; width: min(100%, 340px); border: var(--stroke-ui) solid var(--line); border-radius: 32px; background: var(--paper); padding: var(--space-5) var(--space-4); box-shadow: var(--shadow-card); display: grid; gap: var(--space-3); }
.phone .who { text-align: center; font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }
.bubble { background: var(--paper-raised); border: var(--stroke-ui) solid var(--line); border-radius: 18px 18px 18px 4px; padding: var(--space-3) var(--space-4); font-size: 17px; line-height: 1.45; }
.bubble .link { color: var(--brand); text-decoration: underline; text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.reveal { font-family: var(--font-mono); font-size: 14px; background: var(--ink); color: var(--paper); border-radius: var(--radius-sm); padding: 8px 10px; overflow-wrap: anywhere; }
.reveal b { color: var(--brand-soft); font-weight: 600; }
.url { font-family: var(--font-mono); font-size: 16px; line-height: 1.5; padding: var(--space-4); border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-sm); background: var(--paper); overflow-wrap: anywhere; }
.url .dim { color: var(--ink-muted); }
.url .dom { background: var(--brand-soft); color: var(--brand); padding: 0 4px; border-radius: 4px; font-weight: 600; }
.url-key { display: grid; gap: var(--space-2); font-size: 16px; list-style: none; padding: 0; margin: 0; }
.url-key li { display: flex; gap: var(--space-2); align-items: baseline; }
.sw { flex: none; width: 14px; height: 14px; border-radius: 4px; border: var(--stroke-ui) solid var(--line); transform: translateY(2px); }
.quiz-why { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--paper-sunk); font-size: 17px !important; }
.done-row { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
@media (prefers-reduced-motion: reduce) { .stage { scroll-behavior: auto; } .cs-progress__bar { transition: none; } }
[hidden]{display:none!important}

@media (max-width: 899px) { .hero-art .piggen { width: 50%; left: 4%; } .hero-art .msg { width: 62%; right: 5%; top: 8%; } }

/* ---------- v2 page touches ---------- */
.site-head { background: color-mix(in srgb, var(--paper) 85%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.logo img { background: var(--violet-soft); border-color: var(--line); }
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--line) 1.2px, transparent 1.6px); background-size: 24px 24px; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.hero h1 { letter-spacing: -.03em; }
.hero .lead { color: var(--ink-muted); }
.hero-art { background: var(--paper-raised); border-color: var(--line); }
.hero-art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line) 1.2px, transparent 1.6px); background-size: 24px 24px; }
.hero-art::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; left: 0; bottom: -20%; border-radius: 50%; background: var(--violet); opacity: .22; filter: blur(60px); }
.hero-art .piggen { z-index: 1; }
.hero-art .msg { z-index: 2; border-color: var(--line); }
.hero-art .msg .from s { color: var(--accent-text); }
.hero-proof b { font-family: var(--font-mono); font-size: 16px; }
.steps .n { border-radius: var(--radius-md); font-family: var(--font-mono); font-size: 15px; border: var(--stroke-ui) solid var(--line); }
.steps li { padding: var(--space-5); background: var(--paper-raised); border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-lg); }
.steps p, .level-head .muted, .workshop .when { color: var(--ink-muted); }
.date { border-color: transparent; }
.date b { color: var(--pink); }
.cs-card__art.piggen-art { display: grid; place-items: center; background-image: radial-gradient(var(--line) 1.2px, transparent 1.6px); background-size: 20px 20px; }
.cs-card__art.piggen-art img { width: 52%; height: auto; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0,0,0,.35)); }
.learn li::before { border-color: transparent; border-radius: var(--radius-sm); }
.lesson .num { border-radius: var(--radius-md); background: var(--paper-sunk); }
.lesson.done .num { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.lesson.current { border-color: var(--brand); box-shadow: var(--glow-brand); background: var(--paper-raised); }
.lesson.current .state { color: var(--brand); }
a.lesson:hover { transform: none; border-color: var(--line-strong); box-shadow: none; }
.lbar, .lnav { background: var(--paper-raised); }
.lesson-app { background-color: var(--paper-sunk); background-image: radial-gradient(var(--line) 1px, transparent 1.4px); background-size: 24px 24px; }
.cell > .cs-slide { box-shadow: var(--shadow-card); }
.reveal { background: var(--paper-sunk); color: var(--ink); border: var(--stroke-ui) solid var(--line); }
.reveal b { color: var(--pink); }
.url .dom { background: var(--pink-soft); color: var(--pink); }
.phone { background: var(--paper-sunk); border-color: var(--line-strong); }
.bubble { border-color: var(--line); }
.cs-slide p { color: var(--ink-muted); }
.cs-slide .cs-speech__bubble, .cs-slide .cs-callout p, .cs-slide .bubble, .cs-slide .quiz-why { color: var(--ink); }
.kbd-hint { display: none; font-size: 13px; color: var(--ink-muted); gap: 6px; align-items: center; justify-content: center; }
@media (min-width: 900px) { .kbd-hint { display: flex; } }
[hidden] { display: none !important; }

/* ---------- Slide content types (lesson presentation) ---------- */
.cs-stage, .cell, .lib-stage { container: slide / inline-size; }
.cs-goals, .cs-steps, .cs-takeaways { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); counter-reset: n; }
.cs-goals li, .cs-steps li { counter-increment: n; display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; padding: var(--space-4); border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-lg); background: var(--paper-sunk); font-size: 17px; line-height: 1.5; }
.cs-goals li::before, .cs-steps li::before { content: counter(n); width: 32px; height: 32px; border-radius: var(--radius-md); display: grid; place-items: center; font-family: var(--font-mono); font-size: 14px; font-weight: 600; background: var(--brand-soft); color: var(--brand); }
.cs-steps li::before { background: var(--violet-soft); color: var(--violet); }
.cs-goals b, .cs-steps b { color: var(--ink); font-weight: 600; }
.cs-takeaways li { display: flex; gap: var(--space-3); align-items: baseline; font-size: 18px; line-height: 1.45; color: var(--ink); }
.cs-takeaways li::before { content: "→"; font-family: var(--font-mono); color: var(--brand); flex: none; }

.cs-statement { margin: 0; display: grid; gap: var(--space-5); padding-block: var(--space-6); }
.cs-statement p { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1.08; letter-spacing: -.02em; color: var(--ink) !important; text-wrap: balance; }
.cs-statement cite { font-style: normal; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.cs-statement cite::before { content: "— "; color: var(--pink); }
.cs-slide--statement { background-image: radial-gradient(var(--line) 1.2px, transparent 1.6px); background-size: 24px 24px; }

.cs-compare { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.cs-compare li { display: grid; gap: 6px; padding: var(--space-4); border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-lg); background: var(--paper-sunk); }
.cs-compare .verdict { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cs-compare .ok { border-color: var(--brand); }
.cs-compare .ok .verdict, .cs-compare .ok code b { color: var(--brand); }
.cs-compare .bad .verdict, .cs-compare .bad code b { color: var(--accent-text); }
.cs-compare code { font-family: var(--font-mono); font-size: 15px; color: var(--ink-muted); overflow-wrap: anywhere; }
.cs-compare code b { font-weight: 600; }
.cs-compare .why { font-size: 15px; color: var(--ink-muted); }

.mail { border: var(--stroke-ui) solid var(--line-strong); border-radius: var(--radius-lg); background: var(--paper); overflow: hidden; font-size: 16px; }
.mail-head { display: grid; gap: 6px; padding: var(--space-4); border-bottom: var(--stroke-ui) solid var(--line); background: var(--paper-sunk); }
.mail-row { display: flex; gap: var(--space-3); align-items: baseline; min-width: 0; }
.mail-row .k { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); width: 44px; flex: none; }
.mail-body { padding: var(--space-4); display: grid; gap: var(--space-3); }
.mail-body p { color: var(--ink) !important; font-size: 16px !important; }
.hot { font: inherit; color: inherit; background: none; border: 0; padding: 1px 3px; margin: -1px -3px; border-radius: 4px; text-align: left; cursor: pointer; text-decoration: underline dotted var(--line-strong); text-underline-offset: 4px; overflow-wrap: anywhere; }
.hot:hover { background: var(--violet-soft); }
.hot.found { background: var(--accent-soft); color: var(--accent-text); text-decoration: none; box-shadow: 0 0 0 1.5px var(--accent); }
.hot--btn { display: inline-block; padding: 10px 16px; margin: 0; border-radius: var(--radius-md); background: #2D6BFF; color: #fff; font-weight: 600; text-decoration: none; }
.hot--btn.found { background: var(--accent-soft); }
.spot-count { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--brand) !important; }
.spot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.spot-list li { display: flex; gap: var(--space-2); font-size: 15px; line-height: 1.45; color: var(--ink); }
.spot-list li::before { content: "!"; flex: none; width: 20px; height: 20px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-family: var(--font-mono); font-size: 12px; font-weight: 600; margin-top: 1px; }
.spot-done { color: var(--brand) !important; }

.cs-tf { display: grid; gap: var(--space-5); }
.cs-tf__claim { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.15; letter-spacing: -.015em; color: var(--ink) !important; text-wrap: balance; }
.cs-tf__btns { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.cs-tf__btns .cs-btn { min-width: 120px; }
.cs-tf__btns .is-correct { background: var(--brand-soft); border-color: var(--brand); color: var(--brand) !important; }
.cs-tf__btns .is-wrong { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text) !important; }

.bubble .link { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.sw--dim { background: var(--paper-sunk); }
.sw--dom { background: var(--pink-soft); border-color: var(--pink) !important; }
.stack-sm { display: grid; gap: var(--space-4); }

@container slide (min-width: 820px) {
  .cs-statement p { font-size: 64px; }
  .cs-statement { padding-block: var(--space-8); }
  .cs-tf__claim { font-size: 44px; }
  .cs-goals li, .cs-steps li { font-size: 19px; }
  .cs-compare li { grid-template-columns: 110px 1fr; column-gap: var(--space-4); align-items: baseline; }
  .cs-compare .why { grid-column: 2; }
}

/* Notes ("Les mer"): the written explanation a presenter would have said */
.cs-notes { border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-lg); background: var(--paper-sunk); }
.cs-notes summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--space-3); padding: 12px var(--space-4); font-weight: 600; font-size: 15px; color: var(--ink); }
.cs-notes summary::-webkit-details-marker { display: none; }
.cs-notes summary::before { content: "+"; width: 22px; height: 22px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); font-family: var(--font-mono); font-size: 14px; flex: none; }
.cs-notes[open] summary::before { content: "−"; }
.cs-notes__hint { margin-left: auto; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.cs-notes__body { padding: 0 var(--space-4) var(--space-4) calc(var(--space-4) + 22px + var(--space-3)); }
.cs-notes__body p { font-size: 16px !important; line-height: 1.6; color: var(--ink) !important; }
.cs-slide--statement .txt { justify-items: start; }
.notes-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: var(--radius-md); border: var(--stroke-ui) solid var(--line); background: var(--paper-raised); color: var(--ink); font: 600 14px var(--font-body); cursor: pointer; }
.notes-toggle .sw-ui { width: 28px; height: 16px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background-color .15s; }
.notes-toggle .sw-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper-raised); transition: transform .15s; }
.notes-toggle[aria-pressed="true"] .sw-ui { background: var(--brand); }
.notes-toggle[aria-pressed="true"] .sw-ui::after { transform: translateX(12px); }
.lbar { grid-template-columns: auto minmax(0, 1fr) auto auto; }
@media (max-width: 520px) { .notes-toggle .lbl { display: none; } }


/* ---------- Ghost additions ---------- */
img { max-width: 100%; }
:root { padding-top: env(safe-area-inset-top, 0px); }
html.is-lesson { padding-top: env(safe-area-inset-top, 0px); }
.site-main { min-height: 60vh; }
.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; }
.cs-card__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav a[aria-current="page"] { color: var(--brand); }

/* Plain posts and pages (news, about, privacy) */
.article { padding-block: var(--space-7) var(--space-8); display: grid; gap: var(--space-6); }
.article-head { display: grid; gap: var(--space-4); max-width: 760px; }
.article-head h1 { font-size: 40px; line-height: 1.06; letter-spacing: -.02em; }
@media (min-width: 900px) { .article-head h1 { font-size: 56px; } }
.article-head .lead { color: var(--ink-muted); font-size: 20px; }
.article-meta { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); letter-spacing: .04em; }
.article-image { margin: 0; border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-xl); overflow: hidden; }
.article-image img { display: block; width: 100%; height: auto; }

.gh-content { display: grid; grid-template-columns: [full-start] minmax(0, 1fr) [wide-start] minmax(0, 80px) [main-start] min(680px, 100%) [main-end] minmax(0, 80px) [wide-end] minmax(0, 1fr) [full-end]; row-gap: var(--space-5); }
.gh-content > * { grid-column: main-start / main-end; margin: 0; }
.article .gh-content, .course-intro.gh-content { grid-template-columns: [full-start wide-start main-start] minmax(0, 1fr) [main-end wide-end full-end]; }
.gh-content h2 { font-size: 30px; line-height: 1.15; margin-top: var(--space-5) !important; }
.gh-content h3 { font-size: 22px; line-height: 1.25; margin-top: var(--space-3) !important; }
.gh-content ul, .gh-content ol { padding-left: 1.3em; display: grid; gap: var(--space-2); }
.gh-content blockquote { border-left: 3px solid var(--violet); padding-left: var(--space-4); color: var(--ink-muted); }
.gh-content pre { font-family: var(--font-mono); font-size: 14px; background: var(--paper-sunk); border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); overflow-x: auto; }
.gh-content :not(pre) > code { font-family: var(--font-mono); font-size: .88em; background: var(--paper-sunk); border: var(--stroke-ui) solid var(--line); border-radius: 4px; padding: 1px 5px; }
.gh-content hr { border: 0; border-top: var(--stroke-ui) solid var(--line); width: 100%; }
.gh-content figure img { border-radius: var(--radius-lg); }
.gh-content figcaption { font-size: 14px; color: var(--ink-muted); text-align: center; margin-top: var(--space-2); }
.gh-content .kg-width-wide { grid-column: wide-start / wide-end; }
.gh-content .kg-width-full { grid-column: full-start / full-end; }
.gh-content .kg-width-full img { border-radius: 0; }
.kg-width-wide, .kg-width-full { width: 100%; }

/* Post list (news) */
.post-list { display: grid; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.post-item a { display: grid; gap: 4px; padding: var(--space-5); border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-lg); background: var(--paper-raised); text-decoration: none; color: var(--ink) !important; }
.post-item a:hover { border-color: var(--line-strong); }
.post-item h3 { font-size: 22px; }
.post-item p { color: var(--ink-muted); }
.pagination { display: flex; gap: var(--space-3); justify-content: space-between; align-items: center; padding-top: var(--space-6); font-family: var(--font-mono); font-size: 14px; color: var(--ink-muted); }

/* Course page extras */
.course-intro { gap: var(--space-4); }
.course-intro .learn { margin-top: var(--space-2) !important; }
.lessons .empty { color: var(--ink-muted); padding: var(--space-4); border: var(--stroke-ui) dashed var(--line); border-radius: var(--radius-md); }
.lesson-art-fallback { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--paper-sunk); background-image: radial-gradient(var(--line) 1.2px, transparent 1.6px); background-size: 24px 24px; }
.lesson-art-fallback img { width: 46%; }

/* Error page */
.error-page { display: grid; gap: var(--space-5); justify-items: start; padding-block: var(--space-8); }
.error-page img { width: 220px; }
.error-page h1 { font-size: 48px; }

/* Lesson: Ghost card markers and stray wrappers inside the slide source */
#src > :not(hr):empty { display: none; }

/* ---------- Polish: header, footer, forms ---------- */
.nav-member { font-family: var(--font-mono); font-size: 14px !important; color: var(--ink-muted) !important; }
.site-foot .wrap { align-items: flex-start; row-gap: var(--space-4); }
.foot-brand { display: grid; gap: var(--space-2); max-width: 420px; }
.foot-nav { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.foot-nav a { color: var(--ink-muted); text-decoration: none; }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; }
.foot-meta { font-size: 13px; }
@media (min-width: 760px) { .site-foot .wrap { flex-wrap: nowrap; align-items: center; } .foot-meta { margin-left: auto; } }

.cs-input { width: 100%; min-height: 48px; padding: 0 var(--space-4); font: inherit; font-size: 17px; color: var(--ink); background: var(--paper-sunk); border: var(--stroke-ui) solid var(--line-strong); border-radius: var(--radius-md); transition: border-color .15s, box-shadow .15s; }
.cs-input::placeholder { color: var(--ink-muted); opacity: .8; }
.cs-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.member-form { display: grid; gap: var(--space-3); width: 100%; }
.member-form .cs-btn { justify-content: center; }
.member-form .when-loading, .member-form .form-msg { display: none; }
.member-form.loading .when-idle { display: none; }
.member-form.loading .when-loading { display: inline; }
.member-form.loading .cs-btn { opacity: .7; pointer-events: none; }
.member-form.success > :not(.form-msg--ok) { display: none; }
.member-form.success .form-msg--ok, .member-form.error .form-msg--err { display: block; }
.form-msg { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: 16px; }
.form-msg--ok { background: var(--brand-soft); color: var(--ink); border: var(--stroke-ui) solid var(--brand); }
.form-msg--err { background: var(--accent-soft); color: var(--accent-text); border: var(--stroke-ui) solid var(--accent); }
.form-msg--err::before { content: "! "; font-family: var(--font-mono); font-weight: 600; }

/* Newsletter box */
.subscribe { display: grid; gap: var(--space-5); align-items: center; padding: var(--space-6); margin-block: var(--space-6); background: var(--paper-raised); border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--glow-violet); position: relative; overflow: hidden; isolation: isolate; }
.subscribe::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--line) 1.2px, transparent 1.6px); background-size: 24px 24px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.subscribe__piggen { width: 96px; height: auto; }
.subscribe__copy { display: grid; gap: var(--space-2); }
.subscribe h2 { font-size: 28px; line-height: 1.15; }
@media (min-width: 900px) { .subscribe { grid-template-columns: auto 1fr minmax(300px, 380px); padding: var(--space-6) var(--space-7); } .subscribe h2 { font-size: 34px; } }

/* Sign-up, sign-in, account */
.auth { display: grid; place-items: center; padding-block: var(--space-7) var(--space-8); }
.auth-card { width: min(100%, 480px); display: grid; gap: var(--space-4); padding: var(--space-6); background: var(--paper-raised); border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); text-align: left; }
.auth-card h1 { font-size: 36px; line-height: 1.08; letter-spacing: -.02em; }
.auth-card__piggen { width: 112px; height: auto; margin-top: calc(-1 * var(--space-8)); filter: drop-shadow(0 12px 24px rgba(0,0,0,.35)); }
.auth { padding-top: calc(var(--space-8) + var(--space-5)); }
.auth-alt { font-size: 16px; color: var(--ink-muted); }
.auth-note { font-size: 14px; color: var(--ink-muted); }
.account-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--space-4); margin: 0; padding: var(--space-4); background: var(--paper-sunk); border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-md); font-size: 16px; }
.account-facts dt { color: var(--ink-muted); font-family: var(--font-mono); font-size: 13px; padding-top: 3px; }
.account-facts dd { margin: 0; overflow-wrap: anywhere; }

/* About page */
.about-hero { position: relative; isolation: isolate; padding-block: var(--space-7); border-bottom: var(--stroke-ui) solid var(--line); }
.about-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--line) 1.2px, transparent 1.6px); background-size: 24px 24px; -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent); }
.about-hero .wrap { display: grid; gap: var(--space-7); align-items: center; }
.about-hero__copy { display: grid; gap: var(--space-4); }
.about-hero h1 { font-size: 44px; line-height: 1.02; letter-spacing: -.025em; }
.about-hero .lead { color: var(--ink-muted); max-width: 40ch; }
.about-maker { margin: 0; justify-self: start; display: grid; gap: var(--space-4); justify-items: center; text-align: center; padding: var(--space-6) var(--space-7); background: var(--paper-raised); border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--glow-violet); }
.about-maker__avatar { position: relative; width: 160px; height: 160px; }
.about-maker__avatar > img:first-child { display: block; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; background: var(--fur); border: 3px solid var(--violet); }
.about-maker__piggen { position: absolute; right: -14px; bottom: -6px; width: 64px; height: 64px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.35)); }
.about-maker figcaption { display: grid; gap: 4px; }
.about-maker__hi { font-size: 16px; color: var(--ink-muted); }
.about-maker__name { font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1.1; }
.about-maker__name a { color: var(--ink) !important; text-decoration: none; background-image: linear-gradient(var(--pink), var(--pink)); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; }
.about-maker__role { font-size: 13px; color: var(--ink-muted); letter-spacing: .02em; }
@media (min-width: 900px) { .about-hero { padding-block: var(--space-8); } .about-hero .wrap { grid-template-columns: 1.3fr 1fr; } .about-hero h1 { font-size: 64px; } .about-maker { justify-self: end; } }

.about-body { display: grid; gap: var(--space-7); padding-block: var(--space-7); }
.about-content ul { list-style: none; padding: 0; }
.about-content ul li { position: relative; padding-left: 34px; }
.about-content ul li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 600; }
.about-content h2:first-child { margin-top: 0 !important; }
.about-promises { display: grid; gap: var(--space-3); align-content: start; }
.promise { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); padding: var(--space-5); background: var(--paper-raised); border: var(--stroke-ui) solid var(--line); border-radius: var(--radius-lg); }
.promise__icon { width: 36px; height: 36px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); font-family: var(--font-mono); font-weight: 600; }
.promise h3 { font-size: 19px; }
.promise p { color: var(--ink-muted); font-size: 16px; }
@media (min-width: 900px) { .about-body { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-8); } .about-promises { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); } }
.about-cta { display: grid; gap: var(--space-5); align-items: center; }
.about-cta img { width: 140px; }
.about-cta h2 { font-size: 32px; }
@media (min-width: 760px) { .about-cta { grid-template-columns: 160px 1fr; } .about-cta img { width: 160px; } }

/* 404 */
.error-hero { position: relative; isolation: isolate; }
.error-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--line) 1.2px, transparent 1.6px); background-size: 24px 24px; }
.error-hero::after { content: ""; position: absolute; z-index: -1; width: 420px; aspect-ratio: 1; left: 5%; top: 10%; border-radius: 50%; background: var(--violet); opacity: .16; filter: blur(80px); }
.error-page { align-items: center; }
.error-page h1 { font-size: 40px; line-height: 1.05; letter-spacing: -.02em; }
.error-page img { width: 180px; height: auto; }
@media (min-width: 760px) { .error-page { grid-template-columns: 240px 1fr; gap: var(--space-7); } .error-page img { width: 240px; } .error-page h1 { font-size: 56px; } }

/* News */
.article-foot { padding-top: var(--space-5); border-top: var(--stroke-ui) solid var(--line); }
.back-link { font-family: var(--font-mono); font-size: 14px; text-decoration: none; }
.list-head { display: grid; gap: var(--space-3); padding-block: var(--space-7) var(--space-5); }
.empty-state { display: grid; gap: var(--space-4); justify-items: start; padding: var(--space-6); border: var(--stroke-ui) dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty-state img { width: 120px; }
