/* ============================================================
   From Chew to Phew — Design System
   Built for: FromChewToPhew.com
   Author: Isaac Annan, RPh
   Brand: Laughing Gut Media
   ============================================================ */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Brand colors — pulled from the book cover & Bubbleton */
  --color-sky:        #A8DCF0;     /* cover background */
  --color-sky-light:  #D8EEF8;     /* hero washes */
  --color-sky-soft:   #EFF8FC;     /* section bg */
  --color-navy:       #1A4D7A;     /* primary text / titles */
  --color-navy-deep:  #0F3554;     /* hover state */
  --color-bubbleton:  #B4D8E8;     /* mascot body color */
  --color-orange:     #F47B2A;     /* primary CTA */
  --color-orange-deep:#D9651A;     /* CTA hover */
  --color-cream:      #FFF8EE;     /* warm background */
  --color-cream-deep: #F5ECDB;     /* section divider */
  --color-yellow:     #FFD166;     /* highlight accent */
  --color-ink:        #1F2937;     /* body text */
  --color-ink-muted:  #5B6573;     /* secondary text */
  --color-line:       #E5DDCB;     /* dividers on cream */
  --color-white:      #FFFFFF;

  /* Type scale */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent:  'Caveat', 'Brush Script MT', cursive;

  /* Spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 800px;
  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(26,77,122,0.08);
  --shadow:    0 8px 32px rgba(26,77,122,0.12);
  --shadow-lg: 0 24px 64px rgba(26,77,122,0.18);
  --shadow-book: 0 24px 48px rgba(15,53,84,0.25),
                 0 4px 12px rgba(15,53,84,0.15);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-navy);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-4);
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.5vw + 0.5rem, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw + 0.5rem, 1.85rem); }
h4 { font-size: 1.25rem; }

p { margin: 0 0 var(--s-4); }

a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--color-orange); }

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

::selection {
  background: var(--color-yellow);
  color: var(--color-navy);
}

/* ---------- 3. LAYOUT PRIMITIVES ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

.section {
  padding: var(--s-9) 0;
}
@media (min-width: 768px) {
  .section { padding: var(--s-10) 0; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: var(--s-3);
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-ink);
  margin-bottom: var(--s-5);
}

.handwritten {
  font-family: var(--font-accent);
  font-size: 1.6rem;
  color: var(--color-orange);
  line-height: 1.3;
}

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.95rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--color-orange);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(244,123,42,0.35);
}
.btn-primary:hover {
  background: var(--color-orange-deep);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(244,123,42,0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn-secondary:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-ghost {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-line);
}
.btn-ghost:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.btn-large {
  padding: 1.15rem 2.25rem;
  font-size: 1.05rem;
}

.btn-arrow::after {
  content: '→';
  transition: transform 0.25s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- 5. HEADER & NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 238, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--s-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  flex-shrink: 0;
}
.brand__mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-navy);
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand__name em {
  font-style: italic;
  color: var(--color-orange);
  font-weight: 600;
}

.nav {
  display: none;
  align-items: center;
  gap: var(--s-6);
}
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-navy);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--color-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }

.nav-cta {
  display: none;
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .nav-cta { display: inline-flex; }
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  margin: 0 auto;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 960px) { .menu-toggle { display: none; } }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--color-cream);
  padding: var(--s-7) var(--s-5);
  flex-direction: column;
  gap: var(--s-5);
  overflow-y: auto;
  z-index: 99;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-navy);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--color-line);
}
.mobile-nav .btn {
  margin-top: var(--s-5);
  align-self: flex-start;
}

/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  padding: var(--s-10) 0 var(--s-9);
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, var(--color-sky-light) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(255, 209, 102, 0.18) 0%, transparent 50%),
    var(--color-cream);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--s-8);
  }
}

.hero__content { position: relative; z-index: 2; }

.hero__headline {
  margin-bottom: var(--s-5);
}
.hero__headline em {
  font-style: italic;
  color: var(--color-orange);
  font-weight: 600;
}

.hero__sub {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-ink);
  max-width: 32rem;
  margin-bottom: var(--s-6);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--color-white);
  color: var(--color-navy);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
}
.badge::before {
  content: '✓';
  color: var(--color-orange);
  font-weight: 800;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}

.hero__availability {
  font-size: 0.9rem;
  color: var(--color-ink-muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--s-5);
}

.hero__book {
  position: relative;
  max-width: 380px;
  width: 100%;
  transform: rotate(-3deg);
  filter: drop-shadow(0 24px 48px rgba(15,53,84,0.25))
          drop-shadow(0 4px 12px rgba(15,53,84,0.15));
  transition: transform 0.4s var(--ease);
  animation: floatBook 6s ease-in-out infinite;
}
.hero__book:hover { transform: rotate(-1deg) scale(1.02); }

@keyframes floatBook {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(-3deg) translateY(-12px); }
}

.hero__bubbleton {
  position: absolute;
  bottom: -20px;
  right: -10px;
  width: 130px;
  z-index: 3;
  animation: peek 5s ease-in-out infinite;
}
@keyframes peek {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50%      { transform: rotate(8deg) translateY(-8px); }
}
@media (min-width: 900px) {
  .hero__bubbleton { width: 170px; bottom: 0; right: -20px; }
}

/* Decorative blobs */
.hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__decor::before,
.hero__decor::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
}
.hero__decor::before {
  width: 320px; height: 320px;
  background: var(--color-sky);
  top: 10%; right: -100px;
}
.hero__decor::after {
  width: 240px; height: 240px;
  background: var(--color-yellow);
  bottom: -80px; left: -80px;
  opacity: 0.25;
}

/* ---------- 7. TRUST / PHARMACIST QUOTE BAR ---------- */
.trust-bar {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--s-6) 0;
  text-align: center;
}
.trust-bar__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw + 0.5rem, 1.5rem);
  max-width: 720px;
  margin: 0 auto var(--s-3);
  line-height: 1.4;
}
.trust-bar__attribution {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  opacity: 0.85;
}
.trust-bar__attribution strong { color: var(--color-yellow); }

/* ---------- 8. SECTION HEADERS ---------- */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--s-8);
}
.section-header__title em {
  font-style: italic;
  color: var(--color-orange);
}
.section-header__sub {
  font-size: 1.1rem;
  color: var(--color-ink-muted);
}

/* ---------- 9. "WHY THIS BOOK" / FEATURE GRID ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5);
}
.feature {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: var(--s-6);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--color-sky);
}
.feature__icon {
  width: 56px; height: 56px;
  background: var(--color-sky-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: var(--s-4);
}
.feature__title {
  font-size: 1.2rem;
  color: var(--color-navy);
  margin-bottom: var(--s-2);
}
.feature__text {
  font-size: 0.97rem;
  color: var(--color-ink-muted);
  margin: 0;
  line-height: 1.6;
}

/* ---------- 10. CHAPTER LIST ---------- */
.section-chapters {
  background: var(--color-sky-soft);
  position: relative;
  overflow: hidden;
}
.section-chapters::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(168,220,240,0.4) 0%, transparent 50%);
  pointer-events: none;
}

.chapters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-4);
  position: relative;
  z-index: 1;
}
.chapter {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  background: var(--color-white);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  transition: all 0.25s var(--ease);
}
.chapter:hover {
  border-color: var(--color-orange);
  transform: translateX(4px);
}
.chapter__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-orange);
  line-height: 1;
  flex-shrink: 0;
  font-style: italic;
}
.chapter__title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-navy);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.3;
}

/* ---------- 11. AUTHOR / SOCIAL PROOF ---------- */
.section-author {
  background: var(--color-cream);
}
.author {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 900px) {
  .author { grid-template-columns: 1fr 1.5fr; gap: var(--s-8); }
}

.author__photo {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
}
.author__photo img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--color-white);
}
.author__photo::before {
  content: '';
  position: absolute;
  inset: -16px;
  background: var(--color-yellow);
  border-radius: var(--radius-lg);
  z-index: -1;
  transform: rotate(-3deg);
  opacity: 0.5;
}

.author__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.cred-pill {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.author__body p {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- 12. FREE RESOURCES ---------- */
.section-resources {
  background: var(--color-sky-soft);
}
.resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5);
}
.resource-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--s-6);
  border: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease);
}
.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--color-orange);
}
.resource-card__icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--color-sky), var(--color-bubbleton));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
  font-size: 1.5rem;
}
.resource-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-navy);
  margin-bottom: var(--s-2);
  line-height: 1.3;
}
.resource-card__text {
  font-size: 0.95rem;
  color: var(--color-ink-muted);
  flex-grow: 1;
  margin-bottom: var(--s-4);
}
.resource-card__btn {
  align-self: flex-start;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-orange);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.resource-card__btn::after { content: '↓'; }

/* ---------- 13. NEWSLETTER CTA ---------- */
.newsletter {
  background:
    radial-gradient(ellipse at center, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  color: var(--color-white);
  padding: var(--s-9) 0;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: var(--color-orange);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}
.newsletter__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 800px) {
  .newsletter__inner { grid-template-columns: 1.5fr 1fr; gap: var(--s-8); }
}

.newsletter__title {
  color: var(--color-white);
  margin-bottom: var(--s-3);
}
.newsletter__title em {
  font-style: italic;
  color: var(--color-yellow);
}
.newsletter__text {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: var(--s-5);
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
@media (min-width: 540px) {
  .newsletter__form { flex-direction: row; }
}
.newsletter__input {
  flex: 1;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-white);
  color: var(--color-ink);
}
.newsletter__input:focus {
  outline: none;
  border-color: var(--color-orange);
}
.newsletter__form .btn { flex-shrink: 0; }

.newsletter__bubbleton {
  width: 220px;
  margin: 0 auto;
  display: block;
}

/* ---------- 14. FINAL CTA ---------- */
.final-cta {
  background: var(--color-cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta__inner {
  max-width: 720px;
  margin: 0 auto;
}
.final-cta__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.25rem);
  color: var(--color-navy);
  line-height: 1.3;
  margin-bottom: var(--s-3);
}
.final-cta__attribution {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  color: var(--color-orange);
  margin-bottom: var(--s-7);
}

/* ---------- 15. FOOTER ---------- */
.site-footer {
  background: var(--color-navy-deep);
  color: rgba(255,255,255,0.85);
  padding: var(--s-8) 0 var(--s-5);
  font-size: 0.95rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}
@media (min-width: 720px) {
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
.site-footer h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: var(--s-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-footer ul {
  list-style: none;
  padding: 0; margin: 0;
}
.site-footer li { margin-bottom: var(--s-2); }
.site-footer a {
  color: rgba(255,255,255,0.75);
}
.site-footer a:hover { color: var(--color-yellow); }
.site-footer__brand p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  max-width: 32ch;
  line-height: 1.6;
}
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
}
@media (min-width: 720px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.site-footer__legal {
  display: flex;
  gap: var(--s-4);
  justify-content: center;
}

/* ---------- 16. UTILITIES ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--s-3) var(--s-5);
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { top: 0; color: var(--color-white); }

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- 17. BLOG ---------- */
.blog-hero {
  background: linear-gradient(180deg, var(--color-sky-soft) 0%, var(--color-cream) 100%);
  padding: var(--s-9) 0 var(--s-7);
  text-align: center;
}
.blog-hero h1 { margin-bottom: var(--s-3); }
.blog-hero p { font-size: 1.15rem; color: var(--color-ink-muted); max-width: 600px; margin: 0 auto; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--s-6);
}

.post-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--color-sky);
}
.post-card a { color: inherit; text-decoration: none; display: block; height: 100%; }
.post-card__cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--color-sky-light), var(--color-sky));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.post-card__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255,209,102,0.3), transparent 60%);
}
.post-card__body {
  padding: var(--s-5) var(--s-6) var(--s-6);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.post-card__meta {
  font-size: 0.8rem;
  color: var(--color-ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--s-3);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.post-card__category {
  background: var(--color-orange);
  color: var(--color-white);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.post-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-navy);
  line-height: 1.25;
  margin-bottom: var(--s-3);
  flex-grow: 0;
}
.post-card__excerpt {
  font-size: 0.97rem;
  color: var(--color-ink-muted);
  flex-grow: 1;
  margin-bottom: var(--s-4);
}
.post-card__readmore {
  color: var(--color-orange);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.post-card__readmore::after { content: '→'; transition: transform 0.25s var(--ease); }
.post-card:hover .post-card__readmore::after { transform: translateX(4px); }

/* --- Single post layout --- */
.post-hero {
  background: linear-gradient(180deg, var(--color-sky-soft) 0%, var(--color-cream) 100%);
  padding: var(--s-8) 0 var(--s-6);
}
.post-hero__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.post-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  font-size: 0.85rem;
  color: var(--color-ink-muted);
  margin-bottom: var(--s-4);
  flex-wrap: wrap;
}
.post-hero__title {
  font-size: clamp(1.85rem, 3.5vw + 0.5rem, 2.75rem);
  margin-bottom: var(--s-4);
}
.post-hero__title em { font-style: italic; color: var(--color-orange); }
.post-hero__dek {
  font-size: 1.15rem;
  color: var(--color-ink);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--s-7) var(--s-5);
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--color-ink);
}
.post-body h2 {
  font-size: 1.6rem;
  margin-top: var(--s-7);
  margin-bottom: var(--s-3);
  color: var(--color-navy);
}
.post-body h3 {
  font-size: 1.25rem;
  margin-top: var(--s-5);
  margin-bottom: var(--s-2);
  color: var(--color-navy);
}
.post-body p { margin-bottom: var(--s-4); }
.post-body strong { color: var(--color-navy); font-weight: 600; }
.post-body em { font-style: italic; }
.post-body ul, .post-body ol {
  margin: 0 0 var(--s-4); padding-left: var(--s-6);
}
.post-body li { margin-bottom: var(--s-2); }
.post-body blockquote {
  border-left: 4px solid var(--color-orange);
  background: var(--color-sky-soft);
  padding: var(--s-5) var(--s-6);
  margin: var(--s-6) 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-navy);
  font-family: var(--font-display);
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body a:not(.btn) { color: var(--color-orange); border-bottom: 1px solid currentColor; font-weight: 500; }
.post-body a:not(.btn):hover { color: var(--color-orange-deep); }
/* Ensure button text colors are preserved inside post-body */
.post-body .btn-primary,
.post-body .btn-primary:hover,
.post-cta .btn-primary,
.post-cta .btn-primary:hover {
  color: var(--color-white) !important;
  border-bottom: none;
}
.post-body .btn-secondary,
.post-cta .btn-secondary {
  color: var(--color-navy) !important;
  border-bottom: none;
}
.post-body .btn-secondary:hover,
.post-cta .btn-secondary:hover {
  color: var(--color-white) !important;
}
.post-body hr {
  border: 0;
  height: 1px;
  background: var(--color-line);
  margin: var(--s-7) 0;
}

.post-toc {
  background: var(--color-sky-soft);
  border-radius: var(--radius);
  padding: var(--s-5) var(--s-6);
  margin: var(--s-6) 0;
  border-left: 4px solid var(--color-sky);
}
.post-toc h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: var(--s-3);
}
.post-toc ol {
  margin: 0; padding-left: var(--s-5);
}
.post-toc li {
  font-size: 0.97rem;
  margin-bottom: var(--s-2);
}
.post-toc a {
  color: var(--color-navy);
  border: none;
  font-weight: 500;
}
.post-toc a:hover { color: var(--color-orange); }

.author-bio {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  margin: var(--s-7) 0;
  display: flex;
  gap: var(--s-5);
  align-items: center;
  border: 1px solid var(--color-line);
}
@media (max-width: 600px) { .author-bio { flex-direction: column; text-align: center; } }
.author-bio__photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-sm);
}
.author-bio__body p { margin: 0 0 var(--s-2); font-size: 0.97rem; }
.author-bio__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-navy);
}

.post-cta {
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--s-7);
  text-align: center;
  margin: var(--s-7) 0;
  position: relative;
  overflow: hidden;
}
.post-cta::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: var(--color-orange);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
}
.post-cta h3 {
  color: var(--color-white);
  font-size: 1.5rem;
  margin-bottom: var(--s-3);
  position: relative;
}
.post-cta p {
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--s-5);
  position: relative;
}
.post-cta .btn { position: relative; }

.post-share {
  border-top: 1px solid var(--color-line);
  padding-top: var(--s-5);
  margin-top: var(--s-7);
  text-align: center;
}
.post-share p {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: var(--s-3);
  font-weight: 600;
}
.post-share__links {
  display: flex;
  justify-content: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.post-share__links a {
  padding: var(--s-2) var(--s-4);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  color: var(--color-navy);
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--color-line);
}
.post-share__links a:hover {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

/* ---------- 18. SHOP / UNIVERSE SECTION ---------- */
.section-universe {
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-sky-soft) 100%);
  position: relative;
  overflow: hidden;
}
.section-universe::before {
  content: '';
  position: absolute;
  top: 10%; right: -120px;
  width: 320px; height: 320px;
  background: var(--color-sky);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

.universe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-6);
  position: relative;
  z-index: 1;
}

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--ease);
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-orange);
}

.product-card__badge {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  background: var(--color-orange);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.product-card__image {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
  background: linear-gradient(135deg, var(--color-sky-light), var(--color-cream));
  overflow: hidden;
}
.product-card__image img {
  max-width: 80%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
}
.product-card:hover .product-card__image img {
  transform: scale(1.05) rotate(-2deg);
}

.product-card__body {
  padding: var(--s-5) var(--s-6) var(--s-6);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.product-card__category {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-orange);
  font-weight: 600;
  margin-bottom: var(--s-2);
}
.product-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-navy);
  margin-bottom: var(--s-3);
  line-height: 1.25;
}
.product-card__desc {
  font-size: 0.95rem;
  color: var(--color-ink-muted);
  flex-grow: 1;
  margin-bottom: var(--s-4);
  line-height: 1.55;
}
.product-card__cta {
  align-self: flex-start;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-orange);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.product-card__cta::after {
  content: '→';
  transition: transform 0.25s var(--ease);
}
.product-card:hover .product-card__cta::after {
  transform: translateX(4px);
}

/* ---------- 19. SOCIAL ICONS ---------- */
.social-icons {
  display: inline-flex;
  gap: var(--s-3);
  align-items: center;
  flex-wrap: wrap;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  transition: all 0.25s var(--ease);
  border: 1px solid rgba(255,255,255,0.15);
}
.social-icons a:hover {
  background: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
  transform: translateY(-2px);
}
.social-icons svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
/* Light variant for use on light backgrounds */
.social-icons--light a {
  background: var(--color-cream);
  color: var(--color-navy);
  border: 1px solid var(--color-line);
}
.social-icons--light a:hover {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

/* Follow section block */
.follow-block {
  text-align: center;
  padding: var(--s-6);
  background: var(--color-sky-soft);
  border-radius: var(--radius-lg);
  margin: var(--s-6) 0;
  border: 1px solid var(--color-line);
}
.follow-block h3 {
  margin-bottom: var(--s-3);
  font-size: 1.3rem;
}
.follow-block p {
  color: var(--color-ink-muted);
  margin-bottom: var(--s-4);
  font-size: 0.97rem;
}

/* Footer social row */
.site-footer .social-icons {
  margin-top: var(--s-4);
}
.site-footer__bottom {
  flex-wrap: wrap;
  gap: var(--s-4);
}
