/*
Theme Name: Stock & Stir Blog
Description: Branded publishing theme for the Stock & Stir blog.
Version: 1.1.0
*/

:root {
  --ink: #203b2d;
  --muted: #5d665f;
  --paper: #fffdf9;
  --cream: #faf6ed;
  --sage: #355f49;
  --sage-dark: #294a3a;
  --rust: #a4482c;
  --gold: #c8aa70;
  --line: #ded8cc;
  --shadow: 0 18px 46px rgba(32, 59, 45, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 17px/1.7 "DM Sans", Arial, sans-serif; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--sage-dark); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(100% - 40px, 1080px); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 10; padding: 10px 14px; background: white; }
.skip-link:focus { top: 8px; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(255, 253, 249, .96); }
.header-inner { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-block: 12px; }
.brand { font: italic 700 25px/1.1 Georgia, serif; text-decoration: none; }
.header-nav { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 700; }
.trial-link { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 15px; border-radius: 9px; color: #fff; background: var(--rust); text-decoration: none; }
.hero { padding: 58px 0 40px; background: linear-gradient(145deg, var(--cream), #f1eadf); border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 8px; color: var(--rust); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, serif; line-height: 1.15; overflow-wrap: anywhere; }
h1 { max-width: 760px; margin: 0; font-size: clamp(38px, 6vw, 64px); letter-spacing: -.035em; }
.hero .lede { max-width: 720px; margin: 18px 0 0; color: var(--muted); font-size: 20px; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding-block: 42px 58px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.post-card.featured { grid-column: 1 / -1; }
.post-card.featured.has-card-image { display: grid; grid-template-columns: 1fr 1.25fr; }
.post-card img { width: 100%; height: 210px; object-fit: cover; }
.post-card.featured img { height: 100%; min-height: 310px; }
.post-card-copy { padding: 24px; }
.post-card h2 { margin: 6px 0 10px; font-size: 27px; }
.post-card h2 a { text-decoration: none; }
.post-card p { margin: 0 0 18px; color: var(--muted); }
.tag { color: var(--rust); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.read-link { color: var(--sage); font-weight: 800; }
.article-wrap { width: min(100% - 40px, 760px); margin-inline: auto; }
.article-head { padding: 54px 0 28px; }
.article-head h1 { font-size: clamp(37px, 6vw, 58px); }
.article-head .lede { color: var(--muted); font-size: 20px; }
.article-meta { margin-top: 16px; color: var(--muted); font-size: 14px; }
.article-body { padding-bottom: 56px; }
.article-body h2 { margin: 34px 0 9px; font-size: 27px; }
.article-body p { margin: 0 0 19px; }
.article-body ul, .article-body ol { padding-left: 25px; }
.article-body li { margin-bottom: 10px; }
.recipe-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.recipe-facts span { padding: 7px 11px; border-radius: 999px; background: #edf3ef; color: var(--sage-dark); font-size: 14px; font-weight: 800; }
.tip { margin: 28px 0; padding: 18px 20px; border-left: 5px solid var(--gold); border-radius: 8px; background: var(--cream); }
.cta-box { margin: 44px 0 0; padding: 28px; border-radius: 18px; color: #fff; background: var(--sage); text-align: center; }
.cta-box h2 { margin: 0 0 9px; color: #fff; }
.cta-box p { margin: 0 0 18px; color: #eff6f1; }
.cta-box .trial-link { background: #fff; color: var(--sage-dark); }
.terms { margin-top: 12px !important; font-size: 13px; }
.back { display: inline-block; margin-top: 28px; color: var(--sage); font-weight: 800; }
.site-footer { border-top: 1px solid var(--line); background: var(--cream); color: var(--muted); font-size: 14px; }
.footer-inner { padding-block: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer p { margin: 14px 0 0; }
.pagination { grid-column: 1 / -1; }
.pagination .nav-links { display: flex; gap: 12px; justify-content: center; }

@media (max-width: 700px) {
  .wrap, .article-wrap { width: min(100% - 30px, 760px); }
  .header-inner { min-height: 64px; }
  .header-nav > a:not(.trial-link) { display: none; }
  .hero { padding: 40px 0 30px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card.featured, .post-card.featured.has-card-image { grid-column: auto; display: block; }
  .post-card.featured img { height: 210px; min-height: 0; }
  .post-card-copy { padding: 21px; }
  .article-head { padding-top: 38px; }
  .cta-box { padding: 24px 18px; }
}

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.blog-search { max-width: 760px; margin-top: 28px; }
.blog-search label { display: block; margin-bottom: 8px; font-weight: 700; }
.search-row { display: flex; gap: 10px; }
.blog-search input[type="search"] { min-width: 0; flex: 1; padding: 12px 16px; border: 1px solid var(--muted); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; }
.blog-search button { padding: 12px 22px; border: 0; border-radius: 10px; background: var(--sage-dark); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.blog-discovery { padding-top: 28px; }
.topic-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.topic-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--sage-dark); background: var(--paper); font-size: 15px; font-weight: 700; text-decoration: none; }
.topic-nav a[aria-current="page"] { border-color: var(--sage-dark); background: var(--sage-dark); color: #fff; }
.topic-nav a:hover { text-decoration: underline; }
.results-heading { margin: 28px 0 8px; font-size: clamp(26px, 4vw, 34px); overflow-wrap: anywhere; }
.results-summary { margin: 0; color: var(--muted); }
.empty-results { grid-column: 1 / -1; padding: 28px 0; }
.post-grid { align-items: start; gap: 28px; padding-top: 28px; }
.post-card h2 { font-size: clamp(25px, 3vw, 30px); line-height: 1.25; overflow-wrap: anywhere; }
.post-card h2 a:hover { text-decoration: underline; }
.post-card-copy { padding: 28px; }
.post-card p { line-height: 1.7; }
.read-link { display: inline-flex; align-items: center; min-height: 44px; }
.article-wrap { width: min(100% - 40px, 720px); }
.article-body { font-size: 19px; line-height: 1.8; overflow-wrap: anywhere; }
.article-body h2, .article-body h3 { line-height: 1.3; margin-top: 1.8em; }
.article-body p { margin-bottom: 1.3em; }
.article-body li { margin-bottom: .65em; }
.article-body blockquote { margin-inline: 0; padding-left: 20px; border-left: 4px solid var(--gold); }
.article-body table { display: block; max-width: 100%; overflow-x: auto; }
.article-body pre { white-space: pre-wrap; }
.pagination .nav-links { flex-wrap: wrap; }
.pagination a, .pagination .current { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
.pagination .current { color: #fff; background: var(--sage-dark); }
@media (max-width: 700px) {
  .post-card-copy { padding: 22px; }
  .article-body { font-size: 18px; }
  .article-head h1 { font-size: clamp(32px, 8vw, 46px); line-height: 1.18; overflow-wrap: anywhere; }
}
@media (max-width: 420px) {
  .search-row { flex-direction: column; }
  .blog-search button { min-height: 48px; }
  .brand { font-size: 22px; }
  .header-inner { gap: 10px; }
  .header-nav { font-size: 14px; }
  .trial-link { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
