/* Site integration for the original Jeju scene. */
.lyne-hero { --lyne-paper: #f6f3eb; --lyne-ink: #1e2923; }
.lyne-stage { height: 100vh; height: 100svh; }
.lyne-intro {
  inset: auto auto 7rem max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  width: min(24rem, calc(100% - 2 * var(--gutter)));
  padding: 1.25rem 1.5rem;
  background: #fcfaf4;
  border: 0;
  border-left: 2px solid var(--gold);
  border-radius: 0;
}
.lyne-intro h1, .lyne-hero[data-language="ko"] h1 {
  font-size: clamp(1.875rem, 3.1vw, 2.75rem);
  font-weight: 400;
  line-height: 1.09;
  letter-spacing: -.048em;
  text-wrap: balance;
}
.lyne-intro .lyne-summary { margin-top: .625rem; font-size: .9375rem; line-height: 1.5; }
.lyne-nav { inset-inline: var(--gutter); border-color: #3d433b80; }
.lyne-nav a { background: #fcfaf4; }
.lyne-nav a[aria-current] { background: #f5e6cd; color: #46301e; }
.lyne-nav a[aria-current] svg { color: var(--gold); }
.lyne-card { border-top: 2px solid var(--gold); }
.lyne-ask { color: var(--gold-deep); }
.lyne-hero :is(a, button):focus-visible { outline-color: var(--gold-deep); }
.lyne-card h2 { font-weight: 600; }

@media (max-width: 43.75em) {
  .lyne-intro { inset: auto 1rem 5.375rem; width: auto; max-width: 24rem; padding: 1rem; }
  .lyne-nav { inset: auto 1rem max(.75rem, env(safe-area-inset-bottom)); }
  .lyne-nav ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; }
  .lyne-nav ol a { width: 100%; min-height: 44px; padding: 0 4px; gap: 4px; }
  .lyne-nav ol span[aria-hidden] { display: inline; }
  .lyne-nav a[aria-current] .lyne-chapter-name, .lyne-nav .lyne-overview { display: none; }
  .lyne-card {
    inset: auto 1rem max(4.5rem, calc(env(safe-area-inset-bottom) + 3.75rem)) !important;
    width: auto;
    max-height: calc(100% - 9rem);
    overflow: auto;
  }
  .lyne-card::after { display: none; }
  /* The open card acts as a bottom sheet; the introduction steps aside under it. */
  .lyne-stage:has(.lyne-card:not([hidden])) .lyne-intro { visibility: hidden; }
}

@media (max-height: 30em) {
  .lyne-intro { bottom: 5.25rem; padding-block: .6rem; }
  .lyne-intro h1 { font-size: 1.625rem; }
  .lyne-nav { bottom: .625rem; }
}
