/* De site van Stitchograph. De kleuren van de app (app/src/main/kotlin/.../ui/Thema.kt): linnen
   (#FAF7F1), inkt (#1B2230), marineblauw (#213A57), rood (#B8323F) en groen (#3E7A5C), en de
   drie roden van het icoon. Koppen in een boekletter, de rest in de letter van het systeem.
   Onder de kop een rij kruissteken. Donker thema: de nachtkleur van de app (#16171B); de
   voorbeeldbeelden blijven zoals ze zijn. Geen scripts, geen inline stijl, niets van buiten
   (de CSP in site/.htaccess dwingt dat af). */

:root {
  --bg: #faf7f1;
  --paneel: #fdfbf7;
  --paneel-2: #f4efe5;
  --lijn: #e7e0d2;
  --lijn-sterk: #cfc5b3;
  --tekst: #2a303b;
  --licht: #1b2230;
  --zacht: #575c66;
  --accent: #b8323f;
  --accent-tekst: #a32b37;
  --rood-licht: #e8737e;
  --rood: #c93a47;
  --rood-donker: #9e2433;
  --groen: #3e7a5c;
  --groen-tekst: #346a4f;
  --inkt: #213a57;
  --op-inkt: #faf7f1;
  --stof: #f4efe4;
  --gat: #d9cfbd;
  --schaduw: 0 22px 48px rgba(27, 34, 48, 0.14);
  --schaduw-klein: 0 10px 24px rgba(27, 34, 48, 0.12);
  --focus: #213a57;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --boek: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", serif;
  --breed: 70rem;
  --leesbreed: 44rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16171b;
    --paneel: #1f2127;
    --paneel-2: #25282f;
    --lijn: #33363f;
    --lijn-sterk: #4a4e5a;
    --tekst: #e4e0d8;
    --licht: #faf7f1;
    --zacht: #b3afa7;
    --accent: #f08c95;
    --accent-tekst: #f4a0a8;
    --groen: #93c9ac;
    --groen-tekst: #93c9ac;
    --inkt: #dce5f0;
    --op-inkt: #0f2034;
    --schaduw: 0 24px 60px rgba(0, 0, 0, 0.5);
    --schaduw-klein: 0 10px 24px rgba(0, 0, 0, 0.45);
    --focus: #f4a0a8;
    color-scheme: dark;
  }
}

[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--tekst);
  font: 1.125rem/1.65 var(--sans);
  overflow-wrap: break-word;
}

svg { max-width: 100%; }
img { max-width: 100%; height: auto; }

a { color: var(--accent-tekst); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .knop:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--boek); font-weight: 700; color: var(--licht); line-height: 1.15; text-wrap: balance; margin: 0 0 0.6em; }
/* Houdt een woordgroep op een regel, voor talen zonder spaties tussen woorden (Thai), waar de browser anders midden in een woordgroep afbreekt. */
.samen { white-space: nowrap; }
/* Koreaans breekt een regel bij de spatie, niet midden in een woord. Japanse koppen breken tussen woordgroepen in plaats van voor een partikel (waar de browser dat kan). */
html:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }
html:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }
h1 { font-size: clamp(2.3rem, 5.8vw, 3.7rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.35rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
strong { font-weight: 650; color: var(--licht); }

.wrap { max-width: var(--breed); margin-inline: auto; padding-inline: 1.25rem; }

.overslaan { position: absolute; inset-inline-start: -999rem; }
.overslaan:focus { inset-inline-start: 1rem; top: 1rem; z-index: 9; background: var(--inkt); color: var(--op-inkt); padding: 0.5rem 0.8rem; border-radius: 6px; }

/* Kop, met een rij kruissteken eronder: elk vak van 10 bij 10 een kruisje van twee
   diagonalen, zoals steken op Aida die een gaatje delen. */
.kop { position: relative; border-bottom: 1px solid var(--lijn); }
.kop::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 4px;
  height: 10px;
  background:
    linear-gradient(to top right, transparent calc(50% - 1.1px), var(--accent) calc(50% - 1.1px), var(--accent) calc(50% + 1.1px), transparent calc(50% + 1.1px)),
    linear-gradient(to bottom right, transparent calc(50% - 1.1px), var(--accent) calc(50% - 1.1px), var(--accent) calc(50% + 1.1px), transparent calc(50% + 1.1px));
  background-size: 10px 10px;
  opacity: 0.55;
}
.kop-rij { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem 1.4rem; flex-wrap: wrap; padding-block: 0.85rem 1.5rem; }
.merk { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--licht); text-decoration: none; font-family: var(--boek); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.005em; }
.logo { width: 2.3rem; height: 2.3rem; flex: none; }
.menu { display: flex; align-items: center; gap: 0.4rem 1.2rem; flex-wrap: wrap; font-size: 1rem; }
.menu > a { color: var(--tekst); text-decoration: none; padding-block: 0.45rem; }
.menu > a:hover, .menu > a[aria-current="page"] { color: var(--accent-tekst); text-decoration: underline; text-decoration-thickness: 2px; }

/* Taalkeuze: dertig talen in een uitklapper, zonder script */
.taalkeuze { position: relative; }
.taalkeuze summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid var(--lijn-sterk); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.9rem; font-weight: 650; color: var(--tekst); }
.taalkeuze summary::-webkit-details-marker { display: none; }
.taalkeuze summary::after { content: "\25BE"; color: var(--zacht); }
.talen { position: absolute; inset-inline-end: 0; top: calc(100% + 0.4rem); z-index: 5; display: grid; grid-template-columns: repeat(2, minmax(9.5rem, 1fr)); gap: 0.1rem; margin: 0; padding: 0.5rem; list-style: none; background: var(--paneel); border: 1px solid var(--lijn); border-radius: 14px; box-shadow: var(--schaduw); max-height: 70vh; overflow: auto; }
.talen a { display: block; padding: 0.35rem 0.6rem; border-radius: 8px; color: var(--tekst); text-decoration: none; font-size: 0.95rem; }
.talen a:hover { background: var(--paneel-2); }
.talen a[aria-current="true"] { background: var(--inkt); color: var(--op-inkt); }

/* Opening */
.held { padding-block: clamp(2.2rem, 6vw, 4.6rem) clamp(2.5rem, 6vw, 4.4rem); }
.held-rij { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.boventitel, .label { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--accent-tekst); margin-bottom: 0.9rem; }
/* Een label met een kruissteekje ervoor */
.label::before, .boventitel::before {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  background:
    linear-gradient(to top right, transparent calc(50% - 1.2px), currentColor calc(50% - 1.2px), currentColor calc(50% + 1.2px), transparent calc(50% + 1.2px)),
    linear-gradient(to bottom right, transparent calc(50% - 1.2px), currentColor calc(50% - 1.2px), currentColor calc(50% + 1.2px), transparent calc(50% + 1.2px));
}
.lead { font-size: 1.25rem; max-width: 38rem; }
.gratis { max-width: 38rem; background: var(--paneel); border: 1px solid var(--lijn); border-inline-start: 5px solid var(--groen); border-radius: 12px; padding: 0.85rem 1.1rem; font-size: 1.02rem; }
.gratis strong { display: block; margin-bottom: 0.15rem; }
.status { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1rem; color: var(--zacht); background: var(--paneel); border: 1px solid var(--lijn); border-radius: 999px; padding: 0.45rem 1.05rem; margin: 0.4rem 0 0; }
.lampje { flex: none; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--groen); }
.knoppen { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.knop { display: inline-block; background: var(--inkt); color: var(--op-inkt); font-weight: 700; text-decoration: none; padding: 0.85rem 1.4rem; border-radius: 999px; }
.knop:hover { filter: brightness(1.12); }
.knop-rand { background: transparent; color: var(--tekst); border: 1px solid var(--lijn-sterk); font-weight: 600; }
.knop-rand:hover { border-color: var(--zacht); }

/* Foto en geborduurd naast de kop, met een pijl ertussen */
.held-beeld { margin: 0; }
.held-paar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; align-items: center; }
.held-foto, .held-steken { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: var(--schaduw); background: var(--stof); }
.held-foto { transform: rotate(-2deg); }
.held-steken { transform: rotate(1.5deg); }
.held-pijl { position: absolute; left: 50%; top: 50%; width: 3rem; height: 3rem; margin: -1.5rem 0 0 -1.5rem; z-index: 1; filter: drop-shadow(0 4px 10px rgba(27, 34, 48, 0.25)); }
.held-pijl circle { fill: var(--paneel); stroke: var(--lijn); stroke-width: 1.5; }
.held-pijl path { fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.held-beeld figcaption { margin-top: 1.1rem; font-size: 0.92rem; color: var(--zacht); text-align: center; }

/* Blokken */
.blok { padding-block: clamp(2.6rem, 6vw, 4.6rem); border-top: 1px solid var(--lijn); }
.blok-kop { max-width: var(--leesbreed); margin-bottom: 2rem; }
.blok-kop p { color: var(--zacht); }
.blok-kop p.label { color: var(--accent-tekst); }

/* Het voorbeeld: vier stappen van foto tot geborduurd */
.reeks { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; counter-reset: reeks; }
.reeks-stap { counter-increment: reeks; }
.reeks-stap figure { margin: 0; background: var(--paneel); border: 1px solid var(--lijn); border-radius: 16px; padding: 0.7rem 0.7rem 0.95rem; height: 100%; }
.reeks-beeld { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--stof); }
.reeks-stap figcaption { margin-top: 0.75rem; font-size: 0.98rem; color: var(--zacht); }
.reeks-stap figcaption::before { content: counter(reeks); display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-inline-end: 0.45rem; border-radius: 50%; background: var(--inkt); color: var(--op-inkt); font-weight: 700; font-size: 0.85rem; vertical-align: 0.1em; }
.bron { font-size: 0.9rem; color: var(--zacht); max-width: 52rem; margin: 0; }

/* Stappen */
.stappen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: stap; }
.stap { counter-increment: stap; position: relative; padding-top: 3.1rem; }
.stap::before { content: counter(stap); position: absolute; top: 0; inset-inline-start: 0; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent-tekst); font-family: var(--boek); font-weight: 700; font-size: 1.2rem; }
.stap h3 { margin-bottom: 0.4rem; }
.stap p { color: var(--zacht); margin: 0; }

.functies { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.functie { background: var(--paneel); border: 1px solid var(--lijn); border-top: 4px solid var(--rood-licht); border-radius: 14px; padding: 1.15rem 1.2rem 1.1rem; }
.functie:nth-child(4n+2) { border-top-color: var(--rood); }
.functie:nth-child(4n+3) { border-top-color: var(--rood-donker); }
.functie:nth-child(4n+4) { border-top-color: var(--inkt); }
.functie h3 { margin-bottom: 0.45rem; font-size: 1.18rem; }
.functie p { color: var(--zacht); margin: 0; font-size: 1.02rem; }

/* Wat het anders maakt */
.anders { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem 1.6rem; }
.anders li { border-inline-start: 3px solid var(--accent); padding-inline-start: 0.95rem; color: var(--zacht); }
.anders strong { display: block; font-family: var(--boek); font-size: 1.2rem; margin-bottom: 0.2rem; }

.twee { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(1.5rem, 4vw, 3.2rem); align-items: center; }

.lijst { padding-inline-start: 1.3rem; margin: 0 0 1em; }
.lijst li { margin-bottom: 0.55rem; }
.lijst li::marker { color: var(--accent-tekst); }

/* Gratis of volledig */
.prijzen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; margin-bottom: 1.2rem; }
.prijs { background: var(--paneel); border: 1px solid var(--lijn); border-top: 5px solid var(--groen); border-radius: 16px; padding: 1.3rem 1.4rem 1rem; }
.prijs-volledig { border-top-color: var(--accent); }
.prijs h3 { margin-bottom: 0.2rem; }
.prijs .ondertitel { color: var(--zacht); font-size: 1rem; }
.bedrag { font-family: var(--boek); font-weight: 700; font-size: 1.75rem; color: var(--licht); margin: 0.2rem 0 0.5rem; }
.bedrag .per { font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--zacht); }
.beloften { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.beloften li { border-inline-start: 3px solid var(--groen); padding-inline-start: 0.9rem; color: var(--zacht); font-size: 1rem; }
.beloften strong { display: block; }

/* Vragen */
.vragen { max-width: 50rem; }
.vraag { border-bottom: 1px solid var(--lijn); }
.vraag:first-child { border-top: 1px solid var(--lijn); }
.vraag summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 1.05rem 0.2rem; font-weight: 650; font-size: 1.12rem; color: var(--licht); }
.vraag summary::-webkit-details-marker { display: none; }
.vraag summary::after { content: "+"; flex: none; font-family: var(--boek); font-size: 1.5rem; line-height: 1; color: var(--accent-tekst); }
.vraag[open] summary::after { content: "\2212"; }
.vraag .antwoord { padding: 0 0.2rem 1.1rem; color: var(--zacht); }
.vraag .antwoord p:last-child { margin-bottom: 0; }

/* Tekstpagina's */
.tekst { max-width: var(--leesbreed); padding-block: clamp(2rem, 6vw, 4rem); }
.tekst h1 { font-size: clamp(2.1rem, 4.8vw, 2.8rem); }
.tekst h2 { font-size: 1.5rem; margin-top: 2.3rem; }
.tekst h3 { margin-top: 1.6rem; }
.tekst .lead { font-size: 1.2rem; }
.tekst ul, .tekst ol { padding-inline-start: 1.3rem; }
.tekst li { margin-bottom: 0.5rem; }
.tekst li::marker { color: var(--accent-tekst); }
.bijgewerkt { font-size: 0.92rem; color: var(--zacht); }

/* 404 */
.terug { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }

/* Voet */
.voet { position: relative; border-top: 1px solid var(--lijn); padding-block: 2rem 2.6rem; color: var(--zacht); font-size: 0.98rem; background: var(--paneel-2); }
.voet-rij { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.voet-tekst { max-width: 44rem; min-width: 0; }
.voet-merk { display: flex; align-items: center; gap: 0.5rem; font-family: var(--boek); font-weight: 700; color: var(--licht); font-size: 1.15rem; }
.voet-merk .logo { width: 1.7rem; height: 1.7rem; }
.voet-impressum { margin-block: 1rem; }
.voet-kop { margin: 0 0 0.3rem; font-weight: 700; color: var(--tekst); }
.voet .klein { font-size: 0.9rem; }
.voet-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; align-content: start; }
.voet-links a { color: var(--tekst); display: inline-block; padding-block: 0.15rem; }

@media (max-width: 60rem) {
  .functies, .stappen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reeks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 56rem) {
  .held-rij, .twee, .prijzen { grid-template-columns: minmax(0, 1fr); }
  .held-beeld { max-width: 32rem; }
  .beloften { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 38rem) {
  body { font-size: 1.0625rem; }
  .functies, .stappen, .anders { grid-template-columns: minmax(0, 1fr); }
  .reeks { gap: 0.7rem; }
  .reeks-stap figcaption { font-size: 0.92rem; }
  .menu { gap: 0.2rem 0.9rem; }
  .lead { font-size: 1.15rem; }
  .wrap { padding-inline: 1rem; }
  .talen { grid-template-columns: minmax(9rem, 1fr); }
  .held-paar { gap: 0.8rem; }
  .held-pijl { width: 2.4rem; height: 2.4rem; margin: -1.2rem 0 0 -1.2rem; }
}
@media (forced-colors: active) {
  .lampje { background: CanvasText; }
  .kop::after, .label::before, .boventitel::before { background: CanvasText; }
  .held-pijl circle { fill: Canvas; stroke: CanvasText; }
  .held-pijl path { stroke: CanvasText; }
}
@media (prefers-reduced-motion: no-preference) {
  .knop { transition: filter 0.15s ease; }
}
