/* ============================================================
   Frenika Devon — Blog theme
   Matches frenikadevon.com: bold, playful, colourful.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink:        #ff4fb8;
  --pink-dark:   #e23a9f;
  --orange:      #ff9f1c;
  --yellow:      #ffe45e;
  --purple:      #7b2ff7;
  --teal:        #2ec4b6;
  --dark:        #24112f;
  --white:       #ffffff;
  --soft:        #fff7fb;

  --color-primary:      var(--pink);
  --color-primary-dark: var(--pink-dark);
  --color-text:         var(--dark);
  --color-muted:        #6c5c75;
  --color-border:       #f0e3ee;
  --color-bg:           var(--white);
  --color-bg-light:     var(--soft);
  --color-accent:       #ffe7f5;

  --font-sans:  Arial, Helvetica, 'Segoe UI', system-ui, sans-serif;
  --font-serif: Arial, Helvetica, sans-serif;
  --font-mono:  'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  --max-width:     1140px;
  --content-width: 740px;
  --sidebar-width: 300px;
  --radius:        16px;
  --radius-pill:   999px;
  --shadow:        0 14px 30px rgba(36,17,47,.08);
  --shadow-lg:     0 20px 50px rgba(36,17,47,.14);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: linear-gradient(135deg, #fff7fb, #fffbe8);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { line-height: 1.15; font-weight: 900; letter-spacing: -.01em; }

/* ── Layout ──────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

.content-area {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 2.75rem;
  align-items: start;
  padding: 2.5rem 0;
}
.main-content { min-width: 0; }
@media (max-width: 860px) { .content-area { grid-template-columns: 1fr; } }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(36,17,47,.07);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.site-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--dark);
  white-space: nowrap;
  letter-spacing: -.02em;
}
.site-title:hover { color: var(--pink); }
.site-tagline { font-size: .8rem; color: var(--color-muted); margin-top: 2px; font-weight: 600; }

/* ── Nav ─────────────────────────────────────────────────── */
.site-nav ul { display: flex; list-style: none; gap: .25rem; align-items: center; flex-wrap: wrap; }
.site-nav a {
  padding: .55rem 1.05rem;
  border-radius: var(--radius-pill);
  font-size: .92rem;
  font-weight: 800;
  color: var(--dark);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.site-nav a:hover { background: var(--yellow); color: var(--dark); transform: translateY(-2px); }

.nav-toggle {
  display: none; background: none; border: none;
  font-size: 1.5rem; cursor: pointer; padding: .25rem; color: var(--dark);
}
@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .site-nav ul {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: .5rem 1rem 1rem;
    box-shadow: var(--shadow);
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .site-nav ul.open { display: flex; }
  .site-nav a { border-radius: var(--radius-pill); padding: .65rem 1.1rem; }
}

/* ── Section eyebrow headings ────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .4rem 1rem;
  border-radius: var(--radius-pill);
  margin: 0 0 1.25rem;
}

/* ── Featured section ────────────────────────────────────── */
.featured-section { margin-bottom: 2.75rem; }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.featured-card {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid var(--yellow);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.featured-card-image { aspect-ratio: 16/10; overflow: hidden; }
.featured-card-image img { width: 100%; height: 100%; object-fit: cover; }
.featured-card-body { padding: 1.1rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.featured-card-title { font-size: 1.15rem; font-weight: 900; line-height: 1.25; }
.featured-card-title a { color: var(--dark); }
.featured-card-title a:hover { color: var(--pink); }

/* ── Post card (index) ───────────────────────────────────── */
.post-list { display: flex; flex-direction: column; gap: 1.75rem; }

.post-card {
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  border-top: 8px solid var(--pink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:nth-child(3n+2) { border-top-color: var(--teal); }
.post-card:nth-child(3n+3) { border-top-color: var(--orange); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.post-card-image { aspect-ratio: 16/9; overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card-image img { transform: scale(1.04); }

.post-card-body { padding: 1.4rem 1.6rem 1.6rem; }

.post-card-meta {
  font-size: .8rem; color: var(--color-muted); margin-bottom: .65rem;
  display: flex; gap: .85rem; flex-wrap: wrap; align-items: center; font-weight: 600;
}
.post-card-meta a { color: var(--purple); font-weight: 800; }
.post-card-meta a:hover { color: var(--pink); }
.post-views { color: var(--color-muted); }

.post-card-title { font-size: 1.45rem; font-weight: 900; margin-bottom: .55rem; line-height: 1.2; }
.post-card-title a { color: var(--dark); }
.post-card-title a:hover { color: var(--pink); }

.post-card-excerpt { color: var(--color-muted); font-size: .96rem; margin-bottom: 1.1rem; }

.post-card-footer { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

/* ── Tags & buttons ──────────────────────────────────────── */
.tag-badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--pink-dark);
  font-size: .75rem;
  padding: .28rem .8rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
}
.tag-badge:hover { background: var(--pink); color: #fff; }

.btn {
  display: inline-block;
  padding: .65rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: .9rem;
  font-weight: 900;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(36,17,47,.18); }
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: var(--pink); color: #fff; }
.btn-secondary { background: var(--dark); color: #fff; }
.btn-secondary:hover { color: #fff; }

/* ── Single post ─────────────────────────────────────────── */
.post-full {
  max-width: var(--content-width);
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2.25rem 2.5rem 2.75rem;
  margin-top: .5rem;
}
@media (max-width: 600px) { .post-full { padding: 1.5rem 1.25rem 2rem; } }

.post-full-header { margin-bottom: 1.5rem; }
.post-full-title { font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.08; margin-bottom: .9rem; color: var(--dark); }

.post-full-meta {
  font-size: .85rem; color: var(--color-muted); display: flex; gap: 1.1rem;
  flex-wrap: wrap; align-items: center; padding-bottom: 1.1rem;
  border-bottom: 2px dashed var(--color-border); font-weight: 600;
}
.post-full-meta a { color: var(--purple); font-weight: 800; }
.post-full-meta a:hover { color: var(--pink); }

.post-full-image { margin-bottom: 1.5rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.post-content { font-size: 1.07rem; line-height: 1.85; }
.post-content h2, .post-content h3, .post-content h4 { margin: 1.9rem 0 .8rem; line-height: 1.25; }
.post-content h2 { font-size: 1.65rem; color: var(--purple); }
.post-content h3 { font-size: 1.32rem; color: var(--dark); }
.post-content h4 { font-size: 1.12rem; color: var(--dark); }
.post-content p, .post-content ul, .post-content ol, .post-content blockquote, .post-content pre { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { padding-left: 1.75rem; }
.post-content li { margin-bottom: .35rem; }
.post-content blockquote {
  border-left: 5px solid var(--pink);
  padding: .85rem 1.1rem .85rem 1.35rem;
  background: var(--soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-muted);
}
.post-content pre {
  background: var(--dark); color: #f3e9ff; border-radius: var(--radius);
  padding: 1.1rem 1.35rem; overflow-x: auto;
  font-family: var(--font-mono); font-size: .875rem; line-height: 1.6;
}
.post-content code {
  font-family: var(--font-mono); font-size: .875em;
  background: var(--color-accent); color: var(--pink-dark);
  padding: .15em .45em; border-radius: 5px;
}
.post-content pre code { background: none; padding: 0; color: inherit; font-size: 1em; }
.post-content a { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }
.post-content a:hover { color: var(--pink); }
.post-content img { border-radius: var(--radius); margin: 1rem 0; box-shadow: var(--shadow); }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; }
.post-content th, .post-content td { padding: .55rem .8rem; border: 1px solid var(--color-border); text-align: left; }
.post-content th { background: var(--soft); font-weight: 800; }

.post-tags { margin-top: 1.75rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.post-tags strong { font-size: .85rem; color: var(--color-muted); }

/* ── Breadcrumbs ─────────────────────────────────────────── */
.breadcrumbs { font-size: .82rem; color: var(--color-muted); padding: .85rem 0; display: flex; gap: .4rem; flex-wrap: wrap; font-weight: 600; }
.breadcrumbs a { color: var(--purple); }
.breadcrumbs a:hover { color: var(--pink); }
.breadcrumbs .sep { user-select: none; color: var(--color-border); }

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 1.5rem; }

.widget {
  background: var(--white);
  border-radius: 20px;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--teal);
}
.widget:nth-child(2n) { border-top-color: var(--pink); }
.widget:nth-child(3n) { border-top-color: var(--orange); }

.widget h3 {
  font-size: .85rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: .07em; margin-bottom: 1rem; color: var(--purple);
}
.widget ul { list-style: none; }
.widget li { padding: .45rem 0; border-bottom: 1px solid var(--color-border); font-size: .92rem; }
.widget li:last-child { border-bottom: none; }
.widget a { color: var(--dark); font-weight: 700; }
.widget a:hover { color: var(--pink); }

.search-form { display: flex; gap: .5rem; }
.search-input {
  flex: 1; padding: .6rem .9rem;
  border: 2px solid var(--color-border); border-radius: var(--radius-pill);
  font-size: .9rem; font-family: var(--font-sans);
}
.search-input:focus { outline: none; border-color: var(--pink); }

/* ── Pagination ──────────────────────────────────────────── */
.pagination { margin-top: 2.25rem; }
.pagination ul { display: flex; list-style: none; gap: .4rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-block; padding: .5rem .95rem;
  background: var(--white); border-radius: var(--radius-pill);
  font-size: .88rem; font-weight: 800; color: var(--dark); box-shadow: var(--shadow);
}
.pagination a:hover { background: var(--pink); color: #fff; transform: translateY(-2px); }
.pagination .active span { background: var(--purple); color: #fff; }

/* ── Page headers ────────────────────────────────────────── */
.page-header { padding: .5rem 0 1.25rem; margin-bottom: 1.5rem; }
.page-header h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 900; color: var(--dark); }
.page-header p { color: var(--color-muted); font-size: .95rem; margin-top: .5rem; font-weight: 600; }

/* ── Search form (page) ──────────────────────────────────── */
.search-page-form { display: flex; gap: .75rem; margin-bottom: 2rem; max-width: 580px; }
.search-page-form input {
  flex: 1; padding: .75rem 1.2rem;
  border: 2px solid var(--color-border); border-radius: var(--radius-pill); font-size: 1rem;
}
.search-page-form input:focus { outline: none; border-color: var(--pink); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: #d9c9e4; margin-top: 4rem; padding: 3.25rem 0 1.75rem; font-size: .92rem; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.25rem; margin-bottom: 2rem; }
@media (max-width: 640px) { .footer-widgets { grid-template-columns: 1fr; } }
.site-footer h3 { color: var(--yellow); font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .85rem; font-weight: 900; }
.site-footer a { color: #cdbbd8; font-weight: 600; }
.site-footer a:hover { color: var(--yellow); }
.site-footer ul { list-style: none; }
.site-footer li { padding: .3rem 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.4rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  font-size: .82rem; color: #a08fae;
}
.footer-bottom a { color: #cdbbd8; }

/* ── Notices ─────────────────────────────────────────────── */
.notice { padding: .85rem 1.1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .92rem; font-weight: 700; }
.notice-success { background: #e3f9ee; color: #1e7d4f; }
.notice-error   { background: #ffe3ee; color: #b21d56; }
.notice-info    { background: #e6f4ff; color: #1d6fb2; }

/* ── No content ──────────────────────────────────────────── */
.no-posts {
  text-align: center; padding: 3rem 1.5rem; color: var(--color-muted);
  background: var(--white); border-radius: 24px; box-shadow: var(--shadow);
}
.no-posts h2 { font-size: 1.4rem; margin-bottom: .5rem; color: var(--dark); }

/* ── Newsletter signup ───────────────────────────────────── */
.newsletter-signup {
  max-width: var(--content-width);
  background: var(--soft);
  border: 2px solid var(--pink);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2rem 2.5rem;
  margin-top: 1.75rem;
}
@media (max-width: 600px) { .newsletter-signup { padding: 1.5rem 1.25rem; } }

.newsletter-title { font-size: 1.4rem; color: var(--dark); margin-bottom: .5rem; }
.newsletter-desc { color: var(--color-muted); font-weight: 600; margin-bottom: 1.25rem; }

.newsletter-fields { display: flex; gap: .75rem; flex-wrap: wrap; }
.newsletter-fields input[type=email] {
  flex: 1 1 220px;
  padding: .7rem .9rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font-sans);
  background: var(--white);
}
.newsletter-fields input[type=email]:focus { outline: none; border-color: var(--pink); }
.newsletter-fields .btn { flex: 0 0 auto; }

#newsletter-flash { scroll-margin-top: 90px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Comments ────────────────────────────────────────────── */
.comments-section {
  max-width: var(--content-width);
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2rem 2.5rem 2.5rem;
  margin-top: 1.75rem;
}
@media (max-width: 600px) { .comments-section { padding: 1.5rem 1.25rem 2rem; } }

.comments-title { font-size: 1.5rem; color: var(--dark); margin-bottom: 1.5rem; }
.no-comments { color: var(--color-muted); font-weight: 600; margin-bottom: 1.5rem; }
.comments-closed {
  color: var(--color-muted); font-weight: 700; font-style: italic;
  background: var(--soft); border-radius: var(--radius);
  padding: .85rem 1.1rem; margin-top: 1.5rem;
}

.comment-list, .comment-list .children { list-style: none; }
.comment-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.25rem; }
.comment-list .children {
  margin-top: 1.25rem;
  margin-left: 1.5rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-border);
  display: flex; flex-direction: column; gap: 1.25rem;
}
@media (max-width: 600px) { .comment-list .children { margin-left: .6rem; padding-left: .8rem; } }

.comment-body {
  background: var(--soft);
  border-radius: var(--radius);
  padding: 1rem 1.25rem 1.1rem;
}
.comment-meta {
  display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap;
  margin-bottom: .4rem;
}
.comment-author { font-weight: 900; color: var(--dark); font-size: .98rem; }
.comment-author em { font-weight: 700; color: var(--color-muted); }
.comment-date { font-size: .78rem; color: var(--color-muted); font-weight: 600; }
.comment-content { color: var(--color-text); font-size: .98rem; line-height: 1.65; word-wrap: break-word; overflow-wrap: anywhere; }

.comment-reply-link {
  margin-top: .6rem;
  background: none; border: none; cursor: pointer;
  color: var(--purple); font-weight: 800; font-size: .82rem;
  padding: 0; font-family: var(--font-sans);
}
.comment-reply-link:hover { color: var(--pink); }

/* ── Comment form ────────────────────────────────────────── */
.comment-respond {
  border-top: 2px dashed var(--color-border);
  padding-top: 1.75rem;
}
.comment-respond-title { font-size: 1.25rem; color: var(--dark); margin-bottom: 1rem; }
.comment-reply-to { font-size: .85rem; font-weight: 600; color: var(--color-muted); margin-left: .5rem; }
.comment-reply-to-name { color: var(--pink-dark); font-weight: 800; }
.comment-cancel-reply {
  background: none; border: none; cursor: pointer;
  color: var(--purple); font-weight: 800; font-size: .8rem; padding: 0 0 0 .25rem;
  font-family: var(--font-sans);
}
.comment-cancel-reply:hover { color: var(--pink); }

#comment-flash { scroll-margin-top: 90px; }

.comment-field { margin-bottom: 1.1rem; }
.comment-field label { display: block; font-weight: 800; font-size: .9rem; margin-bottom: .35rem; color: var(--dark); }
.comment-field label small { font-weight: 600; color: var(--color-muted); }
.comment-field input[type=text],
.comment-field textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font-sans);
  background: var(--white);
}
.comment-field textarea { resize: vertical; }
.comment-field input[type=text]:focus,
.comment-field textarea:focus { outline: none; border-color: var(--pink); }
.char-counter { display: block; font-size: .75rem; color: var(--color-muted); margin-top: .3rem; font-weight: 600; }

/* Honeypot — keep it in the DOM but out of sight for real users. */
.comment-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
