/* ============================================================
   SATSUMA NOIR — design look switch (NOIR ⇄ CAFÉ)
   Footer switch and the transition veil. Visible in both looks.
   ============================================================ */

.look-switch {
  position: relative;
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 28px auto 0;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(238, 233, 221, 0.2);
  border-radius: 999px;
  background: rgba(17, 21, 17, 0.84);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #eee9dd;
  font: 600 11px/1 "Inter", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.14em;
  transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}
.look-switch__label {
  padding: 0 6px 0 12px;
  font-size: 9px;
  letter-spacing: 0.24em;
  opacity: 0.62;
}
.look-switch__track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.look-switch__knob {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  border-radius: 999px;
  background: #eee9dd;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), background 0.5s ease;
}
.look-switch__opt {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 78px;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color 0.4s ease;
}
.look-switch__opt svg {
  display: block;
  flex: none;
  width: 14px;
  height: 14px;
}
.look-switch__opt > span {
  display: flex;
  align-items: center;
  line-height: 1;
}
.look-switch__opt[aria-pressed="true"] { color: #151a15; cursor: default; }
.look-switch__opt:focus-visible,
.look-switch__motion:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* Pause control for the CAFÉ animations; NOIR has none to pause. */
.look-switch__motion {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: 2px;
  padding: 0;
  border: 1px solid rgba(42, 27, 18, 0.18);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.look-switch__motion svg {
  display: block;
  width: 14px;
  height: 14px;
  margin: auto;
}
.look-switch__motion:hover { background: rgba(42, 27, 18, 0.08); }
.look-switch__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:root[data-look="cafe"] .look-switch {
  border-color: rgba(42, 27, 18, 0.14);
  background: rgba(255, 250, 242, 0.92);
  box-shadow: 0 14px 32px rgba(66, 38, 18, 0.2);
  color: #2a1b12;
  font-family: "Fraunces", Georgia, serif;
}
:root[data-look="cafe"] .look-switch__knob {
  background: #8a4a1c;
  transform: translateX(100%);
}
:root[data-look="cafe"] .look-switch__motion { display: grid; }
:root[data-look="cafe"] .look-switch__opt[aria-pressed="true"] { color: #fffaf2; }

/* ---------- Transition veil ---------- */
.look-veil {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  pointer-events: none;
  clip-path: circle(0px at var(--veil-x, 50%) var(--veil-y, 50%));
  transition: clip-path 0.62s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.5s ease;
}
.look-veil.is-covering {
  clip-path: circle(150vmax at var(--veil-x, 50%) var(--veil-y, 50%));
  pointer-events: auto;
}
.look-veil.is-leaving { opacity: 0; }
.look-veil--cafe {
  background: radial-gradient(circle at var(--veil-x, 50%) var(--veil-y, 50%), #c98646 0%, #8a4a1c 36%, #2a1a11 100%);
  color: #f7ecdb;
}
.look-veil--noir {
  background: radial-gradient(circle at var(--veil-x, 50%) var(--veil-y, 50%), #2c3528 0%, #151a15 55%, #0c0f0c 100%);
  color: #eee9dd;
}
.look-veil__mark {
  display: grid;
  justify-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease 0.2s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.look-veil.is-covering .look-veil__mark { opacity: 1; transform: none; }
.look-veil__mark svg { width: 68px; height: 68px; }
.look-veil__mark b {
  font: 500 clamp(26px, 4vw, 44px)/1 "Fraunces", "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
}
.look-veil__steam { animation: lookVeilSteam 1.3s ease-in-out infinite; }
@keyframes lookVeilSteam {
  0% { opacity: 0; transform: translateY(4px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-5px); }
}

@media (max-width: 760px) {
  .look-switch {
    gap: 0;
  }
  .look-switch__label { display: none; }
  .look-switch__opt {
    justify-content: center;
    min-width: 0;
    height: 44px;
    padding: 0 10px;
    gap: 6px;
    border-radius: 18px;
    font-size: 10px;
  }
  .look-switch__motion { margin: 0 2px 0 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .look-switch,
  .look-switch__knob,
  .look-switch__opt { transition: none; }
}

@media print {
  .look-switch,
  .look-veil { display: none !important; }
}
