/* Berkah Cerita — soft purple & pink editorial redesign
 * Tokens from design handoff (Fraunces + Plus Jakarta Sans)
 */

:root {
  --bg: #fdf7fb;
  --bg-hero-1: #fdf3f9;
  --bg-hero-2: #f6ecfb;
  --card: #ffffff;
  --text: #3b1f52;
  --text-body: #6b527f;
  --muted: #8a72a0;
  --meta: #a07bb5;
  --nav: #4a2a5f;
  --accent-pink: #d47cbf;
  --accent-purple: #9a6de0;
  --link: #a855b8;
  --link-hover: #7c3f96;
  --chip-bg: #ffffff;
  --chip-text: #8a4ea6;
  --border: rgba(200, 150, 220, 0.25);
  --grad-primary: linear-gradient(135deg, #c65fb0 0%, #9a6de0 100%);
  --grad-logo: linear-gradient(135deg, #f7c5e2 0%, #c9a7f0 100%);
  --grad-newsletter: linear-gradient(135deg, #f5c8e4 0%, #d4b0ee 55%, #b598e8 100%);
  --shadow-sm: 0 16px 32px rgba(160, 100, 200, 0.08);
  --shadow-md: 0 20px 40px rgba(160, 100, 200, 0.1);
  --shadow-lg: 0 30px 60px rgba(160, 100, 200, 0.16);
  --shadow-btn: 0 14px 30px rgba(160, 100, 200, 0.4);
  --radius: 24px;
  --maxw: 1200px;
  --font-display: 'Fraunces', serif;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--link-hover); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--text);
  text-wrap: pretty;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; margin-top: 1.3em; }
h3 { font-size: 1.3rem; margin-top: 1.1em; }
ul, ol { padding-left: 1.4em; }
li { margin: 0.25em 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 40;
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand:hover { color: inherit; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--grad-logo);
  box-shadow: 0 8px 22px rgba(186, 132, 216, 0.35);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--nav);
}
.brand-tagline {
  font-size: 11px; color: var(--meta); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 2px;
}

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  padding: 10px 18px; border-radius: 999px; color: var(--nav); font-weight: 500; font-size: 14.5px;
}
.site-nav a:hover { color: var(--link-hover); }
.site-nav a.is-active { background: rgba(255, 255, 255, 0.7); }
.site-nav .nav-cta {
  margin-left: 8px; padding: 11px 22px; border-radius: 999px;
  background: linear-gradient(135deg, #d47cbf 0%, #a67ce0 100%);
  color: #fff; font-weight: 600;
  box-shadow: 0 8px 20px rgba(180, 120, 210, 0.35);
}
.site-nav .nav-cta:hover { color: #fff; opacity: 0.92; }

@media (max-width: 860px) {
  .header-inner { padding: 18px 20px; flex-wrap: wrap; gap: 12px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .site-nav .nav-cta { margin-left: 0; padding: 10px 18px; font-size: 13px; }
}

/* ---------- Hero ---------- */
.hero-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-hero-1) 0%, var(--bg-hero-2) 45%, var(--bg) 100%);
}
.hero-blob {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.hero-blob-1 {
  top: -180px; right: -140px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(232, 178, 224, 0.55), rgba(232, 178, 224, 0) 70%);
}
.hero-blob-2 {
  top: 380px; left: -160px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(196, 167, 240, 0.5), rgba(196, 167, 240, 0) 70%);
}
.hero {
  position: relative;
  max-width: var(--maxw); margin: 0 auto; padding: 40px 40px 80px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.7); color: var(--chip-text); font-size: 13px; font-weight: 500;
  border: 1px solid rgba(200, 150, 220, 0.4);
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-pink); }
.hero h1 {
  font-size: 76px; line-height: 1.02; letter-spacing: -0.02em; margin: 22px 0 20px;
}
.hero h1 em {
  font-style: italic; background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: 18px; line-height: 1.65; color: var(--text-body); max-width: 500px; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat-num { font-family: var(--font-display); font-size: 28px; color: var(--nav); font-weight: 600; }
.hero-stat-label { font-size: 13px; color: var(--meta); margin-top: 2px; }

.hero-visual { position: relative; height: 520px; }
.hero-visual-card {
  position: absolute; background: #fff; border-radius: 26px; box-shadow: var(--shadow-lg);
}
.hero-visual-cover {
  height: 170px; border-radius: 16px; display: flex; align-items: flex-end; padding: 16px;
}
.hero-visual-eyebrow { font-family: var(--font-display); font-style: italic; color: #6b3f85; font-size: 15px; }
.hero-visual-card h4 { font-size: 18px; margin: 14px 0 6px; line-height: 1.25; }
.hero-visual-card p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }
.hero-quote-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--grad-logo);
}
.hero-quote-title { font-size: 12px; font-weight: 600; color: var(--nav); }
.hero-quote-sub { font-size: 10.5px; color: var(--meta); }
.hero-quote-text { font-family: var(--font-display); font-style: italic; font-size: 16px; line-height: 1.4; color: var(--nav); margin: 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 20px 20px 60px; }
  .hero h1 { font-size: 46px; }
  .hero .lead { font-size: 16px; }
  .hero-visual { height: 460px; }
  .hero-stats { gap: 22px; margin-top: 36px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 38px; }
  .hero-visual { height: 400px; transform: scale(0.85); transform-origin: top left; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 15px 30px; border-radius: 999px;
  background: #fff; color: var(--nav); font-weight: 600; font-size: 15px;
  border: 1px solid rgba(200, 150, 220, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.btn:hover { color: var(--link-hover); transform: translateY(-1px); }
.btn-primary {
  background: var(--grad-primary); color: #fff; border: 0; box-shadow: var(--shadow-btn);
}
.btn-primary:hover { color: #fff; box-shadow: 0 18px 34px rgba(160, 100, 200, 0.45); }
.btn-secondary { background: rgba(255, 255, 255, 0.8); color: #6b3f85; }

/* ---------- Section header ---------- */
.section {
  position: relative; max-width: var(--maxw); margin: 0 auto; padding: 40px 40px 80px;
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; gap: 16px;
}
.eyebrow { font-size: 13px; color: var(--meta); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.section-head h2 { font-size: 44px; margin: 8px 0 0; }
.section-head .see-all { font-weight: 600; font-size: 14.5px; white-space: nowrap; }

@media (max-width: 860px) {
  .section { padding: 30px 20px 60px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-head h2 { font-size: 30px; }
}

/* ---------- Featured row ---------- */
.featured-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; margin-bottom: 28px; }
.featured-hero {
  background: var(--card); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-md);
  display: block; color: inherit;
}
.featured-hero-img {
  height: 340px; position: relative; background-size: cover; background-position: center;
}
.featured-hero-body { padding: 26px 30px 30px; }
.featured-hero-body h3 { font-size: 26px; line-height: 1.25; margin: 0 0 10px; }
.featured-hero-body p { color: var(--text-body); font-size: 15px; line-height: 1.6; margin: 0 0 18px; }
.featured-side { display: flex; flex-direction: column; gap: 28px; }
.featured-small {
  background: var(--card); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 130px 1fr; color: inherit;
}
.featured-small-img { background-size: cover; background-position: center; min-height: 100%; }
.featured-small-body { padding: 18px 20px; }
.featured-small-body h4 { font-size: 18px; line-height: 1.3; margin: 6px 0 8px; }

.badge {
  position: absolute; top: 20px; left: 22px;
  background: #fff; color: var(--chip-text); padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.badge-inline {
  display: inline-block; background: var(--chip-bg); color: var(--chip-text);
  padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 600;
}
.eyebrow-tag {
  font-size: 11px; color: var(--chip-text); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.meta-row { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--meta); flex-wrap: wrap; }

@media (max-width: 860px) {
  .featured-row { grid-template-columns: 1fr; gap: 20px; }
  .featured-hero-img { height: 220px; }
  .featured-hero-body h3 { font-size: 22px; }
}

/* ---------- Article grid / cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-cards { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid-cards { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-media {
  display: flex; align-items: flex-end; padding: 16px;
  aspect-ratio: 16 / 10; background-size: cover; background-position: center;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.card-body { padding: 20px 22px 22px; }
.card-title { font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1.3; margin: 0 0 10px; color: var(--text); }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--link-hover); }
.card-excerpt { margin: 0 0 14px; color: var(--text-body); font-size: 13.5px; line-height: 1.55; }
.card-meta { font-size: 12px; color: var(--meta); }

/* Page head + search */
.page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 40px 0 36px; }
.page-head h1 { margin: 0; }
.search { display: flex; gap: 8px; }
.search input {
  padding: 12px 18px; border: 1px solid var(--border); border-radius: 999px;
  background: #fff; min-width: 220px; font: inherit; color: var(--text);
}
.search input:focus { outline: 2px solid rgba(154, 109, 224, 0.25); border-color: var(--accent-purple); }
.search button {
  padding: 12px 20px; background: var(--grad-primary); color: #fff; border: 0;
  border-radius: 999px; font-weight: 600; cursor: pointer;
}
.search button:hover { opacity: 0.92; }

/* Pager */
.pager { display: flex; align-items: center; justify-content: space-between; margin: 40px 0; gap: 12px; flex-wrap: wrap; }
.pager a { padding: 10px 18px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-weight: 500; }
.pager a:hover { color: var(--link-hover); }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--grad-newsletter); border-radius: 36px; padding: 60px 70px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.newsletter-blob-1 { position: absolute; top: -60px; right: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.newsletter-blob-2 { position: absolute; bottom: -80px; left: 30%; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.newsletter-copy { position: relative; }
.newsletter-copy h2 { font-size: 42px; line-height: 1.1; margin: 0 0 14px; color: #fff; }
.newsletter-copy p { color: rgba(255, 255, 255, 0.9); font-size: 16px; line-height: 1.6; margin: 0; max-width: 420px; }
.newsletter-form {
  position: relative; display: flex; gap: 10px; background: #fff; padding: 8px; border-radius: 999px;
  box-shadow: 0 20px 40px rgba(100, 50, 150, 0.2);
}
.newsletter-form input {
  flex: 1; border: 0; outline: 0; padding: 14px 20px; font-size: 15px; background: transparent;
  color: var(--text); font-family: inherit; min-width: 0;
}
.newsletter-form button {
  padding: 14px 28px; border: 0; border-radius: 999px; background: var(--grad-primary);
  color: #fff; font-weight: 600; font-size: 14.5px; cursor: pointer; font-family: inherit; white-space: nowrap;
}
.newsletter-note { position: relative; margin: 10px 2px 0; font-size: 13px; color: rgba(255, 255, 255, 0.85); }

@media (max-width: 860px) {
  .newsletter { padding: 40px 26px; grid-template-columns: 1fr; gap: 26px; border-radius: 28px; }
  .newsletter-copy h2 { font-size: 28px; }
  .newsletter-form { flex-direction: column; border-radius: 22px; padding: 10px; }
  .newsletter-form input { text-align: center; }
  .newsletter-form button { width: 100%; }
}

/* ---------- Post detail ---------- */
.post-title { font-size: 2.2rem; margin: 8px 0 6px; }
.post-meta { margin: 0 0 22px; font-size: 0.95rem; }
.breadcrumbs { margin: 24px 0 6px; }
.breadcrumbs a { color: var(--muted); }
.post-cover { margin: 12px 0 22px; }
.post-cover img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 24px; }
.post-content { font-size: 1.05rem; color: var(--text-body); }
.post-content h2, .post-content h3 { color: var(--text); }
.post-content img { border-radius: 16px; margin: 12px 0; }
.post-content blockquote {
  border-left: 4px solid var(--accent-purple);
  padding: 6px 14px; margin: 14px 0; color: var(--text);
  background: var(--bg-hero-2); border-radius: 6px;
}

/* Tags & share */
.post-tags { margin: 24px 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--bg-hero-2); color: var(--chip-text); padding: 4px 12px; border-radius: 999px; font-size: 0.82rem; }
.post-share { margin: 18px 0 30px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.post-share a { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; }
.post-notice { margin: 22px 0 8px; padding: 12px 18px; background: var(--bg-hero-2); border: 1px solid var(--border); border-radius: 14px; }
.post-notice a { color: var(--link-hover); }

.info-box { margin: 20px 0; padding: 14px 18px; background: var(--bg-hero-2); border: 1px solid var(--border); border-radius: 14px; color: var(--text); }
.info-box strong { color: var(--text); }

/* Legal */
.legal h1 { margin-top: 24px; }
.legal h2 { font-size: 1.15rem; margin-top: 1.6em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 60px 0 50px; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
.foot-brand p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; max-width: 320px; }
.foot-col h5 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--meta); margin: 0 0 14px; font-weight: 600; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; padding-top: 24px;
  border-top: 1px solid var(--border); font-size: 13px; color: var(--meta); flex-wrap: wrap; gap: 10px;
}

@media (max-width: 860px) {
  .site-footer { padding: 40px 0 40px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Admin light theme reuse */
.admin-wrap { max-width: 1080px; margin: 0 auto; padding: 20px 16px; }
