/* ============================================================
   DÉBORAH LEE — playful blog styling
   Palette pulled from the logo: lavender, purple, soft pink,
   cream, and denim blue.
   ============================================================ */

:root {
  --lavender: #b7a0e0;
  --purple: #8b6fc9;
  --purple-deep: #5e4691;
  --pink: #f3cfe3;
  --pink-deep: #e79cc6;
  --cream: #fff7ef;
  --denim: #7ba0d4;
  --denim-deep: #5b83c0;
  --bg: #fbf6ff;
  --ink: #4a3b6b;
  --ink-soft: #7a6b9a;
  --card: #ffffff;
  --shadow: 0 14px 40px rgba(94, 70, 145, 0.14);
  --shadow-sm: 0 6px 18px rgba(94, 70, 145, 0.12);
  --radius: 26px;
  --radius-sm: 16px;
  --maxw: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(231, 156, 198, 0.18), transparent 38%),
    radial-gradient(circle at 88% 14%, rgba(123, 160, 212, 0.18), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(183, 160, 224, 0.20), transparent 45%);
  background-attachment: fixed;
  line-height: 1.65;
  font-size: 18px;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: "Fredoka", "Nunito", sans-serif;
  color: var(--purple-deep);
  line-height: 1.15;
  font-weight: 600;
}

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--pink-deep); }

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

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

/* ---------- floating background blobs ---------- */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.45;
  z-index: -1;
  pointer-events: none;
  animation: float 14s ease-in-out infinite;
}
.blob.b1 { width: 180px; height: 180px; background: var(--pink); top: 18%; left: -60px; }
.blob.b2 { width: 140px; height: 140px; background: var(--denim); top: 55%; right: -50px; animation-delay: -4s; }
.blob.b3 { width: 110px; height: 110px; background: var(--lavender); top: 80%; left: 8%; animation-delay: -8s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-26px) rotate(8deg); }
}

/* ---------- top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(251, 246, 255, 0.82);
  border-bottom: 2px solid rgba(183, 160, 224, 0.28);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 46px; width: auto; }
.nav-logo .name {
  font-family: "Pacifico", cursive;
  font-size: 1.5rem;
  color: var(--purple-deep);
}
.nav-links { display: flex; gap: 10px; align-items: center; }

/* ---------- language toggle ---------- */
.lang-toggle { display: flex; gap: 4px; align-items: center; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 5px;
  border: 2px solid rgba(183, 160, 224, 0.4); background: #fff;
  border-radius: 999px; padding: 4px 9px; cursor: pointer;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 0.72rem;
  color: var(--ink-soft); line-height: 1; transition: all 0.15s ease;
}
.lang-btn svg { border-radius: 2px; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.lang-btn:hover { border-color: var(--lavender); transform: translateY(-1px); }
.lang-btn.active { background: var(--purple); color: #fff; border-color: var(--purple); }
.auto-translated {
  display: inline-block; font-size: 0.8rem; color: var(--denim-deep);
  background: rgba(123, 160, 212, 0.15); border-radius: 999px;
  padding: 4px 13px; margin: 0 0 16px; font-weight: 700;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--pink-deep));
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.03); color: #fff; filter: brightness(1.05); }
.btn.ghost {
  background: #fff;
  color: var(--purple-deep);
  border: 2px solid var(--lavender);
  box-shadow: none;
}
.btn.ghost:hover { background: var(--cream); color: var(--purple-deep); }

/* ---------- hero / welcome ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  align-items: center;
  padding: 46px 0 36px;
}
.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 38px 36px;
  box-shadow: var(--shadow);
  position: relative;
  border: 2px solid rgba(231, 156, 198, 0.25);
}
.hero-eyebrow {
  display: inline-block;
  background: var(--pink);
  color: var(--purple-deep);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 0 0 14px; }
.hero .hero-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 14px; }
.hero .hero-greeting { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--ink); font-weight: 600; }
.hero .hero-name { height: clamp(40px, 8.5vw, 60px); width: auto; display: block; }
.hero h1 .script {
  font-family: "Pacifico", cursive;
  color: var(--pink-deep);
  font-weight: 400;
}
.hero p { font-size: 1.12rem; color: var(--ink); margin: 0 0 10px; }
.hero .flag { font-size: 1.3rem; }

.hero-portrait {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}
.hero-portrait::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 78%;
  background: linear-gradient(135deg, var(--lavender), var(--pink));
  border-radius: 50% 50% var(--radius) var(--radius) / 60% 60% var(--radius) var(--radius);
  z-index: 0;
  opacity: 0.55;
}
.hero-portrait img {
  position: relative;
  z-index: 1;
  max-height: 360px;
  width: auto;
  filter: drop-shadow(0 18px 26px rgba(94, 70, 145, 0.28));
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- section heading ---------- */
.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 8px;
}
.section-head h2 { font-size: 2rem; margin: 0; }
.section-head .squiggle { flex: 1; height: 4px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--lavender) 0 14px, transparent 14px 24px); }

/* ---------- tag filter bar ---------- */
.tagbar { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0 26px; }
.tag {
  cursor: pointer;
  font-family: "Fredoka", sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 6px 15px;
  border-radius: 999px;
  background: #fff;
  color: var(--denim-deep);
  border: 2px solid var(--denim);
  transition: all 0.16s ease;
}
.tag:hover { transform: translateY(-2px); }
.tag.active { background: var(--denim); color: #fff; }
.tag.purple { color: var(--purple-deep); border-color: var(--lavender); }
.tag.purple.active { background: var(--purple); color: #fff; }

/* ---------- post grid ---------- */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 26px;
  padding-bottom: 20px;
}
.post-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(183, 160, 224, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card .thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--lavender), var(--pink));
  overflow: hidden;
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .thumb.empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pill {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px;
  padding: 3px 10px; border-radius: 999px; background: var(--pink); color: var(--purple-deep);
}
.post-card h3 { margin: 0 0 8px; font-size: 1.3rem; }
.post-card .date { font-size: 0.82rem; color: var(--ink-soft); font-weight: 700; margin-bottom: 8px; }
.post-card .excerpt { color: var(--ink-soft); font-size: 0.96rem; margin: 0 0 14px; flex: 1; }
.post-card .readmore { font-family: "Fredoka", sans-serif; font-weight: 500; color: var(--purple); }

/* ---------- states ---------- */
.state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}
.state .emoji { font-size: 3rem; display: block; margin-bottom: 12px; }
.spinner {
  width: 44px; height: 44px; margin: 0 auto 16px;
  border: 5px solid var(--pink);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- single post page ---------- */
.article {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid rgba(231, 156, 198, 0.22);
  padding: 0 0 40px;
  margin: 30px 0;
  overflow: hidden;
}
.article .cover { height: 340px; background: linear-gradient(135deg, var(--lavender), var(--pink)); }
.article .cover img { width: 100%; height: 100%; object-fit: cover; }
.article .article-inner { padding: 34px 40px 0; }
.article h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 10px; }
.article .meta { color: var(--ink-soft); font-weight: 700; margin-bottom: 14px; }
.article .pills { margin-bottom: 22px; }
.article .content { font-size: 1.08rem; }
.article .content h2 { font-size: 1.6rem; margin: 28px 0 10px; }
.article .content h3 { font-size: 1.3rem; margin: 22px 0 8px; }
.article .content p { margin: 0 0 18px; }
.article .content img { border-radius: var(--radius-sm); margin: 22px 0; box-shadow: var(--shadow-sm); }
.article .content blockquote {
  margin: 22px 0; padding: 14px 22px;
  border-left: 5px solid var(--pink-deep);
  background: var(--cream); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--purple-deep);
}
.article .content ul, .article .content ol { margin: 0 0 18px; padding-left: 26px; }
.article .content li { margin-bottom: 6px; }
.article .content a { text-decoration: underline; }
.back-link { display: inline-block; margin: 24px 0 0; font-family: "Fredoka", sans-serif; font-weight: 500; }

/* ---------- subscribe ---------- */
.subscribe { padding: 10px 0 6px; }
.subscribe-card {
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  border-radius: var(--radius);
  padding: 34px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.subscribe-card h2 { margin: 0 0 6px; font-size: 1.8rem; color: var(--purple-deep); }
.subscribe-card p { margin: 0 auto 18px; max-width: 460px; color: var(--ink); }
.subscribe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.subscribe-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.subscribe-form input {
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  padding: 11px 18px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #fff;
  color: var(--ink);
  min-width: 240px;
  outline: none;
}
.subscribe-form input:focus { border-color: var(--purple); }

/* ---------- footer ---------- */
.footer {
  margin-top: 50px;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff;
  text-align: center;
  padding: 40px 22px 46px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.footer .heart { font-size: 1.6rem; display: block; margin-bottom: 10px; animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.2); } }
.footer p { max-width: 620px; margin: 0 auto; font-size: 1.04rem; opacity: 0.96; }
.footer .signed { font-family: "Pacifico", cursive; font-size: 1.3rem; margin-top: 14px; opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero { grid-template-columns: 1fr; padding-top: 30px; }
  .hero-portrait { order: -1; }
  .hero-portrait img { max-height: 280px; }
  .hero-card { padding: 28px 24px; }
  .nav-logo .name { font-size: 1.2rem; }
  .nav-links .btn { padding: 9px 16px; font-size: 0.9rem; }
  .article .article-inner { padding: 26px 22px 0; }
  .article .cover { height: 220px; }
}
