:root {
  --ink: #14110f;
  --paper: #f4efe6;
  --muted: #6a6258;
  --frame: #f7f1e6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Outfit, system-ui, sans-serif;
  line-height: 1.5;
}

.intro {
  position: absolute;
  top: 1.25rem;
  left: 0;
  right: 0;
  z-index: 2;
  display: grid;
  gap: 0.35rem;
  padding: 0 1.5rem;
  text-align: center;
  color: #f7f1e6;
  pointer-events: none;
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.45);
}

.intro .eyebrow {
  color: #f7f1e6;
}

.intro h1 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
}

.about,
.journal,
.page {
  padding: 5.5rem 1.5rem 4rem;
  max-width: 46rem;
  margin-inline: auto;
}

.about h2,
.facilitators h2,
.journal h2,
.page h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin: 0.4rem 0 1.5rem;
}

.facilitators {
  max-width: 1100px;
  margin-inline: auto;
  padding: 5.5rem clamp(1.5rem, 5vw, 2.5rem) 6rem;
}

.facilitator-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.facilitator {
  display: grid;
  gap: 1.5rem;
  padding: 3.25rem 0;
  border-bottom: 1px solid rgb(20 17 15 / 0.12);
}

.facilitator:first-child {
  padding-top: 1.25rem;
}

.facilitator:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.facilitator-portrait {
  width: min(100%, 280px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #efe8d8;
  border: 1px solid rgb(20 17 15 / 0.2);
  box-shadow: 6px 8px 0 rgb(20 17 15 / 0.06);
}

.facilitator-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facilitator-copy {
  max-width: 40.625rem;
  min-width: 0;
}

.facilitator h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 400;
  line-height: 1.1;
}

.facilitator-role {
  font-style: italic;
  color: var(--muted);
  margin: 0.35rem 0 0.9rem;
}

.facilitator-copy p:last-child {
  color: var(--muted);
  line-height: 1.65;
}

@media (min-width: 800px) {
  .facilitator {
    grid-template-columns: 280px minmax(0, 1fr);
    column-gap: 2.5rem;
    align-items: start;
  }

  .facilitator-portrait {
    width: 280px;
    height: 350px;
  }
}

.prose {
  display: grid;
  gap: 1.1rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.prose p,
.lede {
  max-width: 40rem;
}

.journal-list {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

.journal-card {
  display: grid;
  gap: 0.75rem;
  padding: 1.1rem 1.1rem 1.3rem;
  background: #f7f1e6;
  border: 1px solid rgb(20 17 15 / 0.08);
  box-shadow: 8px 10px 0 rgb(20 17 15 / 0.06);
}

.journal-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.page time,
.journal-card time {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.journal-card h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 400;
  line-height: 1.1;
}

.journal-card p {
  color: var(--muted);
}

.journal-card a,
.journal-actions a,
.page a {
  color: var(--ink);
}

.journal-actions {
  margin-top: 2rem;
}

.site-footer {
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form label,
.toolbar {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.form input,
.form textarea,
.editor,
.form select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgb(20 17 15 / 0.18);
  background: #f7f1e6;
  color: var(--ink);
  font: inherit;
}

.editor {
  min-height: 12rem;
}

.toolbar {
  display: flex;
  gap: 0.4rem;
}

.toolbar button,
.form button,
.actions button {
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}

.toolbar button {
  background: transparent;
  color: var(--ink);
}

.hp {
  position: absolute;
  left: -9999px;
}

.status {
  margin-top: 1rem;
  color: var(--muted);
}

.entry-media {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.entry-media img,
.entry-media video,
.entry-media iframe {
  width: 100%;
  border: 0;
}

.actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

h1,
h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 0.95;
}

.lede,
.outro p {
  max-width: 36rem;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.1rem;
}

.hint {
  margin-top: 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 2.5rem;
  margin: 0.75rem auto 0;
  background: currentColor;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.2;
    transform: scaleY(0.7);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.scroll-scene {
  /* Sticky viewport plus one-third of the original 200vh travel. */
  height: 166.67vh;
  position: relative;
}

.scene-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.scene-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scene-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(20 17 15 / 0.18),
    transparent 28%,
    transparent 72%,
    rgb(20 17 15 / 0.35)
  );
  pointer-events: none;
}

.scene-mover {
  position: absolute;
  top: 50%;
  left: 0;
  width: min(42vw, 420px);
  aspect-ratio: 4 / 5;
  border: 10px solid var(--frame);
  box-shadow:
    0 24px 60px rgb(0 0 0 / 0.35),
    0 2px 8px rgb(0 0 0 / 0.2);
  transform: translate3d(15vw, -50%, 0);
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  background: var(--frame);
}

.scene-mover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.08s linear;
}

.scene-mover img.is-active {
  opacity: 1;
}

.scene-caption {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.5);
}

@media (max-width: 640px) {
  .scene-mover {
    width: min(42vw, 280px);
    border-width: 7px;
  }
}
