/* Instant prints on lilac paper. The shared gallery loads this theme only here. */
:root {
  --brand: #302039;
  --brand-rgb: 48 32 57;
  --brand-2: #594066;
  --brand-2-rgb: 89 64 102;
  --accent: #913559;
  --highlight: #ffd29a;
  --muted: #c6b9cf;
  --muted-rgb: 198 185 207;
  --surface: #eee6f1;
  --field: #fffdf9;
  --page: #faf7f9;
  --on-brand: #fffaf6;
  --text: #332736;
  --text-2: #645568;
  --shade-rgb: 49 29 55;
  --scrim-rgb: 32 19 36;
  --night: #1d1422;
  --night-rgb: 29 20 34;
  --night-2: #34273b;
  --head: "Montserrat", "Segoe UI", sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  --print-label: ui-monospace, Consolas, "Liberation Mono", monospace;
  --film-stripe: linear-gradient(90deg, #ffbc70 0 20%, #ed7a64 20% 40%, #be537e 40% 60%, #936cae 60% 80%, #727fbc 80%);
}

.masthead__district {
  letter-spacing: 0.015em;
  text-transform: none;
}
.masthead :focus-visible { outline-color: var(--highlight); }
.switch__menu :focus-visible { outline-color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 36rem) minmax(0, 25rem);
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  padding: clamp(3rem, 6vw, 6rem) max(var(--gutter), env(safe-area-inset-right)) clamp(3.25rem, 6vw, 6rem) max(var(--gutter), env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background-color: #eee5ee;
  background-image: radial-gradient(ellipse at 76% 48%, #dbccdf, transparent 49%),
                    linear-gradient(112deg, #f7f1f4, transparent 72%);
  color: var(--text);
  text-align: start;
}

.hero::after {
  inset: 0 auto auto 0;
  width: 100%;
  height: 0.28rem;
  background: var(--film-stripe);
}

.hero__inner {
  grid-area: 1 / 1;
  justify-items: start;
  width: 100%;
  margin: 0;
}

.hero__backdrop {
  position: relative;
  grid-area: 1 / 2;
  inset: auto;
  z-index: 0;
  width: 100%;
  justify-self: center;
  padding: 3.3% 3.3% 13%;
  background: var(--field);
  transform: rotate(4deg);
  box-shadow: 0 1px 2px #30203940, 0 1.15rem 1.8rem -0.7rem #44254862;
}

.hero__backdrop picture,
.hero__backdrop img {
  display: block;
  width: 100%;
  height: auto;
}

.hero__backdrop img {
  filter: none;
  object-fit: contain;
}

.hero__backdrop::after {
  content: "";
  position: absolute;
  right: 6%;
  bottom: 5%;
  width: 17%;
  height: 0.24rem;
  background: var(--film-stripe);
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.8rem, 5.6vw, 5.5rem);
  line-height: 0.99;
  letter-spacing: -0.065em;
  color: var(--brand);
}

.hero__title span {
  order: -1;
  margin: 0;
  font: 700 0.8rem/1.4 var(--print-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__lead { max-width: 44ch; }
.finder { max-width: 28rem; }
.finder__label { text-align: start; }
.finder__row {
  border: 1px solid #a28da5;
  border-radius: 0.3rem;
}
.finder__row:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.finder .button--primary { background: var(--brand); color: var(--on-brand); }
.finder .button--primary:hover { background: var(--brand-2); }
.finder__results a, .finder__results p {
  background: var(--field);
  color: var(--text);
  border: 1px solid var(--line);
}
.finder__results a:hover, .finder__results a:focus-visible {
  background: var(--brand);
  color: var(--on-brand);
}
.hero__facts, .hero__ask { color: var(--text-2); }
.hero__facts, .feature__date, .card__date, .album-hero__date {
  font-family: var(--print-label);
}

.feature__cover, .card__image {
  border: solid var(--field);
  border-width: 0.5rem 0.5rem 0.95rem;
  border-radius: 0;
  box-shadow: 0 0 0 1px var(--line), 0 0.35rem 0.8rem -0.4rem #30203955;
}

.feature__title, .card__title, .album-hero__title { letter-spacing: -0.035em; }
.album-hero {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 40rem);
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2rem, 4vw, 3.5rem) var(--gutter);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.album-hero__image {
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  border: solid var(--field);
  border-width: 0.5rem 0.5rem 1.35rem;
  background-color: var(--field);
  box-shadow: 0 0.35rem 0.75rem #3020392e;
  transform: rotate(-2deg);
}
.album-hero__image img { background: var(--field); object-fit: contain; }
.album-hero__text { display: block; padding: 0; }
.album-hero__aside { margin-top: 0.85rem; }
.single__frame {
  border-radius: 0;
  box-shadow: 0 0 0 0.4rem var(--field), 0 0.45rem 1rem #30203935;
}

@media (max-width: 46rem) {
  .masthead {
    display: grid;
    gap: 0.2rem;
    padding-block: 0.8rem 0.4rem;
  }
  .masthead__words {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.9rem;
  }
  .switch { position: static; }
  .switch__menu { left: 0; }
  .masthead__links { display: flex; margin-inline-start: 0; flex-wrap: wrap; gap: 0.25rem 1.2rem; }
  .hero {
    grid-template-columns: minmax(0, 1fr) clamp(5.5rem, 29vw, 13rem);
    gap: 0 1rem;
    padding-block: 2.4rem 2.7rem;
  }
  .hero__inner { display: contents; }
  .hero__backdrop {
    grid-area: 1 / 2;
    width: 92%;
    padding: 4% 4% 13%;
  }
  .hero__title { grid-area: 1 / 1; font-size: clamp(2.05rem, 9.5vw, 3.75rem); }
  .hero__title span { font-size: 0.7rem; }
  .hero__lead, .finder, .hero__facts, .hero__ask { grid-column: 1 / -1; }
  .hero__lead { margin-top: 1.4rem; }
  .finder .button--primary { padding-inline: 0.95rem; }
  .album-hero { display: flow-root; }
  .album-hero__image {
    float: inline-end;
    width: clamp(5rem, 26vw, 10rem);
    margin: 0 0.2rem 0.75rem 1rem;
  }
}
