/* ============================
   BLOG — NEWSPAPER STYLE
   ============================ */

:root {
  --dark:      #111111;
  --dark-2:    #181818;
  --card-bg:   #1c1c1c;
  --border:    rgba(255,255,255,0.07);
  --pink-deep: #e8a4c0;
  --pink-mid:  #f0c4da;
  --muted:     #777;
  --text:      #eeeeee;
  --text-sec:  #aaaaaa;
  --radius:    12px;
  --ease:      0.3s cubic-bezier(0.4,0,0.2,1);
  --shadow:    0 4px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 16px 56px rgba(0,0,0,0.65);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; background: none; }
a { color: inherit; text-decoration: none; }

body {
  font-family: 'Georgia', serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* dot texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(250,228,239,0.03) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* ── Header ── */
.blog-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17,17,17,0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  gap: 1rem;
}

.blog-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.55);
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid var(--border);
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.blog-back-btn svg { width: 16px; height: 16px; }
.blog-back-btn:hover { color: var(--pink-mid); border-color: var(--pink-deep); background: rgba(250,228,239,0.06); }

.blog-header-brand { display: flex; align-items: center; gap: 11px; }
.blog-header-logo { height: 36px; width: auto; object-fit: contain; }
.blog-header-title {
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink-mid);
  font-weight: 600;
}
.blog-header-spacer { width: 100px; }

/* ── Masthead ── */
.blog-masthead {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 2rem 2.5rem;
  border-bottom: 1px solid var(--border);
}
.blog-masthead-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 0.8rem;
}
.blog-masthead-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.7rem;
}
.blog-masthead-sub {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  max-width: 520px;
  margin: 0 auto;
}
.blog-masthead-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem auto 0;
  max-width: 400px;
}
.blog-masthead-rule::before,
.blog-masthead-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--pink-deep), transparent);
}
.blog-masthead-rule span { font-size: 1rem; color: var(--pink-deep); }

/* ── Main layout ── */
.blog-main {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

/* ── Featured post (latest) ── */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 3.5rem;
  cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.blog-featured:hover { border-color: rgba(232,164,192,0.3); box-shadow: 0 24px 80px rgba(0,0,0,0.7); }

.blog-featured-img {
  position: relative;
  min-height: 420px;
  background: linear-gradient(135deg, #1a1214, #2a1820, #1e1518);
  overflow: hidden;
}
.blog-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-featured:hover .blog-featured-img img { transform: scale(1.04); }
.blog-featured-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(232,164,192,0.15);
}

.blog-featured-body {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-featured-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink-deep);
  background: rgba(232,164,192,0.1);
  border: 1px solid rgba(232,164,192,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1.2rem;
  width: fit-content;
}
.blog-featured-date { font-size: 0.78rem; color: var(--muted); margin-bottom: 1rem; }
.blog-featured-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 1rem;
}
.blog-featured-excerpt {
  font-size: 0.95rem;
  color: var(--text-sec);
  line-height: 1.75;
  margin-bottom: 1.8rem;
}
.blog-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.5rem;
  border-radius: 30px;
  border: 1.5px solid var(--pink-deep);
  color: var(--pink-mid);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  width: fit-content;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}
.blog-read-btn svg { width: 14px; height: 14px; }
.blog-read-btn:hover { background: rgba(232,164,192,0.15); color: #fff; transform: translateX(3px); }

/* ── Section divider ── */
.blog-divider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.blog-divider-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pink-deep);
  white-space: nowrap;
}
.blog-divider-line { flex: 1; height: 1px; background: var(--border); }

/* ── Articles grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-article {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  display: flex;
  flex-direction: column;
}
.blog-article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232,164,192,0.25);
}

.blog-article-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1214, #2a1820, #1e1518);
  flex-shrink: 0;
}
.blog-article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-article:hover .blog-article-img img { transform: scale(1.05); }
.blog-article-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(232,164,192,0.12);
}

.blog-article-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-article-date {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.blog-article-title {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 0.7rem;
}
.blog-article-excerpt {
  font-size: 0.84rem;
  color: var(--text-sec);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1.1rem;
}
.blog-article-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pink-deep);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--ease), gap var(--ease);
}
.blog-article-link svg { width: 13px; height: 13px; }
.blog-article:hover .blog-article-link { color: var(--pink-mid); gap: 8px; }

/* ── Post modal ── */
.blog-post-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}
.blog-post-modal.active { opacity: 1; pointer-events: all; }

.blog-post-inner {
  max-width: 780px;
  margin: 3rem auto;
  background: var(--dark-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.blog-post-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  transition: background var(--ease);
}
.blog-post-close svg { width: 15px; height: 15px; }
.blog-post-close:hover { background: rgba(250,228,239,0.2); }

.blog-post-cover {
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1214, #2a1820, #1e1518);
}
.blog-post-cover img { width: 100%; height: 320px; object-fit: cover; }

.blog-post-content {
  padding: 2.5rem 3rem 3rem;
}
.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.2rem;
}
.blog-post-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink-deep);
  background: rgba(232,164,192,0.1);
  border: 1px solid rgba(232,164,192,0.2);
  padding: 3px 10px;
  border-radius: 20px;
}
.blog-post-date-label { font-size: 0.78rem; color: var(--muted); }
.blog-post-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.blog-post-excerpt-lead {
  font-size: 1.05rem;
  color: var(--text-sec);
  font-style: italic;
  line-height: 1.7;
  border-left: 3px solid var(--pink-deep);
  padding-left: 1.2rem;
  margin: 1.4rem 0 2rem;
}
.blog-post-body { font-size: 0.97rem; color: var(--text-sec); line-height: 1.85; }
.blog-post-body p { margin-bottom: 1.3rem; }
.blog-post-body p:last-child { margin-bottom: 0; }

/* ── Empty ── */
.blog-empty { text-align: center; padding: 4rem 1rem; color: var(--muted); font-style: italic; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { min-height: 240px; }
  .blog-featured-body { padding: 2rem 1.5rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-main { padding: 2rem 1.2rem 4rem; }
  .blog-header { padding: 0 1.2rem; }
  .blog-post-inner { margin: 1rem; }
  .blog-post-content { padding: 1.8rem 1.5rem 2.5rem; }
  .blog-header-spacer { display: none; }
}
@media (max-width: 480px) {
  .blog-masthead { padding: 2.5rem 1.2rem 2rem; }
  .blog-header-title { display: none; }
}

/* ── Footer ── */
.blog-footer {
  background: #0d0d0d;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 3rem 0 0;
  position: relative;
  z-index: 1;
}
.blog-footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.blog-footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; }
.blog-footer-brand p { font-size: 0.82rem; color: #777; line-height: 1.7; max-width: 320px; }
.blog-footer-logo img { height: 60px; width: auto; object-fit: contain; margin-bottom: 1rem; }
.blog-footer-social { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1rem; }
.blog-footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #aaa; transition: background 0.3s, color 0.3s;
}
.blog-footer-social a svg { width: 16px; height: 16px; }
.blog-footer-social a:hover { background: rgba(240,196,218,0.15); color: #f0c4da; }
.blog-footer-col h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #f0c4da; margin-bottom: 1rem; }
.blog-footer-col a { display: block; font-size: 0.84rem; color: #777; text-decoration: none; margin-bottom: 0.6rem; transition: color 0.3s; }
.blog-footer-col a:hover { color: #eeeeee; }
.blog-footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 1.2rem 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: #555; }
@media (max-width: 768px) {
  .blog-footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .blog-footer-bottom { flex-direction: column; gap: 0.4rem; text-align: center; }
}
