/* Nirita Schaufenster. Colours from the logo and the old Jimdo palette; fonts self-hosted (no Google requests). */

@font-face {
  font-family: "Catamaran";
  src: url("fonts/catamaran-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "News Cycle";
  src: url("fonts/news-cycle-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --yellow: #f7e881;
  --red: #c4262e;
  --blue: #62b3d0;
  --rose: #fc8e8d;
  --ink: #2c2525;
  --muted: #6f6464;
  --paper: #fffdf6;
  --card: #ffffff;
  --line: #ece4cf;
  --whatsapp: #1fa855;
  --whatsapp-dark: #178a45;
  --radius: 14px;

  /* Theme hooks (assets/themes/<name>.css overrides them; the defaults are the standard look). */
  --header-bg: var(--yellow);
  --header-ink: var(--ink);
  --header-muted: #4d4436;
  --title: var(--red);
  --hem-stitch: rgb(196 38 46 / 0.45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 "Catamaran", system-ui, sans-serif;
}
img { display: block; max-width: 100%; }
a { color: var(--red); }
h1, h2 { font-family: "News Cycle", "Catamaran", sans-serif; font-weight: 700; line-height: 1.15; }
[hidden] { display: none !important; }

.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 16px; }

/* Header ------------------------------------------------------------------------------------------------------- */

/* Yellow with bunting on top and a scalloped, stitched hem at the bottom – handmade, for children. */
.hero {
  position: relative; z-index: 1;
  background: var(--header-bg); color: var(--header-ink);
  padding: 46px 0 34px;
  margin-bottom: 14px;
}
.bunting {
  position: absolute; top: 0; left: 0; right: 0; height: 46px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='46' viewBox='0 0 160 46'%3E%3Cpath d='M0 4 Q80 18 160 4' fill='none' stroke='%238a7a5a' stroke-width='1.2'/%3E%3Cpath d='M6 5.0 L34 8.7 L20 37.1Z' fill='%23c4262e'/%3E%3Cpath d='M11 9.0 L29 12.7' stroke='%23fff' stroke-opacity='.55' stroke-width='1' stroke-dasharray='2 2'/%3E%3Cpath d='M46 9.7 L74 11.0 L60 40.6Z' fill='%23fc8e8d'/%3E%3Cpath d='M51 13.7 L69 15.0' stroke='%23fff' stroke-opacity='.55' stroke-width='1' stroke-dasharray='2 2'/%3E%3Cpath d='M86 11.0 L114 9.7 L100 40.6Z' fill='%2362b3d0'/%3E%3Cpath d='M91 15.0 L109 13.7' stroke='%23fff' stroke-opacity='.55' stroke-width='1' stroke-dasharray='2 2'/%3E%3Cpath d='M126 8.7 L154 5.0 L140 37.1Z' fill='%238cc96b'/%3E%3Cpath d='M131 12.7 L149 9.0' stroke='%23fff' stroke-opacity='.55' stroke-width='1' stroke-dasharray='2 2'/%3E%3C/svg%3E") repeat-x 0 0 / 160px 46px;
}
.hero::before, .bar::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px;
  border-top: 2px dashed var(--hem-stitch);
}
.hero::after, .bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px;
  background: radial-gradient(circle at 12px 0, var(--header-bg) 11.5px, transparent 12px) repeat-x 0 0 / 24px 12px;
}
.hero-inner { position: relative; display: grid; gap: 22px; align-items: center; }
@media (min-width: 860px) { .hero-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; } }
.hero .brand {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px;
  margin: 0 0 10px;
  color: var(--title);
  font-size: clamp(2.3rem, 7vw, 4.2rem);
  letter-spacing: -0.01em;
}
/* The logo's lettering sits at about the cap height of the headline. */
.hero .brand img { height: 1.45em; width: auto; }
.hero .tagline { margin: 0; font-size: clamp(1.15rem, 2.6vw, 1.45rem); font-weight: 650; }
.hero .intro { margin: 8px 0 0; max-width: 46em; color: var(--header-muted); }

/* The newest pieces as polaroids, each held by a strip of washi tape. */
.hero-photos { position: relative; z-index: 1; display: flex; justify-content: center; padding: 6px 4px 4px; }
.hero-photos:empty { display: none; }
.polaroid {
  position: relative; display: block; flex: none;
  width: clamp(96px, 28vw, 168px);
  padding: 7px 7px 26px; background: #fff;
  box-shadow: 0 6px 18px rgb(80 60 20 / 0.18);
  rotate: var(--tilt); transition: rotate 0.2s, translate 0.2s;
  color: var(--ink); text-decoration: none;
}
.polaroid + .polaroid { margin-left: -14px; }
@media (max-width: 520px) { .polaroid + .polaroid { margin-left: -6px; } }
.polaroid:hover, .polaroid:focus-visible { rotate: 0deg; translate: 0 -4px; z-index: 2; }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid .caption {
  position: absolute; left: 6px; right: 6px; bottom: 5px;
  font: 700 0.78rem/1.2 "News Cycle", sans-serif; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.polaroid .tape {
  position: absolute; top: -9px; left: 50%; width: 54px; height: 18px; translate: -50% 0; rotate: -3deg;
  background: rgb(252 142 141 / 0.6);
}
.polaroid:nth-child(2) .tape { background: rgb(98 179 208 / 0.55); rotate: 4deg; }
.polaroid:nth-child(3) .tape { background: rgb(140 201 107 / 0.6); }

.doodle {
  position: absolute; width: 26px; height: 26px;
  fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.45; pointer-events: none; z-index: 0;
}
.doodle .fill { fill: currentColor; stroke: none; }
.d-scissors { bottom: -18px; left: 30%; rotate: 20deg; }
.d-cloud    { bottom: -20px; left: 46%; width: 32px; height: 32px; stroke: var(--blue); opacity: 0.55; }

.hero-side { position: relative; }
.d-button { top: -6px; right: -12px; color: #b98a3e; stroke: #b98a3e; opacity: 0.6; }
.d-star   { bottom: -12px; right: -6px; rotate: 14deg; stroke: var(--blue); opacity: 0.65; }
.d-spool  { bottom: 6px; left: -34px; rotate: -10deg; stroke: var(--red); }
.d-needle { top: 18%; left: -38px; rotate: 6deg; stroke: #8a7a5a; opacity: 0.55; }
.d-romper { bottom: -16px; left: 36%; rotate: -6deg; color: var(--rose); stroke: var(--rose); opacity: 0.7; }
/* Doodles that belong to the title and text: anchored to the words, so they never cover them at any width. */
.hero .brand { position: relative; }
.hero .brand::before {
  content: ""; position: absolute; top: -12px; left: -12px; width: 22px; height: 22px; rotate: -14deg;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%236fae4f%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%222.2%22/%3E%3Cpath d=%22M12 9.8c-1.8-3-1.2-5.6 0-5.8s1.8 2.8 0 5.8M14.1 11.3c2.7-2.2 5.2-1.9 5.6-.8s-2.4 2.7-5.6 2.5M13.3 14.1c1.6 3.1.6 5.4-.6 5.4s-1.6-2.7.2-5.1M10.7 14.1c-1.6 3.1-.6 5.4.6 5.4M9.9 11.3C7.2 9.1 4.7 9.4 4.3 10.5s2.4 2.7 5.6 2.5%22/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0.8;
}
#shop-title { position: relative; }
#shop-title::after {
  content: ""; position: absolute; top: -10px; right: -18px; width: 0.36em; height: 0.36em; rotate: 12deg;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%2362b3d0%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3l2.6 5.6 6 .7-4.5 4.1 1.2 6L12 16.4 6.7 19.4l1.2-6L3.4 9.3l6-.7z%22/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0.85;
}
.hero .tagline::after, .hero .intro::after {
  content: ""; display: inline-block; vertical-align: -0.15em; margin-left: 0.35em;
  width: 1.05em; height: 1.05em; background: center / contain no-repeat;
}
.hero .tagline::after { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23f07473%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 20s-7-4.4-7-9.6A3.9 3.9 0 0 1 12 8a3.9 3.9 0 0 1 7 2.4C19 15.6 12 20 12 20z%22/%3E%3C/svg%3E"); rotate: -10deg; }
.hero .intro::after { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23c4262e%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 4h12M6 20h12M8 4v16M16 4v16M8 8l8 2.5M8 12.5l8 2.5M8 17l8-1.5%22/%3E%3C/svg%3E"); rotate: 8deg; opacity: 0.6; }
/* Phones: only the ones around the photos, where they never cover text. */
@media (max-width: 859px) {
  .hero-inner > .doodle { display: none; }
  .d-spool { left: -6px; }
  .d-needle { top: auto; bottom: -18px; left: 12%; }
  .d-button { right: -2px; }
}

.bar { position: relative; z-index: 1; background: var(--header-bg); margin-bottom: 14px; padding-bottom: 8px; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.bar .back { font-weight: 650; text-decoration: none; color: var(--header-ink); padding: 8px 0; }
.bar .back:hover { color: var(--red); }
.logo.small img { height: 40px; width: auto; }

/* Category filter ---------------------------------------------------------------------------------------------- */

.filters {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.filters .wrap {
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  padding-top: 12px; padding-bottom: 12px;
}
.filters .wrap::-webkit-scrollbar { display: none; }
.filters button {
  flex: none;
  font: inherit; font-size: 0.95rem; font-weight: 600;
  color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 6px 14px; cursor: pointer;
}
.filters button:hover { border-color: var(--blue); }
.filters button[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.filters .count { margin-left: 6px; font-weight: 400; opacity: 0.7; }

/* Stories ------------------------------------------------------------------------------------------------------ */

.stories { border-bottom: 1px solid var(--line); }
.stories .wrap { padding-top: 14px; padding-bottom: 12px; }
.stories h2 {
  margin: 0 0 8px; font: 700 0.8rem/1 "Catamaran", sans-serif;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
}
#story-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; }
#story-list::-webkit-scrollbar { display: none; }
.bubble {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: var(--ink);
}
.bubble .ring {
  width: 70px; height: 70px; border-radius: 50%; padding: 3px;
  background: conic-gradient(var(--red), var(--rose), var(--yellow), var(--red));
}
.bubble.seen .ring { background: var(--line); }
.bubble img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--paper);
}
.bubble .label { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }

.viewer {
  position: fixed; inset: 0; z-index: 50;
  background: rgb(20 16 12 / 0.92);
  display: flex; align-items: center; justify-content: center;
}
body.viewing { overflow: hidden; }
.viewer-frame {
  position: relative; width: min(480px, 100vw); height: min(860px, 100dvh);
  background: #000; overflow: hidden; user-select: none; touch-action: manipulation;
}
@media (min-width: 520px) { .viewer-frame { border-radius: 16px; } }
.viewer-frame:focus { outline: none; }
.story-image { width: 100%; height: 100%; object-fit: contain; }
.story-progress { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.story-progress span { flex: 1; height: 3px; border-radius: 2px; background: rgb(255 255 255 / 0.35); overflow: hidden; }
.story-progress i { display: block; height: 100%; width: 0; background: #fff; }
.story-date {
  position: absolute; top: 20px; left: 14px; z-index: 3; margin: 0;
  color: #fff; font-size: 0.85rem; text-shadow: 0 1px 3px rgb(0 0 0 / 0.6);
}
.story-close {
  position: absolute; top: 18px; right: 8px; z-index: 4;
  width: 40px; height: 40px; border: 0; background: none; color: #fff;
  font-size: 32px; line-height: 1; cursor: pointer; text-shadow: 0 1px 3px rgb(0 0 0 / 0.6);
}
.story-text {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; margin: 0;
  padding: 48px 20px 28px; white-space: pre-line; pointer-events: none;
  color: #fff; font-size: 1.1rem; line-height: 1.45; text-align: center;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.75));
}
.story-tap { position: absolute; top: 60px; bottom: 0; z-index: 2; border: 0; background: none; cursor: pointer; }
.story-tap.prev { left: 0; width: 35%; }
.story-tap.next { right: 0; width: 65%; }

/* Item grid ---------------------------------------------------------------------------------------------------- */

/* main.wrap: `.wrap` alone would reset the vertical padding. */
main.wrap { flex: 1; padding-top: 28px; padding-bottom: 48px; }
.status { color: var(--muted); text-align: center; padding: 40px 0; }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
}
.card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(60 40 20 / 0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 8px 24px rgb(60 40 20 / 0.10); transform: translateY(-2px); }
.card-link { color: inherit; text-decoration: none; flex: 1; }
.card .slides { border-radius: 0; }
.card .arrow { width: 32px; height: 32px; font-size: 24px; }
.card .category { margin: 14px 16px 0; }
.card h2 { margin: 2px 16px 0; font-size: 1.25rem; }
.card .material { margin: 4px 16px 0; color: var(--muted); font-size: 0.92rem; }
.card-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 16px 14px;
}
.price { font-weight: 700; color: var(--ink); }
.price.large { margin: -6px 0 16px; font-size: 1.4rem; color: var(--red); }

.category {
  color: var(--blue); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* WhatsApp button ---------------------------------------------------------------------------------------------- */

.whatsapp {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  color: var(--whatsapp-dark); background: transparent;
  border: 1.5px solid currentColor; border-radius: 999px;
  font-size: 0.92rem; font-weight: 650; text-decoration: none;
  padding: 5px 13px 5px 10px;
  transition: background 0.15s, color 0.15s;
}
.whatsapp svg { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }
.whatsapp:hover { background: var(--whatsapp-dark); border-color: var(--whatsapp-dark); color: #fff; }
.info .whatsapp { margin-top: 8px; font-size: 1rem; padding: 8px 18px 8px 14px; }

/* Detail page -------------------------------------------------------------------------------------------------- */

.detail {
  display: grid; gap: 32px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
}
.carousel { position: relative; }
.slides {
  display: flex;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--radius); background: #f3eedf;
}
.slides::-webkit-scrollbar { display: none; }
.slides:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.slides img {
  flex: 0 0 100%; width: 100%; aspect-ratio: 1; object-fit: cover;
  scroll-snap-align: start; scroll-snap-stop: always;
  user-select: none;
}
.arrow {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / 0.85); color: var(--ink);
  font: 600 28px/1 "Catamaran", sans-serif; padding-bottom: 4px;
  cursor: pointer; box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
  opacity: 0; transition: opacity 0.2s;
}
.arrow.prev { left: 10px; }
.arrow.next { right: 10px; }
.carousel:hover .arrow:not(:disabled), .arrow:focus-visible { opacity: 1; }
.arrow:disabled { cursor: default; }
.dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 6px; pointer-events: none;
}
.dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgb(255 255 255 / 0.6); box-shadow: 0 0 2px rgb(0 0 0 / 0.35);
}
.dots span.on { background: #fff; }
/* Touch screens swipe; arrows only where there is a mouse. */
@media (hover: none) { .arrow { display: none; } }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumbs button {
  padding: 0; border: 2px solid transparent; border-radius: 10px;
  background: none; cursor: pointer; overflow: hidden;
}
.thumbs button[aria-current="true"] { border-color: var(--red); }
.thumbs img { width: 68px; height: 68px; object-fit: cover; }
.info h1 { margin: 4px 0 16px; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.info .category { margin: 0; }
.description p { margin: 0 0 1em; }
.facts { margin: 0 0 16px; }
.facts div { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--muted); }
.sizes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sizes li {
  padding: 2px 10px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card);
  color: var(--ink); font-size: 0.9rem; font-variant-numeric: tabular-nums;
}
.made-to-order-tag {
  display: inline-block; margin: 0; padding: 2px 10px; border-radius: 999px;
  background: var(--yellow); color: var(--red); font-size: 0.85rem; font-weight: 700;
}
.card .made-to-order-tag { margin: 8px 16px 0; }
.made-to-order { margin: -4px 0 16px; }
.sizes-hint { margin: 0 0 8px; color: var(--muted); font-size: 0.9rem; }
.sizes button {
  font: inherit; font-size: 0.9rem; font-variant-numeric: tabular-nums; cursor: pointer;
  padding: 2px 10px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink);
}
.sizes li:has(button) { padding: 0; border: 0; background: none; }
.sizes button:hover { border-color: var(--blue); }
.sizes button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.card .card-sizes { margin: 4px 16px 0; color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .detail { grid-template-columns: 1fr; gap: 20px; }
  main.wrap { padding-top: 20px; padding-bottom: 32px; }
}

.price-note { margin: 0 0 18px; color: var(--muted); font-size: 0.85rem; }
.info .price-note { margin-top: -10px; }
.maker { margin: 22px 0 0; color: var(--muted); font-size: 0.8rem; }

/* Legal pages */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); margin: 0 0 12px; }
.legal h2 { font-size: 1.2rem; margin: 28px 0 6px; }
.legal p { margin: 0 0 12px; }
.legal .stand { color: var(--muted); font-size: 0.9rem; margin-top: 28px; }
.footer a { color: inherit; }

/* Courses ------------------------------------------------------------------------------------------------------ */

.course-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 9px 18px 9px 14px; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 3px 0 rgb(120 20 25 / 0.35);
  transition: translate 0.15s, box-shadow 0.15s;
}
.course-link:hover { translate: 0 -2px; box-shadow: 0 5px 0 rgb(120 20 25 / 0.35); }
.course-link svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.courses-page h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0; color: var(--red); }
.courses-page .lead { margin: 4px 0 20px; color: var(--muted); }

.subscribe {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  margin-bottom: 28px; padding: 16px 20px;
  background: var(--card); border: 1.5px dashed var(--rose); border-radius: var(--radius);
}
.subscribe h2 { margin: 0 0 2px; font-size: 1.15rem; }
.subscribe p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.subscribe-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.subscribe .subscribe-hint { flex-basis: 100%; color: var(--whatsapp-dark); }
.button {
  display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px;
  background: var(--blue); color: #fff; border: 1.5px solid var(--blue);
  font: inherit; font-weight: 700; font-size: 0.95rem; text-decoration: none; cursor: pointer;
}
.button.secondary { background: transparent; color: #2b7d99; }

.course-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.course {
  display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  scroll-margin-top: 16px;
}
.course-image { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.course-image.placeholder { background: var(--yellow); }
.course-body { padding: 18px 22px; }
.course-when { margin: 0; color: var(--red); font-weight: 700; }
.course h2 { margin: 4px 0 2px; font-size: 1.5rem; }
.course-where { margin: 0 0 12px; color: var(--muted); font-size: 0.9rem; }
.course-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.course-footer .price { font-size: 1.15rem; }
@media (max-width: 640px) {
  .course { grid-template-columns: 1fr; }
  .course-image { aspect-ratio: 1; min-height: 0; }
}

/* Footer ------------------------------------------------------------------------------------------------------- */

.footer {
  background: var(--header-bg); color: var(--header-muted);
  font-size: 0.9rem; text-align: center;
  padding: 22px 0;
}
/* A row of small doodles above the links, the same on every page. */
.footer::before {
  content: ""; display: block; height: 24px; margin: 0 auto 14px; max-width: calc(100% - 32px);
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22296%22 height=%2224%22 viewBox=%220 0 296 24%22%3E%3Cg transform=%22translate%280 0%29 rotate%28-8 12 12%29%22 fill=%22none%22 stroke=%22%23f07473%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 20s-7-4.4-7-9.6A3.9 3.9 0 0 1 12 8a3.9 3.9 0 0 1 7 2.4C19 15.6 12 20 12 20z%22/%3E%3C/g%3E%3Cg transform=%22translate%2834 0%29 rotate%286 12 12%29%22 fill=%22none%22 stroke=%22%23c4262e%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%226%22 cy=%226%22 r=%223%22/%3E%3Ccircle cx=%226%22 cy=%2218%22 r=%223%22/%3E%3Cpath d=%22M8.6 7.6L20 17M8.6 16.4L20 7%22/%3E%3C/g%3E%3Cg transform=%22translate%2868 0%29 rotate%28-4 12 12%29%22 fill=%22none%22 stroke=%22%2362b3d0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 4h12M6 20h12M8 4v16M16 4v16M8 8l8 2.5M8 12.5l8 2.5M8 17l8-1.5%22/%3E%3C/g%3E%3Cg transform=%22translate%28102 0%29 rotate%288 12 12%29%22 fill=%22none%22 stroke=%22%236fae4f%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 3c.5 1.6 1.6 2.4 3 2.4S14.5 4.6 15 3l4 2.5-1.6 3.2L16 8v9.5l-2 2.5h-.8L12 17.5 10.8 20H10l-2-2.5V8l-1.4.7L5 5.5z%22/%3E%3Ccircle fill=%22%236fae4f%22 stroke=%22none%22 cx=%2212%22 cy=%2210%22 r=%22.8%22/%3E%3Ccircle fill=%22%236fae4f%22 stroke=%22none%22 cx=%2212%22 cy=%2213%22 r=%22.8%22/%3E%3C/g%3E%3Cg transform=%22translate%28136 0%29 rotate%28-6 12 12%29%22 fill=%22none%22 stroke=%22%23b98a3e%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22/%3E%3Ccircle fill=%22%23b98a3e%22 stroke=%22none%22 cx=%229.5%22 cy=%229.5%22 r=%221.2%22/%3E%3Ccircle fill=%22%23b98a3e%22 stroke=%22none%22 cx=%2214.5%22 cy=%229.5%22 r=%221.2%22/%3E%3Ccircle fill=%22%23b98a3e%22 stroke=%22none%22 cx=%229.5%22 cy=%2214.5%22 r=%221.2%22/%3E%3Ccircle fill=%22%23b98a3e%22 stroke=%22none%22 cx=%2214.5%22 cy=%2214.5%22 r=%221.2%22/%3E%3C/g%3E%3Cg transform=%22translate%28170 0%29 rotate%284 12 12%29%22 fill=%22none%22 stroke=%22%23c4262e%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 19L17.5 6.5%22/%3E%3Cellipse cx=%2218.6%22 cy=%225.4%22 rx=%221.6%22 ry=%22.8%22 transform=%22rotate%28-45 18.6 5.4%29%22/%3E%3Cpath d=%22M19.5 5c2.5 1 1.5 4-1 5s-6 2.5-4 6 4 3 5 2%22/%3E%3C/g%3E%3Cg transform=%22translate%28204 0%29 rotate%28-8 12 12%29%22 fill=%22none%22 stroke=%22%23f07473%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%222.2%22/%3E%3Cpath d=%22M12 9.8c-1.8-3-1.2-5.6 0-5.8s1.8 2.8 0 5.8M14.1 11.3c2.7-2.2 5.2-1.9 5.6-.8s-2.4 2.7-5.6 2.5M13.3 14.1c1.6 3.1.6 5.4-.6 5.4s-1.6-2.7.2-5.1M10.7 14.1c-1.6 3.1-.6 5.4.6 5.4M9.9 11.3C7.2 9.1 4.7 9.4 4.3 10.5s2.4 2.7 5.6 2.5%22/%3E%3C/g%3E%3Cg transform=%22translate%28238 0%29 rotate%286 12 12%29%22 fill=%22none%22 stroke=%22%2362b3d0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3l2.6 5.6 6 .7-4.5 4.1 1.2 6L12 16.4 6.7 19.4l1.2-6L3.4 9.3l6-.7z%22/%3E%3C/g%3E%3Cg transform=%22translate%28272 0%29 rotate%28-4 12 12%29%22 fill=%22none%22 stroke=%22%236fae4f%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M7 18h10.5a3.8 3.8 0 0 0 .3-7.6A5.3 5.3 0 0 0 7.6 9.3 4.3 4.3 0 0 0 7 18z%22/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.85;
}
