/*
Theme Name: Written Margins
Theme URI: https://writtenmargins.com
Description: A custom lifestyle blog theme for Written Margins. Bright and playful, with per-category colour coding, a serif editorial voice, and a faceless author setup.
Version: 1.0
Author: Written Margins
Text Domain: writtenmargins
*/

/* ===================================================================
   1. TOKENS
   =================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FFFDF9;
  --surface: #FFFFFF;
  --text: #2A2118;
  --muted: #7A6E66;
  --faint: #A89A90;
  --accent: #E8503A;
  --accent-light: #FFE8E0;
  --accent-dark: #B03020;
  --sage: #7BAF8A;
  --sage-light: #E4F0E8;
  --butter: #FFF5D6;
  --border: #EDE8E0;

  --cat-recipes: #FFE8E0;        --cat-recipes-text: #B03020;
  --cat-books: #E4E8FF;          --cat-books-text: #3040A0;
  --cat-travel: #E4F0E8;         --cat-travel-text: #2A7A4A;
  --cat-home: #FFF5D6;           --cat-home-text: #8A6A00;
  --cat-wellness: #F0E8FF;       --cat-wellness-text: #6040A0;
  --cat-fashion: #FFE8F5;        --cat-fashion-text: #A02860;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;

  --wrap: 1240px;
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font-family: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: 10px 18px;
  font-size: 14px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* ===================================================================
   2. TAGS & CATEGORY PILLS
   =================================================================== */

.tag {
  display: inline-block;
  font-size: 11px; font-weight: 500;
  padding: 3px 10px; border-radius: 100px;
  letter-spacing: 0.01em;
  background: var(--border); color: var(--muted);
}
.tag.cat-recipes  { background: var(--cat-recipes);  color: var(--cat-recipes-text); }
.tag.cat-books    { background: var(--cat-books);    color: var(--cat-books-text); }
.tag.cat-travel   { background: var(--cat-travel);   color: var(--cat-travel-text); }
.tag.cat-home     { background: var(--cat-home);     color: var(--cat-home-text); }
.tag.cat-wellness { background: var(--cat-wellness); color: var(--cat-wellness-text); }
.tag.cat-fashion  { background: var(--cat-fashion);  color: var(--cat-fashion-text); }
.tag.white        { background: rgba(255,255,255,0.22); color: #fff; }

.cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
  padding: 7px 14px; border-radius: 100px;
  white-space: nowrap; transition: opacity 0.15s;
}
.cat-pill:hover { opacity: 0.8; }
.cat-pill.cat-recipes  { background: var(--cat-recipes);  color: var(--cat-recipes-text); }
.cat-pill.cat-books    { background: var(--cat-books);    color: var(--cat-books-text); }
.cat-pill.cat-travel   { background: var(--cat-travel);   color: var(--cat-travel-text); }
.cat-pill.cat-home     { background: var(--cat-home);     color: var(--cat-home-text); }
.cat-pill.cat-wellness { background: var(--cat-wellness); color: var(--cat-wellness-text); }
.cat-pill.cat-fashion  { background: var(--cat-fashion);  color: var(--cat-fashion-text); }

/* ===================================================================
   3. BUTTONS
   =================================================================== */

.btn {
  display: inline-block;
  font-size: 13px; font-weight: 500;
  background: var(--accent); color: #fff;
  padding: 9px 20px; border: none; border-radius: 100px;
  cursor: pointer; transition: opacity 0.15s;
}
.btn:hover { opacity: 0.88; }

.btn-outline {
  display: inline-block;
  font-size: 13px; font-weight: 500;
  color: var(--accent); background: none;
  border: 1.5px solid var(--accent);
  padding: 7px 18px; border-radius: 100px;
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.btn-full {
  display: block; width: 100%;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 500;
  padding: 10px; border: none; border-radius: var(--radius-sm);
  cursor: pointer; transition: opacity 0.15s;
}
.btn-full:hover { opacity: 0.88; }

/* ===================================================================
   4. HEADER
   =================================================================== */

.topbar {
  display: flex; justify-content: flex-end; align-items: center; gap: 20px;
  padding: 10px 48px; font-size: 12px; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.topbar a:hover { color: var(--accent); }

.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px; border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-logo {
  font-family: var(--serif); font-size: 26px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--text);
}
.site-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 30px; list-style: none; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color 0.15s; }
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links a.active { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-search {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 18px; padding: 4px; line-height: 1;
}
.nav-search:hover { color: var(--accent); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 22px; color: var(--text); }

.cat-strip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 20px 48px; border-bottom: 1px solid var(--border);
}
.cat-strip-label { font-size: 12px; font-weight: 500; color: var(--muted); margin-right: 6px; }

/* ===================================================================
   4b. HOMEPAGE HERO
   =================================================================== */

.hero {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 2px;
  background: var(--border); border-bottom: 1px solid var(--border);
}
.hero-main {
  position: relative; overflow: hidden;
  min-height: 480px; background: #D9C5B8; display: block;
}
.hero-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-main-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,18,10,0.74) 0%, rgba(30,18,10,0.1) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 36px 40px;
}
.hero-cat { margin-bottom: 10px; }
.hero-main-overlay h2 {
  font-family: var(--serif); font-size: 34px; font-weight: 600;
  color: #fff; line-height: 1.18; margin-bottom: 10px; max-width: 480px;
}
.hero-main-overlay p {
  font-size: 14px; color: rgba(255,255,255,0.8);
  max-width: 420px; margin-bottom: 18px; line-height: 1.55;
}
.hero-meta { font-size: 12px; color: rgba(255,255,255,0.62); }

.hero-side { display: flex; flex-direction: column; gap: 2px; }
.hero-card {
  flex: 1; position: relative; overflow: hidden;
  min-height: 238px; background: #C8D9C0; display: block;
}
.hero-card:last-child { background: #D9D0C8; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,18,10,0.68) 0%, transparent 65%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px 22px;
}
.hero-card-overlay h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  color: #fff; line-height: 1.25; margin-top: 8px;
}
.hero-card-overlay .hero-meta { margin-top: 6px; }

/* ===================================================================
   4c. SEARCH DRAWER & EMPTY STATES
   =================================================================== */

.search-drawer {
  border-bottom: 1px solid var(--border);
  padding: 20px 48px; background: var(--bg);
}
.search-drawer .wrap { padding: 0; max-width: 520px; margin: 0 auto; }
.search-drawer[hidden] { display: none; }

.search-form { display: flex; gap: 10px; align-items: stretch; }
.search-form .newsletter-input { margin-bottom: 0; flex: 1; }
.search-form .btn-full { width: auto; padding: 10px 22px; flex-shrink: 0; }

.empty-state { text-align: center; padding: 48px 20px; max-width: 460px; margin: 0 auto; }
.empty-state h2 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.empty-state p { font-size: 14px; color: var(--muted); margin-bottom: 22px; line-height: 1.6; }

/* ===================================================================
   5. LAYOUT SHELLS
   =================================================================== */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 48px; }

.with-sidebar {
  display: grid; grid-template-columns: minmax(0,1fr) 300px;
}
.with-sidebar > .content-col { border-right: 1px solid var(--border); padding: 44px 48px; }
.with-sidebar > .sidebar { padding: 44px 32px; }

.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 26px;
}
.section-title { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.section-link { font-size: 13px; color: var(--accent); font-weight: 500; }
.section-link:hover { text-decoration: underline; }

/* ===================================================================
   6. POST CARDS
   =================================================================== */

.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.posts-grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }

.post-card { display: flex; flex-direction: column; }
.post-thumb {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; background: #E0D8D0; margin-bottom: 14px;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-card-tag { margin-bottom: 8px; }
.post-card h3 {
  font-family: var(--serif); font-size: 17px; font-weight: 600;
  line-height: 1.3; margin-bottom: 8px;
}
.post-card h3 a:hover { color: var(--accent); }
.post-card p {
  font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta { font-size: 12px; color: var(--muted); margin-top: auto; }

/* ===================================================================
   7. SIDEBAR WIDGETS
   =================================================================== */

.sidebar-about {
  text-align: center; padding-bottom: 28px;
  border-bottom: 1px solid var(--border); margin-bottom: 28px;
}
.monogram {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--accent-light); border: 1.5px solid #F5C6B8;
  margin: 0 auto 14px; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--accent);
}
.sidebar-about h3 { font-family: var(--serif); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.sidebar-about p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }

.sidebar-widget { margin-bottom: 28px; }
.widget-title { font-family: var(--serif); font-size: 16px; font-weight: 600; margin-bottom: 14px; }

.newsletter-box { background: var(--butter); border-radius: 12px; padding: 20px; text-align: center; }
.newsletter-box p { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.55; }
.newsletter-input {
  width: 100%; padding: 9px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px; background: #fff;
  margin-bottom: 10px; outline: none; color: var(--text);
}
.newsletter-input:focus { border-color: var(--accent); }

.recent-list { display: flex; flex-direction: column; gap: 16px; }
.recent-item { display: flex; gap: 12px; align-items: flex-start; }
.recent-thumb {
  width: 58px; height: 58px; border-radius: var(--radius-sm);
  flex-shrink: 0; overflow: hidden; background: #E0D8D0;
}
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-info h4 { font-family: var(--serif); font-size: 13px; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.recent-info h4 a:hover { color: var(--accent); }
.recent-info span { font-size: 11px; color: var(--muted); }

/* ===================================================================
   8. SINGLE POST
   =================================================================== */

.post-hero {
  max-width: 820px; margin: 0 auto; padding: 48px 48px 0; text-align: center;
}
.post-hero .tag { margin-bottom: 16px; }
.post-hero h1 {
  font-family: var(--serif); font-size: 42px; font-weight: 600;
  line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 16px;
}
.post-hero .standfirst {
  font-size: 17px; color: var(--muted); line-height: 1.6;
  max-width: 620px; margin: 0 auto 20px;
}
.post-hero-meta {
  font-size: 13px; color: var(--faint);
  padding-bottom: 32px;
}

.post-featured {
  max-width: 1000px; margin: 0 auto 44px; padding: 0 48px;
}
.post-featured-inner {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16/9; background: #D9C5B8;
}
.post-featured-inner img { width: 100%; height: 100%; object-fit: cover; }
.post-featured figcaption {
  font-size: 12px; color: var(--faint); text-align: center; margin-top: 10px;
}

.post-body {
  max-width: 680px; margin: 0 auto; padding: 0 48px 56px;
  font-size: 17px; line-height: 1.75; color: #3A2F24;
}
.post-body > * + * { margin-top: 22px; }
.post-body p { max-width: 68ch; }
.post-body h2 {
  font-family: var(--serif); font-size: 27px; font-weight: 600;
  line-height: 1.25; margin-top: 44px; color: var(--text);
}
.post-body h3 {
  font-family: var(--serif); font-size: 21px; font-weight: 600;
  margin-top: 34px; color: var(--text);
}
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body li + li { margin-top: 8px; }
.post-body img, .post-body figure img { border-radius: var(--radius); }
.post-body figure figcaption { font-size: 12px; color: var(--faint); margin-top: 8px; text-align: center; }
.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 22px; margin-left: 0;
  font-family: var(--serif); font-size: 21px; font-style: italic;
  line-height: 1.5; color: var(--text);
}
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

.pull-box {
  background: var(--butter); border-radius: 12px; padding: 22px 26px;
}
.pull-box h4 { font-family: var(--serif); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.pull-box p { font-size: 15px; color: #6A5A3A; margin: 0; }

.post-tags {
  max-width: 680px; margin: 0 auto; padding: 0 48px 32px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.post-tags .label { font-size: 13px; color: var(--muted); margin-right: 4px; }

.post-share {
  max-width: 680px; margin: 0 auto; padding: 24px 48px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.post-share span { font-size: 13px; color: var(--muted); }
.share-links { display: flex; gap: 10px; }
.share-links a {
  font-size: 12px; font-weight: 500; color: var(--muted);
  border: 1px solid var(--border); padding: 6px 14px; border-radius: 100px;
}
.share-links a:hover { border-color: var(--accent); color: var(--accent); }

.post-nav {
  max-width: 900px; margin: 44px auto; padding: 0 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.post-nav-item {
  border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px;
  transition: border-color 0.15s;
}
.post-nav-item:hover { border-color: var(--accent); }
.post-nav-item .dir { font-size: 12px; color: var(--faint); margin-bottom: 6px; display: block; }
.post-nav-item h4 { font-family: var(--serif); font-size: 16px; font-weight: 600; line-height: 1.3; }
.post-nav-item.next { text-align: right; }

.related-section { max-width: 1100px; margin: 0 auto; padding: 44px 48px 56px; border-top: 1px solid var(--border); }

/* ===================================================================
   9. RECIPE
   =================================================================== */

.recipe-quickfacts {
  max-width: 680px; margin: 0 auto 36px; padding: 0 48px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden;
}
.quickfact { background: var(--bg); padding: 16px 12px; text-align: center; }
.quickfact .qf-label { font-size: 11px; color: var(--faint); display: block; margin-bottom: 4px; }
.quickfact .qf-value { font-size: 15px; font-weight: 500; color: var(--text); }

.recipe-card {
  max-width: 680px; margin: 0 auto 44px;
  border: 2px solid var(--accent-light); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface);
}
.recipe-card-head {
  background: var(--accent-light); padding: 22px 28px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.recipe-card-head h2 {
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  color: var(--accent-dark); line-height: 1.25;
}
.recipe-card-head p { font-size: 13px; color: #A85040; margin-top: 4px; }
.recipe-print {
  font-size: 12px; font-weight: 500; color: var(--accent-dark);
  border: 1.5px solid var(--accent-dark); padding: 6px 14px;
  border-radius: 100px; white-space: nowrap; background: none; cursor: pointer;
}
.recipe-print:hover { background: var(--accent-dark); color: #fff; }

.recipe-card-body { padding: 26px 28px; }
.recipe-section + .recipe-section { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--border); }
.recipe-section h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 600; margin-bottom: 6px;
}
.recipe-section .sub { font-size: 12px; color: var(--faint); margin-bottom: 16px; }

.ingredient-list { list-style: none; }
.ingredient-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: 15px; line-height: 1.5;
}
.ingredient-list li:last-child { border-bottom: none; }
.ingredient-list input[type="checkbox"] {
  margin-top: 5px; accent-color: var(--accent); width: 15px; height: 15px; flex-shrink: 0; cursor: pointer;
}
.ingredient-list .amount { font-weight: 500; color: var(--text); white-space: nowrap; }
.ingredient-list label { cursor: pointer; }
.ingredient-list input:checked + label { color: var(--faint); text-decoration: line-through; }

.ingredient-group-title {
  font-size: 12px; font-weight: 500; color: var(--accent);
  margin: 18px 0 4px;
}
.ingredient-group-title:first-child { margin-top: 0; }

.step-list { list-style: none; counter-reset: step; }
.step-list li {
  counter-increment: step; display: flex; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  font-size: 15px; line-height: 1.65;
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
  content: counter(step);
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-light); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; margin-top: 1px;
}

.recipe-notes { background: var(--sage-light); border-radius: 12px; padding: 20px 24px; margin-top: 26px; }
.recipe-notes h4 { font-family: var(--serif); font-size: 16px; font-weight: 600; margin-bottom: 10px; color: #2A5A3A; }
.recipe-notes ul { padding-left: 20px; font-size: 14px; color: #3A6A4A; line-height: 1.6; }
.recipe-notes li + li { margin-top: 6px; }

.jump-bar {
  max-width: 680px; margin: 0 auto 36px; padding: 0 48px;
  display: flex; gap: 10px; flex-wrap: wrap;
}

/* ===================================================================
   9b. COMMENTS
   =================================================================== */

.comments-area {
  max-width: 680px; margin: 0 auto; padding: 44px 48px 56px;
  border-top: 1px solid var(--border);
}
.comments-title {
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  margin-bottom: 6px;
}
.comments-intro { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

.comment-list { list-style: none; }
.comment-list ol.children { list-style: none; margin: 18px 0 0 0; padding-left: 26px; border-left: 2px solid var(--border); }
.comment-list li.comment { margin-bottom: 22px; }

.comment-body {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 22px;
}
.comment-head {
  display: flex; align-items: baseline; gap: 10px;
  flex-wrap: wrap; margin-bottom: 8px;
}
.comment-author-name { font-size: 14px; font-weight: 500; color: var(--text); }
.comment-author-name a { color: var(--text); }
.comment-author-name a:hover { color: var(--accent); }
.comment-badge {
  font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 100px;
  background: var(--accent-light); color: var(--accent-dark);
}
.comment-date { font-size: 12px; color: var(--faint); margin-left: auto; }
.comment-content { font-size: 15px; line-height: 1.65; color: #3A2F24; }
.comment-content p + p { margin-top: 12px; }
.comment-content a { color: var(--accent); text-decoration: underline; }
.comment-actions { margin-top: 10px; display: flex; gap: 14px; }
.comment-actions a { font-size: 12px; font-weight: 500; color: var(--muted); }
.comment-actions a:hover { color: var(--accent); }
.comment-awaiting-moderation {
  display: inline-block; font-size: 12px; color: var(--cat-home-text);
  background: var(--butter); padding: 4px 12px; border-radius: 100px; margin-bottom: 10px;
}

.comment-respond {
  margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--border);
}
.comment-reply-title { font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.comment-reply-title small { display: block; font-family: var(--sans); font-size: 13px; font-weight: 400; margin-top: 6px; }
.comment-reply-title small a { color: var(--accent); }
.comment-notes, .form-allowed-tags { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.form-allowed-tags { display: none; }

.comment-form { display: flex; flex-direction: column; gap: 16px; }
.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comment-form label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text); margin-bottom: 6px;
}
.comment-form label .required { color: var(--accent); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.wm-field input, .wm-field textarea, .wm-field select {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
  background: var(--surface); color: var(--text); outline: none;
  transition: border-color 0.15s;
}
.comment-form textarea, .wm-field textarea { min-height: 130px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus,
.wm-field input:focus, .wm-field textarea:focus, .wm-field select:focus {
  border-color: var(--accent);
}
.comment-form .form-submit { margin: 0; }
.comment-form input[type="submit"] {
  background: var(--accent); color: #fff; border: none;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  padding: 11px 26px; border-radius: 100px; cursor: pointer;
  transition: opacity 0.15s;
}
.comment-form input[type="submit"]:hover { opacity: 0.88; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 9px; }
.comment-form-cookies-consent input { width: auto; margin-top: 4px; accent-color: var(--accent); }
.comment-form-cookies-consent label { font-size: 13px; font-weight: 400; color: var(--muted); margin: 0; }

.no-comments {
  font-size: 14px; color: var(--muted);
  background: var(--surface); border: 1px dashed var(--border);
  border-radius: 12px; padding: 24px; text-align: center;
}

.comments-closed { font-size: 14px; color: var(--muted); text-align: center; padding: 20px 0; }

/* ===================================================================
   9c. PAGE TEMPLATES — ABOUT & CONTACT
   =================================================================== */

.page-intro {
  max-width: 720px; margin: 0 auto; padding: 56px 48px 44px; text-align: center;
}
.page-intro h1 {
  font-family: var(--serif); font-size: 40px; font-weight: 600;
  line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 16px;
}
.page-intro .lede {
  font-size: 18px; color: var(--muted); line-height: 1.6; max-width: 580px; margin: 0 auto;
}

.about-grid {
  max-width: 1000px; margin: 0 auto; padding: 0 48px 56px;
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px;
}
.about-card {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 24px 26px; background: var(--surface);
}
.about-card .about-chip { margin-bottom: 12px; }
.about-card h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.about-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.about-band {
  background: var(--butter); padding: 48px;
}
.about-band-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.about-band h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-bottom: 14px; }
.about-band p { font-size: 16px; color: #6A5A3A; line-height: 1.7; }
.about-band p + p { margin-top: 14px; }

.contact-layout {
  max-width: 1000px; margin: 0 auto; padding: 0 48px 56px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start;
}
.contact-form-wrap {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 32px; background: var(--surface);
}
.contact-form-wrap h2 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.contact-form-wrap .sub { font-size: 13px; color: var(--muted); margin-bottom: 22px; }

.wm-form { display: flex; flex-direction: column; gap: 18px; }
.wm-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.wm-field .hint { font-size: 12px; color: var(--faint); margin-top: 6px; }
.wm-field .required { color: var(--accent); }
.wm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wm-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wm-notice { border-radius: var(--radius-sm); padding: 14px 18px; font-size: 14px; line-height: 1.55; margin-bottom: 22px; }
.wm-notice.success { background: var(--sage-light); color: #2A5A3A; border: 1px solid #C5DEC9; }
.wm-notice.error { background: var(--accent-light); color: var(--accent-dark); border: 1px solid #F5C6B8; }
.wm-field-error { font-size: 12px; color: var(--accent-dark); margin-top: 6px; }
.wm-field input.has-error, .wm-field textarea.has-error, .wm-field select.has-error { border-color: var(--accent); }

.contact-aside { display: flex; flex-direction: column; gap: 22px; }
.contact-block {
  border-left: 3px solid var(--accent); border-radius: 0; padding: 4px 0 4px 18px;
}
.contact-block h3 { font-family: var(--serif); font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.contact-block p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.contact-block a { color: var(--accent); }

.faq-list { max-width: 720px; margin: 0 auto; padding: 0 48px 56px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item h3 { font-family: var(--serif); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.faq-item p { font-size: 15px; color: var(--muted); line-height: 1.65; }

/* ===================================================================
   10. ARCHIVE HEADER
   =================================================================== */

.archive-header {
  padding: 48px 48px 36px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.archive-header h1 { font-family: var(--serif); font-size: 36px; font-weight: 600; margin-bottom: 10px; }
.archive-header p { font-size: 15px; color: var(--muted); max-width: 540px; margin: 0 auto; }

.pagination {
  display: flex; gap: 8px; justify-content: center; align-items: center;
  margin-top: 44px; font-size: 14px;
}
.pagination .page-numbers {
  padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); color: var(--muted);
}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===================================================================
   11. FEATURE BANNER
   =================================================================== */

.feature-banner {
  margin: 0 48px 44px; background: var(--sage-light);
  border: 1px solid #C5DEC9; border-radius: var(--radius-lg);
  padding: 36px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.feature-banner h2 {
  font-family: var(--serif); font-size: 26px; font-weight: 600;
  line-height: 1.25; margin-bottom: 10px; max-width: 380px;
}
.feature-banner p { font-size: 14px; color: var(--muted); max-width: 360px; line-height: 1.6; }
.feature-banner-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.feature-banner-img { width: 200px; height: 160px; border-radius: var(--radius); flex-shrink: 0; overflow: hidden; }
.feature-banner-img img { width: 100%; height: 100%; object-fit: cover; }

/* ===================================================================
   12. FOOTER
   =================================================================== */

.site-footer { background: var(--text); color: rgba(255,255,255,0.7); padding: 44px 48px 28px; }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 24px;
}
.footer-logo { font-family: var(--serif); font-size: 22px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: 13px; line-height: 1.65; max-width: 230px; }
.footer-col h4 { font-size: 13px; font-weight: 500; color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col li a { font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-col li a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.4); gap: 16px; flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: #fff; }

/* ===================================================================
   13. RESPONSIVE
   =================================================================== */

@media (max-width: 1000px) {
  .with-sidebar { grid-template-columns: 1fr; }
  .with-sidebar > .content-col { border-right: none; border-bottom: 1px solid var(--border); }
  .posts-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-main { min-height: 400px; }
  .hero-main-overlay h2 { font-size: 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  .topbar { display: none; }
  .site-nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 14px;
    position: absolute; top: 62px; left: 0; right: 0;
    background: var(--bg); padding: 20px; border-bottom: 1px solid var(--border); z-index: 50;
  }
  .cat-strip { padding: 16px 20px; }
  .hero { grid-template-columns: 1fr; }
  .hero-main { min-height: 340px; }
  .hero-main-overlay { padding: 24px 20px; }
  .hero-main-overlay h2 { font-size: 24px; }
  .hero-main-overlay p { display: none; }
  .hero-card { min-height: 200px; }
  .search-drawer { padding: 16px 20px; }
  .search-form { flex-direction: column; }
  .search-form .btn-full { width: 100%; }
  .with-sidebar > .content-col,
  .with-sidebar > .sidebar { padding: 32px 20px; }
  .posts-grid { grid-template-columns: 1fr; gap: 24px; }
  .post-hero { padding: 32px 20px 0; }
  .post-hero h1 { font-size: 30px; }
  .post-featured, .post-body, .post-tags, .post-share,
  .recipe-quickfacts, .jump-bar { padding-left: 20px; padding-right: 20px; }
  .post-body { font-size: 16px; }
  .recipe-card { margin-left: 20px; margin-right: 20px; }
  .recipe-quickfacts { grid-template-columns: repeat(2, 1fr); }
  .post-nav { grid-template-columns: 1fr; padding: 0 20px; }
  .post-nav-item.next { text-align: left; }
  .related-section { padding: 32px 20px; }
  .comments-area { padding: 32px 20px 40px; }
  .comment-form-row, .wm-field-row { grid-template-columns: 1fr; }
  .comment-list ol.children { padding-left: 14px; }
  .comment-body { padding: 16px 18px; }
  .page-intro { padding: 36px 20px 28px; }
  .page-intro h1 { font-size: 28px; }
  .page-intro .lede { font-size: 16px; }
  .about-grid { grid-template-columns: 1fr; padding: 0 20px 36px; }
  .about-band { padding: 36px 20px; }
  .contact-layout { grid-template-columns: 1fr; gap: 32px; padding: 0 20px 40px; }
  .contact-form-wrap { padding: 24px 20px; }
  .faq-list { padding: 0 20px 40px; }
  .feature-banner { margin: 0 20px 32px; padding: 26px 24px; flex-direction: column; align-items: flex-start; }
  .feature-banner-img { width: 100%; }
  .site-footer { padding: 32px 20px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .archive-header { padding: 32px 20px 26px; }
  .archive-header h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .post-card:hover .post-thumb img { transform: none; }
}

/* ===================================================================
   14. PRINT (recipe cards)
   =================================================================== */

@media print {
  .topbar, .site-nav, .cat-strip, .site-footer, .sidebar,
  .post-share, .post-nav, .related-section, .jump-bar,
  .recipe-print, .feature-banner { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .recipe-card { border: 1px solid #999; page-break-inside: avoid; margin: 0; max-width: 100%; }
  .recipe-card-head { background: #fff; border-bottom: 1px solid #999; }
  a { text-decoration: none; color: #000; }
}
