/* ============================================================
   Atherbloom — sub-page layer
   Builds on styles.css. An image-hero band (sharing the living
   petals + scrim) over an editorial cream content panel.
   Used by: valley.html, stays.html, seasons.html, journal.html
   ============================================================ */

:root {
  --cream:      #f6f0e7;
  --cream-2:    #efe6d8;
  --ink-dark:   #2c2823;
  --ink-dark-2: #5c554a;
  --ink-dark-3: #8a8175;
  --rose:       #b56f8e;
  --rose-deep:  #93577290;
  --line:       rgba(44, 40, 35, 0.12);
  --shadow-card: 0 22px 50px -28px rgba(40, 30, 35, 0.45);
}

/* The sub-page scrolls (home does not), so free the body height. */
body.subpage { min-height: 100svh; background: var(--cream); }

/* Petals stay fixed over the viewport, same signature as home. */
body.subpage .petal-layer--back  { z-index: 2; }
body.subpage .petal-layer--front { z-index: 6; }

/* ---------- Page hero band ---------- */
.page-hero {
  position: relative;
  min-height: clamp(28rem, 74vh, 46rem);
  display: grid;
  grid-template-rows: auto 1fr;
  padding: clamp(1.1rem, 2.6vh, 1.9rem) var(--pad) clamp(2.6rem, 7vh, 5rem);
  isolation: isolate;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: var(--hero);
  background-size: cover;
  background-position: center;
  transform: scale(1.12) translateY(0);
  will-change: transform;
}
.page-hero__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(10,16,34,0.42) 0%, rgba(10,16,34,0.12) 26%, rgba(10,16,34,0.20) 60%, rgba(10,16,34,0.55) 100%),
    radial-gradient(70% 60% at 50% 64%, rgba(10,16,34,0.32) 0%, transparent 72%);
}

.page-hero__caption {
  align-self: end;
  max-width: 46rem;
  color: #fff;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.82); text-shadow: var(--shadow-text);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: rgba(255,255,255,0.7);
}
.page-hero__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400; line-height: 1.0; letter-spacing: -0.01em;
  font-size: clamp(2.6rem, 6vw, 5rem);
  text-wrap: balance;
  text-shadow: 0 1px 2px rgba(10,20,45,0.4), 0 3px 30px rgba(10,20,45,0.5);
}
.page-hero__title em { font-style: italic; font-weight: 300; }
.page-hero__sub {
  margin-top: 1.1rem; max-width: 34rem;
  font-weight: 300; font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.6;
  color: rgba(255,255,255,0.9); text-shadow: var(--shadow-text);
}

/* ---------- Content panel ---------- */
.content {
  position: relative; z-index: 10;
  background: var(--cream);
  color: var(--ink-dark);
  border-radius: 28px 28px 0 0;
  margin-top: -28px;
  box-shadow: 0 -30px 60px -30px rgba(20,16,30,0.4);
}
.content::before {
  /* a hairline of breathing room + soft top sheen */
  content: ""; display: block; height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.7), transparent);
}

.section {
  max-width: 72rem;
  margin-inline: auto;
  padding: clamp(3rem, 8vh, 6rem) var(--pad);
}
.section--tight { padding-block: clamp(2rem, 5vh, 3.5rem); }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 5vh, 3.2rem); }
.section-head .kicker {
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--rose); font-weight: 600; margin-bottom: 0.9rem;
}
.section-head h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400; line-height: 1.05;
  font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.01em;
}
.section-head h2 em { font-style: italic; }
.section-head p {
  margin-top: 1rem; color: var(--ink-dark-2);
  font-weight: 300; font-size: 1.08rem; line-height: 1.7; max-width: 38rem;
}

.prose p {
  color: var(--ink-dark-2); font-weight: 300;
  font-size: 1.1rem; line-height: 1.85; margin-bottom: 1.3rem;
  max-width: 38rem;
}
.prose p .drop {
  float: left; font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3.6rem; line-height: 0.8; padding: 0.1em 0.12em 0 0;
  color: var(--rose); font-style: italic;
}

/* ---------- Feature rows (Valley) ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center; margin-bottom: clamp(2.5rem, 6vh, 5rem);
}
.feature:last-child { margin-bottom: 0; }
.feature--flip .feature__media { order: 2; }
.feature__media {
  border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-card);
  background: var(--cream-2) center / cover no-repeat;
  transform: translateZ(0);
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature__body h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.1;
  margin-bottom: 0.9rem;
}
.feature__body p { color: var(--ink-dark-2); font-weight: 300; line-height: 1.8; }

/* ---------- Card grid (Stays) ---------- */
.card-grid {
  display: grid; gap: clamp(1.2rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.stay-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}
.stay-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(40,30,35,0.55); }
.stay-card__img {
  aspect-ratio: 3 / 2; background: var(--cream-2) center / cover no-repeat;
  position: relative;
}
.stay-card__tag {
  position: absolute; top: 0.9rem; left: 0.9rem;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(6px);
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-dark); font-weight: 600;
}
.stay-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.stay-card__body h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500; font-size: 1.5rem; margin-bottom: 0.4rem;
}
.stay-card__meta {
  font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink-dark-3);
  text-transform: uppercase; margin-bottom: 0.9rem;
}
.stay-card__desc { color: var(--ink-dark-2); font-weight: 300; line-height: 1.65; font-size: 0.96rem; }
.stay-card__foot {
  margin-top: auto; padding-top: 1.2rem; display: flex; align-items: baseline; justify-content: space-between;
}
.stay-card__price { font-family: "Cormorant Garamond", serif; font-size: 1.5rem; color: var(--ink-dark); }
.stay-card__price span { font-family: "Manrope"; font-size: 0.74rem; color: var(--ink-dark-3); letter-spacing: 0.04em; }

/* ---------- Season tiles ---------- */
.season-grid {
  display: grid; gap: clamp(1rem, 2vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.season-tile {
  position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 4 / 5; min-height: 20rem;
  display: flex; align-items: flex-end;
  color: #fff; box-shadow: var(--shadow-card);
  isolation: isolate;
}
.season-tile__img {
  position: absolute; inset: 0; z-index: -2;
  background: var(--cream-2) center / cover no-repeat;
  transform: scale(1.02); transition: transform 0.8s var(--ease);
}
.season-tile:hover .season-tile__img { transform: scale(1.08); }
.season-tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(12,14,28,0.78) 0%, rgba(12,14,28,0.18) 50%, transparent 80%);
}
.season-tile__body { padding: 1.5rem 1.5rem 1.7rem; }
.season-tile__name {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: 2rem; line-height: 1; margin-bottom: 0.5rem; text-shadow: var(--shadow-text);
}
.season-tile__when { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.82; margin-bottom: 0.6rem; }
.season-tile__desc { font-weight: 300; font-size: 0.92rem; line-height: 1.55; opacity: 0.92; }

/* ---------- Journal list ---------- */
.journal-list { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }
.journal-card {
  display: grid; grid-template-columns: 16rem 1fr; gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
  padding-bottom: clamp(1.2rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--line);
}
.journal-card:last-child { border-bottom: none; padding-bottom: 0; }
.journal-card__thumb {
  aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden;
  background: var(--cream-2) center / cover no-repeat;
  box-shadow: var(--shadow-card);
}
.journal-card__cat { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rose); font-weight: 600; }
.journal-card__title {
  font-family: "Cormorant Garamond", serif; font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.15; margin: 0.5rem 0 0.6rem;
}
.journal-card__title a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
.journal-card__title a:hover { color: var(--rose); }
.journal-card__excerpt { color: var(--ink-dark-2); font-weight: 300; line-height: 1.7; max-width: 40rem; }
.journal-card__date { margin-top: 0.7rem; font-size: 0.8rem; color: var(--ink-dark-3); letter-spacing: 0.04em; }

/* ---------- Quote band ---------- */
.quote-band { background: var(--cream-2); }
.quote-band blockquote {
  max-width: 50rem; margin-inline: auto; text-align: center;
  font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 300;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem); line-height: 1.3; color: var(--ink-dark);
}
.quote-band cite {
  display: block; margin-top: 1.4rem; font-style: normal; font-family: "Manrope";
  font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-dark-3);
}

/* ---------- Dark CTA band + footer ---------- */
.cta-band {
  position: relative; z-index: 10; overflow: hidden;
  background: #14182c; color: #fff; text-align: center;
  padding: clamp(3.5rem, 9vh, 6rem) var(--pad);
}
.cta-band__inner { max-width: 40rem; margin-inline: auto; }
.about-contact { display: flex; align-items: center; justify-content: center; gap: 1.3rem; flex-wrap: wrap; }
.about-contact__link {
  color: rgba(255, 255, 255, 0.7); text-decoration: none;
  font-size: 0.92rem; letter-spacing: 0.04em;
  border-bottom: 1px solid transparent; padding-bottom: 1px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.about-contact__link:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.cta-band h2 {
  font-family: "Cormorant Garamond", serif; font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.1; margin-bottom: 1rem;
}
.cta-band h2 em { font-style: italic; }
.cta-band p { color: rgba(255,255,255,0.72); font-weight: 300; line-height: 1.7; margin-bottom: 2rem; }

.site-footer {
  position: relative; z-index: 10;
  background: #0f1322; color: rgba(255,255,255,0.66);
  padding: clamp(2.5rem, 6vh, 4rem) var(--pad) 2.5rem;
}
.site-footer__grid {
  max-width: 72rem; margin-inline: auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
}
.site-footer h4 { color: #fff; font-weight: 500; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.55rem; }
.site-footer a { color: rgba(255,255,255,0.66); text-decoration: none; font-weight: 300; font-size: 0.94rem; transition: color 0.3s ease; }
.site-footer a:hover { color: #fff; }
.site-footer__brand .brand-word { font-size: 1.4rem; }
.site-footer__brand p { margin-top: 0.8rem; font-weight: 300; line-height: 1.6; font-size: 0.92rem; max-width: 22rem; }
.site-footer__base {
  max-width: 72rem; margin: clamp(2rem, 5vh, 3rem) auto 0; padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.78rem; color: rgba(255,255,255,0.5); letter-spacing: 0.04em;
}

/* dark-surface buttons reuse .btn; ensure primary works on dark */
.cta-band .btn--primary, .site-footer .btn--primary { color: #1a1a22; }

/* ---------- Guestbook (Leave a thought) ---------- */
.thought-form {
  max-width: 44rem; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-card);
}
.thought-form__label {
  display: block; font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem; color: var(--ink-dark); margin-bottom: 0.9rem;
}
.thought-form textarea, .thought-form input {
  width: 100%; font-family: inherit; color: var(--ink-dark);
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  padding: 0.9rem 1rem; font-size: 1rem; font-weight: 300; resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.thought-form textarea { line-height: 1.6; min-height: 4.5rem; }
.thought-form textarea:focus, .thought-form input:focus {
  outline: none; border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(181, 111, 142, 0.14);
}
.thought-form textarea::placeholder, .thought-form input::placeholder { color: var(--ink-dark-3); }
.thought-form__row {
  display: flex; gap: 1rem; align-items: center; margin-top: 0.9rem; flex-wrap: wrap;
}
.thought-form__row input { flex: 1; min-width: 12rem; margin: 0; }
.thought-form__actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.thought-form__count { font-size: 0.8rem; color: var(--ink-dark-3); letter-spacing: 0.02em; white-space: nowrap; }
.thought-form__note { margin-top: 1rem; font-size: 0.82rem; color: var(--ink-dark-3); font-style: italic; }

.thought-wall {
  columns: 3 16rem; column-gap: clamp(1rem, 2vw, 1.6rem);
}
.thought-card {
  break-inside: avoid; margin: 0 0 clamp(1rem, 2vw, 1.6rem);
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow-card);
  animation: thoughtIn 0.7s var(--ease) both;
}
.thought-card__body {
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.25rem;
  line-height: 1.4; color: var(--ink-dark); font-style: italic;
}
.thought-card__meta {
  display: flex; justify-content: space-between; gap: 0.8rem; margin-top: 1rem;
  font-family: "Manrope", sans-serif; font-style: normal;
  font-size: 0.74rem; letter-spacing: 0.04em; color: var(--ink-dark-3);
  text-transform: uppercase;
}
.thought-empty { color: var(--ink-dark-3); font-style: italic; text-align: center; }
@keyframes thoughtIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* The submitted thought drifts down into the valley hero */
.thought-fall {
  position: absolute; left: 50%; top: 38%; z-index: 5;
  transform: translateX(-50%);
  max-width: 22rem; text-align: center; pointer-events: none;
  font-family: "Cormorant Garamond", Georgia, serif; font-style: italic;
  font-size: 1.4rem; color: #fff; text-shadow: var(--shadow-text);
  animation: thoughtFall 2.2s cubic-bezier(0.4, 0, 0.5, 1) forwards;
}
@keyframes thoughtFall {
  0%   { opacity: 0; transform: translate(-50%, -10px) rotate(-1deg) scale(0.96); }
  18%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 52vh) rotate(3deg) scale(1.02); }
}
@media (max-width: 620px) { .thought-form__actions { width: 100%; justify-content: space-between; } }

/* ---------- Library ---------- */
.lib-controls {
  display: flex; flex-direction: column; gap: 1.3rem;
  padding-bottom: clamp(1.6rem, 3vh, 2.4rem);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.6rem;
}
.lib-filter { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.7rem 1rem; }
.lib-filter__label {
  flex: 0 0 5rem; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-dark-3); font-weight: 600;
}
.lib-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lib-chip {
  font-family: inherit; font-size: 0.84rem; font-weight: 400; cursor: pointer;
  color: var(--ink-dark-2); background: #fff;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.4rem 0.9rem;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.lib-chip:hover { border-color: var(--rose); color: var(--ink-dark); }
.lib-chip.is-active { color: #fff; background: var(--rose); border-color: var(--rose); }
.lib-filter--search { display: flex; }
.lib-filter--search input {
  flex: 1; min-width: 12rem; font-family: inherit; font-size: 0.95rem; font-weight: 300;
  color: var(--ink-dark); background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 0.65rem 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.lib-filter--search input:focus {
  outline: none; border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(181, 111, 142, 0.14);
}
.lib-filter--search input::placeholder { color: var(--ink-dark-3); }
.lib-count {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dark-3); font-weight: 600; margin-bottom: 1.6rem;
}
.lib-grid {
  display: grid; gap: clamp(1rem, 2vw, 1.6rem);
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}
.lib-empty {
  grid-column: 1 / -1; text-align: center; color: var(--ink-dark-3);
  font-style: italic; padding: 2rem 0;
}
/* The trio-card was drawn for the dark hero; re-tone it for the cream panel. */
.lib-grid .trio-card {
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  gap: 0.9rem;
}
.lib-grid .trio-card:hover {
  transform: translateY(-4px); background: #fff;
  box-shadow: 0 30px 60px -28px rgba(40,30,35,0.45);
}
.lib-grid .trio-card__label { color: var(--rose); border-bottom-color: var(--line); font-weight: 600; }
.lib-grid .trio-card__quote { color: var(--ink-dark); text-shadow: none; font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
.lib-grid .trio-card__author { color: var(--ink-dark); text-shadow: none; }
.lib-grid .trio-card__work,
.lib-grid .trio-card__prov { color: var(--ink-dark-3); text-shadow: none; }

/* ---------- Notebook ---------- */
.nb-form {
  max-width: 44rem; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-card);
}
.nb-form__label {
  display: block; font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem; color: var(--ink-dark); margin-bottom: 0.9rem;
}
.nb-form textarea {
  width: 100%; font-family: inherit; color: var(--ink-dark);
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  padding: 0.9rem 1rem; font-size: 1rem; font-weight: 300; line-height: 1.6;
  resize: vertical; min-height: 6rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.nb-form textarea:focus {
  outline: none; border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(181, 111, 142, 0.14);
}
.nb-form textarea::placeholder { color: var(--ink-dark-3); }
.nb-form__row {
  display: flex; gap: 1rem; align-items: center; margin-top: 1rem; flex-wrap: wrap;
}
.nb-form__note { font-size: 0.82rem; color: var(--ink-dark-3); font-style: italic; margin: 0; }
.nb-form__actions { display: flex; align-items: center; gap: 0.8rem; margin-left: auto; }
.btn--ghost {
  padding: 0.85rem 1.4rem; font-size: 0.95rem; color: var(--ink-dark-2);
  background: transparent; border: 1px solid var(--line);
}
.btn--ghost:hover { color: var(--ink-dark); border-color: var(--rose); }
.nb-list { display: grid; gap: clamp(0.9rem, 2vw, 1.4rem); max-width: 44rem; margin-inline: auto; }
.nb-entry {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.3rem 1.5rem; box-shadow: var(--shadow-card);
  animation: thoughtIn 0.6s var(--ease) both;
}
.nb-entry__body {
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.25rem;
  line-height: 1.45; color: var(--ink-dark); white-space: pre-wrap;
}
.nb-entry__meta {
  display: flex; justify-content: space-between; align-items: center; gap: 0.8rem;
  margin-top: 1rem;
}
.nb-entry__time {
  font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-dark-3);
}
.nb-entry__del {
  font-family: inherit; font-size: 0.74rem; letter-spacing: 0.04em;
  color: var(--ink-dark-3); background: none; border: none; cursor: pointer;
  padding: 0.2rem 0; border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.nb-entry__del:hover { color: var(--rose); border-bottom-color: var(--rose); }
.nb-empty { color: var(--ink-dark-3); font-style: italic; text-align: center; padding: 1.5rem 0; }

/* ---------- Sources ---------- */
.source-list { list-style: none; display: grid; gap: 0; max-width: 46rem; }
.source-item {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.source-item:last-child { border-bottom: none; }
.source-item__work {
  font-family: "Cormorant Garamond", Georgia, serif; font-style: italic;
  font-size: 1.3rem; color: var(--ink-dark); line-height: 1.3;
}
.source-item__meta {
  font-size: 0.82rem; color: var(--ink-dark-3); letter-spacing: 0.02em;
  margin-left: auto; white-space: nowrap;
}
@media (max-width: 560px) {
  .source-item__meta { margin-left: 0; }
  .lib-filter__label { flex-basis: 100%; }
}

/* ---------- Seasons scroll showpiece ---------- */
/* Hidden by default; seasons.js reveals it (and hides the static grid)
   only when JS runs and motion is allowed. No-JS / reduced-motion users
   keep the static season grid as a graceful fallback. */
.season-scroll { position: relative; height: 360vh; display: none; }
body.has-scroll-seasons .season-scroll { display: block; }
body.has-scroll-seasons .seasons-static { display: none; }

.season-scroll__stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden; background: #0c0e1c;
}
.season-scroll__layer {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06); will-change: opacity;
  transition: opacity 0.5s linear;
}
.season-scroll__layer:first-child { opacity: 1; }
.season-scroll__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10,14,30,0.40) 0%, rgba(10,14,30,0.12) 38%, rgba(10,14,30,0.66) 100%);
}
.season-scroll__copy {
  position: absolute; inset: 0; display: grid; place-items: center;
  text-align: center; padding: var(--pad);
}
.season-scroll__panel {
  position: absolute; max-width: 42rem; color: #fff;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.season-scroll__panel.is-active { opacity: 1; transform: none; }
.season-scroll__when {
  font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase;
  opacity: 0.85; margin-bottom: 1.1rem; text-shadow: var(--shadow-text);
}
.season-scroll__name {
  font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 300;
  font-size: clamp(3rem, 9vw, 7rem); line-height: 0.95; margin-bottom: 1.3rem;
  text-shadow: 0 1px 2px rgba(10,20,45,0.4), 0 3px 30px rgba(10,20,45,0.5);
}
.season-scroll__text {
  font-weight: 300; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.7;
  max-width: 34rem; margin-inline: auto; text-shadow: var(--shadow-text);
}
.season-scroll__dots {
  position: absolute; right: clamp(1rem, 4vw, 3rem); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 0.85rem; z-index: 4;
}
.season-scroll__dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6); background: transparent;
  transition: background 0.3s ease, transform 0.3s var(--ease);
}
.season-scroll__dot.is-active { background: #fff; transform: scale(1.35); }
.season-scroll__hint {
  position: absolute; bottom: 2rem; left: 50%; z-index: 4;
  color: rgba(255,255,255,0.82); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  animation: hintPulse 2.6s ease-in-out infinite;
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.35; transform: translate(-50%, 0); }
  50%      { opacity: 0.9;  transform: translate(-50%, 7px); }
}
@media (prefers-reduced-motion: reduce) { .season-scroll { display: none !important; } }

/* ---------- Scroll reveals (sub-pages) ---------- */
.rise { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rise.in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound .page-hero { min-height: 100svh; }
.notfound .page-hero__caption { align-self: center; text-align: center; margin-inline: auto; }
.notfound .page-hero__sub { margin-inline: auto; }
.notfound .page-hero__actions { margin-top: 2rem; display: flex; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; gap: 1.4rem; }
  .feature--flip .feature__media { order: 0; }
  .journal-card { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__bg { animation: none; }
  .rise { opacity: 1; transform: none; transition: none; }
}
