/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Condiment&family=Nunito:wght@400;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playwrite+NO&display=swap');

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===== TOKENS ===== */
:root {
  --bg:      #FFF5F0;
  --surface: #FFE8E0;
  --fg:      #3D2B2B;
  --muted:   #544747;
  --border:  #E8D0C8;
  --pink:    #D4848A;
  --terracotta: #C4705A;
  --sage:    #8BA888;
  --yellow:  #F2D677;
  --blue:    #7BA7C4;
  --cream:   #FFF9F5;

  --font-display: 'Nunito', system-ui, sans-serif;
  /* --font-script:  'Condiment', cursive; */
  --font-script:  'Playwrite NO', cursive;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ===== MEMPHIS SHAPE CLASSES ===== */
.memphis-shape {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

/* Flower */
.shape-flower { width: 60px; height: 60px; }
.shape-flower-lg { width: 90px; height: 90px; }
.shape-flower-sm { width: 40px; height: 40px; }

/* Leaf */
.shape-leaf { width: 50px; height: 70px; }
.shape-leaf-lg { width: 75px; height: 105px; }

/* Branch */
.shape-branch { width: 120px; height: 50px; }

/* Cloud */
.shape-cloud { width: 100px; height: 55px; }
.shape-cloud-lg { width: 160px; height: 85px; }

/* Abstract memphis */
.shape-triangle { width: 45px; height: 45px; }
.shape-circle { width: 30px; height: 30px; }
.shape-circle-lg { width: 50px; height: 50px; }
.shape-zigzag { width: 80px; height: 30px; }
.shape-dots { width: 60px; height: 20px; }
.shape-squiggle { width: 70px; height: 35px; }
.shape-stripe { width: 100px; height: 12px; }
.shape-cross { width: 30px; height: 30px; }
.shape-spiral { width: 40px; height: 40px; }
.shape-diamond { width: 35px; height: 35px; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 245, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  font-weight: 700;
  z-index: 102;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--terracotta); }
.nav-back {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-back:hover { color: var(--terracotta); }

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 640px) { .container { padding: 0 40px; } }
@media (min-width: 1024px) { .container { padding: 0 64px; } }

/* ===== ARTICLE CONTAINER ===== */
.article-page {
  padding-top: 80px;
}

/* ===== MASTHEAD / HERO ===== */
.article-masthead {
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.article-category {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 16px;
}
.article-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 64px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--fg);
  max-width: 800px;
  margin: 0 auto 24px;
  font-weight: 900;
}
.article-script {
  font-family: var(--font-script);
  font-size: clamp(20px, 3vw, 36px);
  color: var(--terracotta);
  display: block;
  margin-bottom: 24px;
  transform: rotate(-1deg);
  opacity: 0.8;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.article-meta span { display: flex; align-items: center; gap: 6px; }

/* ===== HERO IMAGE ===== */
.article-hero {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 24px;
}
.article-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== ARTICLE BODY ===== */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.article-body p {
  font-size: 17px;
  color: var(--fg);
  line-height: 1.8;
  margin-bottom: 28px;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--fg);
  margin: 56px 0 20px;
  font-weight: 800;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 40px 0 16px;
  font-weight: 700;
}
.article-body ul, .article-body ol {
  margin-bottom: 28px;
  padding-left: 24px;
}
.article-body li {
  font-size: 17px;
  color: var(--fg);
  line-height: 1.8;
  margin-bottom: 10px;
}
.article-body strong { font-weight: 700; color: var(--fg); }
.article-body em { font-style: italic; color: var(--muted); }
.article-body blockquote {
  margin: 48px 0;
  padding: 32px 28px;
  border-left: 3px solid var(--pink);
  background: var(--surface);
  border-radius: 0 16px 16px 0;
}
.article-body blockquote p {
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--fg);
  line-height: 1.6;
  margin-bottom: 8px;
}
.article-body blockquote cite {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}
.article-body hr {
  border: none;
  height: 2px;
  background: var(--border);
  margin: 56px 0;
  border-radius: 1px;
}

/* ===== FIGURE ===== */
.article-figure {
  margin: 48px 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  position: relative;
}
.article-figure img {
  width: 100%;
  display: block;
  border-radius: 20px;
}
.article-figure-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 20px;
}
.article-figure-placeholder span {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.4;
}
.article-figure figcaption {
  padding: 16px 20px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* ===== PULL QUOTE ===== */
.article-pullquote {
  margin: 56px 0;
  padding: 40px 32px;
  background: var(--surface);
  border-radius: 24px;
  position: relative;
  text-align: center;
}
.article-pullquote::before {
  content: '"';
  font-family: var(--font-script);
  font-size: 80px;
  color: var(--pink);
  opacity: 0.3;
  position: absolute;
  top: 10px;
  left: 24px;
  line-height: 1;
}
.article-pullquote p {
  font-family: var(--font-script);
  font-size: clamp(22px, 3.5vw, 32px);
  color: var(--fg);
  line-height: 1.5;
  margin-bottom: 12px;
}
.article-pullquote cite {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}

/* ===== AUTHOR BYLINE ===== */
.article-author {
  max-width: 720px;
  margin: 0 auto 80px;
  padding: 48px 32px;
  background: var(--surface);
  border-radius: 24px;
  display: flex;
  gap: 24px;
  align-items: center;
}
@media (max-width: 639px) {
  .article-author { flex-direction: column; text-align: center; }
}
.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--pink);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--cream);
  font-weight: 800;
}
.author-info { flex: 1; }
.author-name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 6px;
}
.author-bio {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.author-date {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 8px;
}

/* ===== RELATED POSTS ===== */
.related {
  background: var(--surface);
  padding: 80px 0;
}
.related-header {
  text-align: center;
  margin-bottom: 48px;
}
.related-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 8px;
}
.related-header p {
  font-family: var(--font-script);
  font-size: 24px;
  color: var(--terracotta);
  transform: rotate(-1deg);
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 640px) {
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}
.related-card {
  background: var(--bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(61,43,43,0.08);
}
.related-card-thumb {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.3;
}
.related-card-thumb.pink   { background: rgba(212,132,138,0.15); }
.related-card-thumb.terracotta { background: rgba(196,112,90,0.12); }
.related-card-thumb.sage   { background: rgba(139,168,136,0.15); }
.related-card-thumb.yellow { background: rgba(242,214,119,0.2); }
.related-card-thumb.blue   { background: rgba(123,167,196,0.15); }

.related-card-thumb-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
}
.related-card-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.related-card:hover .related-card-thumb-img img {
  transform: scale(1.04);
}

.related-card-current {
  border-color: var(--pink);
  box-shadow: 0 0 0 1px var(--pink);
}
.related-card-now {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  background: rgba(212,132,138,0.1);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.related-card-body {
  padding: 24px;
}
.related-card-tag {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 8px;
}
.related-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}
.related-card-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  font-weight: 700;
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--terracotta); }
.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-8px) rotate(var(--rot, 0deg)); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.memphis-shape.animate-float { animation: float 4s ease-in-out infinite; }
.memphis-shape.animate-float-slow { animation: float-slow 6s ease-in-out infinite; }
.memphis-shape.animate-spin { animation: spin-slow 20s linear infinite; }

.delay-1 { animation-delay: 0s; }
.delay-2 { animation-delay: 0.5s; }
.delay-3 { animation-delay: 1s; }
.delay-4 { animation-delay: 1.5s; }
.delay-5 { animation-delay: 2s; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE NAV ===== */

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 102;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: 61px;
  background: rgba(255, 245, 240, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 101;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 40px;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-mobile-overlay.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile-overlay ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.nav-mobile-overlay li {
  width: 100%;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.nav-mobile-overlay li:last-child {
  border-bottom: none;
}
.nav-mobile-overlay a {
  display: block;
  padding: 20px 32px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  transition: color 0.2s, background 0.2s;
}
.nav-mobile-overlay a:hover {
  color: var(--terracotta);
  background: var(--surface);
}

@media (max-width: 767px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}