/* Duotone: --theme-bg (surface) + --theme-fg (text). Switch with html[data-theme="2"] etc. */

@property --theme-bg {
  syntax: "<color>";
  inherits: true;
  initial-value: #ccb2d2;
}

@property --theme-fg {
  syntax: "<color>";
  inherits: true;
  initial-value: #450b0b;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/montserrat/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/montserrat/Montserrat-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/montserrat/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/montserrat/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/montserrat/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/montserrat/Montserrat-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --theme-bg: #ccb2d2;
  --theme-fg: #450b0b;
  --color-duo-muted: color-mix(in srgb, var(--theme-fg) 72%, var(--theme-bg));
  --color-duo-deep: color-mix(in srgb, var(--theme-bg) 48%, var(--theme-fg));

  --font-display: "Montserrat", system-ui, sans-serif;
  --font-fanlste: "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  /* Hero side columns (kicker tagline, meta date) */
  --font-size-kicker: clamp(0.7rem, 1.6vw, 0.88rem);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: clamp(4rem, 12vw, 8rem);

  --content-max: 38rem;
  /* Fluid horizontal gutters (header, sections, footer) */
  --pad-inline: clamp(var(--space-sm), 4vw, var(--space-md));
}

html[data-theme="2"] {
  --theme-bg: #fffff7;
  --theme-fg: #5f5420;
}

html[data-theme="3"] {
  --theme-bg: #dd7f40;
  --theme-fg: #fffff7;
}

html[data-theme="4"] {
  --theme-bg: #5f5420;
  --theme-fg: #fffff7;
}

html[data-theme="5"] {
  --theme-bg: #a8d2dc;
  --theme-fg: #450b0b;
}

html[data-theme="6"] {
  --theme-bg: #450b0b;
  --theme-fg: #ccb2d2;
}

/* Display accents (kicker, titles, meta) — medium weight vs body */
.font-adelia-morgan {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: normal;
}

/* Section titles, venue name, ornament; hero kicker, meta */
.font-fanlste {
  font-family: var(--font-fanlste);
  font-weight: 500;
  font-style: normal;
}

.pt-serif-regular {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: normal;
}

.pt-serif-bold {
  font-family: var(--font-body);
  font-weight: 700;
  font-style: normal;
}

.pt-serif-regular-italic {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
}

.pt-serif-bold-italic {
  font-family: var(--font-body);
  font-weight: 700;
  font-style: italic;
}

/* ----- Font loader (until display fonts are ready) ----- */
html.fonts-loading {
  overflow: hidden;
}

html.fonts-loading body {
  overflow: hidden;
}

.font-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: var(--space-md);
  background: var(--theme-bg);
  color: var(--theme-fg);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.5s ease,
    visibility 0s linear;
}

html.fonts-loading .font-loader {
  display: flex;
}

html.fonts-ready .font-loader {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.55s ease,
    visibility 0s linear 0.55s;
}

.font-loader__inner {
  text-align: center;
  max-width: 16rem;
}

.font-loader__heart {
  display: block;
  margin: 0 auto var(--space-sm);
  font-family: var(--font-body);
  font-size: clamp(2.5rem, 10vw, 3.5rem);
  line-height: 1;
  color: color-mix(in srgb, var(--theme-fg) 78%, var(--theme-bg));
  animation: fontLoaderPulse 1.1s ease-in-out infinite;
}

.font-loader__text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--theme-fg) 88%, transparent);
}

@keyframes fontLoaderPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .font-loader__heart {
    animation: none;
  }

  .font-loader,
  html.fonts-ready .font-loader {
    transition-duration: 0.01ms;
  }

  html {
    transition: none;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Registered tokens interpolate here → entire page (vars, color-mix, gradients) eases together. */
  transition:
    --theme-bg 0.85s cubic-bezier(0.4, 0, 0.2, 1),
    --theme-fg 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--theme-fg);
  background-color: var(--theme-bg);
  overflow-x: clip;
}

b,
strong {
  font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6,
.location-name {
  text-transform: uppercase;
}

/* Hero: full viewport height, names center, kicker + meta centered in side columns */
.site-header {
  width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  display: flex;
  flex-direction: column;
  text-align: center;
  background-color: var(--theme-bg);
  color: var(--theme-fg);
}

.site-header__main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(var(--space-sm), 4vw, var(--space-xl));
  padding: var(--space-lg) var(--pad-inline);
  padding-bottom: var(--space-md);
  min-height: 0;
}

.site-header__kicker {
  justify-self: center;
  align-self: center;
  margin: 0;
  max-width: min(100%, 18rem);
  text-align: center;
}

.site-header__meta {
  justify-self: center;
  align-self: center;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45em;
  text-align: center;
  font-size: clamp(0.62rem, 1.65vw, 0.82rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: inherit;
}

.site-header__meta .hero-meta__date {
  display: block;
  white-space: nowrap;
}

/* Below ~896px: stack kicker, names, meta vertically (not three columns). */
@media (max-width: 56rem) {
  .site-header__main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(var(--space-md), 4vh, var(--space-xl));
    text-align: center;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-md);
  }

  .hero-names {
    order: 1;
    grid-column: unset;
  }

  .hero-names__wordmark {
    width: min(88vw, 20rem, calc(min(36vh, 16rem) * 785 / 981));
  }

  .site-header__kicker {
    order: 2;
    justify-self: unset;
    align-self: center;
    max-width: none;
    text-align: center;
  }

  .site-header__meta {
    order: 3;
    justify-self: unset;
    align-self: center;
    align-items: center;
    text-align: center;
    letter-spacing: 0.26em;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kicker__tagline {
  display: inline-block;
  font-size: var(--font-size-kicker);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-indent: 0;
  color: inherit;
}

.hero-names {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  line-height: 0;
  color: inherit;
}

/* Inline SVG wordmark: fill uses currentColor (works on file:// and http, unlike CSS mask url). */
.hero-names__wordmark {
  display: block;
  /* Cap width and height: implied height = width * 981/785 — third min term limits tall viewports. */
  width: min(90vw, 32rem, calc(min(42vh, 24rem) * 785 / 981));
  max-width: 100%;
  margin-inline: auto;
  aspect-ratio: 785 / 981;
  height: auto;
  color: inherit;
  fill: currentColor;
}

.section {
  padding: var(--space-xl) var(--pad-inline);
}

.section__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  text-align: center;
}

.section--tint-aqua {
  background: transparent;
  color: inherit;
}

.section--tint-aqua .section__title,
.section--tint-aqua .location-name {
  color: var(--theme-fg);
}

.section--tint-aqua .location-address {
  color: var(--color-duo-muted);
}

.section__title {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  color: var(--theme-fg);
}

.section--welcome .section__title {
  letter-spacing: 0.06em;
}

.ornament {
  margin: 0 0 var(--space-md);
  font-size: 1.75rem;
  line-height: 1;
  color: color-mix(in srgb, var(--theme-fg) 62%, var(--theme-bg));
}

.lede {
  margin: 0 auto var(--space-sm);
  max-width: 65ch;
  text-align: center;
  color: var(--color-duo-muted);
}

.lede strong {
  color: var(--theme-fg);
}

.lede-note {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--theme-fg);
}

.location-name {
  margin: 0 0 var(--space-xs);
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  color: var(--theme-fg);
}

.location-name__link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--theme-fg) 45%, transparent);
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.location-name__link:hover {
  color: color-mix(in srgb, var(--theme-fg) 45%, var(--theme-bg));
  text-decoration-color: color-mix(in srgb, var(--theme-fg) 55%, var(--theme-bg));
}

.location-name__link:focus-visible {
  outline: 3px solid var(--theme-fg);
  outline-offset: 4px;
  border-radius: 2px;
}

.location-address {
  margin: 0 0 var(--space-md);
  line-height: 1.6;
  color: var(--color-duo-muted);
}

.map-link {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--theme-bg);
  background-color: var(--theme-fg);
  border: 2px solid var(--theme-fg);
  border-radius: 2px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.map-link:hover {
  background-color: var(--color-duo-deep);
  border-color: var(--color-duo-deep);
  color: var(--theme-bg);
}

.map-link:focus-visible {
  outline: 3px solid var(--theme-fg);
  outline-offset: 3px;
}

.site-footer {
  padding: var(--space-lg) var(--pad-inline) var(--space-xl);
  text-align: center;
  background: transparent;
}

.footer-line {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-duo-muted);
}

/* ----- Theme: FAB morphs into picker (click only) ----- */
.theme-picker-widget {
  --theme-picker-bounce: cubic-bezier(0.33, 1.55, 0.62, 1);
  --theme-picker-fab: 3.35rem;
  /* Explicit width so open ↔ close can transition (fit-content does not interpolate). */
  --theme-picker-expanded-w: min(10.25rem, calc(100vw - 2rem));
  position: fixed;
  bottom: clamp(0.75rem, 3vw, 1.35rem);
  right: clamp(0.75rem, 3vw, 1.35rem);
  z-index: 9000;
}

.theme-picker__morph {
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  width: var(--theme-picker-fab);
  max-height: var(--theme-picker-fab);
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--theme-bg) 88%, var(--theme-fg)),
    var(--theme-bg)
  );
  border: 2px solid color-mix(in srgb, var(--theme-fg) 22%, transparent);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--theme-fg) 10%, transparent);
  transition:
    width 0.58s var(--theme-picker-bounce),
    max-height 0.58s var(--theme-picker-bounce),
    border-radius 0.5s var(--theme-picker-bounce),
    box-shadow 0.35s ease,
    transform 0.35s ease;
  transform-origin: bottom right;
}

.theme-picker-widget:not(.is-expanded) .theme-picker__morph {
  animation: themeMorphBob 2.8s ease-in-out infinite;
}

.theme-picker-widget.is-expanded .theme-picker__morph {
  width: var(--theme-picker-expanded-w);
  max-height: min(22rem, 70vh);
  border-radius: 16px;
  overflow: hidden;
  animation: none;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--theme-fg) 12%, transparent);
}

/* Shrink while still .is-expanded so legend/swatch exits and morph run together (theme-picker.js). */
.theme-picker-widget.is-expanded.theme-picker--collapse-now .theme-picker__morph {
  width: var(--theme-picker-fab);
  max-height: var(--theme-picker-fab);
  border-radius: 50%;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--theme-fg) 10%, transparent);
  transition:
    width 0.36s cubic-bezier(0.4, 0, 0.2, 1),
    max-height 0.36s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.28s ease,
    transform 0.28s ease;
}

.theme-picker-widget.is-expanded.theme-picker--collapse-now .theme-picker__fab {
  height: var(--theme-picker-fab);
  min-height: var(--theme-picker-fab);
  border-top: none;
  transition: min-height 0.3s var(--theme-picker-bounce), height 0.3s var(--theme-picker-bounce);
}

@keyframes themeMorphBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.theme-picker__panel {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition:
    max-height 0.52s var(--theme-picker-bounce),
    opacity 0.32s ease 0.06s,
    visibility 0s linear 0.45s;
}

.theme-picker-widget.is-expanded .theme-picker__panel {
  max-height: 18rem;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s, 0.08s, 0s;
}

/* While closing, keep panel layout at full height until is-expanded is removed so the
   morph does one width + max-height transition instead of a two-step shrink. */

.theme-picker__fab {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  flex: 0 0 auto;
  width: 100%;
  height: var(--theme-picker-fab);
  min-height: var(--theme-picker-fab);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  cursor: pointer;
  color: var(--theme-fg);
  background: transparent;
  line-height: 0;
  transition: min-height 0.45s var(--theme-picker-bounce), height 0.45s var(--theme-picker-bounce);
}

.theme-picker__fab-icon-stack {
  position: relative;
  display: block;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  min-height: 0;
}

.theme-picker-widget.is-expanded .theme-picker__fab {
  height: 2.65rem;
  min-height: 2.65rem;
  border-top: 1px solid color-mix(in srgb, var(--theme-fg) 12%, transparent);
}

.theme-picker__fab:active {
  transform: scale(0.96);
}

.theme-picker__fab:focus-visible {
  outline: 3px solid var(--theme-fg);
  outline-offset: 2px;
}

.theme-picker__fab-graphic {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  transform-origin: center center;
  transition:
    opacity 0.28s ease,
    transform 0.45s var(--theme-picker-bounce);
}

.theme-picker__fab-chip {
  width: 1.6rem;
  height: 1.6rem;
  margin: 0;
}

.theme-picker__fab-graphic--open {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-6deg) scale(1);
}

.theme-picker__fab-graphic--close {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-45deg) scale(0.35);
}

.theme-picker-widget.is-expanded .theme-picker__fab-graphic--open {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0) scale(0.4);
}

.theme-picker-widget.is-expanded .theme-picker__fab-graphic--close {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0) scale(1);
}

.theme-picker-widget.is-expanded.theme-picker--closing .theme-picker__fab-graphic--close {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(0.55);
  transition:
    opacity 0.24s ease,
    transform 0.3s var(--theme-picker-bounce);
}

/* Icons hide immediately on toggle; fade back in after .theme-picker__morph finishes */
.theme-picker-widget--icons-hidden .theme-picker__fab-graphic {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(0.88) !important;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease !important;
}

.theme-picker {
  margin: 0;
  padding: 0.65rem 0.65rem 0.5rem;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.theme-picker__fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  text-align: center;
}

.theme-picker__legend {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--theme-fg);
  padding: 0;
  margin: 0 0 0.45rem;
  text-align: center;
}

.theme-picker__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  width: 100%;
}

.theme-picker__btn {
  display: block;
  padding: 3px;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  transition:
    border-color 0.2s var(--theme-picker-bounce),
    transform 0.28s var(--theme-picker-bounce);
}

.theme-picker__btn:hover {
  transform: scale(1.12) rotate(-4deg);
}

.theme-picker__btn:focus-visible {
  outline: 2px solid var(--theme-fg);
  outline-offset: 3px;
}

.theme-picker__btn[aria-pressed="true"] {
  border-color: var(--theme-fg);
  transform: scale(1.06);
}

.theme-picker__chip {
  display: block;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--swatch-bg) 50%,
    var(--swatch-fg) 50%
  );
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--swatch-fg) 18%, transparent);
}

.theme-picker-widget.is-expanded.theme-picker--closing.theme-picker--exit-visual .theme-picker {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transform: translateY(0);
  transition: none;
}

.theme-picker-widget.is-expanded.theme-picker--closing:not(.theme-picker--exit-visual):not(
    .theme-picker--content-ready
  )
  .theme-picker {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.4rem);
  transition: none;
}

.theme-picker-widget.is-expanded:not(.theme-picker--content-ready):not(.theme-picker--closing)
  .theme-picker {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.4rem);
  transition: none;
}

.theme-picker-widget.is-expanded.theme-picker--content-ready .theme-picker {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.42s var(--theme-picker-bounce),
    transform 0.42s var(--theme-picker-bounce),
    visibility 0s;
}

@keyframes theme-picker-swatch-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes theme-picker-legend-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-0.3rem);
  }
}

@keyframes theme-picker-swatch-out {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  to {
    opacity: 0;
    transform: scale(0.72) translateY(0.35rem);
  }
}

.theme-picker-widget.is-expanded.theme-picker--closing.theme-picker--exit-visual
  .theme-picker__legend {
  animation: theme-picker-legend-out 0.26s var(--theme-picker-bounce) forwards;
}

.theme-picker-widget.is-expanded.theme-picker--closing.theme-picker--exit-visual
  .theme-picker__btn {
  animation: theme-picker-swatch-out 0.28s var(--theme-picker-bounce) forwards;
}

.theme-picker-widget.is-expanded.theme-picker--closing.theme-picker--exit-visual
  .theme-picker__btn:nth-child(1) {
  animation-delay: 0.12s;
}

.theme-picker-widget.is-expanded.theme-picker--closing.theme-picker--exit-visual
  .theme-picker__btn:nth-child(2) {
  animation-delay: 0.1s;
}

.theme-picker-widget.is-expanded.theme-picker--closing.theme-picker--exit-visual
  .theme-picker__btn:nth-child(3) {
  animation-delay: 0.08s;
}

.theme-picker-widget.is-expanded.theme-picker--closing.theme-picker--exit-visual
  .theme-picker__btn:nth-child(4) {
  animation-delay: 0.055s;
}

.theme-picker-widget.is-expanded.theme-picker--closing.theme-picker--exit-visual
  .theme-picker__btn:nth-child(5) {
  animation-delay: 0.035s;
}

.theme-picker-widget.is-expanded.theme-picker--closing.theme-picker--exit-visual
  .theme-picker__btn:nth-child(6) {
  animation-delay: 0.018s;
}

.theme-picker-widget.is-expanded.theme-picker--content-ready .theme-picker__btn {
  animation: theme-picker-swatch-in 0.38s var(--theme-picker-bounce) backwards;
}

.theme-picker-widget.is-expanded.theme-picker--content-ready
  .theme-picker__btn:nth-child(1) {
  animation-delay: 0.02s;
}

.theme-picker-widget.is-expanded.theme-picker--content-ready
  .theme-picker__btn:nth-child(2) {
  animation-delay: 0.06s;
}

.theme-picker-widget.is-expanded.theme-picker--content-ready
  .theme-picker__btn:nth-child(3) {
  animation-delay: 0.1s;
}

.theme-picker-widget.is-expanded.theme-picker--content-ready
  .theme-picker__btn:nth-child(4) {
  animation-delay: 0.14s;
}

.theme-picker-widget.is-expanded.theme-picker--content-ready
  .theme-picker__btn:nth-child(5) {
  animation-delay: 0.18s;
}

.theme-picker-widget.is-expanded.theme-picker--content-ready
  .theme-picker__btn:nth-child(6) {
  animation-delay: 0.22s;
}

@media (prefers-reduced-motion: reduce) {
  .theme-picker__morph {
    animation: none;
  }

  .theme-picker-widget.is-expanded.theme-picker--collapse-now .theme-picker__morph {
    transition:
      width 0.01ms ease,
      max-height 0.01ms ease,
      border-radius 0.01ms ease,
      box-shadow 0.01ms ease,
      transform 0.01ms ease;
  }

  .theme-picker-widget.is-expanded.theme-picker--collapse-now .theme-picker__fab {
    transition: min-height 0.01ms ease, height 0.01ms ease;
  }

  .theme-picker__morph,
  .theme-picker__panel,
  .theme-picker__fab,
  .theme-picker__fab-graphic {
    transition-duration: 0.01ms;
  }

  .theme-picker__btn {
    transition-duration: 0.01ms;
  }

  .theme-picker-widget.is-expanded.theme-picker--content-ready .theme-picker {
    transition: none;
  }

  .theme-picker-widget.is-expanded.theme-picker--content-ready .theme-picker__btn {
    animation: none;
  }

  .theme-picker-widget.is-expanded.theme-picker--closing:not(.theme-picker--exit-visual):not(
      .theme-picker--content-ready
    )
    .theme-picker {
    transition: none;
  }

  .theme-picker-widget.is-expanded.theme-picker--closing.theme-picker--exit-visual
    .theme-picker__legend,
  .theme-picker-widget.is-expanded.theme-picker--closing.theme-picker--exit-visual
    .theme-picker__btn {
    animation: none;
    opacity: 0;
  }
}
