﻿:root {
  color-scheme: light;
  --bg: #fdf6f1;
  --bg-soft: #f4e9e0;
  --ink: #2d1f24;
  --ink-soft: #5b4b50;
  --accent: #c46d82;
  --accent-strong: #9a445b;
  --glow: #f7c5ad;
  --border: #e7d4c9;
  --shadow: rgba(156, 75, 93, 0.16);
  --surface: #fff7f2;
  --surface-strong: #f3ddd3;
}

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


body {
  font-family: "Archivo", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #fff6f0 0%, #f6e8e0 45%, #f0dbd2 100%);
  color: var(--ink);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 2.5rem 6vw 4rem;
  padding-top: 9rem;
  position: relative;
  overflow-x: hidden;
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 197, 173, 0.5), rgba(247, 197, 173, 0));
  filter: blur(2px);
  z-index: 0;
}

.page::before {
  width: 320px;
  height: 320px;
  top: 5rem;
  left: -120px;
}

.page::after {
  width: 400px;
  height: 400px;
  bottom: 4rem;
  right: -160px;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  backdrop-filter: blur(12px);
  background: linear-gradient(120deg, rgba(255, 246, 241, 0.9), rgba(244, 231, 223, 0.78));
  border: 1px solid rgba(216, 186, 176, 0.55);
  padding: 1.25rem 2.5rem 1.5rem;
  border-radius: 2.5rem;
  width: 100%;
  margin-top: 0;
  transition: padding 0.45s ease, border-radius 0.45s ease, box-shadow 0.45s ease;
  will-change: padding, border-radius, box-shadow;
}

.site-header.is-compact {
  padding: 0.7rem 2rem 0.9rem;
  border-radius: 2rem;
  box-shadow: 0 18px 30px var(--shadow);
}

.brand-stack {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  text-align: center;
}

.brand-mark {
  width: 120px;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(196, 109, 130, 0.2));
  mix-blend-mode: multiply;
  transform-origin: center;
  transition: opacity 0.45s ease, transform 0.45s ease, max-height 0.45s ease;
}

.brand-wordmark {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.8rem;
  letter-spacing: 0.3rem;
  font-weight: 600;
  transition: font-size 0.45s ease, letter-spacing 0.45s ease;
}

.brand-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.9;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, max-height 0.6s ease,
    margin 0.6s ease, letter-spacing 0.6s ease;
  max-height: 2rem;
  overflow: hidden;
}

.site-header.is-compact .brand-wordmark {
  font-size: 1.5rem;
}

.site-header.is-compact .brand-mark {
  opacity: 0;
  transform: scale(0.75);
  max-height: 0;
  margin: 0;
  pointer-events: none;
}

.site-header.is-compact .brand-tagline {
  opacity: 0;
  transform: translateY(-6px);
  letter-spacing: 0.2rem;
  max-height: 0;
  margin: 0;
}

.nav {
  display: flex;
  gap: 1.8rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18rem;
}

.header-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
}

.header-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.account-menu {
  position: relative;
}

.account-menu-button {
  border: none;
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  transition: color 0.3s ease;
  position: relative;
}

.account-menu-button span:first-child {
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.account-menu-button span:last-child {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.account-menu-button::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.4rem;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease, left 0.3s ease;
}

.account-menu-button:hover::after,
.account-menu-button:focus::after {
  width: 70%;
  left: 15%;
}

.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  background: linear-gradient(160deg, #fff8f4 0%, #f2ddd4 100%);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.6rem;
  min-width: 180px;
  display: none;
  box-shadow: 0 18px 30px rgba(156, 75, 93, 0.15);
  z-index: 3;
  gap: 0.3rem;
}

.account-dropdown a,
.account-dropdown button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0.5rem 0.6rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.2;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
  background: rgba(196, 109, 130, 0.12);
}

.account-menu.is-open .account-dropdown {
  display: grid;
}

.header-actions .nav {
  grid-column: 2;
  justify-self: center;
}

.header-actions .header-cta {
  grid-column: 3;
  justify-self: end;
}

.nav a {
  text-decoration: none;
  color: #56444a;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.6rem;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav a:hover::after,
.nav a:focus::after {
  width: 70%;
  left: 15%;
}

.cta-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font-weight: 500;
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, #cf768b 0%, #a34a61 100%);
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.ghost-button {
  background: linear-gradient(135deg, rgba(255, 245, 239, 0.9), rgba(243, 222, 212, 0.85));
  color: var(--accent-strong);
  border-color: rgba(164, 79, 99, 0.6);
}

.cta-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(196, 109, 130, 0.32);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.8rem, 4vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.75rem;
  color: var(--accent-strong);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

.auth {
  display: grid;
  place-items: center;
  padding: 2rem 0 4rem;
}

.auth-panel {
  width: min(520px, 92vw);
  background: linear-gradient(160deg, #fff8f4 0%, #f2ddd4 100%);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 2.5rem;
  box-shadow: 0 28px 50px rgba(156, 75, 93, 0.18);
  display: grid;
  gap: 1.8rem;
}

.auth-head {
  text-align: center;
}

.auth-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.75rem;
  color: var(--accent-strong);
  margin-bottom: 0.8rem;
}

.auth-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 0.6rem;
}

.auth-subtitle {
  color: var(--ink-soft);
}

.auth-form {
  display: grid;
  gap: 1.2rem;
}

.auth-field {
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.auth-field input {
  border-radius: 999px;
  border: 1px solid rgba(168, 122, 134, 0.5);
  padding: 0.8rem 1.2rem;
  font-size: 0.95rem;
  background: #fffaf7;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-field textarea {
  border-radius: 1.2rem;
  border: 1px solid rgba(168, 122, 134, 0.5);
  padding: 0.8rem 1.2rem;
  font-size: 0.95rem;
  background: #fffaf7;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-field textarea:focus {
  outline: none;
  border-color: rgba(156, 75, 93, 0.8);
  box-shadow: 0 0 0 4px rgba(196, 109, 130, 0.2);
}

.auth-field input:focus {
  outline: none;
  border-color: rgba(156, 75, 93, 0.8);
  box-shadow: 0 0 0 4px rgba(196, 109, 130, 0.2);
}

.auth-hint {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.auth-disclosure {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}

.auth-disclosure a {
  color: var(--accent-strong);
  text-decoration: none;
  position: relative;
}

.auth-disclosure a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.auth-panel[data-mode="signup"] .auth-disclosure {
  display: block;
}

.auth-panel[data-mode="login"] .auth-disclosure {
  display: none;
}

.auth-strength {
  font-size: 0.8rem;
  color: var(--accent-strong);
  opacity: 0.9;
}

.auth-confirm {
  display: none;
}

.auth-name {
  display: none;
}

.auth-panel[data-mode="signup"] .auth-name {
  display: grid;
}

.auth-panel[data-mode="signup"] .auth-confirm {
  display: grid;
}

.auth-status {
  text-align: center;
  font-size: 0.9rem;
  color: var(--accent-strong);
  min-height: 1.2rem;
}

.auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.auth-toggle {
  padding: 0.55rem 1.4rem;
}

.auth-panel[data-mode="signup"] .auth-title {
  letter-spacing: 0.05rem;
}

.product-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}

.product-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  font-size: 0.75rem;
  color: var(--accent-strong);
  margin-bottom: 1rem;
}

.product-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.4rem, 3.6vw, 3.6rem);
  margin-bottom: 1rem;
}

.product-copy {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 1.6rem;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.product-cover {
  width: min(320px, 90vw);
  aspect-ratio: 3 / 4;
  border-radius: 1.5rem;
  background: linear-gradient(160deg, #fff8f4 0%, #f2ddd4 100%);
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(156, 75, 93, 0.18);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}

.product-cover span {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.4rem;
  color: var(--accent-strong);
}

.product-details {
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
}

.product-details div {
  padding: 1.2rem 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, #fffaf6 0%, #f4e2d8 100%);
  border: 1px solid var(--border);
}

.orb {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at top, #fff0e8 0%, #f7bfb1 42%, #d8748b 100%);
  box-shadow: 0 30px 60px rgba(202, 96, 118, 0.35);
  animation: float 6s ease-in-out infinite;
}

.card {
  background: linear-gradient(155deg, #fff8f4 0%, #f7e5db 100%);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(156, 75, 93, 0.14);
  max-width: 320px;
}

.card-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.card-copy {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.card-pill {
  background: linear-gradient(120deg, #fbe6da 0%, #f2d3c9 100%);
  color: var(--accent-strong);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  display: inline-block;
}

section {
  position: relative;
  z-index: 1;
}

.manifesto {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.manifesto h2,
.rituals h2,
.collection h2,
.community h2 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.1rem, 3vw, 3rem);
  margin-bottom: 1rem;
}

.manifesto-grid {
  display: grid;
  gap: 1.5rem;
}

.manifesto-item {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #fffaf6 0%, #f4e2d8 100%);
}

.manifesto-item span {
  color: var(--accent-strong);
  font-weight: 600;
}

.rituals {
  background: linear-gradient(120deg, #fff4ee 0%, #f2d8cf 100%);
  padding: 3rem;
  border-radius: 2rem;
}

.rituals-header {
  max-width: 520px;
  margin-bottom: 2rem;
}

.ritual-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ritual-cards article {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(245, 230, 222, 0.8));
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(231, 212, 201, 0.8);
}

.collection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.collection-grid {
  display: grid;
  gap: 1.2rem;
}

.collection-item {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(155deg, #fff8f4 0%, #f2ddd4 100%);
  border: 1px solid var(--border);
}

.community {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: linear-gradient(140deg, #2b1c22 0%, #3a2029 100%);
  color: #fff6f1;
  padding: 3rem;
  border-radius: 2rem;
}

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.signup input {
  flex: 1;
  min-width: 220px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: none;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: linear-gradient(120deg, #fff6f1, #f3e0d7);
  border: 1px solid rgba(216, 186, 176, 0.55);
  border-radius: 0;
  padding: 2rem 6vw;
  margin: 2rem 0 0;
  width: 100%;
}

.footer p {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 0.8rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  align-items: center;
}

.footer-social a {
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.qr-modal {
  position: fixed;
  inset: 0;
  background: rgba(45, 31, 36, 0.25);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(2px);
}

.qr-modal.is-open {
  display: flex;
}

.qr-modal-card {
  position: relative;
  background: linear-gradient(160deg, #fff8f4 0%, #f2ddd4 100%);
  border: 1px solid rgba(216, 186, 176, 0.55);
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 24px 50px rgba(156, 75, 93, 0.2);
  max-width: 360px;
}

.qr-modal-card img {
  width: min(240px, 70vw);
  height: auto;
  border-radius: 1rem;
  border: 1px solid rgba(216, 186, 176, 0.55);
}

.qr-modal-card p {
  margin-top: 1rem;
  color: var(--ink-soft);
}

.qr-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.4rem;
  color: var(--ink);
  margin-top: 1.2rem;
}

.qr-copy {
  margin-top: 0.6rem;
  font-size: 0.9rem;
}

.qr-link {
  margin-top: 1.4rem;
}

.qr-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  border: none;
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
}

.qr-close:hover,
.qr-close:focus {
  text-decoration: underline;
}

.page.is-blurred {
  filter: blur(6px);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer a {
  text-decoration: none;
  color: var(--ink-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (max-width: 900px) {
  .site-header {
    position: static;
    border-radius: 1.5rem;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-actions {
    grid-template-columns: 1fr;
  }

  .header-actions .nav,
  .header-actions .header-cta {
    grid-column: auto;
    justify-self: center;
  }

  .header-cta {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 2rem 1.5rem 3rem;
    padding-top: 8rem;
  }

  .rituals,
  .community {
    padding: 2rem;
  }

  .hero-visual .orb {
    width: 210px;
    height: 210px;
  }
}
