/* ==================================================================
   THE EPIC JOURNAL — sub-page layouts (About / Journal / Article)
   Loaded after tokens.css + styles.css; reuses nav, footer, btn, grain.
   ================================================================== */

/* footer is a normal block on content pages (no fixed reveal) */
.page .footer { position: relative; }

.page { padding-top: clamp(7rem, 14vh, 10rem); }

/* ---- page hero / masthead ---- */
.masthead { padding: clamp(2rem, 6vh, 5rem) var(--gutter) clamp(3rem, 7vh, 6rem); max-width: 1200px; margin: 0 auto; }
.masthead__label { color: var(--grey); margin-bottom: clamp(1.4rem, 4vw, 2.6rem); padding-top: 1.1rem; border-top: 1px solid var(--ink-line); }
.masthead__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 7rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.masthead__title em { font-family: var(--font-serif); font-style: italic; text-transform: none; letter-spacing: 0; }
.masthead__intro {
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  max-width: 46ch;
  font-size: var(--text-lg);
  color: var(--bone-dim);
  font-weight: 300;
}
.masthead__meta { margin-top: 1.6rem; color: var(--grey); font-size: 0.66rem; letter-spacing: 0.16em; }

/* ---- article prose ---- */
.article { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter) clamp(4rem, 10vh, 8rem); }
.article__media { max-width: 1100px; margin: 0 auto clamp(3rem, 7vh, 6rem); }
.article__media .frame { border-radius: 2px; }
.article__media img { aspect-ratio: 16 / 10; }
.prose { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.75; color: var(--bone-dim); }
.prose > * + * { margin-top: 1.4em; }
.prose h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.05; text-transform: uppercase; letter-spacing: 0.01em;
  color: var(--bone); margin-top: 2.2em;
}
.prose h3 { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.3rem, 2vw, 1.7rem); color: var(--bone); margin-top: 1.6em; }
.prose p { }
.prose strong { color: var(--bone); font-weight: 500; }
.prose em { color: var(--bone); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose blockquote {
  border-left: 2px solid var(--bone); padding-left: 1.4rem; margin: 2em 0;
  font-family: var(--font-serif); font-style: italic; font-size: 1.3em; color: var(--bone); line-height: 1.4;
}
.prose a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--grey); }
.prose a:hover { text-decoration-color: var(--bone); }
.article__cta { margin-top: clamp(3rem, 7vh, 5rem); padding-top: clamp(2rem, 4vh, 3rem); border-top: 1px solid var(--ink-line); display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }
.article__back { color: var(--grey); font-size: 0.66rem; letter-spacing: 0.16em; }
.article__back:hover { color: var(--bone); }

/* ---- blog index grid ---- */
.posts { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter) clamp(4rem, 10vh, 8rem); display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.post-card { display: block; border-top: 1px solid var(--ink-line); padding-top: 1.8rem; transition: opacity var(--dur-fast); }
.post-card:hover { opacity: 0.72; }
.post-card__media { overflow: hidden; border-radius: 2px; margin-bottom: 1.4rem; }
.post-card__media img { aspect-ratio: 16 / 10; transition: transform 0.9s var(--ease-out-expo); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__meta { color: var(--grey); font-size: 0.62rem; letter-spacing: 0.16em; margin-bottom: 0.8rem; }
.post-card__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.05; text-transform: uppercase; }
.post-card__excerpt { margin-top: 0.9rem; color: var(--bone-dim); font-size: 0.98rem; max-width: 42ch; }
@media (max-width: 760px) { .posts { grid-template-columns: 1fr; } }

/* founder portrait / about split */
.about-split { max-width: 1200px; margin: 0 auto clamp(3rem, 7vh, 6rem); padding: 0 var(--gutter); display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.about-split .frame { border-radius: 2px; }
.about-split img { aspect-ratio: 4 / 5; }
.about-split__pull { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.4; color: var(--bone); }
@media (max-width: 760px) { .about-split { grid-template-columns: 1fr; } }

/* ---- safe scroll reveal (visible by default; hidden only once JS is ready) ---- */
.reveal-ready .rise { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo); }
.reveal-ready .rise.in { opacity: 1; transform: none; }
.cursor.is-hover { width: 46px; height: 46px; mix-blend-mode: normal; background: var(--bone); }
