/*
Theme Name: The Blog Loft
Theme URI: https://theblogloft.com/
Author: The Blog Loft Team
Description: Lightweight editorial theme for The Blog Loft — practical guides, templates and tools for bloggers.
Version: 1.0.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: theblogloft
*/

:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --ink: #1f1d1a;
  --ink-soft: #57524b;
  --muted: #8a8378;
  --line: #e9e2d6;
  --accent: #d9583b;
  --accent-dark: #b8432a;
  --accent-soft: #fbe7df;
  --sage: #3f6b5c;
  --sage-soft: #e3eee9;
  --sun: #f2b544;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31,29,26,.04), 0 8px 24px rgba(31,29,26,.06);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --read: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.7 var(--sans); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }

/* ---------- Header ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.2) blur(6px); background: rgba(251,248,243,.92); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.brand-name em { font-style: normal; color: var(--accent); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-size: .95rem; font-weight: 500; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--accent-soft); color: var(--accent-dark); }
.main-nav .menu-cta > a { background: var(--ink); color: #fff; }
.main-nav .menu-cta > a:hover { background: var(--accent); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--sage); background: var(--sage-soft); padding: 5px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 18px 0 16px; }
.hero h1 span { color: var(--accent); font-style: italic; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; margin: 0 0 26px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: .98rem; border: 2px solid transparent; transition: .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.hero-art .mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 14px; }
.mini-cal span { aspect-ratio: 1; border-radius: 8px; background: #f4efe6; font-size: .72rem; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.mini-cal span.on { background: var(--accent); color: #fff; }
.mini-cal span.alt { background: var(--sage); color: #fff; }
.mini-cal span.sun { background: var(--sun); color: var(--ink); }
.hero-art h3 { margin: 0; font-size: 1.05rem; }
.start-title { margin: 0 0 14px; font-size: 1.25rem; }
.start-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.start-list a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); text-decoration: none; color: var(--ink); transition: .15s; }
.start-list a:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.start-list .num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font: 700 1rem var(--serif); }
.start-list a:hover .num { background: var(--accent); }
.start-list .txt { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.start-list .txt b { font-family: var(--serif); font-size: 1.05rem; }
.start-list .txt small { color: var(--muted); font-size: .86rem; }
.start-list .arr { color: var(--accent); font-weight: 700; }
.hero-art .legend { display: flex; gap: 14px; margin-top: 14px; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------- Home (magazine layout) ---------- */
.home-intro { padding: 44px 0 20px; }
.home-intro .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 44px; align-items: start; }
.home-intro h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin: 16px 0 12px; }
.home-intro h1 span { color: var(--accent); font-style: italic; }
.home-intro .lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 36em; margin: 0 0 20px; }
.intro-search { display: flex; gap: 8px; max-width: 520px; }
.intro-search input { flex: 1; min-width: 0; padding: 13px 18px; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; background: var(--surface); }
.intro-search input:focus { outline: none; border-color: var(--accent); }
.intro-search button { background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 0 24px; font: 600 .98rem var(--sans); cursor: pointer; }
.intro-search button:hover { background: var(--accent); }
.intro-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.intro-cats a { font-size: .88rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); text-decoration: none; }
.intro-cats a:hover { border-color: var(--accent); color: var(--accent-dark); }

.latest { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: start; }
.lead-post .thumb { display: block; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.lead-post .thumb svg, .lead-post .thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.lead-post h3 { font-size: 1.8rem; margin: 6px 0 10px; }
.lead-post p { margin: 0 0 10px; color: var(--ink-soft); }
.lead-post h3 a, .side-post h3 a { color: var(--ink); text-decoration: none; }
.lead-post h3 a:hover, .side-post h3 a:hover { color: var(--accent-dark); }
.latest .cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--sage); text-decoration: none; }
.latest .meta { font-size: .84rem; color: var(--muted); }
.side-posts { display: flex; flex-direction: column; }
.side-post { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.side-post:first-child { padding-top: 0; }
.side-post:last-child { border-bottom: 0; }
.side-post .thumb { display: block; border-radius: 10px; overflow: hidden; }
.side-post .thumb svg, .side-post .thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.side-post h3 { font-size: 1.08rem; margin: 3px 0 5px; line-height: 1.3; }

.cat-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.cat-block:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.cat-block:last-child:nth-child(3n+1) ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
@media (max-width: 980px) { .cat-block:last-child:nth-child(3n+1) ul { display: block; } }
.cat-block header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.cat-block .ico { font-size: 1.5rem; line-height: 1.2; }
.cat-block h3 { margin: 0 0 4px; font-size: 1.25rem; }
.cat-block h3 a { color: var(--ink); text-decoration: none; }
.cat-block header p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.cat-block ul { list-style: none; margin: 6px 0 14px; padding: 0; flex: 1; }
.cat-block li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px dashed var(--line); font-size: .95rem; line-height: 1.4; }
.cat-block li a { color: var(--ink); text-decoration: none; font-weight: 500; }
.cat-block li a:hover { color: var(--accent-dark); text-decoration: underline; }
.cat-block li span { flex: none; font-size: .78rem; color: var(--muted); }
.cat-block .more { font-size: .9rem; font-weight: 600; text-decoration: none; }

.trust { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; background: var(--sage-soft); border-radius: 24px; padding: 40px; align-items: center; }
.trust h2 { margin: 0 0 10px; }
.trust-intro p { margin: 0 0 16px; color: var(--ink-soft); }
.trust-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 !important; }
.trust-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trust-points li { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; }
.trust-points b { display: block; font-family: var(--serif); font-size: 1.02rem; margin-bottom: 3px; }
.trust-points span { font-size: .9rem; color: var(--ink-soft); line-height: 1.5; display: block; }

@media (max-width: 980px) {
  .home-intro .wrap, .latest, .trust { grid-template-columns: 1fr; }
  .cat-blocks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .home-intro { padding: 28px 0 8px; }
  .cat-blocks, .trust-points { grid-template-columns: 1fr; }
  .trust { padding: 26px; }
  .side-post { grid-template-columns: 110px 1fr; gap: 12px; }
  .lead-post h3 { font-size: 1.45rem; }
  .intro-search button { padding: 0 18px; }
}

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-head h2 { font-size: 1.9rem; margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.section-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Category pills */
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 12px; }
.topic { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;text-decoration: none; color: var(--ink); transition: .15s; }
.topic:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.topic b { display: block; font-family: var(--serif); font-size: 1.05rem; }
.topic small { color: var(--muted); }
.topic .ico { font-size: 1.4rem; margin-bottom: 6px; display: block; }

/* Post cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .thumb { aspect-ratio: 16/9; background: var(--accent-soft); display: block; }
.card .thumb svg, .card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--sage); text-decoration: none; }
.card h3 { font-size: 1.2rem; margin: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent-dark); }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.6; }
.card .meta { margin-top: auto; font-size: .82rem; color: var(--muted); padding-top: 6px; }
.card.feature { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.card.feature .thumb { flex: 0 0 56%; aspect-ratio: 16/9; }
.card.feature .body { padding: 32px 36px; justify-content: center; }
.card.feature .meta { margin-top: 8px; }
.card.feature h3 { font-size: 1.7rem; }
.card.feature p { font-size: 1.02rem; }

/* Tools strip */
.tools { background: var(--ink); color: #f3eee6; border-radius: 24px; padding: 40px; }
.tools h2 { color: #fff; margin-top: 0; }
.tools p.sub { color: #cfc7ba; margin-top: -6px; }
.tool-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 22px; }
.tool-list a { background: #2b2925; border: 1px solid #3a3731; border-radius: var(--radius); padding: 18px; color: #fff; text-decoration: none; transition: .15s; }
.tool-list a:hover { border-color: var(--accent); background: #33302b; }
.tool-list b { display: block; font-family: var(--serif); font-size: 1.05rem; margin: 6px 0 4px; }
.tool-list small { color: #bdb4a6; font-size: .85rem; line-height: 1.5; display: block; }

/* Newsletter / about box */
.callout { background: var(--sage-soft); border-radius: 24px; padding: 36px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.callout h2 { margin: 0 0 6px; }
.callout p { margin: 0; color: var(--ink-soft); }

/* ---------- Single post ---------- */
.post-head { padding: 48px 0 24px; text-align: center; }
.post-head .wrap { max-width: 860px; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.post-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 10px 0 16px; }
.post-head .excerpt { font-size: 1.15rem; color: var(--ink-soft); max-width: 40em; margin: 0 auto 18px; }
.byline { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.byline .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--serif); }
.post-hero { max-width: 980px; margin: 0 auto 36px; padding: 0 20px; }
.post-hero { max-width: 760px; }
.post-hero svg, .post-hero img { border-radius: 20px; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-layout { display: grid; grid-template-columns: minmax(0, var(--read)) 280px; gap: 56px; justify-content: center; padding: 0 20px 60px; }
.entry { font-size: 1.08rem; }
.entry h2 { font-size: 1.7rem; margin: 2.2em 0 .6em; scroll-margin-top: 90px; }
.entry h3 { font-size: 1.3rem; margin: 1.8em 0 .5em; }
.entry p, .entry ul, .entry ol { margin: 0 0 1.2em; }
.entry li { margin-bottom: .4em; }
.entry blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.entry table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.entry th, .entry td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.entry th { background: #f4efe6; font-weight: 600; }
.entry pre { background: #f4efe6; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 0 0 1.4em; font: 14px/1.6 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-x: auto; }
.entry .tip { background: var(--accent-soft); border-radius: var(--radius); padding: 18px 20px; margin: 1.6em 0; }
.entry .tip strong:first-child { color: var(--accent-dark); }
.entry .checklist { list-style: none; padding: 0; }
.entry .checklist li { padding-left: 32px; position: relative; }
.entry .checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border: 2px solid var(--sage); border-radius: 5px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 2em; }
.toc b { font-family: var(--serif); }
.toc ol { margin: 8px 0 0; padding-left: 20px; font-size: .95rem; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent-dark); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }
.sidebar { position: sticky; top: 92px; align-self: start; display: flex; flex-direction: column; gap: 18px; }
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.widget h4 { margin: 0 0 10px; font-size: 1.05rem; }
.widget ul { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.widget li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.widget li:last-child { border: 0; }
.widget a { color: var(--ink-soft); text-decoration: none; }
.widget a:hover { color: var(--accent-dark); }
.widget.dark { background: var(--ink); color: #eee7dc; border: 0; }
.widget.dark h4 { color: #fff; }
.author-box { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 40px; }
.author-box .avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font: 700 1.3rem var(--serif); }
.author-box p { margin: 4px 0 0; font-size: .95rem; color: var(--ink-soft); }
.related { border-top: 1px solid var(--line); padding: 48px 0; }

/* Pages & archives */
.page-head { padding: 52px 0 20px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 8px 0; }
.page-head p { color: var(--ink-soft); max-width: 40em; margin: 0; }
.pagination { display: flex; gap: 8px; justify-content: center; padding: 30px 0; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--surface); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Tool pages */
.tool-box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); margin: 0 0 2em; }
.tool-box label { display: block; font-weight: 600; margin: 0 0 6px; font-size: .95rem; }
.tool-box input[type=text], .tool-box input[type=number], .tool-box select, .tool-box textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: var(--bg); }
.tool-box textarea { min-height: 180px; }
.tool-box input:focus, .tool-box select:focus, .tool-box textarea:focus { outline: none; border-color: var(--accent); }
.tool-box .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 14px; }
.tool-box button { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 12px 24px; font: 600 1rem var(--sans); cursor: pointer; }
.tool-box button:hover { background: var(--accent-dark); }
.tool-box button.secondary { background: var(--ink); }
.tool-out { margin-top: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { background: var(--accent-soft); color: var(--accent-dark); padding: 7px 12px; border-radius: 999px; font-weight: 600; font-size: .92rem; cursor: pointer; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.stat b { display: block; font: 700 1.6rem var(--serif); color: var(--ink); }
.stat small { color: var(--muted); }

.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: center; padding: 4px 0; }
.cal-cell { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; min-height: 86px; padding: 6px; font-size: .78rem; display: flex; flex-direction: column; gap: 4px; }
.cal-cell.empty { background: transparent; border: 0; }
.cal-cell b { font-size: .85rem; }
.cal-cell .ev { border-radius: 6px; padding: 3px 6px; line-height: 1.3; color: #fff; background: var(--accent); word-break: break-word; }
.cal-cell .ev.feature { background: var(--sage); }
.cal-cell .ev.news { background: var(--sun); color: var(--ink); }
@media (max-width: 640px) { .cal-cell { min-height: 64px; font-size: .66rem; padding: 4px; } .cal-cell .ev { padding: 2px 4px; } }

/* Contact Form 7 */
.contact-form:empty { display: none; }
.wpcf7 { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); margin: 1.4em 0 2em; }
.wpcf7 label { display: block; font-weight: 600; font-size: .95rem; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 textarea { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; background: var(--bg); }
.wpcf7 textarea { min-height: 160px; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--accent); }
.wpcf7 .wpcf7-acceptance label { font-weight: 400; font-size: .9rem; color: var(--ink-soft); }
.wpcf7 input[type=submit] { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 12px 26px; font: 600 1rem var(--sans); cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: var(--accent-dark); }
.wpcf7 input[type=submit]:disabled { opacity: .55; cursor: not-allowed; }
.wpcf7-not-valid-tip { color: var(--accent-dark); font-size: .85rem; font-weight: 500; }
.wpcf7 form .wpcf7-response-output { border-radius: 10px; margin: 14px 0 0; padding: 10px 14px; }

/* Search form */
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; background: var(--surface); }
.search-form .search-submit { background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 0 20px; font: 600 .95rem var(--sans); cursor: pointer; }

/* Print (calendar tool) */
@media print {
  .site-header, .site-footer, .sidebar, .related, .breadcrumbs, .tool-box button, .tool-box .row, .tool-box > label, .page-head p { display: none !important; }
  body { background: #fff; }
  .tool-box { box-shadow: none; border: 0; padding: 0; }
  .cal-cell .ev { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Footer ---------- */
.site-footer { background: #171512; color: #cfc7ba; padding: 56px 0 28px; margin-top: 40px; font-size: .93rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cfc7ba; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 10px; }
.site-footer .bottom { border-top: 1px solid #2c2925; margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #8f877b; }

/* ---------- Responsive ---------- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 440px; }
  .card.feature { flex-direction: column; }
  .card.feature .thumb { flex: none; width: 100%; }
  .card.feature .body { padding: 22px 26px 26px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card.feature { grid-column: span 2; }
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px; box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 36px 0 24px; }
  .grid { grid-template-columns: 1fr; }
  .card.feature { grid-column: auto; flex-direction: column; }
  .card.feature .thumb { flex: none; width: 100%; }
  .card.feature .body { padding: 18px 20px 22px; }
  .card.feature h3 { font-size: 1.35rem; }
  .callout { grid-template-columns: 1fr; }
  .tools { padding: 26px; }
  .wrap { padding: 0 16px; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
