/* EaseAway home doorway — Quiet Wonder, 2026-08-17.
   Late-loaded and home-scoped for an easy one-file rollback. */

body.ea-home {
  --home-ink: #17281c;
  --home-moss: #294833;
  --home-cream: #f9f7f2;
  --home-sun: #d5a34b;
  --home-coral: #e8734a;
  background:
    radial-gradient(circle at 8% 28%, rgba(213,163,75,.09), transparent 25rem),
    linear-gradient(180deg, #f9f7f2 0%, #f5f0e6 100%);
  color: var(--home-ink);
}

body.ea-home.ea-shell-applied { padding-bottom: 0; }

body.ea-home.ea-shell-applied > .ea-page-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  min-height: 76px;
  padding: 15px clamp(18px, 4vw, 64px);
  color: var(--home-cream);
  background: linear-gradient(180deg, rgba(8,20,13,.6), transparent);
  border: 0;
  backdrop-filter: none;
}

body.ea-home .ea-page-header__back,
body.ea-home .ea-page-header__profile,
body.ea-home .ea-page-header__more,
body.ea-home .ea-page-header__signout {
  color: var(--home-cream);
  border-color: rgba(249,247,242,.4);
  background: rgba(12,27,18,.22);
  backdrop-filter: blur(12px);
}

body.ea-home .ea-page-header__logo {
  color: var(--home-cream);
  font-size: 1.25rem;
  letter-spacing: -.025em;
  text-shadow: 0 2px 18px rgba(0,0,0,.4);
}

@media (min-width: 861px) {
  body.ea-home.ea-shell-applied > .ea-bottom-nav[data-ea-injected="true"] {
    position: absolute;
    top: 15px;
    right: clamp(132px, 10vw, 180px);
    bottom: auto;
    left: auto;
    z-index: 95;
    width: auto;
    min-height: 46px;
    padding: 4px;
    gap: 1px;
    border: 1px solid rgba(249,247,242,.23);
    border-radius: 999px;
    background: rgba(12,27,18,.36);
    box-shadow: 0 12px 36px rgba(0,0,0,.14);
    backdrop-filter: blur(15px);
  }

  body.ea-home .ea-bottom-nav__item {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 6px;
    min-height: 36px;
    padding: 8px 11px;
    color: rgba(249,247,242,.78);
    font-size: .68rem;
    border-radius: 999px;
  }

  body.ea-home .ea-bottom-nav__item svg { width: 15px; height: 15px; }
  body.ea-home .ea-bottom-nav__item.is-active { color: var(--home-ink); background: var(--home-cream); }
}

body.ea-home .ea-door {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(940px, 100svh);
  padding: clamp(120px, 16vh, 176px) clamp(22px, 7vw, 110px) clamp(42px, 7vh, 72px);
  overflow: hidden;
  isolation: isolate;
  color: var(--home-cream);
}

body.ea-home .ea-door::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 44%;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 49.6%, rgba(249,247,242,.18) 49.8% 50%, transparent 50.2%),
    linear-gradient(180deg, transparent, rgba(5,18,12,.25));
  opacity: .72;
}

body.ea-home .ea-door .ea-g-hero__visual::before {
  background:
    linear-gradient(90deg, rgba(7,18,12,.82) 0%, rgba(7,18,12,.51) 47%, rgba(7,18,12,.07) 80%),
    linear-gradient(0deg, rgba(4,16,12,.67) 0%, transparent 58%);
}

body.ea-home .ea-door .ea-g-hero__content {
  width: min(1180px, 100%);
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

body.ea-home .ea-door .ea-g-hero__imprint,
body.ea-home .ea-door .ea-g-hero__eyebrow {
  margin: 0 0 10px;
  color: rgba(249,247,242,.78);
  font: 700 .68rem/1.2 'Inter', sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
}

body.ea-home .ea-door .ea-g-hero__eyebrow { color: #f2bd8f; }

body.ea-home .ea-door .ea-g-hero__title {
  max-width: 13ch;
  margin: 12px 0 0;
  color: var(--ea-cream);
  font: 700 clamp(3.4rem, 7.5vw, 7.9rem)/.88 'Fraunces', Georgia, serif;
  letter-spacing: -.055em;
  text-wrap: balance;
  text-shadow: 0 6px 35px rgba(0,0,0,.32);
}

body.ea-home .ea-door .ea-g-hero__title em {
  display: inline-block;
  color: #f1c4ad;
  font-weight: 400;
}

body.ea-home .ea-door .ea-g-hero__sub {
  max-width: 59ch;
  margin: 22px 0 28px;
  color: rgba(249,247,242,.88);
  font-size: clamp(.98rem, 1.3vw, 1.12rem);
  line-height: 1.65;
}

.ea-door__start {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, .85fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: end;
}

body.ea-home .ea-door .ea-origin {
  width: 100%;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(249,247,242,.3);
  border-radius: 18px;
  background: rgba(11,26,17,.34);
  box-shadow: 0 20px 50px rgba(0,0,0,.14);
  backdrop-filter: blur(15px);
}

body.ea-home .ea-door .ea-origin__controls {
  grid-template-columns: minmax(180px, 1fr) 132px auto;
  gap: 8px;
}

body.ea-home .ea-door .ea-origin__locate { grid-column: 1 / -1; justify-self: start; min-height: 36px; padding: 0 4px; border: 0; background: transparent; }
body.ea-home .ea-door .ea-origin__input,
body.ea-home .ea-door .ea-origin__range,
body.ea-home .ea-door .ea-origin__submit { min-height: 52px; border-radius: 10px; }
body.ea-home .ea-door .ea-origin__submit { padding: 0 20px; box-shadow: 0 8px 22px rgba(232,115,74,.22); }
body.ea-home .ea-door .ea-origin__status { margin-bottom: 0; }

.ea-door__paths {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(249,247,242,.28);
}

.ea-door__paths a {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  padding: 13px 3px;
  color: var(--home-cream);
  border-bottom: 1px solid rgba(249,247,242,.28);
  transition: padding-left .18s ease, background .18s ease;
}

.ea-door__paths a:hover { padding-left: 10px; background: rgba(249,247,242,.07); }
.ea-door__paths a:focus-visible { outline: 3px solid #f1c4ad; outline-offset: 4px; }
.ea-door__paths span { grid-row: 1 / 3; color: #f2bd8f; font: 700 .68rem/1.6 'Inter', sans-serif; letter-spacing: .12em; }
.ea-door__paths strong { font: 700 1.12rem/1.2 'Fraunces', Georgia, serif; }
.ea-door__paths small { margin-top: 3px; color: rgba(249,247,242,.68); font-size: .72rem; }

.ea-door__photo-note {
  position: absolute;
  right: 26px;
  bottom: 24px;
  margin: 0;
  color: rgba(249,247,242,.6);
  font-size: .63rem;
  letter-spacing: .08em;
  writing-mode: vertical-rl;
}

.ea-wayfinder {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(78px, 11vw, 150px) 24px clamp(64px, 9vw, 116px);
}

.ea-wayfinder__heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 32px; align-items: end; margin-bottom: 38px; }
.ea-wayfinder__heading .ea-chapter-marker { grid-column: 1 / -1; }
.ea-wayfinder__heading h2 { max-width: 15ch; margin: 0; color: var(--home-ink); font: 700 clamp(2.5rem, 5.2vw, 5.5rem)/.96 'Fraunces', Georgia, serif; letter-spacing: -.045em; text-wrap: balance; }
.ea-wayfinder__heading p { max-width: 38ch; margin: 0 0 8px; color: #526459; font-size: 1rem; line-height: 1.7; }

.ea-wayfinder__grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  grid-template-rows: repeat(2, minmax(265px, 34vw));
  gap: 16px;
}

.ea-wayfinder-card { position: relative; min-height: 265px; overflow: hidden; border-radius: 24px; color: var(--home-cream); box-shadow: 0 22px 60px rgba(23,40,28,.13); isolation: isolate; }
.ea-wayfinder-card--wide { grid-row: 1 / 3; }
.ea-wayfinder-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.ea-wayfinder-card__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,20,13,.85), rgba(7,20,13,.03) 65%); }
.ea-wayfinder-card__copy { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; padding: clamp(22px, 4vw, 46px); }
.ea-wayfinder-card__copy small { margin-bottom: 6px; color: #f1c4ad; font-size: .66rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.ea-wayfinder-card__copy strong { max-width: 13ch; font: 700 clamp(1.7rem, 3vw, 3.4rem)/.98 'Fraunces', Georgia, serif; letter-spacing: -.025em; }
.ea-wayfinder-card__copy em { max-width: 42ch; margin-top: 10px; color: rgba(249,247,242,.78); font: 500 .78rem/1.5 'Inter', sans-serif; }
.ea-wayfinder-card:hover img { transform: scale(1.035); }
.ea-wayfinder-card:focus-visible { outline: 4px solid var(--home-coral); outline-offset: 5px; }

body.ea-home .ea-wayfinder .ea-stat-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px 12px;
  margin: 42px 0 0;
  padding: 22px 0 0;
  color: #405847;
  border-top: 1px solid #ded3bc;
  font: italic 1rem/1.5 'Fraunces', Georgia, serif;
}

body.ea-home .ea-wayfinder .ea-stat-line > span:first-child { flex-basis: 100%; color: #8b713d; font: 800 .64rem/1 'Inter', sans-serif; letter-spacing: .18em; text-transform: uppercase; }
body.ea-home .ea-wayfinder .ea-stat-line strong { color: var(--home-ink); font-size: 1.2rem; }
body.ea-home .ea-wayfinder .ea-stat-line small { flex-basis: 100%; margin-top: 2px; color: #708075; font: .7rem/1.4 'Inter', sans-serif; }

body.ea-home .ea-field-guide { border-top: 1px solid #ded3bc; }

@media (max-width: 1080px) and (min-width: 861px) {
  body.ea-home .ea-bottom-nav__item { padding-inline: 8px; }
  body.ea-home .ea-bottom-nav__item span { display: none; }
  body.ea-home.ea-shell-applied > .ea-bottom-nav[data-ea-injected="true"] { right: 130px; }
}

@media (max-width: 860px) {
  body.ea-home.ea-shell-applied { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  body.ea-home.ea-shell-applied > .ea-page-header { position: absolute; min-height: 60px; padding: 9px 14px; }
  body.ea-home .ea-door { min-height: auto; padding: 104px 20px 38px; }
  body.ea-home .ea-door .ea-g-hero__content { padding: 0; }
  body.ea-home .ea-door .ea-g-hero__title { font-size: clamp(3rem, 11vw, 5.2rem); }
  .ea-door__start { grid-template-columns: 1fr; gap: 24px; }
  body.ea-home .ea-door .ea-origin__controls { grid-template-columns: 1fr 132px; }
  body.ea-home .ea-door .ea-origin__input { grid-column: 1 / -1; }
  body.ea-home .ea-door .ea-origin__submit { grid-column: 1 / -1; }
  .ea-door__paths { margin-top: 2px; }
  .ea-door__photo-note { display: none; }
  .ea-wayfinder__heading { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body.ea-home .ea-door { min-height: 820px; padding: 84px 16px 28px; align-items: end; }
  body.ea-home .ea-door .ea-g-hero__visual::before { background: linear-gradient(0deg, rgba(7,18,12,.9) 0%, rgba(7,18,12,.55) 74%, rgba(7,18,12,.18) 100%); }
  body.ea-home .ea-door .ea-g-hero__imprint { display: none; }
  body.ea-home .ea-door .ea-g-hero__title { font-size: clamp(2.65rem, 13vw, 4rem); line-height: .94; }
  body.ea-home .ea-door .ea-g-hero__sub { margin: 16px 0 20px; font-size: .88rem; }
  body.ea-home .ea-door .ea-origin { padding: 13px; border-radius: 14px; }
  body.ea-home .ea-door .ea-origin__controls { grid-template-columns: 1fr; }
  body.ea-home .ea-door .ea-origin__input,
  body.ea-home .ea-door .ea-origin__range,
  body.ea-home .ea-door .ea-origin__submit { grid-column: auto; width: 100%; min-height: 46px; }
  body.ea-home .ea-door .ea-origin__locate { grid-column: auto; }
  .ea-door__paths a { padding-block: 10px; }
  .ea-wayfinder { padding: 68px 16px 58px; }
  .ea-wayfinder__heading { margin-bottom: 26px; }
  .ea-wayfinder__heading h2 { font-size: 2.75rem; }
  .ea-wayfinder__grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, minmax(310px, 66vh)); }
  .ea-wayfinder-card--wide { grid-row: auto; }
  .ea-wayfinder-card { border-radius: 18px; }
  .ea-wayfinder-card__copy { padding: 24px; }
  .ea-wayfinder-card__copy strong { font-size: 2rem; }
  body.ea-home .ea-wayfinder .ea-stat-line { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ea-wayfinder-card img,
  .ea-door__paths a { transition: none; }
}
