/* ==========================================================================
   Journal — a plain, scrollable document. It deliberately does not load the
   stack engine: long-form reading wants a normal scrollbar.
   ========================================================================== */

body {
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
}

.doc {
  max-width: 68rem;
  margin: 0 auto;
  padding: 12rem var(--page-x) 10rem;
}

.doc__back {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 6rem;
}

.doc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-bottom: 2.4rem;
}

.doc h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.6rem, 5.4vw, 7.2rem);
  line-height: 1.12;
  letter-spacing: var(--ls-display);
  text-wrap: balance;
}

.doc h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 3vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: var(--ls-display);
  margin: 6rem 0 1.6rem;
}

.doc__lede {
  font-size: clamp(1.8rem, 1.8vw, 2.4rem);
  line-height: 1.45;
  color: var(--text-regular);
  margin: 3.2rem 0 0;
  text-wrap: balance;
}

.doc p + p { margin-top: 1.6rem; }

.doc p,
.doc li {
  font-size: 1.7rem;
  line-height: 1.75;
  color: var(--text-regular);
  max-width: 62ch;
}

.doc ul { margin: 1.6rem 0 0 2rem; }
.doc li { list-style: disc; margin-top: 0.8rem; }
.doc li::marker { color: var(--purple); }

.doc strong { color: var(--text-bold); font-weight: 500; }

.doc a:not(.btn) {
  color: var(--text-bold);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-color: hsla(252, 100%, 71%, 0.6);
}

.doc hr {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 6rem 0;
}

.doc__figure {
  margin: 4rem 0;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: #000;
}

.doc__figure video,
.doc__figure img { width: 100%; height: auto; display: block; }

.doc__foot {
  margin-top: 8rem;
  padding-top: 3.2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  align-items: center;
  justify-content: space-between;
}

/* Index list */
.post-list { margin-top: 6rem; border-top: 1px solid var(--border-subtle); }

.post {
  display: block;
  padding: 3.2rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: padding-left var(--dur) var(--ease-out);
}

.post:hover { padding-left: 1.6rem; }

.post__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 3.4vw, 4.4rem);
  line-height: 1.15;
  letter-spacing: var(--ls-display);
  color: var(--text-bold);
  margin: 0.8rem 0;
}

.post__excerpt { color: var(--text-regular); max-width: 60ch; }
