/* ==========================================================================
   Aurowl Studio — journal (blog) layer
   Loads after main.css; shares its tokens, reveal system and nav/footer.
   ========================================================================== */

/* ---------- Interior page hero (listing + posts) ---------- */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(26rem, 62vh, 44rem);
  overflow: clip;
  background: radial-gradient(120% 90% at 70% 10%, #131B30 0%, var(--bg) 55%);
}
.page-hero--post { min-height: clamp(24rem, 54vh, 38rem); }
.page-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s ease 0.2s;
}
.page-hero__canvas.is-ready { opacity: 1; }
.page-hero__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,13,20,0.55) 0%, rgba(10,13,20,0) 30%, rgba(10,13,20,0) 60%, rgba(10,13,20,0.94) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 2;
  padding-top: 9rem;
  padding-bottom: clamp(2.2rem, 5vh, 3.5rem);
}
.page-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.page-hero__kicker::before {
  content: '';
  width: 1em;
  height: 1em;
  background: url('../images/icon-mark.svg') center / contain no-repeat;
  font-size: 0.9em;
}
.page-hero__title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 18ch;
}
.page-hero__title em {
  font-style: italic;
  color: var(--accent);
}
.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: clamp(1.4rem, 3vh, 2.2rem);
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.page-hero__meta strong { color: var(--ink-dim); font-weight: 500; }

/* ---------- Listing ---------- */
.journal--index { padding-top: clamp(3rem, 6vw, 5rem); }
.jentry__art {
  align-self: center;
  width: clamp(5rem, 10vw, 7.5rem);
  aspect-ratio: 1;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}
@media (pointer: fine) and (min-width: 64em) {
  .jentry__art { display: none; } /* floating hover preview takes over */
}

/* ---------- Article ---------- */
.article {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0 var(--section-gap);
}
.article__body {
  max-width: 46rem;
  margin-inline: auto;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.85;
  color: rgba(238, 241, 246, 0.78);
}
.article__body > * + * { margin-top: 1.4em; }
.article__lede {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.65;
  color: var(--ink);
}
.article__body h2 {
  margin-top: 2.4em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.article__body h2::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.35em;
  background: url('../images/icon-mark.svg') center / contain no-repeat;
  font-size: 0.65em;
  vertical-align: 0.25em;
}
.article__body h3 {
  margin-top: 1.8em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  color: var(--ink);
}
.article__body strong { color: var(--ink); font-weight: 600; }
.article__body em { color: var(--ink); }
.article__body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(69, 224, 176, 0.4);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.3s;
}
.article__body a:hover { text-decoration-color: var(--accent); }
.article__body ul,
.article__body ol { padding-left: 0; }
.article__body ul li,
.article__body ol li {
  position: relative;
  padding-left: 1.8rem;
  list-style: none;
}
.article__body li + li { margin-top: 0.7em; }
.article__body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1em;
  height: 1em;
  background: url('../images/icon-mark.svg') center / contain no-repeat;
  font-size: 0.85em;
}
.article__body ol { counter-reset: item; }
.article__body ol li::before {
  counter-increment: item;
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.85em;
  font-weight: 500;
}
.article__body blockquote {
  margin: 2.2em 0;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.4;
  color: var(--violet);
}
.article__body blockquote::before {
  content: '“';
  display: block;
  font-size: 2em;
  line-height: 0.5;
  margin-bottom: 0.3em;
  color: var(--accent);
}
.article__aside {
  margin: 2.2em 0;
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-elev);
  font-size: 0.95em;
}
.article__aside-label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.article__figure {
  margin: 2.6em 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-elev);
}
.article__figure svg { width: 100%; height: auto; display: block; }
.article__figure img { width: 100%; height: auto; }
.article__figcaption {
  padding: 0.9rem 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.article__rule {
  margin: 3em auto;
  max-width: 46rem;
}

/* ---------- Post footer: next article ---------- */
.post-next {
  border-top: 1px solid var(--line);
  padding: var(--section-gap) 0;
  position: relative;
  overflow: clip;
}
.post-next > .container { position: relative; z-index: 1; }
.post-next__label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.post-next__link {
  display: block;
  margin-top: 1.2rem;
}
.post-next__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.4s, transform var(--dur-quick) var(--ease-out);
}
.post-next__link:hover .post-next__title {
  color: var(--ink);
  transform: translateX(clamp(0.4rem, 1.5vw, 1.2rem));
}
.post-next__excerpt {
  margin-top: 0.8rem;
  max-width: 40rem;
  color: var(--ink-faint);
  transition: color 0.4s;
}
.post-next__link:hover .post-next__excerpt { color: var(--ink-dim); }

/* ---------- Responsive ---------- */
@media (max-width: 47.9em) {
  .jentry { flex-wrap: wrap; }
  .jentry__meta { min-width: 100%; display: flex; gap: 1rem; line-height: 1.5; }
  .jentry__arrow { display: none; }
}
