/*
Theme Name: Free Cursive Generator Blog
Theme URI: https://freecursivegenerator.com/
Author: Free Cursive Generator
Description: Blog theme that matches the Free Cursive Generator static site. Inherits the ink & gold design system (and dark mode) from /assets/style.css at the site root, so any change to the main site's CSS flows straight into the blog.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cursive-blog
Tags: blog, custom-menu, featured-images
*/

/* ============================================================
   Adds only what the main site's CSS lacks: article prose,
   post meta, cards, pagination, sidebar, comments. Colours and
   fonts come from /assets/style.css, which defines CSS variables
   (--ink, --gold, --bg, --surface, --text, --serif, etc.) that
   FLIP automatically in dark mode. Because this file uses those
   same variables, the blog gets dark mode for free. Classes are
   prefixed fcg- to avoid clashes with the site's own classes.
   ============================================================ */

/* ---------- Interior page hero ---------- */
.fcg-phero{background:linear-gradient(135deg,var(--ink) 0%,var(--ink-3) 100%);color:var(--cream);padding:64px 0 56px;position:relative;overflow:hidden}
.fcg-phero .container{position:relative;z-index:1}
.fcg-phero .fcg-crumbs{color:rgba(253,251,247,.6)}
.fcg-phero .fcg-crumbs a{color:rgba(253,251,247,.85)}
.fcg-phero h1{font-family:var(--serif);font-weight:700;font-size:clamp(30px,5vw,52px);line-height:1.08;margin-bottom:14px;color:var(--cream)}
.fcg-phero .fcg-psub{font-size:18px;color:rgba(253,251,247,.82);line-height:1.7;max-width:620px}
.fcg-phero .fcg-post-meta{color:rgba(253,251,247,.7);margin-top:16px}
.fcg-phero .fcg-eyebrow{color:var(--gold-3);border-color:rgba(212,165,116,.4)}

/* ---------- Eyebrow (reuse site style) ---------- */
.fcg-eyebrow{display:inline-block;font-family:var(--sans);font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-2);margin-bottom:14px}

/* ---------- Breadcrumb ---------- */
.fcg-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;font-weight:500;color:var(--text-muted);margin-bottom:16px}
.fcg-crumbs a{color:var(--accent)}
.fcg-crumbs a:hover{text-decoration:underline}
.fcg-crumbs span{opacity:.5}

/* ---------- Post meta ---------- */
.fcg-post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;font-family:var(--sans);font-size:13px;font-weight:500;color:var(--text-muted);margin:0}
.fcg-post-meta a{color:var(--accent)}
.fcg-post-meta a:hover{text-decoration:underline}
.fcg-post-meta .fcg-dot{opacity:.5}

/* ---------- Wrapper ---------- */
.fcg-wrap{padding:64px 0}

/* ---------- Article body (prose) ---------- */
.fcg-prose{max-width:760px}
.fcg-prose > *:first-child{margin-top:0}
.fcg-prose p{margin:0 0 20px;color:var(--text);line-height:1.8;font-size:17px}
.fcg-prose h2{font-family:var(--serif);font-weight:700;font-size:clamp(26px,3.4vw,36px);color:var(--text);margin:44px 0 16px;line-height:1.15}
.fcg-prose h3{font-family:var(--serif);font-weight:600;font-size:clamp(20px,2.2vw,26px);color:var(--text);margin:30px 0 12px}
.fcg-prose h4{font-family:var(--sans);font-size:16px;font-weight:700;color:var(--text);margin:22px 0 8px}
.fcg-prose a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.fcg-prose a:hover{color:var(--accent-hover)}
.fcg-prose strong{color:var(--text);font-weight:700}
.fcg-prose ul,.fcg-prose ol{margin:0 0 20px;padding-left:24px;color:var(--text);display:grid;gap:9px}
.fcg-prose ul li{list-style:disc}
.fcg-prose ol li{list-style:decimal}
.fcg-prose li{line-height:1.75;font-size:17px}
.fcg-prose li::marker{color:var(--accent)}
.fcg-prose blockquote{margin:26px 0;padding:18px 22px;background:var(--bg-soft);border-left:4px solid var(--accent);border-radius:0 var(--r) var(--r) 0}
.fcg-prose blockquote p{margin:0;color:var(--text)}
.fcg-prose figure{margin:28px 0}
.fcg-prose img{border-radius:var(--r);box-shadow:var(--shadow)}
.fcg-prose figcaption,.fcg-prose .wp-caption-text{font-size:13px;color:var(--text-muted);margin-top:8px;text-align:center}
.fcg-prose hr{border:0;border-top:1px solid var(--border);margin:36px 0}
.fcg-prose code{background:var(--bg-soft);border:1px solid var(--border);border-radius:6px;padding:.12em .4em;font-size:.9em;font-family:ui-monospace,monospace}
.fcg-prose pre{background:var(--ink);color:var(--cream);padding:18px 20px;border-radius:var(--r);overflow:auto;margin:26px 0}
.fcg-prose pre code{background:none;border:0;color:inherit;padding:0}
.fcg-prose table{width:100%;border-collapse:collapse;background:var(--surface);border:1px solid var(--border);border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow-sm);margin:26px 0}
.fcg-prose thead{background:var(--ink);color:var(--cream)}
.fcg-prose th{padding:13px 16px;font-family:var(--sans);font-size:13px;font-weight:700;letter-spacing:.03em;text-align:left}
.fcg-prose td{padding:13px 16px;font-size:15px;color:var(--text);border-bottom:1px solid var(--border);vertical-align:top}
.fcg-prose .alignleft{float:left;margin:5px 24px 18px 0;max-width:50%}
.fcg-prose .alignright{float:right;margin:5px 0 18px 24px;max-width:50%}
.fcg-prose .aligncenter{margin-left:auto;margin-right:auto}
@media(max-width:640px){.fcg-prose .alignleft,.fcg-prose .alignright{float:none;margin:20px 0;max-width:100%}}

/* ---------- Layout with sidebar ---------- */
.fcg-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:52px;align-items:start}
@media(max-width:900px){.fcg-layout{grid-template-columns:1fr;gap:40px}}
.fcg-sidebar{position:sticky;top:88px;display:grid;gap:20px}
@media(max-width:900px){.fcg-sidebar{position:static}}
.fcg-widget{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:22px 24px;box-shadow:var(--shadow-sm)}
.fcg-widget h4{font-family:var(--serif);font-size:17px;font-weight:700;margin-bottom:14px;color:var(--text)}
.fcg-widget ul{list-style:none;display:grid;gap:10px;font-size:14px;margin:0;padding:0}
.fcg-widget ul li a{color:var(--text-muted)}
.fcg-widget ul li a:hover{color:var(--accent)}
.fcg-widget-cta{background:linear-gradient(135deg,var(--ink),var(--ink-3));border:none}
.fcg-widget-cta h4{color:var(--cream)}
.fcg-widget-cta p{color:rgba(253,251,247,.8);font-size:14px;margin-bottom:16px;line-height:1.6}
.fcg-widget-cta .fcg-wbtn{display:block;text-align:center;background:var(--gold);color:var(--ink);font-weight:700;padding:11px;border-radius:var(--r-pill);text-decoration:none}
.fcg-widget-cta .fcg-wbtn:hover{background:var(--gold-3)}

/* ---------- Featured image ---------- */
.fcg-hero-img{border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow-lg);margin:0 0 30px}
.fcg-hero-img img{width:100%;aspect-ratio:16/8;object-fit:cover}

/* ---------- Archive cards ---------- */
.fcg-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
@media(max-width:900px){.fcg-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.fcg-grid{grid-template-columns:1fr}}
.fcg-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow-sm);transition:transform .2s,box-shadow .2s,border-color .2s;display:flex;flex-direction:column}
.fcg-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:var(--accent)}
.fcg-card .fcg-thumb{display:block;overflow:hidden;background:var(--bg-soft)}
.fcg-card .fcg-thumb img{width:100%;aspect-ratio:16/10;object-fit:cover;transition:transform .35s ease}
.fcg-card:hover .fcg-thumb img{transform:scale(1.04)}
.fcg-card-body{padding:20px 22px 22px;display:flex;flex-direction:column;gap:5px;flex:1}
.fcg-card-body h3{font-family:var(--serif);font-size:21px;font-weight:700;margin:2px 0;line-height:1.25}
.fcg-card-body h3 a{color:var(--text)}
.fcg-card-body h3 a:hover{color:var(--accent)}
.fcg-card-body p{font-size:14px;color:var(--text-muted);margin:6px 0 16px;line-height:1.6}
.fcg-card-body .fcg-go{margin-top:auto;font-family:var(--sans);font-weight:600;font-size:13px;color:var(--accent)}
.fcg-card-body .fcg-go:hover{text-decoration:underline}
@media(prefers-reduced-motion:reduce){.fcg-card,.fcg-card .fcg-thumb img{transition:none}.fcg-card:hover,.fcg-card:hover .fcg-thumb img{transform:none}}

/* Featured (first) post */
.fcg-feature{display:grid;grid-template-columns:6fr 5fr;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--shadow);margin-bottom:28px}
.fcg-feature .fcg-thumb img{width:100%;height:100%;object-fit:cover;min-height:290px}
.fcg-feature-body{padding:34px 36px;display:flex;flex-direction:column;justify-content:center;gap:6px}
.fcg-feature-body .fcg-pill{font-family:var(--sans);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gold-2);background:var(--bg-soft);padding:5px 12px;border-radius:var(--r-pill);display:inline-block;width:max-content;margin-bottom:8px}
.fcg-feature-body h2{font-family:var(--serif);font-weight:700;font-size:clamp(26px,3vw,36px);margin:0 0 8px;line-height:1.12}
.fcg-feature-body h2 a{color:var(--text)}
.fcg-feature-body h2 a:hover{color:var(--accent)}
.fcg-feature-body p{color:var(--text-muted);margin:8px 0 20px;line-height:1.7}
@media(max-width:820px){.fcg-feature{grid-template-columns:1fr}.fcg-feature-body{padding:26px}}

/* ---------- Category pills ---------- */
.fcg-cats{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 30px}
.fcg-cats a{display:inline-block;background:var(--surface);border:1px solid var(--border);color:var(--text-muted);font-family:var(--sans);font-size:13px;font-weight:600;padding:7px 16px;border-radius:var(--r-pill);transition:all .15s}
.fcg-cats a:hover{color:var(--accent);border-color:var(--accent);text-decoration:none}
.fcg-cats a[aria-current]{background:var(--ink);color:var(--cream);border-color:var(--ink)}

/* ---------- Pagination ---------- */
.fcg-pager{display:flex;justify-content:center;align-items:center;gap:6px;margin-top:48px;flex-wrap:wrap}
.fcg-pager .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 15px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r);color:var(--text);font-family:var(--sans);font-weight:600;font-size:14px}
.fcg-pager .page-numbers:hover{border-color:var(--accent);color:var(--accent)}
.fcg-pager .page-numbers.current{background:var(--ink);color:var(--cream);border-color:var(--ink)}
.fcg-pager .page-numbers.dots{background:none;border:0}

/* ---------- Prev / next ---------- */
.fcg-postnav{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:48px;padding-top:30px;border-top:1px solid var(--border)}
.fcg-postnav a{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:18px 20px;transition:transform .15s,box-shadow .2s,border-color .2s;display:block}
.fcg-postnav a:hover{transform:translateY(-2px);box-shadow:var(--shadow-sm);border-color:var(--accent)}
.fcg-postnav .fcg-lbl{display:block;font-family:var(--sans);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin-bottom:6px}
.fcg-postnav b{font-family:var(--serif);font-weight:700;font-size:17px;line-height:1.3;display:block;color:var(--text)}
.fcg-postnav .fcg-next{text-align:right}
@media(max-width:600px){.fcg-postnav{grid-template-columns:1fr}.fcg-postnav .fcg-next{text-align:left}}

/* ---------- Search form ---------- */
.fcg-search{display:flex;gap:8px}
.fcg-search input[type=search]{flex:1;min-width:0;padding:12px 15px;background:var(--surface);border:1px solid var(--border);color:var(--text);border-radius:var(--r);font:inherit;font-family:var(--sans);outline:none}
.fcg-search input[type=search]:focus{border-color:var(--accent)}
.fcg-search button{background:var(--ink);color:var(--cream);border:none;border-radius:var(--r);padding:12px 22px;font-family:var(--sans);font-weight:600;cursor:pointer}
.fcg-search button:hover{background:var(--ink-3)}

/* ---------- Empty / 404 ---------- */
.fcg-empty{text-align:center;padding:50px 16px;max-width:560px;margin:0 auto}
.fcg-empty h2{font-family:var(--serif);font-weight:700;margin-bottom:12px;color:var(--text)}
.fcg-empty p{color:var(--text-muted);margin-bottom:24px}

/* ---------- CTA band ---------- */
.fcg-cta{background:var(--ink);padding:72px 0}
.fcg-cta-inner{text-align:center;max-width:620px;margin:0 auto}
.fcg-cta-inner h2{font-family:var(--serif);font-weight:700;font-size:clamp(28px,4vw,44px);color:var(--cream);margin-bottom:14px}
.fcg-cta-inner p{color:rgba(253,251,247,.75);font-size:17px;margin-bottom:26px}

/* ---------- Comments ---------- */
.fcg-comments{margin-top:48px;padding-top:30px;border-top:1px solid var(--border);max-width:760px}
.fcg-comments ol{list-style:none;display:grid;gap:16px;margin:0;padding:0}
.fcg-comments .comment-body{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:16px 18px}
.fcg-comments .comment-meta{font-size:12px;color:var(--text-muted);font-weight:700;margin-bottom:6px}
.fcg-comment-form{display:grid;gap:12px;max-width:760px;margin-top:22px}
.fcg-comment-form label{font-size:13px;color:var(--text-muted)}
.fcg-comment-form input,.fcg-comment-form textarea{width:100%;padding:12px 15px;background:var(--surface);border:1px solid var(--border);color:var(--text);border-radius:var(--r);font:inherit;font-family:var(--sans);outline:none}
.fcg-comment-form input:focus,.fcg-comment-form textarea:focus{border-color:var(--accent)}
.fcg-comment-form .submit{background:var(--ink);color:var(--cream);border:none;border-radius:var(--r-pill);padding:13px 28px;font-family:var(--sans);font-weight:600;cursor:pointer;justify-self:start}
.fcg-comment-form .submit:hover{background:var(--ink-3)}

/* ---------- WP core ---------- */
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
:target{scroll-margin-top:88px}
