@font-face {
  font-family: "Shampoo Script";
  src: url("fonts/shampoo-script.otf") format("opentype");
  font-style: italic;
  font-weight: 400;
  font-display: block;
}

:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  --burgundy: #3a0012;
  --cream: #e7c9a3;
  background: #000;
  color: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  background: #000;
}

.phone {
  display: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--burgundy);
}

.reader {
  position: absolute;
  inset: 0;
  padding: 18px;
  background: var(--burgundy);
}

.reader[hidden] {
  display: none;
}

.reader > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--cream);
  border-radius: 24px 24px 15px 15px / 18px 18px 12px 12px;
  user-select: none;
  -webkit-user-select: none;
}

.reader::before {
  position: absolute;
  z-index: 2;
  inset: 12px;
  border: 1px solid var(--cream);
  border-radius: 32px 32px 22px 22px / 24px 24px 17px 17px;
  pointer-events: none;
  content: "";
}

.frame-corner {
  position: absolute;
  z-index: 3;
  width: 64px;
  height: 64px;
  background: url("images/baroque-corner.png") center / contain no-repeat;
  filter: drop-shadow(0 0 3px var(--burgundy)) drop-shadow(0 0 2px var(--burgundy));
  opacity: 1;
  pointer-events: none;
}

.frame-corner--tl {
  top: 0;
  left: 0;
}

.frame-corner--tr {
  top: 0;
  right: 0;
  transform: scaleX(-1);
}

.frame-corner--bl {
  bottom: 0;
  left: 0;
  transform: scaleY(-1);
}

.frame-corner--br {
  right: 0;
  bottom: 0;
  transform: scale(-1);
}

#flush {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 92px;
  height: 92px;
  padding: 7px 13px;
  border: 2px solid var(--cream);
  border-radius: 50%;
  background: var(--burgundy);
  color: #000;
  box-shadow: 0 5px 0 #21000a, 0 8px 12px rgb(0 0 0 / 38%);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#flush:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #21000a, 0 3px 5px rgb(0 0 0 / 30%);
}

#flush:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 4px;
}

#flush img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transform: translateX(-4px);
  filter: brightness(0) invert(86%) sepia(24%) saturate(548%) hue-rotate(347deg) brightness(96%);
  pointer-events: none;
}

.phone.intro-active #flush {
  right: auto;
  left: 50%;
  bottom: max(106px, calc(env(safe-area-inset-bottom) + 88px));
  transform: translateX(-50%);
}

.phone.intro-active #flush:active {
  transform: translateX(-50%) translateY(4px);
}

.intro {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(34px, env(safe-area-inset-top)) 26px max(180px, calc(env(safe-area-inset-bottom) + 160px));
  overflow: auto;
  background: var(--burgundy);
  color: var(--cream);
  text-align: center;
}

.intro[hidden] {
  display: none;
}

.intro-copy {
  width: min(420px, 100%);
  transform: translateY(-30px);
}

.intro h1 {
  margin: 0;
  font-family: "Bodoni 72", Didot, "Bodoni MT", "Times New Roman", serif;
  font-size: clamp(2.65rem, 12vw, 4.2rem);
  line-height: 0.82;
  letter-spacing: -0.065em;
  font-weight: 700;
}

.intro-lead {
  position: relative;
  z-index: 1;
  margin: -2px 0 0;
  font-family: "Shampoo Script", cursive;
  font-size: clamp(1.75rem, 8vw, 2.55rem);
  font-style: italic;
  line-height: 0.95;
  font-weight: 400;
  transform: rotate(-2deg);
}

.intro-action {
  position: fixed;
  right: 20px;
  bottom: max(219px, calc(env(safe-area-inset-bottom) + 193px));
  left: 20px;
  text-align: center;
}

.intro-disclaimer {
  position: fixed;
  right: 18px;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 18px;
  margin: 0 auto;
  max-width: 430px;
  color: var(--cream);
  font-size: 0.68rem;
  line-height: 1.2;
  text-align: center;
  opacity: 0.68;
}

.phone:not(.intro-active) .intro-disclaimer {
  display: none;
}

.intro-disclaimer span {
  display: block;
  margin-top: 6px;
}

.intro-disclaimer a,
.desktop-contact a {
  color: inherit;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.intro-action strong {
  display: block;
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  color: var(--cream);
}

.intro-arrow {
  display: block;
  margin-top: 10px;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--cream);
}

.desktop {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background: var(--burgundy);
  color: var(--cream);
  text-align: center;
}

.desktop-copy {
  width: min(1400px, 100%);
}

.desktop h1 {
  margin: 0;
  font-family: "Bodoni 72", Didot, "Bodoni MT", "Times New Roman", serif;
  font-size: clamp(3.5rem, 6.2vw, 6.5rem);
  line-height: 0.84;
  letter-spacing: -0.075em;
  font-weight: 900;
}

.desktop-question {
  margin: clamp(36px, 6vh, 70px) 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.25;
  white-space: nowrap;
}

.desktop-answer {
  margin: 12px 0 0;
  font-family: "Shampoo Script", cursive;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  font-style: italic;
  line-height: 1.05;
  white-space: nowrap;
}

.desktop strong {
  display: block;
  margin-top: clamp(54px, 9vh, 104px);
  font-size: clamp(1rem, 1.45vw, 1.3rem);
  letter-spacing: 0.08em;
}

.desktop-contact {
  margin: clamp(34px, 5vh, 58px) auto 0;
  font-size: 0.82rem;
  line-height: 1.3;
  opacity: 0.68;
}

.desktop-contact-status {
  display: block;
  min-height: 1.3em;
  margin-top: 7px;
  font-weight: 700;
  opacity: 0;
}

.desktop-contact-status.is-visible {
  opacity: 1;
}

body.mobile-ready .phone {
  display: block;
}

body.mobile-ready .desktop {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  #flush:active {
    transform: none;
  }
}
