/* ==========================================================================
   The Munich Fam – shared design system
   Editorial magazine feel. Static site, no build step: this file is loaded
   as-is by every page. Edit here, it changes everywhere.
   ========================================================================== */

:root {
  --dark:   #1a0e08;
  --cream:  #f0e8e2;
  --ww:     #fdf8f5;
  --brown:  #7a4a1e;
  --bd:     #5c3510;
  --gold:   #c8852a;
  --border: #dfd0c3;
  --mid:    #8c6a52;
  --light:  #b89880;

  /* category coding */
  --things-accent:#c4623a; --things-pale:#fdf0eb; --things-dark:#8a3a1c;
  --eating-accent:#4a7a52; --eating-pale:#e8f4ec; --eating-dark:#2d5432;
  --day-accent:#b87820;    --day-pale:#fef4e0;    --day-dark:#7a4f10;
  --family-accent:#7052a0; --family-pale:#f2eafa; --family-dark:#4a3470;

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --header-h: 76px;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(26,14,8,0.18);
  --shadow-lift: 0 20px 40px -14px rgba(26,14,8,0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--bd);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3 { font-family: var(--serif); color: var(--dark); margin: 0; text-wrap: balance; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold);
}
em.accent { font-style: italic; color: var(--gold); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background-color .35s ease, box-shadow .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(240,232,226,0.92);
  backdrop-filter: blur(8px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.site-header .container { display: flex; align-items: center; gap: 20px; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--ww); transition: color .35s ease; }
.site-header.scrolled .brand { color: var(--dark); }
.brand img { width: 36px; height: 36px; border-radius: 50%; }

.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav a { font-size: 0.92rem; font-weight: 500; color: var(--cream); opacity: 0.85; transition: color .35s ease, opacity .2s; }
.site-header.scrolled .main-nav a { color: var(--bd); }
.main-nav a:hover { opacity: 1; }
.nav-cta {
  padding: 9px 18px; border-radius: 100px; background: var(--gold); color: var(--dark) !important;
  font-weight: 600; opacity: 1 !important;
}
.hamburger { display: none; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--dark) 0%, #241206 100%);
  color: var(--cream);
  padding: 64px 0 96px;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + 72px);
}
.hero-inner { max-width: 760px; }
.hero h1 {
  color: var(--ww);
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 18px 0 20px;
  letter-spacing: -0.01em;
}
.hero p.sub { font-size: 1.15rem; color: var(--light); max-width: 56ch; margin: 0 0 36px; }
.hero-stats { display: flex; gap: 36px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.hero-stat .label { font-size: 0.82rem; color: var(--light); text-transform: uppercase; letter-spacing: 0.05em; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 100px; font-weight: 600; font-size: 0.95rem;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  border: 1px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--dark); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(200,133,42,0.5); }
.btn-ghost { background: transparent; border-color: rgba(240,232,226,0.35); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); transform: translateY(-2px); }

/* ---------- category tiles ---------- */
.tiles-bar {
  position: sticky; top: var(--header-h); z-index: 90;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.tiles-row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.tiles-row::-webkit-scrollbar { display: none; }
.tile {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 100px;
  background: var(--ww); border: 1px solid var(--border);
  font-weight: 600; font-size: 0.92rem; color: var(--bd);
  transition: all .2s ease;
}
.tile:hover { border-color: var(--gold); }
.tile.active { background: var(--dark); color: var(--ww); border-color: var(--dark); }
.tile .count { opacity: 0.6; font-weight: 500; font-size: 0.85em; }

.pills-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; max-height: 0; opacity: 0; overflow: hidden; transition: all .3s ease; }
.pills-row.open { max-height: 200px; opacity: 1; margin-top: 14px; }
.pill {
  padding: 7px 16px; border-radius: 100px; font-size: 0.85rem; font-weight: 500;
  background: var(--pale, var(--ww)); color: var(--pale-dark, var(--mid));
  border: 1px solid transparent; transition: all .2s ease;
}
.pill.active { background: var(--pale-dark, var(--brown)); color: #fff; }

/* ---------- posts section ---------- */
.posts-section { padding: 56px 0 96px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.section-head h2 { font-size: 1.6rem; }
.section-head .count { color: var(--light); font-size: 0.9rem; }

.featured-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--ww); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 44px; box-shadow: var(--shadow);
}
.featured-visual {
  background: var(--pale, var(--cream));
  display: flex; align-items: center; justify-content: center; padding: 48px;
  min-height: 260px;
}
.featured-visual .emoji { font-size: 5rem; opacity: 0.85; }
.featured-body { padding: 44px 44px 44px 8px; display: flex; flex-direction: column; justify-content: center; }
.featured-body .badge { align-self: flex-start; }
.featured-body h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 14px 0 14px; line-height: 1.2; }
.featured-body p { color: var(--mid); font-size: 1.02rem; margin: 0 0 20px; }
.featured-meta { display: flex; gap: 14px; align-items: center; color: var(--light); font-size: 0.85rem; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
  background: var(--pale, var(--cream)); color: var(--pale-dark, var(--brown));
}

.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.card {
  background: var(--ww); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-top: 3px solid var(--pale-accent, var(--border));
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--border); }
.card h3 { font-size: 1.15rem; margin: 12px 0 10px; line-height: 1.3; }
.card p { color: var(--mid); font-size: 0.92rem; margin: 0 0 16px; flex: 1; }
.card .meta { color: var(--light); font-size: 0.8rem; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--mid); }

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

/* ---------- work-with-me components ---------- */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  background: var(--ww); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 24px; box-shadow: var(--shadow);
}
.stat-tile { text-align: center; }
.stat-tile .num { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--brown); font-variant-numeric: tabular-nums; }
.stat-tile .label { font-size: 0.8rem; color: var(--light); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; }
.stats-footnote { text-align: center; color: var(--light); font-size: 0.82rem; margin: 14px 0 0; }
.insta-section .stats-strip { background: rgba(240,232,226,0.05); border-color: rgba(240,232,226,0.15); box-shadow: none; }
.insta-section .stat-tile .num { color: var(--gold); }
.insta-section .stat-tile .label { color: var(--light); }

.collab-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.collab-badge {
  padding: 12px 22px; border-radius: 100px; background: var(--ww); border: 1px solid var(--border);
  font-family: var(--serif); font-weight: 600; font-size: 0.95rem; color: var(--brown);
}

@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

/* fade-up */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.in-view { opacity: 1; transform: translateY(0); }

/* ---------- instagram section ---------- */
.insta-section {
  background: var(--dark); color: var(--cream);
  padding: 88px 0; margin-top: 40px;
}
.insta-head { text-align: center; margin-bottom: 48px; }
.insta-head .eyebrow { color: var(--gold); }
.insta-head h2 { color: var(--ww); font-size: clamp(2rem, 4vw, 3rem); margin: 14px 0 16px; }
.insta-head p { color: var(--light); max-width: 52ch; margin: 0 auto 28px; }
.insta-stats { display: flex; gap: 44px; justify-content: center; margin-bottom: 8px; flex-wrap: wrap; }
.insta-tiles {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 40px;
}
.insta-tile {
  aspect-ratio: 1; border-radius: 10px; background: #241206;
  border: 1px solid rgba(240,232,226,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--gold);
  transition: transform .2s ease, border-color .2s ease;
}
.insta-tile:hover { transform: translateY(-3px); border-color: var(--gold); }
.insta-tile.viral { background: linear-gradient(135deg, var(--gold), #7a4f10); color: var(--dark); font-size: 1.1rem; font-weight: 700; text-align: center; padding: 10px; }
.insta-pending {
  max-width: 480px; margin: 40px auto 0; text-align: center;
  border: 1px dashed rgba(240,232,226,0.3); border-radius: 12px;
  padding: 24px; color: var(--light); font-size: 0.9rem;
}
.insta-embeds {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px;
  max-width: 1040px; margin-left: auto; margin-right: auto;
}
.insta-embeds > .instagram-media { margin: 0 !important; width: 100% !important; min-width: 0 !important; }
@media (max-width: 980px) { .insta-embeds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .insta-embeds { grid-template-columns: 1fr; max-width: 340px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--light); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { color: var(--ww); font-family: var(--serif); font-size: 1rem; margin-bottom: 16px; }
.footer-grid a { display: block; color: var(--light); font-size: 0.9rem; margin-bottom: 10px; transition: color .2s; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand p { max-width: 32ch; font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid rgba(240,232,226,0.12); padding-top: 24px; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- mobile menu ---------- */
.mobile-overlay {
  position: fixed; inset: 0; background: var(--dark); z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-overlay a { font-family: var(--serif); font-size: 1.6rem; color: var(--ww); }
.mobile-close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: var(--ww); font-size: 1.8rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .featured-card { grid-template-columns: 1fr; }
  .featured-body { padding: 32px; }
  .insta-tiles { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav { position: fixed; inset: 0; }
  .main-nav { display: none; }
  .hamburger { display: flex; align-items: center; justify-content: center; margin-left: auto; width: 40px; height: 40px; background: none; border: none; color: var(--cream); }
  .site-header.scrolled .hamburger { color: var(--dark); }
  .hamburger span, .hamburger::before, .hamburger::after { display: none; }
  .tile { white-space: nowrap; padding: 10px 16px; font-size: 0.86rem; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--header-h) + 48px); padding-bottom: 64px; }
  .hero-stats { gap: 24px; }
}
