:root {
  --cream: #FDF8F2;
  --blush: #F4D9C6;
  --rose: #E07A5F;
  --plum: #3D2B3D;
  --sage: #7BAF8E;
  --mist: #EAE4DC;
  --text: #2A1F2A;
  --subtext: #7A6E78;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--text); font-family: 'DM Sans', sans-serif; line-height: 1.6; overflow-x: hidden; }

/* HEADER */
header { background: var(--plum); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 24px rgba(61,43,61,0.18); }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 36px; height: 36px; background: var(--rose); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 18px; color: #fff; font-weight: 700; }
.logo-text { font-family: 'Playfair Display', serif; font-size: 1.45rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.logo-text span { color: var(--rose); }
nav { display: flex; gap: 0.2rem; align-items: center; }
nav a { color: rgba(255,255,255,0.72); text-decoration: none; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.45rem 0.85rem; border-radius: 20px; transition: all 0.2s; }
nav a:hover, nav a.active { color: #fff; background: rgba(255,255,255,0.12); }
.nav-cta { background: var(--rose) !important; color: #fff !important; margin-left: 0.5rem; }
.nav-cta:hover { background: #c9674f !important; }

/* HERO */
.hero { background: linear-gradient(135deg, var(--plum) 0%, #5C3D6E 55%, var(--rose) 100%); padding: 5rem 2rem 4rem; text-align: center; position: relative; overflow: hidden; }
.hero-tag { display: inline-block; background: rgba(255,255,255,0.15); color: var(--blush); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; padding: 0.4rem 1rem; border-radius: 20px; margin-bottom: 1.2rem; border: 1px solid rgba(255,255,255,0.2); }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 5vw, 3.8rem); color: #fff; line-height: 1.15; max-width: 680px; margin: 0 auto 1.2rem; }
.hero h1 em { color: var(--blush); font-style: italic; }
.hero p { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 500px; margin: 0 auto 2rem; }
.hero-search { display: flex; max-width: 480px; margin: 0 auto; background: #fff; border-radius: 50px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.25); }
.hero-search input { flex: 1; border: none; outline: none; padding: 0.85rem 1.4rem; font-family: 'DM Sans', sans-serif; font-size: 0.95rem; color: var(--text); }
.hero-search button { background: var(--rose); border: none; color: #fff; padding: 0.85rem 1.6rem; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: background 0.2s; border-radius: 0 50px 50px 0; }
.hero-search button:hover { background: #c9674f; }

/* CATEGORY BAR */
.category-bar { background: #fff; border-bottom: 1px solid var(--mist); padding: 0.75rem 2rem; position: sticky; top: 68px; z-index: 90; overflow-x: auto; }
.category-inner { display: flex; gap: 0.5rem; max-width: 1280px; margin: 0 auto; white-space: nowrap; }
.cat-pill { display: inline-block; padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.82rem; font-weight: 500; color: var(--subtext); background: var(--mist); text-decoration: none; transition: all 0.2s; border: 1px solid transparent; }
.cat-pill:hover, .cat-pill.active { background: var(--plum); color: #fff; }

/* TILE GRID */
.main-wrap { max-width: 1280px; margin: 0 auto; padding: 2.5rem 2rem; }
.tile-grid { columns: 4 280px; gap: 1.25rem; }
.tile { break-inside: avoid; margin-bottom: 1.25rem; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(61,43,61,0.07); transition: transform 0.2s, box-shadow 0.2s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(61,43,61,0.13); }
.tile a { text-decoration: none; color: inherit; display: block; }
.tile-img-wrap { position: relative; overflow: hidden; }
.tile img { width: 100%; height: 210px; object-fit: cover; display: block; transition: transform 0.3s; }
.tile.tall img { height: 270px; }
.tile:hover img { transform: scale(1.04); }
.tile-img-placeholder { width: 100%; height: 210px; background: var(--mist); }
.tile-cat { position: absolute; bottom: 10px; left: 10px; background: rgba(61,43,61,0.82); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 0.25rem 0.65rem; border-radius: 20px; letter-spacing: 0.04em; }
.tile-body { padding: 1rem 1.1rem 1.2rem; }
.tile-body h3 { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; line-height: 1.35; margin-bottom: 0.45rem; color: var(--text); }
.tile-body p { font-size: 0.82rem; color: var(--subtext); line-height: 1.5; margin-bottom: 0.75rem; }
.view-story { display: inline-block; font-size: 0.78rem; font-weight: 600; color: var(--rose); letter-spacing: 0.04em; }

/* PAGINATION */
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; padding: 2rem 0; }
.page-btn { background: var(--plum); color: #fff; padding: 0.6rem 1.4rem; border-radius: 25px; text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: background 0.2s; }
.page-btn:hover { background: var(--rose); }

/* ARTICLE PAGE */
.article-wrap { max-width: 1280px; margin: 0 auto; padding: 2.5rem 2rem; }
.article-container { max-width: 780px; margin: 0 auto; }
.article-header { margin-bottom: 2rem; }
.article-cat-badge { display: inline-block; background: var(--blush); color: var(--plum); font-size: 0.78rem; font-weight: 600; padding: 0.3rem 0.85rem; border-radius: 20px; text-decoration: none; margin-bottom: 1rem; }
.article-header h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.2; color: var(--text); margin-bottom: 0.75rem; }
.article-author { color: var(--subtext); font-size: 0.9rem; }
.article-hero-img { margin-bottom: 2rem; border-radius: 16px; overflow: hidden; }
.article-hero-img img { width: 100%; max-height: 480px; object-fit: cover; }
.article-body { font-size: 1.05rem; line-height: 1.8; color: var(--text); margin-bottom: 2rem; }
.article-footer { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--mist); }
.back-btn { color: var(--rose); text-decoration: none; font-weight: 600; font-size: 0.9rem; }

/* SYNOPSIS PAGE */
.synopsis-box { background: var(--mist); border-radius: 16px; padding: 2rem; margin-bottom: 2rem; font-size: 1.05rem; line-height: 1.8; }
.read-full-wrap { text-align: center; margin-bottom: 2rem; }
.read-full-btn { display: inline-block; background: var(--rose); color: #fff; padding: 1rem 2.5rem; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 1rem; transition: background 0.2s; }
.read-full-btn:hover { background: #c9674f; }

/* RELATED */
.related-wrap { max-width: 780px; margin: 3rem auto 0; }
.related-wrap h2 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 1.5rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.related-card { text-decoration: none; color: var(--text); }
.related-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; margin-bottom: 0.5rem; }
.related-card p { font-size: 0.85rem; font-weight: 500; line-height: 1.4; }

/* NEWSLETTER */
.newsletter { background: var(--plum); padding: 4rem 2rem; text-align: center; }
.newsletter-inner { max-width: 560px; margin: 0 auto; }
.newsletter h2 { font-family: 'Playfair Display', serif; color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem; }
.newsletter p { color: rgba(255,255,255,0.72); margin-bottom: 1.5rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; }
.newsletter-form input { padding: 0.85rem 1.4rem; border: none; border-radius: 50px; font-family: 'DM Sans', sans-serif; font-size: 0.95rem; outline: none; }
.newsletter-form button { background: var(--rose); color: #fff; border: none; padding: 0.85rem; border-radius: 50px; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background 0.2s; }
.newsletter-form button:hover { background: #c9674f; }

/* FOOTER */
footer { background: var(--text); padding: 2.5rem 2rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { color: rgba(255,255,255,0.4); font-size: 0.8rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .tile-grid { columns: 2 160px; }
  nav { display: none; }
  .header-inner { padding: 0 1rem; }
}
@media (max-width: 480px) {
  .tile-grid { columns: 1; }
}
