/* Universallsls */

:root {
  --black: #000000;
  --red: #dc143c;
  --blood: #8e0b26;
  --silver: #e6e6ea;
  --paper: #dcd8d2;
  --ink: #1a0a0c;

  --font-heading: 'Cinzel', serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --font-hand: 'Homemade Apple', cursive;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background-color: var(--black);
}

body {
  font-family: var(--font-body);
  color: var(--silver);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent; 
  /* touch-action: manipulation; */
}


/* holds every page which hidden until the cape transition */
#pages-scene {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  perspective: 2400px; 
}

#pages-scene.showing {
  display: block;
}


/* each page fills the screen, only .active shows */
.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 0 84px 0;  /* candles */
  overflow: clip;
  /* grain */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 42%, #1c1214 0%, #0a0a0a 55%, #000 100%);
  transform-origin: left center;
  backface-visibility: hidden;
}

.page.active {
  display: flex;
}


.page-inner {
  position: relative;
  flex-shrink: 0;
  width: 360px;
  height: 540px;
}

.frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(255, 30, 70, 0.4));
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  50% { filter: drop-shadow(0 0 6px rgba(255, 30, 70, 0.6)); }
}


.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 76px 50px;
  font-size: 16px;
  text-align: center;
}

.content {
  margin: auto 0;
}

.folio {
  position: absolute;
  bottom: 22px;
  left: 0;
  width: 100%;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 5px;
  text-align: center;
  opacity: 0.7;
}


/* text */

.kicker {
  margin-bottom: 11px;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  opacity: 0.75;
}

.kicker-spaced {
  margin-top: 18px;
}

.title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  text-shadow: 1px 1px 0 var(--blood);
}

p {
  font-weight: 600;
  line-height: 1.45;
}

.content > p + p {
  margin-top: 9px;
}

.aside {
  font-style: italic;
  opacity: 0.8;
}

.content > .aside {
  margin-top: 14px;
}

.divider {
  position: relative;
  width: 108px;
  height: 1px;
  margin: 16px auto;
  background-color: var(--red);
}

.divider::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background-color: var(--red);
  transform: rotate(45deg);
}

.tap-hint {
  position: absolute;
  bottom: 130px;
  left: 0;
  width: 100%;
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%   { opacity: 0.4; }
  50%  { opacity: 1; }
  100% { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  .frame,
  .tap-hint {
    animation: none;
  }
}
