/* The story opens as a two-page paper spread from the bottle's front label. */
#story {
  --sheet-paper: #f0ece3;
  --sheet-ink: #1d211e;
  --sheet-cobalt: #243f9d;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  background: var(--sheet-paper);
  color: var(--sheet-ink);
  overflow: auto;
  overscroll-behavior: contain;
  color-scheme: light;
}
#story::backdrop { background: transparent; backdrop-filter: none; }
.sheet-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 65px;
  padding: 9px max(5vw, 22px);
  border-bottom: 1px solid #c5beaf;
  color: var(--sheet-cobalt);
}
.sheet-signature {
  font: 400 clamp(18px, 1.5vw, 25px)/1 var(--serif);
  letter-spacing: .075em;
}
#story #story-close {
  position: static;
  background: none;
  width: auto;
  height: auto;
  min-height: 44px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  color: var(--sheet-cobalt);
  font: 500 13px/1.1 var(--sans);
}
#story-close i { width: 20px; height: 1px; background: currentColor; transform: none; }
#story-close i::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 1px 0 0 1px;
  background: transparent;
  transform: translate(1px, -3px) rotate(-45deg);
}
#story .story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  grid-template-areas: 'copy art';
  gap: clamp(24px, 6vw, 110px);
  align-items: center;
  width: min(100%, 1560px);
  min-height: calc(100% - 65px);
  margin: 0 auto;
  padding: clamp(26px, 5vh, 68px) clamp(28px, 7vw, 120px);
}
#story .story-copy { grid-area: copy; padding: 0; min-width: 0; }
#story .story-family {
  margin: 14px 0 0;
  color: #56584f;
  font: 450 clamp(12px, 1.04vw, 15px)/1.4 var(--sans);
}
#story .story-copy h2 {
  color: var(--sheet-cobalt);
  text-transform: none;
  font: 400 clamp(48px, 7.15vw, 116px)/.93 var(--serif);
  letter-spacing: -.038em;
  text-wrap: balance;
  max-width: 10.4em;
}
#story .lead { max-width: 31em; margin: clamp(16px, 2.8vh, 30px) 0 13px; font: italic 400 clamp(21px, 1.8vw, 29px)/1.22 var(--serif); }
#story .story-prose p { margin: 6px 0; max-width: 52ch; color: var(--sheet-ink); font: 400 clamp(15px, 1.08vw, 17px)/1.58 var(--sans); }
#story .pyramid {
  display: grid;
  grid-template-columns: minmax(5em,.27fr) 1fr;
  gap: .55em 1em;
  max-width: 54ch;
  margin: clamp(18px, 2.8vh, 30px) 0 22px;
  padding: 13px 0;
  border-block: 1px solid #aaa89b;
  font: 400 14px/1.37 var(--sans);
}
#story .pyramid dt { color: #595b51; }
#story .pyramid dd { margin: 0; }
#story #story-order {
  min-height: 46px; border: 1px solid var(--sheet-cobalt); border-radius: 0;
  padding: 12px 23px; background: var(--sheet-cobalt); color: #fff;
}
#story #story-order:hover { background: #192f83; }
#story .story-art {
  grid-area: art;
  align-self: center;
  justify-self: center;
  position: relative;
  min-height: 0;
  width: min(100%, 48svh, 510px);
  height: auto;
  aspect-ratio: 2 / 3;
  background: transparent;
  overflow: hidden;
}
#story .story-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
#story button:focus-visible { outline: 2px solid var(--sheet-cobalt); outline-offset: 4px; }
@media (max-width: 760px) {
  #story .sheet-masthead { min-height: 55px; position: sticky; top: 0; z-index: 3; background: var(--sheet-paper); padding: 4px 20px; }
  #story .story-layout {
    grid-template-columns: 1fr;
    grid-template-areas: 'art' 'copy';
    gap: 23px; padding: 20px 20px max(30px,env(safe-area-inset-bottom));
  }
  #story .story-art { width: 100%; height: clamp(150px, 30svh, 300px); aspect-ratio: auto; }
  #story .story-art img { object-position: center 45%; }
  #story .story-copy h2 { font-size: clamp(43px, 12vw, 76px); }
  #story .story-family { margin-top: 9px; }
  #story .lead { margin-top: 20px; }
}
@media (max-height: 580px) and (min-width: 761px) {
  #story .story-layout { align-items: start; }
  #story .story-art { width: min(90%, 340px); }
  #story .story-copy h2 { font-size: clamp(44px, 6vw, 85px); }
}
