/* Leren hub (/leren/) in the Colour Index style of the homepage (Sept 2026).
   Same building blocks as /recipes-hub.css: bone canvas, wide Archivo
   headlines, Plex Mono labels, colour tiles, rounded photo cards and a dark
   closing panel. Tokens come from /brand.css. */
:root {
  --l-bone: var(--bm-bone, #EFEBE3);
  --l-paper: var(--bm-paper, #FBFAF7);
  --l-ink: var(--bm-ink, #141214);
  --l-stone: var(--bm-stone, #6B655F);
  --l-hair: var(--bm-hair, #E0DBD1);
  --l-ube: var(--bm-ube, #5B2E86);
  --l-ube-deep: var(--bm-ube-deep, #3B1C58);
  --l-wide: var(--bm-wide, "Archivo", sans-serif);
  --l-sans: var(--bm-sans, "Instrument Sans", system-ui, sans-serif);
  --l-mono: var(--bm-mono, "IBM Plex Mono", monospace);
  --l-gut: var(--bm-gut, clamp(16px, 4vw, 56px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--l-bone); color: var(--l-ink); font-family: var(--l-sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
figure { margin: 0; }

.learn-page { overflow: hidden; padding-bottom: clamp(56px, 7vw, 96px); }
/* NL pages mount the fixed site header in place, without a spacer. */
body:not(:has(.bm-site-spacer)) .learn-page { padding-top: 72px; }
.learn-shell { max-width: 1320px; margin: 0 auto; padding-inline: var(--l-gut); }

/* labels */
.learn-eyebrow { margin: 0 0 16px; font-family: var(--l-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--l-stone); }
.learn-tag, .path-card span {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-family: var(--l-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.learn-tag { color: var(--l-ink); }
.learn-tag::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--l-ube); }

/* headings */
.learn-hero h1, .learn-section h2, .learn-quick h2, .learn-panel h2 {
  margin: 0; font-family: var(--l-wide); font-stretch: 125%; font-weight: 850; letter-spacing: -.03em; line-height: .95; text-transform: none;
}
.learn-card h3, .path-card h3, .learn-tile h3 {
  margin: 0; font-family: var(--l-wide); font-stretch: 118%; font-weight: 800; letter-spacing: -.015em; line-height: 1.05; text-transform: none;
}

/* buttons */
.learn-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.learn-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font: 600 15px/1 var(--l-sans); color: var(--l-ink);
  box-shadow: inset 0 0 0 1.5px currentColor; background: transparent; transition: background .2s, color .2s;
}
.learn-btn:hover { background: var(--l-ink); color: #fff; }
.learn-btn--primary { background: var(--l-ink); color: #fff; box-shadow: none; }
.learn-btn--primary:hover { background: var(--l-ube); }

/* ---------- hero ---------- */
.learn-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px);
  align-items: end; padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 80px);
}
.learn-hero h1 { font-size: clamp(48px, 7.2vw, 112px); max-width: 8ch; text-wrap: balance; }
.learn-hero__lead { max-width: 46ch; margin: 24px 0 0; color: var(--l-stone); font-size: 18px; line-height: 1.6; }
.learn-hero__media { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: 1fr auto; gap: 12px; min-height: clamp(380px, 44vw, 580px); }
.learn-hero__image { overflow: hidden; border-radius: 18px; background: var(--l-paper); }
.learn-hero__image img { height: 100%; object-fit: cover; transition: transform .8s ease; }
.learn-hero__image:hover img { transform: scale(1.04); }
.learn-hero__image--large { grid-row: span 2; }
.learn-hero__note { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 20px; border-radius: 18px; background: var(--l-ink); color: var(--l-bone); }
.learn-hero__note strong { font-family: var(--l-wide); font-stretch: 118%; font-weight: 800; font-size: 20px; line-height: 1.1; color: #fff; }
.learn-hero__note span { font-size: 14px; line-height: 1.5; opacity: .85; }

/* ---------- sections ---------- */
.learn-section { padding-top: clamp(72px, 9vw, 120px); }
.learn-section--first { padding-top: 0; }
.learn-section__header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 40px; margin-bottom: 32px; }
.learn-section h2 { font-size: clamp(32px, 4.4vw, 64px); }
.learn-section__header > p { margin: 0; max-width: 44ch; color: var(--l-stone); }

/* start here: three shades of ube */
.learn-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.path-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 240px;
  padding: 24px; border-radius: 18px; color: #fff; background: var(--c, var(--l-ube)); overflow: hidden;
}
.path-card:nth-child(1) { --c: var(--l-ube); }
.path-card:nth-child(2) { --c: var(--l-ube-deep); }
.path-card:nth-child(3) { --c: var(--l-ink); }
.path-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.08); transition: transform .6s; }
.path-card:hover::after { transform: scale(1.3); }
.path-card span { opacity: .85; }
.path-card h3 { font-size: clamp(22px, 2vw, 30px); }
.path-card p { margin: 0; max-width: 34ch; font-size: 15px; line-height: 1.5; opacity: .9; }

/* article cards */
.learn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.learn-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--l-paper); }
.learn-card__image { overflow: hidden; aspect-ratio: 4 / 3; background: var(--l-hair); }
.learn-card__image img { height: 100%; object-fit: cover; transition: transform .8s ease; }
.learn-card:hover .learn-card__image img { transform: scale(1.04); }
.learn-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 20px 22px; }
.learn-card h3 { font-size: clamp(20px, 1.7vw, 26px); }
.learn-card p { margin: 0; color: var(--l-stone); font-size: 15px; line-height: 1.55; }
.learn-card__link { margin-top: auto; padding-top: 4px; font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.learn-card:hover .learn-card__link { color: var(--l-ube); }

/* quick answers: paper band, like "Goed om te weten" on the homepage */
.learn-quick { margin-top: clamp(72px, 9vw, 120px); padding: clamp(64px, 8vw, 112px) 0; background: var(--l-paper); }
.learn-quick__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.learn-quick h2 { font-size: clamp(34px, 4.6vw, 68px); }
.learn-quick__intro > p:last-child { margin: 20px 0 0; max-width: 34ch; color: var(--l-stone); }
.learn-qa { margin: 0; border-top: 1px solid var(--l-hair); }
.learn-qa > div { padding: 22px 0; border-bottom: 1px solid var(--l-hair); }
.learn-qa dt { font-size: 18px; font-weight: 600; line-height: 1.35; }
.learn-qa dd { margin: 8px 0 0; max-width: 60ch; color: var(--l-stone); font-size: 16px; line-height: 1.6; }
.learn-qa a { color: var(--l-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* more tiles */
.learn-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.learn-tile { display: flex; flex-direction: column; gap: 10px; min-height: 180px; padding: 24px; border-radius: 18px; background: var(--l-paper); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s; }
.learn-tile:hover { box-shadow: inset 0 0 0 2px var(--l-ink); }
.learn-tile h3 { margin-top: auto; font-size: clamp(20px, 1.7vw, 26px); }
.learn-tile p { margin: 0; color: var(--l-stone); font-size: 15px; line-height: 1.5; }

/* closing panel: dark block with photo */
.learn-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  width: calc(100% - 2 * var(--l-gut)); max-width: calc(1320px - 2 * var(--l-gut)); margin: clamp(72px, 9vw, 120px) auto 0;
  padding: clamp(24px, 4vw, 48px); background: var(--l-ink); color: #fff; border-radius: 24px;
}
.learn-panel .learn-eyebrow { color: rgba(255,255,255,.6); }
.learn-panel h2 { font-size: clamp(32px, 4vw, 56px); }
.learn-panel__copy > p:not(.learn-eyebrow) { margin: 18px 0 0; max-width: 46ch; color: rgba(255,255,255,.75); line-height: 1.6; }
.learn-panel .learn-btn { color: #fff; }
.learn-panel .learn-btn:hover { background: #fff; color: var(--l-ink); }
.learn-panel .learn-btn--primary { background: #fff; color: var(--l-ink); }
.learn-panel .learn-btn--primary:hover { background: var(--l-bone); }
.learn-panel__image { overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3; }
.learn-panel__image img { height: 100%; object-fit: cover; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .learn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .learn-hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .learn-hero__media { min-height: 0; grid-template-rows: 260px auto; }
  .learn-hero__image--large { grid-row: auto; }
  .learn-hero__note { grid-column: span 2; }
  .learn-path, .learn-tiles, .learn-quick__inner, .learn-panel { grid-template-columns: minmax(0, 1fr); }
  .path-card { min-height: 180px; }
  .learn-tile { min-height: 0; }
}
@media (max-width: 600px) {
  .learn-grid { grid-template-columns: minmax(0, 1fr); }
  .learn-hero__media { grid-template-columns: 1fr; grid-template-rows: 240px auto; }
  .learn-hero__image:not(.learn-hero__image--large) { display: none; }
  .learn-hero__note { grid-column: auto; }
  .learn-btn { flex: 1 1 auto; }
}
