/*
Theme Name: SiteForge Blog — chafeeforsenatecom-U264
Theme URI:  https://example.com/sf-minimalist-089f6a/
Author:     SiteForge
Author URI: https://example.com/
Description: Narrow single-column reading layout. Big type, no sidebar, dateline-first meta. Palette: clay-navy.
Version:    1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License:    GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sfblog-U264
Tags: blog, one-column, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
    --sf-primary: #c86a4b;
    --sf-accent:  #1e2b45;
    --sf-bg:      #f4efe8;
    --sf-fg:      #1a1e2b;
    --sf-muted:   #6a6a75;
    --sf-surface: #ffffff;
    --sf-border:  #e2dbd0;
    --sf-font-heading: "Space Grotesk", Georgia, serif;
    --sf-font-body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --sf-max-w: 720px;

    /* Design-system knobs (randomised per new site) */
    --c-primary:   #c86a4b;
    --c-accent:    #1e2b45;
    --font-h:      "Space Grotesk", Georgia, serif;
    --font-b:      "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --radius:      16px;
    --card-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
    --layout:      B;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--sf-bg);
    color: var(--sf-fg);
    font-family: var(--sf-font-body);
    font-size: 19px;
    line-height: 1.75;
}
a { color: var(--sf-primary); text-decoration: none; border-bottom: 1px solid transparent; }
a:hover { border-bottom-color: currentColor; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--sf-font-heading);
    color: var(--sf-accent);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 1.6em 0 .4em;
    font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); margin-top: 0; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }

.sf-container { max-width: var(--sf-max-w); margin: 0 auto; padding: 0 24px; }

/* header */
.sf-site-header { padding: 44px 0 8px; }
.sf-site-header .sf-container { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.sf-brand { font-family: var(--sf-font-heading); font-size: 1.35rem; font-weight: 700; color: var(--sf-accent); }
.sf-brand a { color: inherit; border: 0; }
.sf-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.sf-nav a { color: var(--sf-muted); font-size: .95rem; border: 0; }
.sf-nav a:hover { color: var(--sf-fg); }

/* main column */
.sf-main { padding: 32px 0 80px; }

.sf-entry { margin-bottom: 72px; }
.sf-entry .sf-thumb { margin-bottom: 24px; border-radius: 6px; overflow: hidden; }
.sf-post-meta {
    font-size: .85rem;
    color: var(--sf-muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 8px;
}
.sf-entry-title a { color: var(--sf-accent); border: 0; }
.sf-entry-title a:hover { color: var(--sf-primary); }

.sf-content > * { max-width: 100%; }
.sf-content p, .sf-content ul, .sf-content ol { margin: 0 0 1.2em; }
.sf-content blockquote {
    border-left: 2px solid var(--sf-primary);
    margin: 1.6em 0;
    padding: .2em 0 .2em 1.2em;
    color: var(--sf-muted);
    font-style: italic;
    font-size: 1.05em;
}
.sf-content code, .sf-content pre { background: var(--sf-surface); border: 1px solid var(--sf-border); padding: 2px 6px; border-radius: 3px; }
.sf-content pre { padding: 14px 18px; overflow-x: auto; }

/* footer */
.sf-site-footer {
    border-top: 1px solid var(--sf-border);
    padding: 32px 0 44px;
    color: var(--sf-muted);
    font-size: .9rem;
    margin-top: 60px;
}
.sf-site-footer .sf-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.sf-footer-menu { list-style: none; display: flex; gap: 18px; padding: 0; margin: 0; }
.sf-footer-menu a { color: var(--sf-muted); border: 0; }

/* pagination + forms */
.sf-pagination { display: flex; gap: 8px; justify-content: center; margin: 40px 0; }
.sf-pagination a, .sf-pagination span { padding: 8px 14px; color: var(--sf-fg); border-bottom: 1px solid var(--sf-border); }
.sf-pagination .current { color: var(--sf-primary); border-color: var(--sf-primary); }

input[type=text], input[type=email], input[type=search], input[type=url], textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--sf-border);
    background: var(--sf-surface);
    color: var(--sf-fg);
    font: inherit;
    border-radius: 4px;
}
button, input[type=submit], .sf-btn {
    display: inline-block; background: var(--sf-primary); color: #fff;
    padding: 10px 22px; border: 0; border-radius: 4px; cursor: pointer;
    font: inherit; font-weight: 600;
}
button:hover, input[type=submit]:hover, .sf-btn:hover { filter: brightness(0.92); }

.screen-reader-text { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ─────────────────────────── design axes ──────────────────────────────
   Header variants (logo left / center / split), feed variants (grid-2 /
   grid-3 / list) and sidebar variants (right / none) are randomised per
   new site by the theme builder. Classes live on <body> as
   sf-header--*, sf-feed--*, sf-sidebar--*.
   ────────────────────────────────────────────────────────────────────── */

/* Header — logo-left is the default layout, nothing to override. */
body.sf-header--left .sf-header-inner {
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

/* Header — centered logo, nav below. */
body.sf-header--center .sf-header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    row-gap: 12px;
}
body.sf-header--center .sf-header-inner .sf-brand { text-align: center; }
body.sf-header--center .sf-nav ul,
body.sf-header--center .sf-nav-strip ul { justify-content: center; }

/* Header — split: nav rail | logo | nav/actions rail. */
body.sf-header--split .sf-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-items: center;
    column-gap: 24px;
    row-gap: 12px;
}
body.sf-header--split .sf-header-inner .sf-brand {
    grid-column: 2;
    justify-self: center;
    text-align: center;
}
body.sf-header--split .sf-header-inner .sf-nav { grid-column: 3; justify-self: end; }
body.sf-header--split .sf-nav ul { justify-content: flex-end; }
@media (max-width: 700px) {
    body.sf-header--split .sf-header-inner { grid-template-columns: 1fr; }
    body.sf-header--split .sf-header-inner .sf-brand,
    body.sf-header--split .sf-header-inner .sf-nav { grid-column: 1; justify-self: center; }
    body.sf-header--split .sf-nav ul { justify-content: center; }
}

/* Feed — 2-col grid. */
body.sf-feed--grid-2 .sf-feed-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

/* Feed — 3-col grid. */
body.sf-feed--grid-3 .sf-feed-items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* Feed — vertical list. */
body.sf-feed--list .sf-feed-items {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
body.sf-feed--list .sf-feed-items > article { max-width: 780px; }

@media (max-width: 900px) {
    body.sf-feed--grid-2 .sf-feed-items,
    body.sf-feed--grid-3 .sf-feed-items { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1100px) {
    body.sf-feed--grid-3 .sf-feed-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Sidebar — right: force sidebar column to the right of the content. */
body.sf-sidebar--right .sf-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
}
body.sf-sidebar--right .sf-sidebar    { order: 2; }
body.sf-sidebar--right .sf-content-area { order: 1; }

/* Sidebar — none: single column, sidebar hidden. */
body.sf-sidebar--none .sf-layout { grid-template-columns: 1fr; }
body.sf-sidebar--none .sf-sidebar { display: none; }

@media (max-width: 900px) {
    body.sf-sidebar--right .sf-layout { grid-template-columns: 1fr; }
}

/* ══════════════════ modern uplift v2 (full-width tiles, no sidebar) ══════════════════ */
:root { --sf-max-w: 1160px; --sf-card-r: 16px; }
body { font-size: 17px; }
.sf-container { max-width: var(--sf-max-w); padding: 0 28px; }

/* sticky translucent header + animated underline nav */
.sf-site-header { position: sticky; top: 0; z-index: 30; }
.sf-brand, .sf-brand a { font-weight: 800; letter-spacing: -.03em; }
.sf-nav a, .sf-nav-strip a { position: relative; }
.sf-nav a::after, .sf-nav-strip a::after { content:""; position:absolute; left:0; right:100%; bottom:-5px; height:2px; background:var(--sf-primary); transition:right .25s ease; }
.sf-nav a:hover::after, .sf-nav-strip a:hover::after { right:0; }
.sf-nav a:hover, .sf-nav-strip a:hover { color:var(--sf-primary); text-decoration:none; }

/* card tiles (covers magazine .sf-post-card AND classic/minimalist .sf-card) */
.sf-feed-items > article {
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-card-r);
  overflow: hidden; padding: 0;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(16,24,40,.05);
  transition: transform .28s ease, box-shadow .28s ease;
}
.sf-feed-items > article:hover { transform: translateY(-5px); box-shadow: 0 22px 46px -16px rgba(16,24,40,.22); }
.sf-feed-items > article .sf-thumb, .sf-feed-items > article .sf-card-thumb { margin:0; display:block; overflow:hidden; }
.sf-feed-items > article .sf-thumb img, .sf-feed-items > article .sf-card-thumb img {
  width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:0; transition:transform .5s ease;
}
.sf-feed-items > article:hover .sf-thumb img, .sf-feed-items > article:hover .sf-card-thumb img { transform:scale(1.05); }
.sf-feed-items > article .sf-post-meta,
.sf-feed-items > article > h2,
.sf-feed-items > article .sf-content,
.sf-feed-items > article > p { padding-left:22px; padding-right:22px; }
.sf-feed-items > article .sf-card-body { padding:20px 22px 22px; }
.sf-feed-items > article .sf-post-meta { padding-top:20px; }
.sf-feed-items > article h2, .sf-feed-items > article .sf-card-title { font-size:1.32rem; line-height:1.28; margin:8px 0 10px; }
.sf-feed-items > article .sf-content, .sf-feed-items > article .sf-card-excerpt { color:var(--sf-muted); font-size:.95rem; }
.sf-feed-items > article > p:last-child, .sf-feed-items > article .sf-card-more { margin-top:auto; padding-bottom:22px; }

/* uppercase meta + brand-color category */
.sf-post-meta, .sf-card-meta { font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; color:var(--sf-muted); }
.sf-post-meta a, .sf-post-cats a, .sf-card-meta a { color:var(--sf-primary); font-weight:700; }

/* read-more -> arrow link, not a heavy button (in feed) */
.sf-feed-items .sf-btn { background:transparent !important; color:var(--sf-primary) !important; padding:0 !important; font-weight:700; box-shadow:none; }
.sf-feed-items .sf-btn:hover { filter:none; text-decoration:none; }
.sf-feed-items .sf-btn::after { content:" \2192"; }
.sf-feed-items > article:hover .sf-btn::after { margin-left:4px; }

/* grid spacing + single readability */
body.sf-feed--grid-3 .sf-feed-items { gap:28px; }
body.sf-feed--grid-2 .sf-feed-items { gap:32px; }
.sf-main { padding: 44px 0 24px; }
.sf-single { border-radius: var(--sf-card-r); }
.sf-single .sf-content { font-size:1.07rem; line-height:1.75; }
.sf-single .sf-content h2 { margin-top:1.6em; }

/* ═══════════════ v3 — full site polish (archive/single/header/footer) ═══════════════ */
/* category / archive pages -> same card grid + hero header */
.sf-archive-head { text-align:center; padding:8px 0 40px; }
.sf-archive-head .sf-eyebrow { text-transform:uppercase; letter-spacing:.14em; font-size:.74rem; color:var(--sf-primary); font-weight:800; }
.sf-archive-head h1 { font-size:clamp(2rem,4vw,3rem); margin:.15em 0 .3em; }
.sf-archive-head .sf-content { color:var(--sf-muted); max-width:640px; margin:0 auto; }
.sf-archive-head + .sf-feed-items { margin-top:8px; }

/* single post — centered, readable, featured hero, author box */
.sf-single { max-width:768px; margin:0 auto; padding:0 !important; border:0 !important; background:transparent !important; }
.sf-single .sf-thumb { margin:0 0 30px !important; border-radius:var(--sf-card-r); overflow:hidden; }
.sf-single .sf-thumb img { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:var(--sf-card-r) !important; }
.sf-single h1 { font-size:clamp(2rem,3.4vw,2.7rem); line-height:1.16; margin:.1em 0 .35em; }
.sf-single .sf-post-meta { margin-bottom:26px; }
.sf-single .sf-content > p:first-of-type { font-size:1.16rem; color:var(--sf-fg); }
.sf-single .sf-content img, .sf-content figure img { border-radius:var(--sf-card-r); margin:1.4em 0; }
.sf-author-box { display:flex; gap:16px; align-items:center; margin:44px 0 8px; padding:22px 24px; background:var(--sf-surface); border:1px solid var(--sf-border); border-radius:var(--sf-card-r); }
.sf-author-box img { width:60px; height:60px; border-radius:50%; object-fit:cover; flex:0 0 auto; }
.sf-author-box .sf-author-name { font-weight:800; color:var(--sf-accent); font-family:var(--sf-font-heading); }
.sf-author-box .sf-author-role { font-size:.85rem; color:var(--sf-muted); }

/* header — clean, brand accent initial, thin accent rule */
.sf-site-header { border-bottom:1px solid var(--sf-border); background:var(--sf-surface); }
.sf-header-inner { padding:20px 0; }
.sf-brand a { font-size:1.7rem; font-weight:800; }
.sf-nav a, .sf-nav-strip a { font-size:.82rem; font-weight:600; text-transform:uppercase; letter-spacing:.05em; color:var(--sf-fg); }

/* footer — dark branded band with categories */
.sf-site-footer { background:var(--sf-accent); color:rgba(255,255,255,.72); border:0 !important; margin-top:76px; padding:52px 0 26px; text-align:left; font-size:.95rem; }
.sf-footer-top { display:flex; flex-wrap:wrap; justify-content:space-between; gap:30px; align-items:flex-start; padding-bottom:26px; margin-bottom:22px; border-bottom:1px solid rgba(255,255,255,.14); }
.sf-footer-brand { font-family:var(--sf-font-heading); font-size:1.5rem; font-weight:800; color:#fff; }
.sf-footer-tag { color:rgba(255,255,255,.6); max-width:360px; margin-top:8px; }
.sf-footer-menu { list-style:none; display:flex; flex-wrap:wrap; gap:10px 22px; margin:0; padding:0; }
.sf-footer-menu a { color:rgba(255,255,255,.82); font-size:.92rem; }
.sf-footer-menu a:hover { color:#fff; text-decoration:none; }
.sf-site-footer .sf-copy { text-align:center; font-size:.85rem; color:rgba(255,255,255,.5); }
