/* Mojka House — one type family, each product its own colour. */
:root {
  --bg: #15110F; --surface: #211A17; --raised: #2A211D; --line: #2A211D;
  --text: #F5EFEA; --muted: #B5A9A1; --dim: #8F827A;
  --accent: #C2412D; --accent-ink: #1A0C08;
  --radius: 16px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color-scheme: dark;
}
body.refuge { --bg: #0E1614; --surface: #17221F; --raised: #1F2D29; --line: #1C2A26; --text: #EEF4F1; --muted: #A3B5AE; --dim: #8FA29B; --accent: #7FB8A4; --accent-ink: #0B1A15; }
body.lessons { --bg: #0E131A; --surface: #172030; --raised: #1F2A3D; --line: #1C2636; --text: #EEF3F8; --muted: #A6B3C2; --dim: #8E9BAB; --accent: #6FB7E8; --accent-ink: #061826; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.045em; font-weight: 800; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* Header */
.head { border-bottom: 1px solid var(--line); }
.head .wrap { display: flex; align-items: center; gap: 14px 24px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; background: #C2412D; color: #15110F; display: flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: -0.04em; }
.brand b { font-size: 17px; letter-spacing: -0.03em; }
.back { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 14px; }
.back:hover { color: var(--text); }
.product { font-size: 20px; font-weight: 800; letter-spacing: -0.04em; color: var(--accent); margin-right: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #C89B5A; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border: 0; border-radius: 14px; background: var(--surface); font-weight: 700; font-size: 15px; }
.btn:hover { background: var(--raised); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent); filter: brightness(1.08); }

/* Hub */
.hero { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; padding: 40px 0 56px; }
.hero-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; }
.hero h1 { font-size: clamp(34px, 6vw, 62px); line-height: 0.98; letter-spacing: -0.055em; }
.hero p { font-size: 17px; color: var(--muted); max-width: 520px; }
.ask { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 18px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 17px; letter-spacing: -0.02em; max-width: 520px; }
.ask span { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 700; }
.chip:hover { background: var(--raised); }
.hero-film { flex: 1 1 380px; max-width: 560px; }
.section { display: flex; flex-direction: column; gap: 18px; padding-bottom: 64px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section h2 { font-size: clamp(24px, 3vw, 30px); }
.section-head a { font-size: 15px; color: var(--accent); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.prod { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius); background: var(--surface); min-height: 76px; }
a.prod:hover { background: var(--raised); }
.prod-mark { width: 44px; height: 44px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: -0.04em; }
.prod-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prod-text b { font-size: 16px; letter-spacing: -0.025em; display: flex; align-items: center; gap: 8px; }
.prod-text span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.soon { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--raised); border-radius: 999px; padding: 2px 8px; letter-spacing: 0; }
.prod.is-soon .prod-mark { opacity: 0.55; }

/* Cards of films */
.films { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.film-card { display: flex; flex-direction: column; gap: 8px; }
.film-card .thumb { position: relative; aspect-ratio: 9 / 14; border-radius: 14px; overflow: hidden; background: var(--surface); }
.film-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.film-card:hover .thumb img { transform: scale(1.03); }
.film-card .tag { position: absolute; top: 8px; left: 8px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; }
.film-card b { font-size: 15px; letter-spacing: -0.02em; line-height: 1.25; }
.film-card small { font-size: 13px; color: var(--muted); margin-top: -4px; }

/* Refuge / Lessons index */
.intro { display: flex; flex-direction: column; gap: 12px; padding: 36px 0 28px; max-width: 640px; }
.intro h1 { font-size: clamp(34px, 6vw, 56px); line-height: 0.98; letter-spacing: -0.055em; }
.intro p { font-size: 17px; color: var(--muted); }
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; padding-bottom: 40px; }
.verse-foot { padding: 8px 0 56px; text-align: center; color: var(--muted); font-size: 14px; }
.verse-foot q { display: block; font-style: italic; color: var(--text); font-size: 16px; margin-bottom: 4px; }

/* The film player: a frame the exact shape of the film */
.film { position: relative; width: 100%; border-radius: 20px; overflow: hidden; background: var(--surface); border: 0; padding: 0; display: block; }
.film.portrait { aspect-ratio: 9 / 16; }
.film.landscape { aspect-ratio: 16 / 9; }
.film img { width: 100%; height: 100%; object-fit: cover; }
.film .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(to top, rgba(0,0,0,0.35), rgba(0,0,0,0) 45%); }
.film .play span { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(0,0,0,0.35); transition: transform 0.2s ease; }
.film:hover .play span { transform: scale(1.06); }
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Struggle and lesson pages */
.story { display: grid; gap: 22px; padding: 28px 0 56px; grid-template-columns: minmax(0, 1fr); }
.s-head { display: flex; flex-direction: column; gap: 8px; }
.s-label { font-size: 14px; font-weight: 700; color: var(--accent); }
.s-head h1 { font-size: clamp(30px, 5vw, 52px); line-height: 0.98; letter-spacing: -0.055em; }
.s-block { display: flex; flex-direction: column; gap: 10px; }
.s-block h2 { font-size: 20px; letter-spacing: -0.035em; }
.s-block p { font-size: 17px; line-height: 1.55; color: var(--text); opacity: 0.9; max-width: 640px; }
.point { font-size: 22px !important; font-weight: 700; letter-spacing: -0.025em; line-height: 1.35 !important; opacity: 1 !important; }
.verses { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 18px; background: var(--surface); }
.verses h2 { font-size: 15px; color: var(--accent); letter-spacing: -0.01em; }
.verses q { font-style: italic; font-size: 17px; line-height: 1.45; display: block; }
.verses small { font-size: 13px; color: var(--muted); display: block; margin-top: 4px; }
.talk { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 17px; line-height: 1.45; }
.doors { display: flex; flex-direction: column; gap: 8px; }
.door { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px 10px 10px; border-radius: 16px; background: var(--surface); }
.door:hover { background: var(--raised); }
.door-mark { width: 44px; height: 44px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: -0.04em; }
.door-text { display: flex; flex-direction: column; }
.door-text b { font-size: 15px; }
.door-text span { font-size: 13px; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.more { padding-bottom: 64px; }

/* Grid areas: one page, two shapes */
.story .side { display: contents; }
.story .s-head { grid-area: head; order: 1; } .story .film { grid-area: film; order: 2; } .story .s-word { grid-area: word; order: 3; }
.story .verses { grid-area: verses; order: 4; } .story .s-pray { grid-area: pray; order: 5; } .story .s-next { grid-area: next; order: 6; }
.story { grid-template-areas: "head" "film" "word" "verses" "pray" "next"; }
@media (min-width: 900px) {
  .story.portrait { grid-template-columns: 380px minmax(0, 1fr); column-gap: 56px; align-items: start;
    grid-template-areas: "film head" "film word" "film verses" "film pray" "film next" "film ."; }
  .story.portrait .film { position: sticky; top: 24px; }
  .story.landscape { grid-template-columns: minmax(0, 1fr) 360px; column-gap: 44px; align-items: start;
    grid-template-areas: "head head" "film side" "word side" "pray side"; }
  .story.landscape .side { display: flex; flex-direction: column; gap: 22px; grid-area: side; }
}

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 26px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.foot .wrap > span { margin-right: auto; }
.foot a:hover { color: var(--text); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; z-index: 50; }

@media (max-width: 560px) {
  .nav { display: none; }
  .hero { padding-top: 24px; }
  .films, .list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
