/* The retail page owns the header, footer and scrolling viewport. */
:root {
  --brand-ink: #073c50;
  --brand-teal: #00627b;
  --brand-paper: #faf8ef;
  --brand-leaf: #c7d494;
}
body {
  min-height: 0;
}
body .header-inner {
  min-height: 2.8rem;
  justify-content: flex-end;
}
.header-inner nav {
  margin-left: auto;
}
.topbar {
  background: var(--brand-ink);
}
body:has(#studio-cover:not([hidden])) .topbar {
  background: linear-gradient(180deg, #0327349c, transparent);
}
.film-layout {
  min-height: var(--stage-height, 100svh);
  padding-block: clamp(5rem, 10vw, 8rem) clamp(1.6rem, 4vw, 4rem);
}
#experience {
  min-height: calc(var(--stage-height, 100svh) - 2.8rem);
}
body:has(#experience:not([hidden])) .editorial {
  max-height: min(58rem, var(--stage-height, 100svh));
}
.type-tunnel {
  background: var(--brand-teal);
  color: #063a4b;
}
.studio-scene {
  --mint: var(--brand-leaf);
}
.cover-button,
.start-card .cover-button {
  background: var(--brand-ink);
  color: var(--brand-paper);
}
.start-card .cover-button:hover {
  background: var(--brand-teal);
}
#area-picker,
.result-pending {
  background: var(--brand-paper);
  color: var(--brand-ink);
}
.area-choice-inner {
  max-width: 68rem;
  margin: auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
}
.area-choice-inner h1,
.result-pending h1 {
  font: 500 clamp(2.7rem, 6vw, 6rem) / 1 var(--serif, Georgia);
  margin: 0 0 1.8rem;
}
.area-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 2vw, 1.75rem);
  margin-bottom: 1.6rem;
}
.area-cards button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand-ink);
  text-align: left;
  font: 500 clamp(1.65rem, 3vw, 3rem) / 1.35 var(--serif, Georgia);
  cursor: pointer;
}
.area-cards img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  margin-bottom: 0.65rem;
  border-radius: 0.35rem;
}
.area-cards button span {
  font: 400 0.6em var(--sans, sans-serif);
  float: right;
  padding: 0.35em;
}
.area-cards button:hover {
  color: var(--brand-teal);
}
.result-pending {
  min-height: 24rem;
  padding: clamp(2rem, 8vw, 8rem);
}
.result-pending button {
  margin: 1rem 1rem 0 0;
}
.routine-gap {
  min-height: 12rem;
  background: #edf1e7;
}
.item-shopping button.formula-shop {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
:is(h1, h2)[tabindex="-1"]:focus {
  outline: none;
}
@media (max-width: 760px) {
  #experience.map-step .choice-photo[data-live-photo] {
    display: none;
  }
}
@media (max-width: 600px) {
  .area-cards {
    grid-template-columns: 1fr;
  }
  .area-cards button {
    display: grid;
    grid-template-columns: 6rem 1fr auto;
    gap: 1rem;
    align-items: center;
  }
  .area-cards img {
    aspect-ratio: 1.4;
    margin: 0;
  }
}
@media (max-height: 550px) {
  dialog[open] {
    overflow-y: auto;
  }
}

/* Leave room for descenders above the next line of display type. */
#experience .photo-copy h1,
.v2-intro h1,
.cover-heading h1,
.film-heading h1,
.quiz h2,
.reveal-copy h2,
.result-intro h1,
.ritual-lead h1,
.review-heading h1 {
  line-height: 1.08;
}
