:root {
  --ink: #241632;
  --purple: #3b235f;
  --purple-2: #56327d;
  --lavender: #efe9f8;
  --cream: #fffaf0;
  --sand: #e8d8bf;
  --gold: #c89d55;
  --rose: #c9828d;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(36, 22, 50, 0.16);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(200, 157, 85, 0.18), transparent 34rem),
    linear-gradient(135deg, #fffaf0 0%, #f7f0ff 52%, #fffaf0 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(255, 250, 240, 0.9);
  border-bottom: 1px solid rgba(59, 35, 95, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(59, 35, 95, 0.18);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem;
  background: rgba(59, 35, 95, 0.08);
  border-radius: 999px;
}

.main-nav a {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: rgba(36, 22, 50, 0.78);
  font-size: 0.93rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: var(--purple);
  transform: translateY(-1px);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) 0 3rem;
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.newsletter-panel h2 {
  margin: 0;
  color: var(--purple);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.hero-text,
.page-hero p,
.section-heading p,
.newsletter-panel p {
  color: rgba(36, 22, 50, 0.72);
  font-size: 1.08rem;
  line-height: 1.8;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold) !important;
  font-size: 0.78rem !important;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-actions,
.signup-form div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button,
.signup-form button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary,
.signup-form button {
  color: var(--white);
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  box-shadow: 0 14px 28px rgba(59, 35, 95, 0.22);
}

.button.secondary {
  color: var(--purple);
  background: var(--white);
  border: 1px solid rgba(59, 35, 95, 0.16);
}

.hero-art {
  padding: 0.8rem;
  background: var(--white);
  border: 1px solid rgba(59, 35, 95, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.hero-art img {
  width: 100%;
  min-height: 290px;
  object-fit: contain;
  background: var(--purple);
  border-radius: calc(var(--radius) - 10px);
}

.feature-strip,
.mini-grid,
.social-grid,
.product-grid,
.help-layout {
  display: grid;
  gap: 1rem;
}

.feature-strip {
  grid-template-columns: repeat(3, 1fr);
  padding: 1rem;
  margin: 1rem 0 4rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(59, 35, 95, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-strip article,
.mini-card,
.social-card,
.faq-list article,
.contact-panel,
.newsletter-panel {
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(59, 35, 95, 0.1);
  border-radius: 22px;
}

.feature-strip span {
  color: var(--gold);
  font-size: 1.6rem;
}

h2,
h3,
p {
  margin-top: 0;
}

.feature-strip h2,
.product-info h2,
.faq-list h2,
.contact-panel h2,
.social-card strong {
  color: var(--purple);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  line-height: 1;
}

.feature-strip p,
.product-info p,
.faq-list p,
.contact-panel p,
.social-card p {
  color: rgba(36, 22, 50, 0.67);
  line-height: 1.7;
}

.collection-preview,
.page-hero,
.shop-toolbar,
.newsletter-panel {
  margin-bottom: 4rem;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 1.5rem;
}

.mini-grid {
  grid-template-columns: repeat(3, 1fr);
}

.mini-card {
  box-shadow: 0 16px 34px rgba(36, 22, 50, 0.09);
}

.product-visual {
  display: grid;
  place-items: center;
  min-height: 220px;
  margin-bottom: 1rem;
  color: var(--white);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.34), transparent 9rem),
    linear-gradient(135deg, var(--purple), var(--purple-2));
  border-radius: 20px;
  font-family: "Cormorant Garamond", serif;
  font-size: 5rem;
  overflow: hidden;
}

.product-visual.sun {
  background: linear-gradient(135deg, #b98244, #e8c170);
}

.product-visual.star {
  background: linear-gradient(135deg, #2e204d, #7b559d);
}

.product-visual.print {
  background: linear-gradient(135deg, #6d315f, #d08c98);
}

.mini-card h3 {
  color: var(--purple);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.mini-card p {
  color: var(--gold);
  font-weight: 800;
}

.text-link {
  width: fit-content;
  margin-top: 1.5rem;
  color: var(--purple);
  background: rgba(59, 35, 95, 0.08);
}

.page-hero {
  max-width: 820px;
  padding: clamp(3rem, 7vw, 5rem) 0 0;
}

.page-hero h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(3.5rem, 9vw, 7rem);
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 1rem;
  background: var(--purple);
  border-radius: 999px;
  color: var(--white);
  box-shadow: var(--shadow);
}

.shop-toolbar span {
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

.product-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 4rem;
}

.flip-card {
  min-height: 520px;
  perspective: 1200px;
  cursor: pointer;
  outline: none;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  transition: transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card.is-flipped .flip-card-inner,
.flip-card:focus-visible .flip-card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: var(--white);
  border: 1px solid rgba(59, 35, 95, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backface-visibility: hidden;
}

.card-front .product-visual {
  min-height: 190px;
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-info strong {
  margin-top: auto;
  color: var(--purple);
  font-size: 1.15rem;
}

.tag {
  width: fit-content;
  margin-bottom: 0.6rem;
  padding: 0.35rem 0.7rem;
  color: var(--purple) !important;
  background: var(--lavender);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.card-back {
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 12rem),
    linear-gradient(135deg, var(--purple), #20122f);
  transform: rotateY(180deg);
}

.card-back h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  margin-bottom: 0;
}

.card-back p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.card-back span {
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-weight: 800;
}

.social-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 2rem;
}

.social-card {
  min-height: 230px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.social-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.social-card span {
  display: inline-flex;
  margin-bottom: 1.1rem;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.social-card strong {
  display: block;
  margin-bottom: 1rem;
}

.newsletter-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--purple);
  box-shadow: var(--shadow);
}

.newsletter-panel h2,
.newsletter-panel p {
  color: var(--white);
}

.signup-form label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--white);
  font-weight: 800;
}

.signup-form input {
  flex: 1;
  min-width: 220px;
  min-height: 48px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.signup-form input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.signup-form button {
  background: var(--gold);
}

.help-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  margin-bottom: 4rem;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.contact-panel {
  position: sticky;
  top: 100px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-panel img {
  width: 150px;
  height: 150px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  object-fit: cover;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1rem 3rem;
  color: rgba(255, 255, 255, 0.84);
  background: var(--purple);
}

.site-footer img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
}

.site-footer p {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
}

.site-footer span {
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .hero,
  .newsletter-panel,
  .help-layout {
    grid-template-columns: 1fr;
  }

  .feature-strip,
  .mini-grid,
  .social-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .hero {
    padding-top: 2rem;
  }

  .feature-strip,
  .mini-grid,
  .social-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .shop-toolbar {
    border-radius: 24px;
  }

  .site-footer {
    align-items: flex-start;
    justify-content: flex-start;
  }
}
