/* Full Circle Paradise · Story Atlas v1 */
.story-page {
  --story-dark: #26321d;
  --story-deep: #1e2818;
  --story-rust: #945d40;
  --story-gold: #b28b4e;
}

.story-hero {
  grid-template-columns: minmax(410px, .95fr) minmax(0, 1.05fr);
  min-height: 610px;
}
.story-hero > div {
  padding-left: 3.5rem;
}
.story-hero h1 {
  max-width: 700px;
  font-size: clamp(3.6rem, 6vw, 5.8rem);
  line-height: .91;
}
.story-hero .lede {
  max-width: 29rem;
  margin-top: 1.2rem;
  color: var(--forest);
  font-size: 1.35rem;
}
.story-hero figure {
  transform: rotate(.35deg);
}
.story-hero figure img {
  object-position: 55% center;
  filter: saturate(.9) contrast(.98) sepia(.025);
}
.story-facts {
  grid-template-columns: repeat(4, 1fr);
}
.story-facts strong {
  font-size: 1.65rem;
}

.story-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: 4.3rem;
  align-items: start;
}
.story-opening .opening-copy {
  max-width: 760px;
}
.story-opening h2,
.story-section h2 {
  font-size: clamp(2.7rem, 4.2vw, 4rem);
}
.story-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem .8rem;
  margin-top: 2.3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.story-index a {
  position: relative;
  padding: .55rem .65rem .55rem 1.65rem;
  background: rgba(255,255,255,.25);
  border-bottom: 1px solid rgba(112,87,46,.2);
  text-decoration: none;
  font-size: .88rem;
}
.story-index a::before {
  content: "↳";
  position: absolute;
  left: .55rem;
  color: var(--terracotta);
}
.opening-collage {
  position: relative;
  min-height: 690px;
}
.journal-photo {
  margin: 0;
  padding: 11px 11px 38px;
  background: #f3e8ce;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.journal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(117,91,53,.42);
  filter: saturate(.87) contrast(.98) sepia(.02);
}
.journal-photo figcaption {
  margin: .55rem .15rem 0;
  color: var(--ink-soft);
  text-align: right;
  font-size: .78rem;
}
.house-photo {
  position: absolute;
  inset: 0 7% auto 0;
  height: 435px;
}
.supper-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 75%;
  height: 355px;
}

.story-section {
  position: relative;
  padding: 5.5rem 5rem;
}
.story-heading.left-heading {
  max-width: 880px;
  margin-left: 0;
  text-align: left;
}
.story-heading.left-heading > p:last-child {
  margin-left: 0;
}

.founder-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(450px, .9fr);
  gap: 5rem;
  align-items: center;
  background:
    linear-gradient(110deg, rgba(255,255,255,.13), transparent 45%),
    var(--paper-light);
}
.founder-copy {
  max-width: 760px;
}
.bob-gallery {
  position: relative;
  min-height: 720px;
}
.bob-embrace {
  position: absolute;
  top: 0;
  left: 0;
  width: 92%;
  height: 455px;
  transform: rotate(-.7deg);
}
.bob-truck-small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 72%;
  height: 335px;
  transform: rotate(.8deg);
}

.jaya-section {
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr);
  gap: 4.8rem;
  align-items: center;
  background:
    radial-gradient(circle at 12% 30%, rgba(255,255,255,.07), transparent 34%),
    var(--story-dark);
  color: #eee6d2;
}
.jaya-section h2,
.jaya-section .kicker {
  color: #f1e9d4;
}
.jaya-section .kicker {
  color: #cbb77d;
}
.jaya-section p {
  color: #e2dbc8;
}
.jaya-context-photo {
  position: relative;
  margin: 0;
  padding: 12px 12px 42px;
  background: #eee2c7;
  border: 1px solid #bda979;
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
  transform: rotate(-.5deg);
}
.jaya-context-photo img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
  filter: saturate(.84) contrast(.98) sepia(.025);
}
.jaya-context-photo figcaption {
  position: absolute;
  right: 1.1rem;
  bottom: .8rem;
  color: #4f513f;
  font-size: .8rem;
}
.light-source {
  color: #f4e8bf;
}
.light-source:hover {
  color: white;
}

.community-section {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(470px, 1.08fr);
  gap: 4rem;
  align-items: start;
}
.community-section > .story-heading {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
.community-copy {
  max-width: 740px;
}
.community-story-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 340px 300px;
  gap: 1rem;
}
.community-story-mosaic figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 9px solid #f2e6cc;
  box-shadow: var(--shadow-soft);
}
.community-story-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.87) contrast(.98);
}
.community-story-mosaic figcaption {
  position: absolute;
  left: .65rem;
  right: .65rem;
  bottom: .55rem;
  padding: .35rem .55rem;
  background: rgba(248,241,223,.9);
  color: var(--ink);
  font-size: .72rem;
  line-height: 1.25;
}
.mosaic-supper {
  grid-column: 1 / -1;
}
.mosaic-circle {
  transform: rotate(-.45deg);
}
.mosaic-fire {
  transform: rotate(.45deg);
}

.fire-story-section {
  display: grid;
  grid-template-columns: minmax(420px, .92fr) minmax(0, 1.08fr);
  gap: 5rem;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(154,102,72,.22), transparent 42%),
    #e8d6b3;
  border-block: 1px solid var(--line);
}
.fire-photo-story {
  transform: rotate(-.65deg);
}
.fire-photo-story img {
  min-height: 520px;
  object-position: center;
}
.fire-copy {
  max-width: 780px;
}
.fire-copy .kicker {
  color: #7c3f2b;
}

.my-life-section {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(370px, .88fr);
  gap: 5rem;
  align-items: center;
}
.harvest-photo-story {
  min-height: 570px;
}
.harvest-photo-story img {
  min-height: 520px;
  object-position: center;
}

.design-study-section {
  background:
    radial-gradient(rgba(104,77,37,.035) .7px, transparent .8px),
    var(--paper-light);
  background-size: 8px 8px, auto;
}
.design-study-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, .9fr);
  gap: 5rem;
  align-items: start;
}
.design-copy {
  max-width: 780px;
}
.design-images {
  position: relative;
  min-height: 800px;
}
.completion-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 88%;
  height: 555px;
}
.completion-photo img {
  object-fit: contain;
  background: #fff;
}
.final-map-photo {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 68%;
  height: 350px;
}
.final-map-photo img {
  object-fit: contain;
  background: #f8f1df;
}

.lessons-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 5rem;
  align-items: center;
}
.lessons-copy {
  max-width: 830px;
}
.lessons-note {
  position: relative;
  padding: 2.4rem 2.1rem 2.2rem;
  background: #efe1bf;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transform: rotate(.65deg);
}
.lessons-note::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 38%;
  width: 110px;
  height: 27px;
  background: rgba(214,192,145,.72);
  transform: rotate(-2deg);
}
.lessons-note span {
  color: var(--terracotta);
  font: 700 .7rem var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.lessons-note blockquote {
  margin: 1rem 0;
  color: var(--forest-dark);
  font: italic 600 clamp(2rem, 3vw, 3rem)/1.1 var(--display);
}
.lessons-note p {
  margin-bottom: 0;
}

.lineage-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
  background:
    radial-gradient(circle at 80% 15%, rgba(255,255,255,.08), transparent 27%),
    var(--story-deep);
  color: #eee5d1;
}
.lineage-copy {
  max-width: 940px;
  margin: 0 auto;
}
.lineage-copy h2 {
  color: white;
  text-align: center;
}
.lineage-copy .kicker {
  color: #c9b679;
  text-align: center;
}
.lineage-copy p {
  color: #e2dbc8;
}
.lineage-copy p:nth-last-child(2),
.lineage-copy p:last-child {
  max-width: 920px;
  margin-inline: auto;
  color: white;
  text-align: center;
  font: italic 500 clamp(1.7rem, 3vw, 2.55rem)/1.35 var(--display);
}
.lineage-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 960px;
  margin: 3.5rem auto 0;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.22);
}
.lineage-links a {
  padding: 1.45rem 1.4rem;
  background: rgba(255,255,255,.055);
  color: white;
  text-align: center;
  text-decoration: none;
  font: 600 1.4rem var(--display);
}
.lineage-links a:hover {
  background: rgba(255,255,255,.12);
  color: white;
}
.lineage-links span {
  display: block;
  margin-bottom: .2rem;
  color: #c9b679;
  font: .64rem var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.story-page .prose p {
  max-width: 76ch;
}
.story-page .kicker {
  margin-bottom: .25rem;
  color: var(--terracotta);
  font-size: 1.15rem;
}
.story-page .source-centered {
  margin-top: 2rem;
}

@media (max-width: 1100px) {
  .story-hero {
    grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr);
  }
  .story-opening,
  .founder-section,
  .jaya-section,
  .community-section,
  .fire-story-section,
  .my-life-section,
  .design-study-grid,
  .lessons-section {
    gap: 3rem;
  }
  .story-section {
    padding: 4.5rem 3.5rem;
  }
  .story-opening {
    padding-inline: 3.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr);
  }
  .founder-section {
    grid-template-columns: minmax(0, 1fr) 400px;
  }
  .bob-gallery {
    min-height: 650px;
  }
  .jaya-section {
    grid-template-columns: 380px minmax(0, 1fr);
  }
  .community-section,
  .design-study-grid {
    grid-template-columns: minmax(0, 1fr) 430px;
  }
  .fire-story-section {
    grid-template-columns: 390px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .story-hero,
  .story-opening,
  .founder-section,
  .jaya-section,
  .community-section,
  .fire-story-section,
  .my-life-section,
  .design-study-grid,
  .lessons-section {
    grid-template-columns: 1fr;
  }
  .story-hero h1 {
    font-size: clamp(3.3rem, 11vw, 5.2rem);
  }
  .story-hero figure img {
    min-height: 430px;
  }
  .story-facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .story-opening,
  .story-section {
    padding: 3.5rem 1.5rem;
  }
  .opening-collage,
  .bob-gallery,
  .design-images {
    min-height: auto;
    display: grid;
    gap: 1.4rem;
  }
  .house-photo,
  .supper-photo,
  .bob-embrace,
  .bob-truck-small,
  .completion-photo,
  .final-map-photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    transform: none;
  }
  .house-photo img,
  .supper-photo img,
  .bob-embrace img,
  .bob-truck-small img,
  .completion-photo img,
  .final-map-photo img {
    min-height: 0;
    height: auto;
  }
  .jaya-context-photo img,
  .fire-photo-story img,
  .harvest-photo-story img {
    min-height: 0;
  }
  .community-section > .story-heading {
    grid-column: 1;
  }
  .community-story-mosaic {
    grid-template-rows: 300px 250px;
  }
  .lineage-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .story-index {
    grid-template-columns: 1fr;
  }
  .story-facts {
    grid-template-columns: 1fr 1fr;
  }
  .story-facts strong {
    font-size: 1.35rem;
  }
  .community-story-mosaic {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 270px);
  }
  .mosaic-supper {
    grid-column: 1;
  }
  .story-page .prose p {
    max-width: none;
  }
}

/* =========================================================
   Final polish · Jaya, food systems and community continuity
   ========================================================= */

.jaya-visuals {
  display: grid;
  gap: 1.2rem;
  align-self: start;
}

.jaya-portrait-photo {
  transform: rotate(-.45deg);
}

.jaya-portrait-photo img {
  object-position: center 38%;
}

.jaya-yellow-car-photo {
  position: relative;
  margin: 0;
  padding: 10px 10px 40px;
  border: 1px solid #bda979;
  background: #eee2c7;
  box-shadow: 0 16px 36px rgba(0,0,0,.24);
  transform: rotate(.55deg);
}

.jaya-yellow-car-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

.jaya-yellow-car-photo figcaption {
  position: absolute;
  right: 1rem;
  bottom: .72rem;
  color: #4f513f;
  font-size: .76rem;
}

.jaya-book-note {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1.3rem;
  align-items: center;
  margin: 2rem 0 .8rem;
  padding: 1.2rem;
  border: 1px solid rgba(203,183,125,.45);
  background: rgba(255,255,255,.065);
}

.jaya-book-note img {
  width: 100%;
  border: 7px solid #eee2c7;
  box-shadow: 0 10px 24px rgba(0,0,0,.24);
}

.jaya-book-note span {
  color: #cbb77d;
  font: 700 .67rem/1.2 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.jaya-book-note h3 {
  margin: .3rem 0 .55rem;
  color: #f4ecd8;
  font-size: 1.55rem;
}

.jaya-book-note p {
  margin: 0;
  color: #e2dbc8;
  line-height: 1.55;
}

@media (max-width: 820px) {
  .jaya-visuals {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .jaya-context-photo img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
}

@media (max-width: 560px) {
  .jaya-visuals,
  .jaya-book-note {
    grid-template-columns: 1fr;
  }

  .jaya-book-note img {
    width: min(230px, 72%);
    margin-inline: auto;
  }
}
