/* The Midlife Atlas — brand stylesheet (v2: matched to real cover art) */

:root {
  --cream: #F8F2E7;
  --cream-dark: #EEE2CE;
  --plum: #3E2438;
  --plum-dark: #241420;
  --gold: #B8873F;
  --gold-dark: #93692F;
  --sage: #8A9A6E;
  --ink: #2A211F;
  --ink-soft: #5C4F49;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--plum);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 242, 231, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--cream-dark);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--plum);
}

.logo:hover { text-decoration: none; }

.logo svg { flex-shrink: 0; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
}

nav.main-nav a.active { color: var(--gold-dark); }

.nav-cta {
  background: var(--plum);
  color: var(--cream) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}
.nav-cta:hover { background: var(--plum-dark); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-dark); }

.btn-outline {
  background: transparent;
  color: var(--plum);
  border: 2px solid var(--plum);
  padding: 12px 28px;
}
.btn-outline:hover { background: var(--plum); color: var(--cream); }

/* Hero */
.hero {
  padding: 80px 0 60px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.hero-visual {
  background: linear-gradient(155deg, var(--plum) 0%, var(--plum-dark) 100%);
  border-radius: 24px;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  text-align: center;
  padding: 40px;
  overflow: hidden;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; aspect-ratio: 16/9; }
}

/* Sections */
section { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-tint { background: var(--cream-dark); }
.section-plum {
  background: var(--plum);
  color: var(--cream);
}
.section-plum h2, .section-plum h3 { color: var(--cream); }
.section-plum p { color: #D9C9C7; }

.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

/* Symptom cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 800px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  border: 1px solid var(--cream-dark);
}
.card h3 { margin-bottom: 10px; }
.card a.card-link {
  font-weight: 600;
  font-size: 0.92rem;
}

/* Pricing / tiers */
.tier-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--cream-dark);
  display: flex;
  flex-direction: column;
  position: relative;
}
.tier-card.featured {
  border: 2px solid var(--gold);
}
.tier-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--gold);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tier-price {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  color: var(--plum);
  margin: 6px 0 16px;
}
.tier-price span { font-size: 1rem; color: var(--ink-soft); font-family: 'Work Sans', sans-serif; }
.tier-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex-grow: 1;
}
.tier-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Product cover thumbnails */
.tier-cover {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 3/4;
  background: var(--cream-dark);
}
.tier-cover img { width: 100%; height: 100%; object-fit: cover; }
.tier-cover.stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  aspect-ratio: 3/1.35;
}
.tier-cover.stack img { border-radius: 6px; }
.tier-cover.grid7 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  aspect-ratio: 4/2.2;
}
.tier-cover.grid7 img { border-radius: 6px; }

/* Blog */
.post-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  border: 1px solid var(--cream-dark);
  margin-bottom: 20px;
}
.post-meta {
  font-size: 0.82rem;
  color: var(--gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
article.post-body h2 { margin-top: 1.4em; }
article.post-body h3 { margin-top: 1.2em; color: var(--gold-dark); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--plum) 0%, var(--plum-dark) 100%);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #E6D9D6; }
.cta-banner .btn-primary { background: var(--gold); }
.cta-banner .btn-primary:hover { background: var(--gold-dark); }

/* Footer */
footer.site-footer {
  background: var(--plum-dark);
  color: #D9C9C7;
  padding: 48px 0 28px;
  margin-top: 40px;
}
footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
footer.site-footer a { color: #E3CFA0; }
footer.site-footer .foot-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem;
  text-align: center;
  color: #B3A099;
}
footer.site-footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Signup form */
.signup-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}
.signup-form input {
  flex-grow: 1;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--cream-dark);
  font-size: 0.95rem;
  font-family: inherit;
}
@media (max-width: 480px) {
  .signup-form { flex-direction: column; }
}

/* Disclosure note */
.disclosure {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
