/* How satan stops our prayers — three smokes, fire that melts the rock */
:root {
  --void: #0b0a0f;
  --rock: #1c1f28;
  --rock-edge: #2e3442;
  --smoke: #9aa3b2;
  --cream: #f3ebe0;
  --muted: #b7aea3;
  --ember: #e08a3a;
  --ember-hi: #f0b36a;
  --gold: #f0c36a;
  --display: "Cinzel", "Palatino Linotype", Palatino, serif;
  --body: "Newsreader", "Georgia", serif;
  --gutter: clamp(.9rem, 3vw, 1.6rem);
  --measure: 42rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); color: var(--cream); scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1.125rem/1.65 var(--body);
  background: transparent;
  min-height: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ember-hi); }
a:hover { color: var(--gold); }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--gold); color: #111; padding: .6rem 1rem;
}
.skip:focus { left: var(--gutter); top: .5rem; }

.rock-field {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(224, 138, 58, .08), transparent 55%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(15, 18, 28, .9), transparent 60%),
    linear-gradient(180deg, #0b0a0f 0%, #12151c 45%, #0b0a0f 100%);
  opacity: .95;
  transition: opacity .8s ease, filter .8s ease;
}
html.is-piercing .rock-field {
  background:
    radial-gradient(ellipse 55% 45% at 50% 18%, rgba(240, 179, 106, .28), transparent 55%),
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(224, 138, 58, .16), transparent 55%),
    linear-gradient(180deg, #120e0a 0%, #1a1410 50%, #0b0a0f 100%);
}
.rock-field::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 38vh;
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(46, 52, 66, .35) 18px 19px),
    linear-gradient(180deg, rgba(28, 31, 40, .85), transparent);
  mask-image: linear-gradient(180deg, #000 20%, transparent);
  opacity: .55;
  transition: opacity .9s ease, transform 1.2s ease;
}
html.is-piercing .rock-field::after {
  opacity: .15;
  transform: translateY(-8%);
}

.top, main, footer { position: relative; z-index: 1; }
.top {
  display: flex; justify-content: flex-end;
  padding: .55rem var(--gutter) 0;
}
.brand {
  font: 700 .78rem/1 var(--display);
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
}
.brand:hover { color: var(--gold); }

.hero {
  width: min(100% - 2 * var(--gutter), 56rem);
  margin: 0 auto;
  padding: 1.2rem 0 1.5rem;
  text-align: center;
}
.kicker {
  margin: 0 0 .4rem;
  font: 700 .75rem/1.2 var(--display);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ember);
}
h1 {
  margin: 0;
  font: 700 clamp(1.7rem, 4.5vw, 3rem)/1.15 var(--display);
  letter-spacing: .02em;
  color: var(--cream);
}
.by { margin: .65rem 0 1.1rem; color: var(--muted); font-size: 1rem; }
.muted { color: var(--muted); }
.tiny { font-size: .85rem; }

.stage-wrap { margin: 0 auto 1rem; width: min(100%, 52rem); }
.stage {
  position: relative;
  width: min(100%, calc((100dvh - 10rem) * 16 / 9));
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(224, 138, 58, .28);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 18px 50px rgba(0,0,0,.45);
  background: #000;
}
html.is-playing .stage {
  border-color: var(--ember);
  box-shadow: 0 0 0 1px rgba(224,138,58,.35), 0 0 40px rgba(224,138,58,.18);
}
.screen { position: absolute; inset: 0; }
.stream-video, .facade, .facade img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.stream-video { z-index: 1; background: #000; }
.facade {
  z-index: 2; border: 0; padding: 0; cursor: pointer; background: #000;
}
html.is-playing .facade { display: none; }
.facade .play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 4.2rem; height: 4.2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(11, 10, 15, .72);
  color: #fff; font-size: 1.35rem;
  box-shadow: 0 0 0 2px rgba(240, 195, 106, .55);
}

.actions {
  display: flex; flex-wrap: wrap; gap: .65rem;
  justify-content: center; align-items: center;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .65rem 1.1rem;
  border: 1px solid transparent; border-radius: 6px;
  background: linear-gradient(180deg, #ffe6a8, #f0c36a 45%, #e0a04a);
  color: #1a1208; font: 700 .92rem/1 var(--display);
  text-decoration: none; cursor: pointer;
}
.btn.ghost {
  background: transparent;
  border-color: rgba(240, 195, 106, .45);
  color: var(--cream);
}
.btn:focus-visible, #btn-global-menu:focus-visible, .facade:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px;
}
#btn-global-menu { min-width: 2.75rem; font-size: 1.05rem; }

.plate {
  width: min(100% - 2 * var(--gutter), 56rem);
  margin: 1.5rem auto 2rem;
}
.plate figcaption {
  margin-top: .55rem;
  font-size: .92rem; color: var(--muted);
  text-align: justify;
  text-justify: inter-word;
}
.hero-plate img {
  width: 100%; border: 1px solid var(--rock-edge);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}

.teaching, #downloads {
  width: min(100% - 2 * var(--gutter), var(--measure));
  margin: 0 auto;
  padding: 0 0 2.5rem;
}
.chapter { padding: 2rem 0 0.5rem; }
.chapter h2 {
  margin: 0 0 1rem;
  font: 700 clamp(1.35rem, 3vw, 1.85rem)/1.2 var(--display);
  color: var(--gold);
  letter-spacing: .03em;
}
.chapter h3 {
  margin: 1.5rem 0 .75rem;
  font: 700 1.1rem/1.3 var(--display);
  color: var(--ember-hi);
}
.chapter p {
  margin: 0 0 1.05rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.chapter p:last-child { margin-bottom: 0; }
.smoke-card figcaption {
  text-align: justify;
  text-justify: inter-word;
}

.smoke-tri {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .smoke-tri { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.smoke-card {
  margin: 0;
  background: rgba(28, 31, 40, .55);
  border: 1px solid var(--rock-edge);
  padding: .55rem;
}
.smoke-card.fire {
  border-color: rgba(224, 138, 58, .55);
  box-shadow: 0 0 28px rgba(224, 138, 58, .12);
}
html.is-piercing .smoke-card.fire {
  box-shadow: 0 0 36px rgba(240, 179, 106, .28);
}
.smoke-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.smoke-card figcaption {
  margin-top: .55rem;
  font-size: .9rem; color: var(--muted); line-height: 1.4;
}
.smoke-card strong { display: block; color: var(--cream); margin-bottom: .2rem; font-family: var(--display); }

.file-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: .4rem .75rem; border: 1px solid rgba(240,195,106,.35);
  color: var(--cream); text-decoration: none; font-size: .9rem;
}
.tag:hover { border-color: var(--gold); color: var(--gold); }
.langs {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .35rem .85rem;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
}
.langs a { text-decoration: none; }

.foot {
  padding: 2rem var(--gutter) 3rem;
  text-align: center; border-top: 1px solid var(--rock-edge);
  color: var(--muted); font-size: .95rem;
}
.foot a { color: var(--cream); }

.js .rv {
  opacity: 0; transform: translateY(.6rem);
  transition: opacity .7s ease, transform .7s ease;
}
.js .rv.is-in, html:not(.js) .rv { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv, .rock-field, .rock-field::after { transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}

@media print {
  .rock-field, .facade, .actions, .skip { display: none !important; }
  body { background: #fff; color: #111; }
  a { color: #000; }
}
