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

:root {
  --theme-bg: #fdf6f8;
  --theme-bg-rgb: 253, 246, 248;
  --theme-text: #3a2a30;
  --theme-heading-font: 'Cinzel', serif;
  --theme-body-font: 'IM Fell English', serif;
  --theme-heading-color: #3a2a30;
  --theme-sub-color: #c98a9e;
  --theme-divider: #F4ACBE;
  --theme-divider-rgb: 244, 172, 190;
  --theme-quote-color: #5a9ab0;
  --theme-quote-border: #7CC5DC;
  --theme-card-bg: rgba(255, 255, 255, 0.5);
  --theme-card-hover: rgba(255, 255, 255, 0.8);
  --theme-heading-size-mult: 1;
  --theme-baster-filter: none;
  
  --pink: var(--theme-divider);
  --blue: var(--theme-quote-border);
  --pink-muted: var(--theme-sub-color);
  --blue-muted: var(--theme-quote-color);
  --bg: var(--theme-bg);
}

body {
  background: var(--theme-bg);
  font-family: var(--theme-body-font);
  color: var(--theme-text);
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 30%, rgba(var(--theme-divider-rgb), 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 70%, rgba(var(--theme-bg-rgb), 0.08) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* NAVIGATION */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(var(--theme-bg-rgb), 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(var(--theme-divider-rgb), 0.3);
  padding: 0 2rem;
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-home {
  font-family: var(--theme-heading-font);
  font-size: calc(0.65rem * var(--theme-heading-size-mult));
  letter-spacing: 0.2em;
  color: var(--theme-sub-color);
  text-decoration: none;
  padding: 1.1rem 1.2rem 1.1rem 0;
  margin-right: 1rem;
  border-right: 1px solid rgba(var(--theme-divider-rgb), 0.25);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-home:hover {
  color: var(--theme-divider);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: var(--theme-heading-font);
  font-size: calc(0.6rem * var(--theme-heading-size-mult));
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--theme-text);
  text-decoration: none;
  padding: 1.1rem 0.9rem;
  transition: color 0.2s, transform 0.2s ease;
  white-space: nowrap;
  display: inline-block;
}

.nav-links a:hover {
  color: var(--theme-sub-color);
  transform: translateY(-2px);
}

.nav-links a.active {
  color: var(--theme-sub-color);
  border-bottom: 2px solid var(--theme-divider);
}

/* PAGE WRAPPER & HEADINGS */
.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.page-eyebrow {
  font-family: var(--theme-heading-font);
  font-size: calc(0.6rem * var(--theme-heading-size-mult));
  letter-spacing: 0.35em;
  color: var(--theme-sub-color);
  text-align: center;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.page-title {
  font-family: var(--theme-heading-font);
  font-size: calc(clamp(2rem, 5vw, 3.2rem) * var(--theme-heading-size-mult));
  font-weight: 700;
  text-align: center;
  color: var(--theme-heading-color);
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.4s forwards;
}

.page-intro {
  font-family: var(--theme-body-font);
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--theme-text);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 1rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.6s forwards;
}

.divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--theme-divider), transparent);
  margin: 0 auto 3rem;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.7s forwards;
}

/* FOOTER */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 2rem 2.5rem;
  border-top: 1px solid rgba(var(--theme-divider-rgb), 0.2);
}

.footer-baster {
  width: 36px;
  opacity: 0.4;
  display: block;
  margin: 0 auto 1.2rem;
  animation: float 3s ease-in-out infinite;
  filter: var(--theme-baster-filter);
}

.site-footer p {
  font-family: var(--theme-body-font);
  font-size: 0.78rem;
  color: var(--theme-text);
  opacity: 0.8;
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto 0.4rem;
}

.site-footer .footer-small {
  font-family: var(--theme-heading-font);
  font-size: calc(0.52rem * var(--theme-heading-size-mult));
  letter-spacing: 0.25em;
  color: var(--theme-sub-color);
  margin-top: 1rem;
  opacity: 0.7;
}

.footer-thirteenth {
  font-family: var(--theme-body-font);
  font-size: 0.72rem;
  font-style: italic;
  color: var(--theme-sub-color);
  opacity: 0.55;
  margin-top: 1.8rem;
  letter-spacing: 0.02em;
}

/* STEPS PAGE */
.step-note {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--theme-sub-color);
  opacity: 0.85;
  margin-top: 0.6rem;
  line-height: 1.6;
}

.step-thirteen {
  margin-top: 1rem;
}

.step-thirteen-rule {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--theme-divider), transparent);
  opacity: 0.4;
  margin: 2.5rem auto;
  max-width: 320px;
}

/* PROMISES PAGE */
.promises-postscript {
  font-family: var(--theme-body-font);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--theme-sub-color);
  opacity: 0.65;
  text-align: center;
  margin-top: 2.5rem;
  letter-spacing: 0.02em;
}

/* THIRTEENTH STEP MODAL */
.modal-thirteenth-overlay .modal-thirteenth {
  max-width: 480px;
  text-align: center;
}

.modal-thirteenth-body p {
  font-family: var(--theme-body-font);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--theme-text);
  letter-spacing: 0.02em;
  padding: 2rem 0 1rem;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }

  50% {
    transform: translateY(-8px) rotate(3deg);
  }
}

/* SCROLL REVEAL UTILITY */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* THEMES SPECIFIC */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.8s forwards;
}

.theme-btn {
  border: 2px solid transparent;
  padding: 1.2rem 1rem;
  cursor: pointer;
  text-align: left;
  background: var(--theme-card-bg);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  border-radius: 4px;
}

.theme-btn:hover {
  border-color: rgba(var(--theme-divider-rgb), 0.6);
  background: var(--theme-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(var(--theme-divider-rgb), 0.15);
}

.theme-btn.active {
  border-color: var(--theme-sub-color);
}

.theme-btn-name {
  font-family: var(--theme-heading-font);
  font-size: calc(0.6rem * var(--theme-heading-size-mult));
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 0.4rem;
}

.theme-btn-desc {
  font-family: var(--theme-body-font);
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.5;
  display: block;
}

.theme-swatch {
  display: flex;
  gap: 3px;
  margin-top: 0.6rem;
}

.theme-swatch span {
  height: 4px;
  flex: 1;
  border-radius: 1px;
}

.preview-label {
  font-family: var(--theme-heading-font);
  font-size: calc(0.55rem * var(--theme-heading-size-mult));
  letter-spacing: 0.25em;
  color: var(--theme-sub-color);
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.9s forwards;
}

.preview-frame {
  border: 1px solid rgba(var(--theme-divider-rgb), 0.25);
  padding: 3rem 2.5rem;
  transition: all 0.4s ease;
  opacity: 0;
  animation: fadeUp 0.6s ease 1.0s forwards;
  min-height: 400px;
  background: var(--theme-card-bg);
  border-radius: 6px;
}

.preview-inner {
  max-width: 580px;
  margin: 0 auto;
}

.preview-heading,
.preview-sub,
.preview-divider,
.preview-body,
.preview-quote {
  transition: all 0.3s;
}

.preview-heading {
  margin-bottom: 0.5rem;
  font-family: var(--theme-heading-font);
  font-size: calc(1.4rem * var(--theme-heading-size-mult));
  color: var(--theme-heading-color);
}

.preview-sub {
  margin-bottom: 1.5rem;
  font-family: var(--theme-body-font);
  color: var(--theme-sub-color);
}

.preview-divider {
  height: 1px;
  margin-bottom: 1.5rem;
  background: var(--theme-divider);
}

.preview-body {
  line-height: 1.85;
  margin-bottom: 1.2rem;
  font-family: var(--theme-body-font);
  color: var(--theme-text);
}

.preview-quote {
  border-left: 3px solid var(--theme-quote-border);
  padding-left: 1rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-family: var(--theme-body-font);
  color: var(--theme-quote-color);
}

.preview-baster {
  font-size: 1.5rem;
  display: block;
  margin-top: 1.5rem;
  opacity: 0.6;
  animation: float 3s ease-in-out infinite;
  filter: var(--theme-baster-filter);
}

.theme-point {
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid rgba(var(--theme-divider-rgb), 0.25);
  background: rgba(var(--theme-divider-rgb), 0.04);
  opacity: 0;
  animation: fadeUp 0.6s ease 1.1s forwards;
  border-radius: 6px;
}

.theme-point p {
  font-family: var(--theme-body-font);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--theme-text);
}

/* LITERATURE SPECIFIC */
.pamphlet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.pamphlet-card {
  border: 1px solid rgba(var(--theme-divider-rgb), 0.25);
  background: var(--theme-card-bg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  cursor: pointer;
  border-radius: 6px;
}

.pamphlet-card:hover {
  border-color: rgba(var(--theme-divider-rgb), 0.6);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(var(--theme-divider-rgb), 0.15);
  background: var(--theme-card-hover);
}

/* Pamphlet Delays */
.pamphlet-card:nth-child(1) { animation-delay: 0.9s; }
.pamphlet-card:nth-child(2) { animation-delay: 1.05s; }
.pamphlet-card:nth-child(3) { animation-delay: 1.2s; }
.pamphlet-card:nth-child(4) { animation-delay: 1.35s; }
.pamphlet-card:nth-child(5) { animation-delay: 1.5s; }
.pamphlet-card:nth-child(6) { animation-delay: 1.65s; }
.pamphlet-card:nth-child(7) { animation-delay: 1.8s; }
.pamphlet-card:nth-child(8) { animation-delay: 1.95s; }

.pamphlet-number {
  font-family: var(--theme-heading-font);
  font-size: calc(0.52rem * var(--theme-heading-size-mult));
  letter-spacing: 0.25em;
  color: var(--theme-sub-color);
}

.pamphlet-title {
  font-family: var(--theme-heading-font);
  font-size: calc(1rem * var(--theme-heading-size-mult));
  font-weight: 600;
  color: var(--theme-heading-color);
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.pamphlet-subtitle {
  font-family: var(--theme-body-font);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--theme-sub-color);
}

.pamphlet-desc {
  font-family: var(--theme-body-font);
  font-size: 0.88rem;
  color: var(--theme-text);
  line-height: 1.75;
  flex: 1;
}

.pamphlet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(var(--theme-divider-rgb), 0.15);
  margin-top: auto;
}

.pamphlet-pages {
  font-family: var(--theme-heading-font);
  font-size: calc(0.5rem * var(--theme-heading-size-mult));
  letter-spacing: 0.15em;
  color: var(--theme-text);
  opacity: 0.6;
}

.pamphlet-btn {
  font-family: var(--theme-heading-font);
  font-size: calc(0.58rem * var(--theme-heading-size-mult));
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--theme-sub-color);
  text-decoration: none;
  border: 1px solid rgba(var(--theme-divider-rgb), 0.4);
  padding: 0.35rem 0.75rem;
  transition: all 0.2s;
  background: none;
  cursor: pointer;
  border-radius: 3px;
}

.pamphlet-btn:hover {
  background: rgba(var(--theme-divider-rgb), 0.15);
  color: var(--theme-divider);
}

.pamphlet-btn.coming-soon {
  color: var(--theme-text);
  opacity: 0.4;
  border-color: rgba(var(--theme-divider-rgb), 0.3);
  cursor: default;
}

.pamphlet-btn.coming-soon:hover {
  background: none;
}

/* MODALS */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(var(--theme-bg-rgb), 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal {
  background: rgba(var(--theme-bg-rgb), 0.95);
  border: 1px solid rgba(var(--theme-divider-rgb), 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
  transform: translateY(20px);
  animation: slideUpModal 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-family: var(--theme-heading-font);
  font-size: calc(0.65rem * var(--theme-heading-size-mult));
  letter-spacing: 0.2em;
  color: var(--theme-sub-color);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--theme-divider);
}

.modal-eyebrow {
  font-family: var(--theme-heading-font);
  font-size: calc(0.55rem * var(--theme-heading-size-mult));
  letter-spacing: 0.3em;
  color: var(--theme-sub-color);
  margin-bottom: 0.75rem;
}

.modal-title {
  font-family: var(--theme-heading-font);
  font-size: calc(1.4rem * var(--theme-heading-size-mult));
  font-weight: 600;
  color: var(--theme-heading-color);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.modal-subtitle {
  font-family: var(--theme-body-font);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--theme-sub-color);
  margin-bottom: 1.5rem;
}

.modal-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, var(--theme-divider), transparent);
  margin-bottom: 1.5rem;
}

.modal-body p {
  font-family: var(--theme-body-font);
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--theme-text);
  margin-bottom: 1rem;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .page {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
}

@media (max-width: 600px) {
  .nav-home { display: none; }
  .nav-links a { font-size: 0.55rem; padding: 0.9rem 0.5rem; }
  .theme-grid { grid-template-columns: 1fr 1fr; }
  .pamphlet-grid { grid-template-columns: 1fr; }
  .modal { padding: 2rem 1.5rem; }
}

/* THIRTEENTH STEP PAGE */
.thirteenth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 4rem 2rem;
  text-align: center;
}

.thirteenth-statement {
  font-family: var(--theme-heading-font);
  font-size: calc(clamp(1.2rem, 3.5vw, 2.2rem) * var(--theme-heading-size-mult));
  color: var(--theme-heading-color);
  line-height: 1.8;
  margin-bottom: 5rem;
}

.thirteenth-statement p {
  opacity: 0;
}

.thirteenth-statement p:nth-child(1) {
  animation: fadeUp 1.2s ease 0.5s forwards;
}

.thirteenth-statement p:nth-child(2) {
  animation: fadeUp 1.2s ease 2.0s forwards;
}

.thirteenth-image {
  opacity: 0;
  animation: fadeIn 2s ease 5.2s forwards; /* 2.0s + 1.2s animation = 3.2s fully visible. Plus 2 seconds pause = 5.2s */
  max-width: 280px;
  width: 100%;
  filter: var(--theme-baster-filter);
}
