/* The floating header: a plum bar with soft corners over the film, pinned and more opaque once the page moves.
   It sticks, and its negative margin lets the first section slide underneath it. The preview wraps each section in a
   div and the live site does not, so both the wrapper and the bar are told to stick. */
[data-component-name="header"], .site-header { position: sticky; top: var(--header-top); z-index: 30; }
.site-header {
  height: var(--header); width: min(1170px, 100% - 18px); margin: var(--header-top) auto calc(-1 * (var(--header) + var(--header-top)));
  color: var(--ivory);
}
.site-header__bar {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 5px;
  height: var(--header); padding: 5px; border-radius: 16px;
  isolation: isolate; border: 1px solid transparent; transition: color 320ms ease;
}
/* the bar's surface is its own layer behind the content: a blur inside a blurred parent would only see that
   parent, and the phone menu has to blur the page itself */
.site-header__bar::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; pointer-events: none;
  background: rgb(36 23 35 / 0.9); border: 1px solid rgb(248 224 237 / 0.26);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 14px 32px -20px #000;
  transition: background-color 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}

/* Once the page moves the bar turns to glass: the page shows through, blurred and a little richer, under a thin
   bright rim. The glass takes its tone from what is behind it: clear and dark over the films and photographs
   (ivory lettering), frosted and light over the paper sections (plum lettering). */
.site-header[data-condensed] .site-header__bar::before {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.13), rgb(255 255 255 / 0.03) 55%), rgb(36 23 35 / 0.4);
  border-color: rgb(255 255 255 / 0.2);
  /* the dark glass dims what shows through, so ivory lettering holds even over the sunrise */
  -webkit-backdrop-filter: blur(22px) saturate(175%) brightness(0.72); backdrop-filter: blur(22px) saturate(175%) brightness(0.72);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), inset 0 -1px 0 rgb(255 255 255 / 0.07), 0 12px 30px -16px rgb(0 0 0 / 0.55);
}
.site-header[data-condensed][data-tone="light"] .site-header__bar { color: var(--ink); }
.site-header[data-condensed][data-tone="light"] .site-header__bar::before {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.12) 60%), rgb(255 249 241 / 0.5);
  border-color: rgb(255 255 255 / 0.75);
  -webkit-backdrop-filter: blur(22px) saturate(175%) brightness(1.08); backdrop-filter: blur(22px) saturate(175%) brightness(1.08);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.95), inset 0 -1px 0 rgb(255 255 255 / 0.35), 0 12px 30px -18px rgb(70 36 58 / 0.45);
}
.site-header[data-tone="light"][data-condensed] .site-nav a, .site-header[data-tone="light"][data-condensed] .site-menu a { color: var(--ink); }
.site-header[data-tone="light"][data-condensed] .step, .site-header[data-tone="light"][data-condensed] .lang { color: var(--ink); background: rgb(255 255 255 / 0.42); border-color: rgb(43 25 40 / 0.2); }
.site-header[data-tone="light"][data-condensed] :focus-visible { outline-color: var(--magenta); }
@media (hover: hover) and (pointer: fine) {
  .site-header[data-tone="light"][data-condensed] .site-nav a:hover, .site-header[data-tone="light"][data-condensed] .site-menu a:hover { background: rgb(43 25 40 / 0.08); color: var(--ink); }
  .site-header[data-tone="light"][data-condensed] .step:hover:not(:disabled), .site-header[data-tone="light"][data-condensed] .lang:hover { background: rgb(255 255 255 / 0.8); border-color: #bc719d; color: var(--ink); }
}
/* the round buttons become glass too */
.site-header[data-condensed]:not([data-tone="light"]) .step, .site-header[data-condensed]:not([data-tone="light"]) .lang { background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.28); }
@media (hover: hover) and (pointer: fine) {
  .site-header[data-condensed]:not([data-tone="light"]) .step:hover:not(:disabled), .site-header[data-condensed]:not([data-tone="light"]) .lang:hover { background: rgb(255 255 255 / 0.22); border-color: var(--pink); }
}
/* the wordmark trades its ivory lettering for the plum one with the glass */
.logo { position: relative; }
.logo img { transition: opacity 320ms ease; }
.logo .logo__ink { position: absolute; inset-block: 0; inset-inline-start: 0; margin-block: auto; opacity: 0; }
.site-header[data-tone="light"][data-condensed] .logo img:not(.logo__ink) { opacity: 0; }
.site-header[data-tone="light"][data-condensed] .logo .logo__ink { opacity: 1; }
/* the phone menu is the same glass, a little denser so its links stay easy to read */
.site-header[data-condensed] .site-menu {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.02)), rgb(36 23 35 / 0.66); border-color: rgb(255 255 255 / 0.2);
  -webkit-backdrop-filter: blur(26px) saturate(175%) brightness(0.7); backdrop-filter: blur(26px) saturate(175%) brightness(0.7);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 22px 38px -10px rgb(25 15 25 / 0.5);
}
.site-header[data-condensed][data-tone="light"] .site-menu { background: linear-gradient(180deg, rgb(255 255 255 / 0.55), rgb(255 255 255 / 0.2)), rgb(255 249 241 / 0.72); border-color: rgb(255 255 255 / 0.8); -webkit-backdrop-filter: blur(26px) saturate(175%) brightness(1.15); backdrop-filter: blur(26px) saturate(175%) brightness(1.15); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.95), 0 22px 38px -14px rgb(70 36 58 / 0.4); }
/* browsers that cannot blur what is behind get a denser tint instead of unreadable lettering */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header[data-condensed] .site-header__bar::before, .site-header[data-condensed] .site-menu { background: rgb(36 23 35 / 0.94); }
  .site-header[data-condensed][data-tone="light"] .site-header__bar::before, .site-header[data-condensed][data-tone="light"] .site-menu { background: rgb(255 249 241 / 0.95); }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header[data-condensed] .site-header__bar::before, .site-header[data-condensed] .site-menu { background: rgb(36 23 35 / 0.96); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header[data-condensed][data-tone="light"] .site-header__bar::before, .site-header[data-condensed][data-tone="light"] .site-menu { background: rgb(255 249 241 / 0.97); }
}
.logo { display: flex; align-items: center; flex: none; min-height: 44px; margin-inline-start: 6px; border-radius: 10px; }
.logo img { width: 68px; height: auto; }
.site-nav { display: none; align-items: center; gap: 4px; }
.site-nav a, .site-menu a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px;
  color: #f5e5ee; font-weight: 500; font-size: 0.88rem; transition: background-color 200ms ease, color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .site-nav a:hover, .site-menu a:hover { background: rgb(255 243 245 / 0.1); color: #fff8ef; } }
.site-header__end { display: flex; align-items: center; justify-content: flex-end; gap: 7px; min-width: 0; }
.site-header__account { display: none; }
.site-header__cta .cta-full, .site-header__cta .well { display: none; }
/* on phones the short label sits in a proper pill: clearly wider than it is tall, never squeezed into an oval */
.site-header__end .site-header__cta.btn--small.btn--primary { min-width: 84px; padding-inline: 22px; font-size: 0.92rem; }
@media (max-width: 349px) { .site-header__end .site-header__cta.btn--small.btn--primary { min-width: 74px; padding-inline: 18px; } }
.site-header__menu .icon-close, .site-header__menu[aria-expanded="true"] .icon-menu { display: none; }
.site-header__menu[aria-expanded="true"] .icon-close { display: block; }

/* the menu opens under the bar with the same soft corners */
.site-menu {
  position: absolute; inset-inline: 0; top: calc(100% + 7px); display: grid; gap: 2px; padding: 8px; border-radius: 16px;
  background: rgb(36 23 35 / 0.98); border: 1px solid rgb(255 238 241 / 0.24); box-shadow: 0 22px 38px rgb(25 15 25 / 0.63);
  transform-origin: top center; animation: menu-in 200ms var(--ease-out) both;
}
.site-menu a { border-radius: 11px; padding: 0 14px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-menu { animation-name: menu-fade; } }
@keyframes menu-fade { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 640px) {
  .site-header { width: min(1170px, 100% - 38px); }
  .site-header__bar { padding: 7px 10px; padding-inline-start: 14px; gap: 12px; border-radius: 22px; }
  .site-header { height: var(--header); }
  .logo img { width: 95px; }
  .site-header__end { gap: 8px; }
  .site-header__cta .cta-mini { display: none; }
  .site-header__cta .cta-full { display: inline; }
  .site-header__cta .well { display: grid; }
  .site-header__end .site-header__cta.btn--small.btn--primary { min-width: 0; padding-inline: 14px 5px; font-size: 0.84rem; }
}
@media (min-width: 871px) {
  .site-header__bar { display: grid; grid-template-columns: minmax(105px, 1fr) auto minmax(172px, 1fr); }
  .logo { justify-self: start; }
  .site-nav { display: flex; }
  .site-header__account { display: inline-grid; }
  .site-header__menu, .site-menu { display: none; }
}

.site-footer { background: var(--deep); color: #f2dfed; padding-block: 30px calc(30px + env(safe-area-inset-bottom)); }
.site-footer :focus-visible { outline-color: var(--pink); }
.site-footer .logo { margin: 0; }
.site-footer .logo img { width: 95px; }
.site-footer__inner { display: grid; gap: 14px; }
.site-footer__links { display: flex; flex-wrap: wrap; column-gap: 22px; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 5px; }
.site-footer__links a:focus-visible { text-decoration: underline; }
@media (hover: hover) and (pointer: fine) { .site-footer__links a:hover { text-decoration: underline; } }
.site-footer__legal { color: #b9a3b3; font-size: 0.82rem; }
@media (min-width: 900px) {
  .site-footer__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; }
  .site-footer__links { justify-content: center; }
}
