/*
 * Private proposal: real-land imagery for the 365 Days page.
 * Loaded after 365-unified.css so the approved layout and wording stay intact.
 */

main#top {
  background:
    linear-gradient(180deg, rgba(238,229,205,.18), rgba(12,36,24,.52) 42%, rgba(7,27,18,.72)),
    url('assets/365-land-background.webp') center top / cover fixed no-repeat;
}

.hero {
  background:
    linear-gradient(90deg, rgba(244,235,207,.16), rgba(244,235,207,.34) 46%, rgba(12,32,23,.10)),
    url('assets/365-land-background.webp') center 46% / cover no-repeat;
}

.hero:after {
  background: linear-gradient(180deg, rgba(247,239,216,.12), rgba(14,39,27,.18));
}

.hero-copy {
  padding: 14px 20px 16px;
  background: linear-gradient(135deg, rgba(247,239,216,.76), rgba(239,227,196,.54));
  border: 1px solid rgba(155,127,66,.34);
  border-radius: 5px;
  box-shadow: 0 12px 34px rgba(24,35,25,.20);
}

.living-field {
  background: linear-gradient(180deg, rgba(18,48,33,.72), rgba(9,31,21,.84));
}

.land-path-photo {
  background-image:
    linear-gradient(180deg, rgba(22,47,33,.04), rgba(13,33,23,.22)),
    url('assets/365-land-path.webp');
  background-size: cover;
  background-position: center 53%;
  border: 1px solid rgba(139,116,63,.48);
  box-shadow: inset 0 0 0 1px rgba(255,249,229,.16), 0 5px 15px rgba(39,34,22,.18);
}

.journal-introduction {
  max-width: 1080px;
  display: grid;
  grid-template-columns: minmax(260px,.82fr) minmax(0,1.35fr);
  grid-template-rows: auto 1fr auto;
  column-gap: 24px;
  padding: 0 22px 0 0;
  overflow: hidden;
  text-align: left;
  background: rgba(255,250,236,.42);
}

.journal-introduction .land-path-journal {
  grid-column: 1;
  grid-row: 1 / 4;
  min-height: 230px;
  border-width: 0 1px 0 0;
  box-shadow: inset 0 0 0 1px rgba(255,249,229,.16);
}

.journal-introduction h3,
.journal-introduction p,
.journal-introduction .journal-idea-trigger {
  grid-column: 2;
}

.journal-introduction h3 {
  margin-top: 20px;
}

.journal-introduction .journal-idea-trigger {
  justify-self: start;
  margin-bottom: 20px;
}

.land-path-journey {
  height: clamp(125px, 13vw, 180px);
  margin: 0 0 18px;
  background-position: center 57%;
  border-radius: 4px;
}

@media (max-width: 760px) {
  main#top {
    background:
      linear-gradient(180deg, rgba(238,229,205,.14), rgba(12,36,24,.54) 38%, rgba(7,27,18,.76)),
      url('assets/365-land-background.webp') 58% top / auto 100vh no-repeat;
  }

  body:before {
    background:
      linear-gradient(180deg, rgba(244,235,207,.14), rgba(13,42,28,.34) 24%, rgba(7,28,19,.64)),
      url('assets/365-land-background.webp') 58% top / auto 100vh no-repeat;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(248,239,211,.20), rgba(246,235,204,.06) 45%, rgba(8,28,19,.32)),
      url('assets/365-land-background.webp') 58% center / cover no-repeat;
  }

  .hero-copy {
    padding: 20px 13px 19px;
    background: linear-gradient(180deg, rgba(250,244,225,.78), rgba(250,244,225,.48));
  }

  .living-field {
    background: linear-gradient(180deg, rgba(20,53,36,.70), rgba(7,28,19,.82));
  }

  .journal-introduction {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0;
    padding: 0 14px 16px;
  }

  .journal-introduction .land-path-journal {
    grid-column: 1;
    grid-row: auto;
    min-height: 180px;
    margin: 0 -14px 16px;
    border-width: 0 0 1px;
  }

  .journal-introduction h3,
  .journal-introduction p,
  .journal-introduction .journal-idea-trigger {
    grid-column: 1;
  }

  .journal-introduction h3 {
    margin-top: 0;
    text-align: center;
  }

  .journal-introduction p {
    text-align: center;
  }

  .journal-introduction .journal-idea-trigger {
    justify-self: stretch;
    margin-bottom: 0;
  }

  .land-path-journey {
    height: 155px;
    margin-bottom: 14px;
    background-position: 44% center;
  }
}

@media (min-width: 761px) and (pointer: coarse) {
  main#top {
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  main#top {
    background-attachment: scroll;
  }
}


/* Fixed-landscape revision: one stationary background, scrolling foreground. */
body {
  background: #13271e;
}

body:before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(238,229,205,.16), rgba(12,36,24,.34) 42%, rgba(7,27,18,.54)),
    url('assets/365-land-background.webp') center 46% / cover no-repeat;
  transform: translateZ(0);
}

.site-header,
main#top {
  position: relative;
  z-index: 1;
}

main#top {
  background: transparent;
}

.hero {
  background: linear-gradient(180deg, rgba(247,239,216,.12), rgba(14,39,27,.20));
}

.living-field {
  background: linear-gradient(180deg, rgba(18,48,33,.62), rgba(9,31,21,.74));
}

@media (max-width: 760px) {
  body:before {
    z-index: 0;
    background:
      linear-gradient(180deg, rgba(238,229,205,.12), rgba(12,36,24,.36) 38%, rgba(7,27,18,.58)),
      url('assets/365-land-background.webp') 58% center / cover no-repeat;
  }

  main#top {
    background: transparent;
  }

  .hero {
    background: linear-gradient(180deg, rgba(248,239,211,.18), rgba(246,235,204,.04) 45%, rgba(8,28,19,.30));
  }

  .living-field {
    background: linear-gradient(180deg, rgba(20,53,36,.58), rgba(7,28,19,.72));
  }
}


/* Review revision: reveal more of the fixed land and make the Journey image functional. */
.living-field {
  background: linear-gradient(180deg, rgba(18,48,33,.36), rgba(9,31,21,.50));
}

a.land-path-journey {
  display: block;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

a.land-path-journey:hover,
a.land-path-journey:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: inset 0 0 0 1px rgba(255,249,229,.22), 0 8px 20px rgba(28,25,17,.28);
}

a.land-path-journey:focus-visible {
  outline: 3px solid #cfb66f;
  outline-offset: 3px;
}

#journey-list {
  scroll-margin-top: 118px;
}

@media (max-width: 760px) {
  .living-field {
    background: linear-gradient(180deg, rgba(20,53,36,.28), rgba(7,28,19,.44));
  }

  #journey-list {
    scroll-margin-top: 104px;
  }
}


/* Mobile hero typography revision: stronger hierarchy over the real landscape. */
@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(45px, 13vw, 50px);
    line-height: .94;
    color: #18291f;
    font-weight: 500;
    text-shadow: 0 1px 0 rgba(255,250,232,.72), 0 2px 7px rgba(255,250,232,.42);
  }

  .hero-copy p {
    font-size: 24px;
    line-height: 1.24;
    color: #1d3025;
    font-weight: 500;
    text-shadow: 0 1px 0 rgba(255,250,232,.68), 0 2px 6px rgba(255,250,232,.38);
  }

  .hero-copy small {
    font-size: 10px;
    line-height: 1.55;
    letter-spacing: .20em;
    color: #203127;
    font-weight: 600;
    text-shadow: 0 1px 0 rgba(255,250,232,.72), 0 2px 5px rgba(255,250,232,.45);
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 44px;
  }

  .hero-copy p {
    font-size: 22px;
  }
}


/* Second mobile hierarchy pass: larger, cleaner and darker without ghosting. */
@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(54px, 15.5vw, 59px);
    line-height: .92;
    color: #12251a;
    text-shadow: 0 1px 0 rgba(255,250,232,.38);
  }

  .hero-copy p {
    font-size: 29px;
    line-height: 1.20;
    color: #15291e;
    text-shadow: 0 1px 0 rgba(255,250,232,.34);
  }

  .hero-copy small {
    width: fit-content;
    max-width: 100%;
    margin: 11px auto 0;
    padding: 5px 8px;
    font-size: 12.5px;
    line-height: 1.45;
    letter-spacing: .18em;
    color: #102319;
    background: rgba(239,230,205,.28);
    text-shadow: none;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 51px;
  }

  .hero-copy p {
    font-size: 27px;
  }

  .hero-copy small {
    font-size: 12px;
  }
}


/* Sunlight revision: protect readability without dimming the land. */
@media (max-width: 760px) {
  body:before {
    background:
      linear-gradient(180deg, rgba(248,242,224,.10), rgba(17,43,30,.08) 45%, rgba(7,28,19,.16)),
      url('assets/365-land-background.webp') 58% center / cover no-repeat;
    filter: brightness(1.14) saturate(1.05);
  }

  .hero {
    background: linear-gradient(180deg, rgba(255,249,230,.14), rgba(255,249,230,.04) 52%, transparent 100%);
  }

  .hero-copy {
    background: linear-gradient(180deg, rgba(250,244,225,.34), rgba(250,244,225,.10));
    border-color: rgba(139,116,63,.18);
    box-shadow: 0 10px 30px rgba(35,31,18,.08);
  }

  .hero-copy small {
    background: rgba(248,241,220,.62);
    color: #102319;
  }
}


/* Mobile navigation revision: an opaque, readable control layer. */
@media (max-width: 760px) {
  .project-nav {
    z-index: 100;
    background: rgba(5, 16, 28, .985);
    border-top: 1px solid rgba(213,180,106,.24);
    border-bottom: 1px solid rgba(213,180,106,.42);
    box-shadow: 0 14px 28px rgba(0,0,0,.48);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .project-nav a {
    color: #f2ead7;
    text-shadow: none;
  }

  .project-nav a.active {
    color: #e0c579;
  }
}


/* Layering repair: keep the complete header and its open menu above the hero. */
.site-header {
  z-index: 100;
}

main#top {
  z-index: 1;
}

@media (max-width: 900px) {
  .project-nav.open {
    z-index: 110;
    opacity: 1;
    isolation: isolate;
    background: #071522;
  }
}


/* Keep the 365 header accessible while the journey scrolls beneath it. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}


/* Living needs list: seeds, knowledge, materials and equipment in one response layer. */
.journey-needs {
  grid-column: 1 / -1;
  scroll-margin-top: 112px;
}

.journey-needs .needs-intro {
  max-width: 780px;
  margin: 0 auto 1.4rem;
  color: #314638;
  text-align: center;
  line-height: 1.65;
}

.needs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.need-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  border: 1px solid rgba(105, 82, 38, .28);
  border-radius: 16px;
  background: rgba(249, 242, 220, .82);
  box-shadow: 0 8px 22px rgba(25, 34, 24, .13);
}

.need-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 12px;
  font: 500 10px/1.3 Montserrat, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.need-meta span {
  color: #536b59;
}

.need-meta em {
  padding: 5px 8px;
  border: 1px solid rgba(137, 103, 34, .35);
  border-radius: 999px;
  color: #6c531f;
  background: rgba(224, 197, 121, .18);
  font-style: normal;
  letter-spacing: .06em;
}

.need-card h3 {
  margin: 0 0 4px;
  color: #1c3326;
  font: 600 25px/1.05 "Cormorant Garamond", serif;
}

.need-card > small {
  min-height: 1.3em;
  color: #876b2e;
  font: 500 10px/1.4 Montserrat, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.need-card > p {
  flex: 1;
  margin: 13px 0 17px;
  color: #34463a;
  line-height: 1.55;
}

.need-card button {
  align-self: flex-start;
  border: 1px solid #80682f;
  border-radius: 999px;
  padding: 9px 13px;
  color: #f6ecd1;
  background: #183329;
  font: 600 11px/1 Montserrat, sans-serif;
  letter-spacing: .06em;
  cursor: pointer;
}

.need-card button:hover,
.need-card button:focus-visible {
  background: #244b3c;
  outline: 2px solid rgba(207, 182, 111, .55);
  outline-offset: 2px;
}

.needs-empty {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
}

@media (max-width: 980px) {
  .needs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .journey-needs {
    scroll-margin-top: 96px;
  }

  .journey-needs .needs-intro {
    text-align: left;
  }

  .needs-grid {
    grid-template-columns: 1fr;
  }

  .need-card {
    padding: 16px;
  }

  .need-card h3 {
    font-size: 24px;
  }
}


/* Compact 365 hub: preserve the counter, ladder and totals while layering the long content. */
.compact-dashboard {
  display: block;
  max-width: 1180px;
  padding-top: 18px;
}

.compact-dashboard .ladder {
  width: min(620px, 100%);
  min-height: 560px;
  margin: 0 auto 18px;
  grid-column: auto;
  grid-row: auto;
}

.hub-gateways {
  width: 100%;
  margin: 0 auto 18px;
  padding: 22px;
  scroll-margin-top: 112px;
}

.hub-gateways > p {
  max-width: 690px;
  margin: -3px auto 20px;
  text-align: center;
  color: #536055;
  line-height: 1.55;
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.gateway-card {
  position: relative;
  isolation: isolate;
  min-height: 190px;
  padding: 20px;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(216, 190, 117, .56);
  border-radius: 16px;
  color: #fff8e7;
  background-position: center;
  background-size: cover;
  box-shadow: 0 8px 22px rgba(10, 23, 16, .28);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.gateway-card:nth-child(1),
.gateway-card:nth-child(2),
.gateway-card:nth-child(3) {
  grid-column: span 2;
}

.gateway-card:nth-child(4),
.gateway-card:nth-child(5) {
  grid-column: span 3;
}

.gateway-card:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,19,14,.08), rgba(5,22,15,.88));
}

.gateway-card:hover,
.gateway-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(10, 23, 16, .38);
  outline: 3px solid rgba(218, 190, 112, .7);
  outline-offset: 2px;
}

.gateway-card small {
  color: #e0c579;
  text-transform: uppercase;
  letter-spacing: .12em;
  font: 600 10px/1.3 Montserrat, sans-serif;
}

.gateway-card strong {
  margin: 4px 0;
  font: 600 30px/1 "Cormorant Garamond", serif;
}

.gateway-card span {
  color: rgba(255,248,231,.88);
  font: 500 12px/1.45 Montserrat, sans-serif;
}

.gateway-week { background-image: url('assets/365-card-discovery.jpg'); }
.gateway-journeys { background-image: url('assets/365-land-path.webp'); }
.gateway-needs { background-image: url('assets/365-card-homestead.jpg'); }
.gateway-journal { background-image: url('assets/365-land-background.webp'); }
.gateway-transformation { background-image: url('assets/365-concept-hero.jpg'); }

.hub-panel {
  width: 100%;
  margin: 0 auto 18px;
  scroll-margin-top: 112px;
}

.hub-panel[hidden] {
  display: none !important;
}

.hub-panel-heading {
  margin-bottom: 16px;
}

.hub-panel-heading h2 {
  margin: 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 28px;
  font-weight: 500;
}

.hub-panel-heading h2 span {
  height: 1px;
  flex: 1;
  background: #8f845f;
}

.hub-back {
  border: 0;
  padding: 6px 0;
  color: #6d5928;
  background: transparent;
  font: 600 11px/1.2 Montserrat, sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
}

.journal-hub-panel {
  padding: 20px 28px 26px;
}

#transformation-overview {
  scroll-margin-top: 112px;
}

@media (max-width: 760px) {
  .compact-dashboard {
    padding-top: 0;
  }

  .compact-dashboard .ladder {
    width: 100%;
    min-height: 0;
    margin: 0 0 12px;
  }

  .hub-gateways {
    padding: 16px 12px;
    scroll-margin-top: 96px;
  }

  .hub-gateways > p {
    text-align: left;
  }

  .gateway-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gateway-card,
  .gateway-card:nth-child(1),
  .gateway-card:nth-child(2),
  .gateway-card:nth-child(3),
  .gateway-card:nth-child(4) {
    grid-column: span 1;
  }

  .gateway-card:nth-child(5) {
    grid-column: 1 / -1;
  }

  .gateway-card {
    min-height: 158px;
    padding: 14px;
  }

  .gateway-card strong {
    font-size: 23px;
  }

  .gateway-card span {
    font-size: 10px;
  }

  .hub-panel {
    scroll-margin-top: 96px;
  }

  .hub-panel-heading h2 {
    font-size: 22px;
  }

  .hub-panel-heading h2 span {
    display: none;
  }

  .journal-hub-panel {
    padding: 15px 12px 18px;
  }

  #transformation-overview {
    scroll-margin-top: 96px;
  }
}


/* Real-land desktop hero: show the live title and introduction instead of relying on baked artwork. */
@media (min-width: 761px) {
  .hero-copy {
    opacity: 1;
    pointer-events: none;
  }

  .hero-copy h1,
  .hero-copy .flourish,
  .hero-copy > p,
  .hero-copy > small {
    visibility: visible;
  }

  .hero-copy .day-pill {
    visibility: visible;
    position: static;
    min-width: 0;
  }
}
