/* =============================================
   Jerri & Terry — Landing Page Styles
   Palette: Cream / Medium Navy / Gold accent / Brown tertiary
   Font: Poppins (brand) + Lora (warmth)
   ============================================= */

:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing (4px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Poppins', 'Helvetica Neue', sans-serif;
  --font-body: 'Lora', 'Georgia', serif;

  /* ========== LIGHT PALETTE ========== */
  /* Cream backgrounds */
  --color-bg:             #FAF7F0;
  --color-surface:        #F5F1E8;
  --color-surface-2:      #EDE8DC;

  /* Brown tertiary — borders, dividers, muted elements */
  --color-divider:        #D8CEBB;
  --color-border:         #C9BBAA;

  /* Text — warm brown base */
  --color-text:           #3B2F24;
  --color-text-muted:     #6B5D4F;
  --color-text-faint:     #A49783;

  /* Navy — primary brand color */
  --color-navy:           #1B3A5C;
  --color-navy-light:     #2A5280;
  --color-navy-dark:      #122840;

  /* Gold — accent */
  --color-gold:           #C9943E;
  --color-gold-hover:     #B07E2E;
  --color-gold-light:     #F0DDB8;

  /* Inverse text */
  --color-text-inverse:   #FAF7F0;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(27, 58, 92, 0.06);
  --shadow-md: 0 4px 12px rgba(27, 58, 92, 0.08);
  --shadow-lg: 0 12px 32px rgba(27, 58, 92, 0.12);

  /* Widths */
  --content-narrow: 640px;
  --content-default: 800px;
  --content-wide: 1000px;
}

/* ========== DARK MODE ========== */
[data-theme="dark"] {
  --color-bg:             #0F1A28;
  --color-surface:        #162233;
  --color-surface-2:      #1D2C40;
  --color-divider:        #2A3C52;
  --color-border:         #354A64;

  --color-text:           #E4DED4;
  --color-text-muted:     #9DA5AD;
  --color-text-faint:     #5E6B78;
  --color-text-inverse:   #0F1A28;

  --color-navy:           #6A9BC7;
  --color-navy-light:     #8AB4DA;
  --color-navy-dark:      #4A7FAE;

  --color-gold:           #D9A94E;
  --color-gold-hover:     #E5BC6A;
  --color-gold-light:     #2E2718;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #0F1A28;
    --color-surface:        #162233;
    --color-surface-2:      #1D2C40;
    --color-divider:        #2A3C52;
    --color-border:         #354A64;
    --color-text:           #E4DED4;
    --color-text-muted:     #9DA5AD;
    --color-text-faint:     #5E6B78;
    --color-text-inverse:   #0F1A28;
    --color-navy:           #6A9BC7;
    --color-navy-light:     #8AB4DA;
    --color-navy-dark:      #4A7FAE;
    --color-gold:           #D9A94E;
    --color-gold-hover:     #E5BC6A;
    --color-gold-light:     #2E2718;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.35);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.45);
  }
}

/* =============================================
   HERO
   ============================================= */

.hero {
  text-align: center;
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-6) var(--space-12);
  background: var(--color-bg);
}

.hero-inner {
  max-width: var(--content-default);
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-gold);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-4);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-3xl);
  color: var(--color-navy);
  line-height: 1.05;
  margin-bottom: var(--space-4);
}

.hero-title .amp {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  color: var(--color-gold);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

/* Hero CTA (product card inline in hero) */
.hero-cta {
  max-width: var(--content-narrow);
  margin: var(--space-10) auto var(--space-8);
}

/* Portraits */
.hero-portraits {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-12);
  flex-wrap: wrap;
}

.portrait-card {
  text-align: center;
  max-width: 260px;
}

.portrait-img {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto var(--space-4);
  border: 4px solid var(--color-navy);
  background: var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-gold-light);
}

.portrait-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-navy);
  opacity: 0.3;
  background: linear-gradient(135deg, var(--color-surface), var(--color-surface-2));
}

.portrait-label {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.portrait-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-navy);
}

.portrait-age {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.portrait-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 240px;
  margin: 0 auto;
}

/* =============================================
   ABOUT
   ============================================= */

.about {
  padding: clamp(var(--space-12), 6vw, var(--space-24)) var(--space-6);
  background: var(--color-surface);
}

.about-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-navy);
  text-align: center;
  margin-bottom: var(--space-10);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.about-card {
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

.about-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-gold-light);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.about-icon svg {
  display: inline-block;
}

.about-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.about-card p {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 auto;
}

/* =============================================
   LINKS (Linktree replacement)
   ============================================= */

.links {
  padding: clamp(var(--space-12), 6vw, var(--space-24)) var(--space-6);
  background: var(--color-bg);
}

.links-inner {
  max-width: var(--content-narrow);
  margin: 0 auto;
}

.links-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: var(--color-bg);
  border: 1.5px solid var(--color-navy);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-navy);
  transition: all var(--transition-interactive);
}

.link-btn:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.link-btn:hover svg {
  color: var(--color-text-inverse);
}

.link-btn svg {
  flex-shrink: 0;
  color: var(--color-gold);
  transition: color var(--transition-interactive);
  display: inline-block;
}

/* =============================================
   SHOP
   ============================================= */

.shop-card {
  background: var(--color-bg);
  border: 1.5px solid var(--color-divider);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.shop-card-content {
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

.shop-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xs);
  color: var(--color-navy);
  background: var(--color-gold-light);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}

.shop-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}

.shop-desc {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0 auto var(--space-6);
  max-width: 400px;
}

.shop-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text-inverse);
  background: var(--color-gold);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-interactive);
}

.shop-btn:hover {
  background: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  padding: var(--space-10) var(--space-6);
  background: var(--color-navy);
  text-align: center;
}

.footer-inner {
  max-width: var(--content-default);
  margin: 0 auto;
}

.footer-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-2);
}

.footer-email {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(250, 247, 240, 0.6);
  margin-bottom: var(--space-4);
}

.footer-credit {
  font-family: var(--font-body);
  font-size: var(--text-xs);
}

.footer-credit a {
  color: rgba(250, 247, 240, 0.4);
  text-decoration: none;
}

.footer-credit a:hover {
  color: rgba(250, 247, 240, 0.7);
  text-decoration: underline;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */

.js-ready .animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-ready .animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   MOBILE
   ============================================= */

@media (max-width: 600px) {
  .hero-portraits {
    gap: var(--space-6);
  }

  .portrait-img {
    width: 160px;
    height: 160px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(2rem, 1rem + 5vw, 3.5rem);
  }
}
