/* mou3awana.app: keukentafel met theeglas. Crème tafellaken als grond, vellen zonder schaduw, olijfinkt, één rood. */
:root {
  --bg: #f3eede;
  --sheet: #fbf8ef;
  --ink: #1c2316;
  --ink-2: #4f5841;
  --olive: #6b7a3a;
  --olive-deep: #3f4a22;
  --red: #c8321f;
  --red-ink: #fff6f4;
  --mint: #2f7a4a;
  --line: #d6cfb4;
  --cloth: #f3eede;
  --font: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-mark: "Baloo Bhaijaan 2", "Readex Pro", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1f2518; --sheet: #2a3220; --ink: #efeadb; --ink-2: #bcc3a3; --olive: #9aa86a; --olive-deep: #c9d49a; --red: #c93a27; --red-ink: #fff6f4; --mint: #8fd69a; --line: #46502f; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1f2518; --sheet: #2a3220; --ink: #efeadb; --ink-2: #bcc3a3; --olive: #9aa86a; --olive-deep: #c9d49a; --red: #c93a27; --red-ink: #fff6f4; --mint: #8fd69a; --line: #46502f; color-scheme: dark;
}

* { box-sizing: border-box; }
html[dir="rtl"] { --dir: rtl; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; font-variant-numeric: tabular-nums; -webkit-text-size-adjust: 100%; }
::selection { background: var(--red); color: var(--red-ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--olive) var(--bg); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 .9rem; max-width: 62ch; }
h1, h2 { line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; margin: 0 0 .7rem; }
h1 { font-size: clamp(2.1rem, 6.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 700; }
[dir="rtl"] h1, [dir="rtl"] h2 { letter-spacing: 0; line-height: 1.3; }
[dir="rtl"] p { line-height: 1.8; }

.wrap { max-width: 72rem; margin: 0 auto; padding-inline: 16px; }
.sheet { background: var(--sheet); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.1rem; }
@media (min-width: 900px) { .sheet { padding: 2rem 2.2rem; } }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* kop */
.top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-block: 1rem; flex-wrap: wrap; }
@media (max-width: 359px) { .top { justify-content: center; } }
.mark { font-family: var(--font-mark); font-weight: 800; font-size: 1.75rem; letter-spacing: 0; white-space: nowrap; text-decoration: none; line-height: 1; }
.mark .ayn { display: inline-block; transform: scaleX(-1); color: var(--red); font-weight: 800; margin-inline: .02em; }
[dir="rtl"] .mark { direction: ltr; unicode-bidi: isolate; }
.m3 { white-space: nowrap; direction: ltr; unicode-bidi: isolate; font-family: var(--font-mark); font-weight: 800; }
.m3 .ayn { display: inline-block; transform: scaleX(-1); color: var(--red); font-weight: 800; }
.lang { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--sheet); }
.lang button { font: inherit; font-size: .875rem; font-weight: 500; color: var(--ink-2); background: transparent; border: 0; border-radius: 999px; padding: .35rem .6rem; cursor: pointer; min-height: 2.25rem; transition: background .18s var(--ease), color .18s var(--ease); }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
[dir="rtl"] .lang { direction: ltr; }

/* held */
.hero { display: grid; gap: 0; padding-block: .5rem 3rem; align-items: center; direction: ltr; }
.hero .text, .letters .text, .voice, .stations { direction: var(--dir, ltr); }
.hero .plate { background: var(--cloth); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); position: relative; z-index: 1; }
.hero .plate img { width: 100%; }
.hero .text { position: relative; margin-top: -1.25rem; padding-top: 2.4rem; }
.darija { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 500; color: var(--olive-deep); margin: 0 0 .9rem; line-height: 1.3; text-wrap: balance; }
.plate .darija { position: absolute; bottom: 2.1rem; right: 1rem; max-width: min(70%, 20rem); margin: 0; background: var(--sheet); border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; padding: .55rem .9rem; font-size: clamp(1.25rem, 3.6vw, 1.7rem); color: var(--ink); }
@media (min-width: 900px) { .plate .darija { bottom: 1.4rem; } }
.voice .darija { margin-top: 1rem; }
.darija::before { content: "“"; color: var(--olive); margin-inline-end: .1em; }
.darija::after { content: "”"; color: var(--olive); margin-inline-start: .1em; }
[dir="rtl"] .darija::before { content: "”"; }
[dir="rtl"] .darija::after { content: "“"; }
.lede { font-size: 1.125rem; color: var(--ink-2); }
.status { display: inline-flex; align-items: center; gap: .6rem; background: var(--red); color: var(--red-ink); border-radius: 12px; padding: .8rem 1.1rem; margin-top: .6rem; font-weight: 500; max-width: none; }
.status strong { font-weight: 700; }
.status .nb { white-space: nowrap; }
.status svg { width: 1.1rem; height: 1.1rem; flex: none; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 47fr 53fr; gap: 0; padding-block: 1.5rem 4rem; }
  .hero .text { grid-column: 1; grid-row: 1; margin: 0; padding-top: 2rem; padding-right: 4.5rem; padding-left: 2.2rem; }
  .hero .plate { grid-column: 2; grid-row: 1; margin-inline-start: -2.5rem; }
}
@media (max-width: 899px) { .hero .plate { grid-row: 1; } .hero .text { grid-row: 2; } }

/* drie stations */

.stations { margin-top: 1.5rem; }
.stations > h2 { margin: 0 0 .4rem; font-size: 1.5rem; }
.stations ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.stations .ico { width: 3.25rem; height: 3.25rem; color: var(--olive-deep); grid-row: 1 / span 3; }
.stations li { display: grid; grid-template-columns: 3.25rem 1fr; grid-template-rows: auto auto auto; gap: .15rem 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); align-items: start; }
.stations li .nr { grid-column: 2; }
.stations li h3 { grid-column: 2; }
.stations li:first-child { border-top: 0; }
.stations .nr { font-weight: 700; font-size: 1.75rem; line-height: 1; color: var(--olive-deep); letter-spacing: -.03em; }
.stations h3 { margin: 0; font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.stations p { margin: 0; color: var(--ink-2); grid-column: 2; }
@media (min-width: 760px) {
  .stations ol { grid-template-columns: repeat(3, 1fr); }
  .stations li { border-top: 0; border-inline-start: 1px solid var(--line); padding: .4rem 1.4rem; grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; }
  .stations li:first-child { border-inline-start: 0; padding-inline-start: 0; }
  .stations li:last-child { padding-inline-end: 0; }
  .stations .ico { grid-row: 1; margin-bottom: .6rem; }
  .stations li .nr, .stations li h3, .stations p { grid-column: 1; }
  .stations .nr { margin-bottom: .2rem; }
}

/* stap 4: voorlezen */
.listen { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: grid; gap: 1rem; }
.listen .doc { background: var(--cloth); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; display: grid; gap: .6rem; align-content: start; min-height: 7rem; }
.listen .doc .ln { height: .6rem; border-radius: 4px; background: var(--line); }
.listen .doc .w7 { width: 70%; } .listen .doc .w9 { width: 90%; } .listen .doc .w6 { width: 60%; } .listen .doc .w8 { width: 80%; }
.listen .doc .hl { background: var(--olive); }
.listen h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.listen .quote { font-size: 1.25rem; font-weight: 500; color: var(--olive-deep); margin: 0 0 .2rem; line-height: 1.6; }
.listen .quote-lat { direction: ltr; text-align: start; color: var(--ink-2); font-size: .9375rem; margin: 0 0 .9rem; }
[dir="rtl"] .listen .quote-lat { text-align: right; }
.btn-play { display: inline-flex; align-items: center; gap: .6rem; min-height: 3rem; padding: .6rem 1.1rem; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font: inherit; font-weight: 700; cursor: pointer; transition: transform .12s var(--ease), background .15s var(--ease); }
.btn-play:active { transform: scale(.985); }
.btn-play.playing { background: var(--olive-deep); border-color: var(--olive-deep); }
.btn-play svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn-play [hidden] { display: none; }
.listen .tiny { margin: .6rem 0 0; }
@media (min-width: 760px) { .listen { grid-template-columns: 16rem 1fr; gap: 2rem; align-items: start; } }

/* brieven */
.letters { display: grid; gap: 0; padding-block: 3rem 0; align-items: center; direction: ltr; }
.letters .plate { background: var(--cloth); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); position: relative; z-index: 1; }
.letters .text { position: relative; margin-top: -1.25rem; padding-top: 2.4rem; }
.letters .cols { display: grid; gap: 1.2rem; margin-top: 1.2rem; }
.letters h3 { margin: 0 0 .4rem; font-size: 1rem; font-weight: 700; color: var(--olive-deep); }
.letters ul { list-style: none; margin: 0; padding: 0; }
.letters li { padding-block: .45rem; border-top: 1px solid var(--line); }
.letters li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .letters .cols { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (min-width: 900px) {
  .letters { grid-template-columns: 50fr 50fr; padding-block: 4rem 0; }
  .letters .plate { grid-column: 1; grid-row: 1; margin-inline-end: -2.5rem; }
  .letters .text { grid-column: 2; grid-row: 1; margin: 0; padding-top: 2rem; padding-left: 4.5rem; padding-right: 2.2rem; }
}

/* stem */
.voice { margin-top: 3rem; }
.voice .darija { margin-bottom: .6rem; }

/* voet: drie rustige regels, geen beeld */
footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 2.5rem 0 3.5rem; color: var(--ink-2); font-size: 1rem; line-height: 1.6; text-align: center; }
footer p { margin: 0 auto .75rem; max-width: 40ch; }
footer p:last-child { margin-bottom: 0; }
footer .m3 { color: var(--ink); }

/* één beweging: een nieuw vel op tafel bij taalwissel en bij binnenkomst */
.sheet { animation: lay .7s var(--ease) both; }
.sheet.again { animation: none; }
@keyframes lay { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } html { scroll-behavior: auto; } }
