/* A readable foreground for the open woodland path. */
body:has(.ih-opening) > .ex-header {
  position: relative;
  max-width: 1600px;
  min-height: 92px;
  margin-inline: auto;
  padding: 22px clamp(24px, 5.5vw, 88px);
  align-items: center;
}
body:has(.ih-opening) .ex-sky {
  background: linear-gradient(90deg, #091e19c9 0%, #13291e99 28%, #192e1924 64%, transparent 82%),
              linear-gradient(180deg, #08170e55, transparent 22%, transparent 55%, #0d231de3);
}
.ih-quick-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.3vw, 38px);
  margin-right: auto;
  margin-left: clamp(28px, 4vw, 64px);
}
.ih-quick-nav a {
  padding-block: 13px;
  color: #fff9ec;
  font-size: 13px;
  text-shadow: 0 1px 9px #16261c;
}
.ih-quick-nav a:hover, .ih-opening-language a:hover { text-decoration: underline; text-underline-offset: .35em; }

.ex-luminous-home .ex-hero.ih-opening {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: clamp(44px, 7svh, 82px);
  min-height: calc(100svh - 92px);
  padding: clamp(40px, 7svh, 90px) clamp(24px, 5.5vw, 88px) clamp(26px, 4svh, 50px);
}
.ex-luminous-home:has(.ex-owner-preview) .ex-hero.ih-opening { min-height: calc(100svh - 138px); }
.ih-opening .ih-opening-copy { width: min(100%, 46rem); }
.ih-opening .ih-opening-copy > .ex-kicker {
  display: flex;
  align-items: center;
  gap: .95rem;
  margin: 0 0 1.25rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: #f1e6c6;
}
.ih-opening-copy > .ex-kicker::before { content: ''; width: 2.8rem; height: 1px; background: #e2c78c; }
.ex-luminous-home .ih-opening h1 {
  margin: 0 0 1.3rem;
  font-size: clamp(5rem, 8.3vw, 8rem);
  line-height: .9;
  letter-spacing: -.037em;
}
.ex-luminous-home .ih-opening h1 em { color: #f3dfb3; }
.ex-luminous-home .ih-opening-copy > p:not(.ex-kicker) {
  max-width: 47ch;
  margin: 0 0 1.65rem;
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.65;
  color: #fff9eb;
}
.ih-opening-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.65rem; }
.ih-opening-actions .ex-button { background: #f4e9ce; border-color: #f7eed7; font-size: .875rem; gap: 1.75rem; }
.ih-opening-actions .ih-topic-link {
  display: inline-flex; gap: .65rem; align-items: center; min-height: 44px; font-size: .875rem;
  text-decoration: underline; text-underline-offset: .4em; text-decoration-color: #e9dbb9aa;
}
.ih-opening-foot {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .8rem clamp(25px, 4vw, 60px);
  padding-top: 1.1rem; border-top: 1px solid #ede1bf66;
  text-shadow: 0 1px 12px #10241a;
}
.ih-opening-author { display: inline-flex; align-items: center; gap: .9rem; color: #fff7e5; }
.ih-opening-author img {
  width: 58px; height: 64px; object-fit: cover; border-radius: 30px 30px 4px 4px;
  border: 1px solid #f7e8c488; background: #b8b4ac;
}
.ih-opening-author small, .ih-opening-language > span { display: block; color: #efe4cb; font-size: .76rem; }
.ih-opening-author strong { display: block; font: 400 clamp(1.45rem, 2vw, 1.95rem)/1.13 var(--ex-serif); margin-top: .15rem; }
.ih-author-arrow { font-size: 1rem; align-self: flex-end; padding-bottom: 5px; }
.ih-opening-language { padding-left: clamp(20px, 3vw, 42px); border-left: 1px solid #d5c9a76b; }
.ih-opening-language a { display: inline-flex; align-items: center; gap: .45em; min-height: 30px; font-size: .86rem; color: #fff9e9; }
.ih-opening-map { min-width: 0; margin-left: auto; }
.ih-opening-map .journey-launch { justify-content: flex-end; margin: 0; gap: .5rem; }
.ih-opening-map .journey-launch-button {
  min-height: 44px; border: 0; padding: 4px 0; gap: .65rem;
  background: transparent; box-shadow: none; text-shadow: 0 1px 10px #13261b;
}
.ih-opening-map .journey-launch-button strong { font: 500 .86rem/1.4 var(--ex-sans); }
.ih-opening-map .journey-launch-orbit { width: 32px; height: 32px; font-size: 20px; }
.ih-opening-map .journey-launch-button > span:last-child { margin: 0; font-size: 15px; }
.ih-opening-map .journey-return { max-width: 20ch; }
.ih-opening :is(a,button):focus-visible, .ih-quick-nav a:focus-visible { outline: 2px solid #ffdf96; outline-offset: 5px; }
body:has(.journey-ui[data-journey-quiet=true]) .nx-fit-link { visibility: hidden; pointer-events: none; }
@media(max-width: 950px) {
  .ih-quick-nav { display: none; }
}
@media(max-width: 700px) {
  body:has(.ih-opening) > .ex-header { min-height: 72px; padding: 18px 5.5vw; }
  .ex-luminous-home .ex-hero.ih-opening, .ex-luminous-home:has(.ex-owner-preview) .ex-hero.ih-opening {
    min-height: auto; gap: 2.25rem; padding: clamp(48px, 10svh, 100px) 6vw 2rem;
  }
  .ex-luminous-home .ih-opening h1 { font-size: clamp(3.4rem, 15.3vw, 6rem); line-height: .94; }
  .ih-opening .ih-opening-copy > .ex-kicker { font-size: .62rem; gap: .65rem; }
  .ih-opening-copy > .ex-kicker::before { width: 1.65rem; }
  .ih-opening-actions { gap: .35rem 1.2rem; }
  .ih-opening-foot { column-gap: 1.5rem; row-gap: 1rem; }
  .ih-opening-author img { width: 45px; height: 51px; }
  .ih-opening-language { padding-left: 0; border: 0; }
  .ih-opening-language a { min-height: 40px; }
  .ih-opening-map { margin-left: 0; }
  .ih-opening-map .journey-launch { justify-content: flex-start; }
  body:has(.ih-opening) .ex-sky {
    background: linear-gradient(90deg, #10271dde, #172f2366 80%), linear-gradient(0deg, #10271deb, transparent 80%);
  }
}
@media(max-width: 380px) {
  .ih-opening-actions .ex-button { gap: .85rem; font-size: .82rem; padding: .85rem 1.05rem; }
  .ih-opening-foot { gap: .6rem 1rem; }
}
@media(prefers-reduced-motion:reduce) {
  .ih-opening a, .ih-opening button { transition: none; }
}
