/* ============================================
   TandemBaby Marketing Site — Design System
   ============================================ */

/* --- Custom Properties --- */
:root {
  /* Brand */
  --color-bg: #F5EDE3;
  --color-card: #FFFFFF;
  --color-coral: #E8846B;
  --color-coral-light: #EDA08A;
  --color-coral-dark: #D4735A;

  /* Event palette */
  --color-sleep: #7B9ACC;
  --color-feed: #E8AE5C;
  --color-diaper: #8BBF9F;
  --color-medicine: #C490C4;
  --color-growth: #D4A574;

  /* Text */
  --color-text: #1A1A2E;
  --color-text-secondary: #6B7280;
  --color-text-tertiary: #9CA3AF;

  /* Surfaces */
  --color-border: #E5E7EB;
  --color-shadow: rgba(0, 0, 0, 0.06);

  /* Spacing (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Typography */
  --font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 2px 8px var(--color-shadow);
  --shadow-float: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 24px rgba(232, 132, 107, 0.15);

  /* Layout */
  --max-width: 1120px;
  --nav-height: 72px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-coral-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-coral);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 2px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-coral);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 1000;
}

.skip-link:focus {
  top: var(--space-2);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  padding: var(--space-10) 0;
}

/* --- Screen Reader Only --- */
.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;
}

/* --- Glass Card --- */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

/* --- Typography --- */
.heading--hero {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.heading--section {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.heading--card {
  font-size: var(--font-size-lg);
  font-weight: 600;
  line-height: 1.3;
}

.text--lead {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.text--body {
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.text--small {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--font-size-base);
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-coral), var(--color-coral-dark));
  color: #fff;
  box-shadow: var(--shadow-card);
}

.btn--primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
  color: #fff;
}

.btn--secondary {
  background: #fff;
  color: var(--color-coral-dark);
  border: 1.5px solid var(--color-coral);
}

.btn--secondary:hover {
  background: var(--color-coral);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--color-coral-dark);
  padding: var(--space-2) var(--space-4);
}

.btn--ghost:hover {
  color: var(--color-coral);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding-top: var(--space-4);
  padding-bottom: 0;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

.hero__heading {
  background: linear-gradient(135deg, var(--color-coral), var(--color-coral-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subline {
  margin-top: var(--space-4);
}

.hero__description {
  margin-top: var(--space-4);
  max-width: 440px;
  color: var(--color-text-secondary);
}

.hero__actions {
  margin-top: var(--space-8);
}

.hero__appstore {
  display: inline-block;
  transition: transform var(--transition-base);
}

.hero__appstore:hover {
  transform: scale(1.03);
}

/* Device mockup */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero__orbit {
  position: absolute;
  width: 320px;
  height: 320px;
}

.hero__orbit-ring {
  position: absolute;
  inset: 0;
  border: 2px dashed var(--color-coral-light);
  border-radius: 50%;
  opacity: 0.4;
  animation: orbit-spin 60s linear infinite;
}

.hero__orbit-dot {
  position: absolute;
  border-radius: 50%;
}

.hero__orbit-dot--1 {
  width: 10px;
  height: 10px;
  background: var(--color-feed);
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  animation: orbit-spin 60s linear infinite;
}

.hero__orbit-dot--2 {
  width: 8px;
  height: 8px;
  background: var(--color-sleep);
  bottom: 20%;
  right: 8%;
  animation: orbit-spin 60s linear infinite reverse;
}

.hero__orbit-dot--3 {
  width: 7px;
  height: 7px;
  background: var(--color-diaper);
  bottom: 25%;
  left: 10%;
  animation: orbit-spin 45s linear infinite;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.hero__mockup {
  position: relative;
  z-index: 1;
}

.hero__device {
  width: 240px;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow-float), 0 0 0 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  position: relative;
  padding: 8px;
}

.hero__device-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* Notification toast */
.notif {
  position: absolute;
  top: 16px;
  left: 12px;
  right: 12px;
  z-index: 10;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.notif.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.notif__inner {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 10px;
  background: rgba(30, 30, 46, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.notif__icon {
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 1px;
}

.notif__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.notif__app {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.notif__msg {
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .notif {
    top: 20px;
    left: 14px;
    right: 14px;
  }

  .notif__inner {
    padding: 10px 12px;
  }

  .notif__msg {
    font-size: 11px;
  }
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: var(--space-6);
    padding-bottom: 0;
  }

  .hero__orbit {
    width: 380px;
    height: 380px;
  }

  .hero__device {
    width: 280px;
  }
}

@media (min-width: 1024px) {
  .hero__content {
    max-width: 540px;
  }

  .hero__orbit {
    width: 420px;
    height: 420px;
  }

  .hero__device {
    width: 300px;
  }
}

/* ============================================
   Showcase
   ============================================ */
.showcase__heading {
  text-align: center;
}

.showcase__lead {
  text-align: center;
  margin-top: var(--space-3);
  margin-bottom: var(--space-8);
}

.showcase__screens {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  max-width: 960px;
  margin: 0 auto;
}

.showcase__item {
  text-align: center;
}

.showcase__device {
  width: 220px;
  margin: 0 auto var(--space-4);
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow-float), 0 0 0 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  padding: 8px;
  transition: transform var(--transition-base);
}

.showcase__device:hover {
  transform: translateY(-4px);
}

.showcase__device img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.showcase__label {
  margin-bottom: var(--space-1);
}

@media (min-width: 768px) {
  .showcase__screens {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }

  .showcase__device {
    width: 200px;
  }
}

@media (min-width: 1024px) {
  .showcase__device {
    width: 240px;
  }
}

/* ============================================
   How It Works
   ============================================ */
.how-it-works {
  padding-top: var(--space-6);
}

.how-it-works__heading {
  text-align: center;
}

.how-it-works__lead {
  text-align: center;
  margin-top: var(--space-3);
  margin-bottom: var(--space-8);
}

.how-it-works__steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.how-it-works__step {
  padding: var(--space-8) var(--space-6);
  text-align: center;
  width: 100%;
  max-width: 340px;
}

.how-it-works__step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}

.how-it-works__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--step-color);
  background: color-mix(in srgb, var(--step-color) 12%, transparent);
}

.how-it-works__icon svg {
  width: 28px;
  height: 28px;
}

.how-it-works__step .heading--card {
  margin-bottom: var(--space-2);
}

.how-it-works__connector {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(90deg);
  opacity: 0.4;
}

@media (min-width: 768px) {
  .how-it-works__steps {
    flex-direction: row;
    align-items: stretch;
    gap: var(--space-3);
  }

  .how-it-works__step {
    flex: 1;
    max-width: none;
  }

  .how-it-works__connector {
    transform: none;
    flex-shrink: 0;
  }
}

/* ============================================
   Features
   ============================================ */
.features__heading {
  text-align: center;
}

.features__lead {
  text-align: center;
  margin-top: var(--space-3);
  margin-bottom: var(--space-8);
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.feature-card {
  padding: var(--space-6);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--feature-color);
  background: color-mix(in srgb, var(--feature-color) 12%, transparent);
  margin-bottom: var(--space-4);
}

.feature-card .heading--card {
  margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   Apple Watch
   ============================================ */
.watch__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

.watch__content .text--lead {
  margin-top: var(--space-3);
}

.watch__content .text--small {
  margin-top: var(--space-4);
  color: var(--color-text-tertiary);
}

.watch__screens {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

.watch__device {
  width: 120px;
  background: #000;
  border-radius: 28px;
  padding: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(255, 255, 255, 0.08);
  transition: transform var(--transition-base);
}

.watch__device:hover {
  transform: translateY(-3px);
}

.watch__device img {
  width: 100%;
  height: auto;
  border-radius: 22px;
}

@media (min-width: 768px) {
  .watch__inner {
    grid-template-columns: 1fr 1fr;
  }

  .watch__device {
    width: 140px;
  }
}

@media (min-width: 1024px) {
  .watch__device {
    width: 150px;
  }
}

/* ============================================
   Pricing
   ============================================ */
.pricing__heading {
  text-align: center;
}

.pricing__lead {
  text-align: center;
  margin-top: var(--space-3);
  margin-bottom: var(--space-8);
}

.pricing__cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 780px;
  margin: 0 auto;
}

.pricing-card {
  padding: var(--space-8);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card__badge {
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-coral), var(--color-coral-dark));
  color: #fff;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card--pro {
  border-top: 4px solid var(--color-coral);
  box-shadow: var(--shadow-glow);
}

.pricing-card__name {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
}

.pricing-card__amount {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  line-height: 1;
}

.pricing-card__period {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
}

.pricing-card__annual {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  margin-top: var(--space-1);
}

.pricing-card__header {
  margin-bottom: var(--space-6);
}

.pricing-card__features {
  flex: 1;
  margin-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pricing-card__features li {
  padding-left: var(--space-6);
  position: relative;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.pricing-card__features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-coral);
  font-weight: 700;
}

.pricing-card__cta {
  width: 100%;
  text-align: center;
}

.pricing-card__note {
  text-align: center;
  margin-top: var(--space-3);
  color: var(--color-text-tertiary);
}

@media (min-width: 768px) {
  .pricing__cards {
    flex-direction: row;
    align-items: stretch;
  }

  .pricing-card {
    flex: 1;
  }

  .pricing-card--pro {
    transform: scale(1.03);
  }
}

/* ============================================
   Blog Preview
   ============================================ */
.blog-preview__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-8);
}

.blog-preview__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.blog-card {
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}

.blog-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--placeholder-color) 20%, var(--color-bg)),
    color-mix(in srgb, var(--placeholder-color) 45%, #fff)
  );
}

.blog-card__body {
  padding: var(--space-5);
}

.blog-card__date {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-text-tertiary);
}

.blog-card__title {
  margin-bottom: var(--space-2);
}

.blog-card__title a {
  color: var(--color-text);
}

.blog-card__title a:hover {
  color: var(--color-coral);
}

@media (min-width: 768px) {
  .blog-preview__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   FAQ
   ============================================ */
.faq__heading {
  text-align: center;
  margin-bottom: var(--space-10);
}

.faq__container {
  max-width: 720px;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) 0;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--font-size-base);
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::marker {
  display: none;
  content: '';
}

.faq__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  margin-left: var(--space-4);
}

.faq__chevron::before,
.faq__chevron::after {
  content: '';
  position: absolute;
  background: var(--color-text-tertiary);
  border-radius: 1px;
  transition: transform var(--transition-base);
}

.faq__chevron::before {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq__chevron::after {
  width: 2px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

details[open] .faq__chevron::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-base);
}

details[open] .faq__answer {
  max-height: 300px;
}

.faq__answer p {
  padding-bottom: var(--space-5);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ============================================
   Support
   ============================================ */
.support__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

.support__lead {
  margin-top: var(--space-3);
}

.support__links {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.support__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-coral-dark);
  font-weight: 500;
}

.support__link:hover {
  color: var(--color-coral);
}

.support__form {
  padding: var(--space-8);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  margin-bottom: var(--space-1);
  font-weight: 500;
  font-size: var(--font-size-sm);
}

.form-input {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  font-family: inherit;
  font-size: var(--font-size-base);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px rgba(232, 132, 107, 0.15);
}

.form-input--textarea {
  resize: vertical;
  min-height: 100px;
}

.form-input::placeholder {
  color: var(--color-text-tertiary);
}

.support__submit {
  width: 100%;
}

.support__form-note {
  text-align: center;
  margin-top: var(--space-3);
  color: var(--color-text-tertiary);
}

@media (min-width: 768px) {
  .support__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-text);
  color: #fff;
  padding: var(--space-12) 0 var(--space-6);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer__tagline {
  font-weight: 600;
  font-size: var(--font-size-lg);
  opacity: 0.9;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__col-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--font-size-xs);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: rgba(255, 255, 255, 0.5);
}

.footer__col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  text-align: center;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr repeat(3, auto);
    gap: var(--space-12);
  }

  .footer__links {
    grid-column: 2 / -1;
  }
}

/* ============================================
   Prose (long-form content pages)
   ============================================ */
.prose__container {
  max-width: 680px;
}

.prose h1 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.prose h2 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
}

.prose p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.prose ul {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.prose ul li {
  list-style: disc;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

.prose strong {
  color: var(--color-text);
  font-weight: 600;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-10) 0;
}

.prose__meta {
  color: var(--color-text-tertiary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-8);
}

.prose__meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-tertiary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-8);
}

.prose__back,
.prose__back-top {
  margin-top: var(--space-8);
}

.prose__back-top {
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .prose h1 {
    font-size: var(--font-size-4xl);
  }
}

/* ============================================
   Blog Listing
   ============================================ */
.blog-listing__heading {
  margin-bottom: var(--space-2);
}

.blog-listing__lead {
  margin-bottom: var(--space-10);
}

/* ============================================
   Nav
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 237, 227, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  transition: box-shadow var(--transition-base);
}

.nav--scrolled {
  box-shadow: var(--shadow-card);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
  text-decoration: none;
}

.nav__brand:hover {
  color: var(--color-text);
}

.nav__icon-img {
  border-radius: 8px;
}

.nav__name {
  font-weight: 700;
  font-size: var(--font-size-lg);
}

.nav__links {
  display: none;
  gap: var(--space-8);
}

.nav__link {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav__link:hover {
  color: var(--color-coral);
}

/* Hamburger */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}

/* Hamburger → X */
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav__links.is-active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(245, 237, 227, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--space-4) var(--space-5);
  gap: 0;
  border-bottom: 1px solid var(--color-border);
}

.nav__links.is-active .nav__link {
  padding: var(--space-3) 0;
  font-size: var(--font-size-base);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.nav__links.is-active .nav__link:last-child {
  border-bottom: none;
}

body.nav-open {
  overflow: hidden;
}

/* Spacer for fixed nav */
body {
  padding-top: var(--nav-height);
}

/* --- Responsive --- */
@media (min-width: 768px) {
  .heading--hero {
    font-size: var(--font-size-5xl);
  }

  .heading--section {
    font-size: 2.25rem;
  }

  .text--lead {
    font-size: var(--font-size-xl);
  }

  .section {
    padding: var(--space-12) 0;
  }

  /* Nav desktop */
  .nav__links {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }
}

@media (min-width: 1024px) {
  .heading--hero {
    font-size: 3.5rem;
  }
}

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