/*
Theme Name: Oak & Pantry
Description: Custom homepage-first theme for Oak & Pantry. Cozy, simple, modern, minimal.
Version: 0.1.0
Author: Oak & Pantry
Text Domain: oak-and-pantry
Requires at least: 6.0
Requires PHP: 7.4
*/

/* Self-hosted fonts (SIL Open Font License). Variable fonts: one file covers every weight used. */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('assets/fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('assets/fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url('assets/fonts/lora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url('assets/fonts/lora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }


  :root {
    --cream: #F7F2EA;
    --oat: #E9DFCF;
    --oak: #8A6A4B;
    --sage: #8FA48A;
    --terracotta: #C4724F;
    --charcoal: #2F2A26;
    --muted: #6B625A;           /* captions, per style guide */
    --line: #DCCFBB;            /* thin Oat-family border */
    --radius: 8px;
    --serif: "Lora", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
    --wrap: 1120px;
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body {
    margin: 0; background: var(--cream); color: var(--charcoal);
    font: 400 1.0625rem/1.6 var(--sans);
  }
  @media (min-width: 768px) { body { font-size: 1.125rem; } }
  img, svg { max-width: 100%; display: block; }
  .wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
  p { margin: 0 0 1em; max-width: 70ch; }

  h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--charcoal); margin: 0 0 .5em; line-height: 1.2; }
  h1 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 2.75rem); color: var(--charcoal); }
  h2 { font-size: clamp(1.625rem, 1.35rem + 1vw, 1.875rem); }
  h3 { font-size: 1.25rem; }

  /* Links: Charcoal underlined in small text; Oak brown underlined in headings/large text */
  a { color: var(--charcoal); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  a:hover { text-decoration-thickness: 2px; }
  h2 a, h3 a { color: var(--oak); }
  :focus-visible { outline: 3px solid var(--charcoal); outline-offset: 3px; border-radius: 4px; }

  .skip { position: absolute; left: -999px; top: 8px; background: var(--charcoal); color: var(--cream); padding: 10px 14px; border-radius: var(--radius); z-index: 10; }
  .skip:focus { left: 8px; }

  /* Buttons: primary = Terracotta + white, bold, 18px+. One per screen. */
  .btn {
    display: inline-block; font: 700 1.125rem/1.2 var(--sans); text-decoration: none;
    padding: 14px 24px; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  }
  .btn-primary { background: var(--terracotta); color: #fff; }
  .btn-primary:hover { background: #B2633F; }
  .btn-secondary { background: var(--sage); color: var(--charcoal); }
  .btn-secondary:hover { background: #7E9579; }
  .btn-sm { padding: 10px 16px; }

  .tag { display: inline-block; background: var(--sage); color: var(--charcoal); font: 500 .8125rem/1 var(--sans); padding: 6px 10px; border-radius: 999px; letter-spacing: .02em; }
  .eyebrow { font: 500 .9375rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; color: var(--charcoal); }
  .rule { width: 56px; height: 3px; background: var(--terracotta); border: 0; margin: 0 0 20px; }
  .caption { font-size: .8125rem; color: var(--muted); }

  /* ---------- Affiliate notice ---------- */
  .notice { background: var(--oat); font-size: .875rem; padding: 8px 0; text-align: center; }
  .notice p { margin: 0 auto; max-width: none; }

  /* ---------- Header ---------- */
  .site-header { border-bottom: 1px solid var(--line); background: var(--cream); }
  .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 20px; }
  .brand { display: block; line-height: 0; text-decoration: none; }
  .brand img { display: block; height: 52px; width: auto; max-width: 100%; mix-blend-mode: multiply; }
  @media (max-width: 760px) { .brand img { height: 42px; } }
  .nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; font: 500 1rem/1 var(--sans); }
  .nav a { text-decoration: none; padding: 10px 2px; border-bottom: 2px solid transparent; }
  .nav a:hover { border-bottom-color: var(--terracotta); }
  .nav .search { display: inline-flex; padding: 8px; }
  .nav .btn { padding: 10px 16px; font-size: 1rem; }
  @media (max-width: 760px) {
    .bar { flex-direction: column; align-items: flex-start; }
    .nav { width: 100%; justify-content: space-between; gap: 2px 8px; font-size: .9375rem; }
    .nav .search { padding: 4px; }
    .nav .btn-primary { order: 9; width: 100%; text-align: center; margin-top: 6px; }
  }

  /* ---------- Hero ---------- */
  .hero { padding: 56px 0 40px; }
  .hero-grid { display: grid; gap: 40px; align-items: center; }
  @media (min-width: 880px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } .hero { padding: 80px 0 56px; } }
  .hero .lead { font-size: 1.1875rem; }
  .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }

  /* Photo placeholders: swap for real photography */
  .ph {
    background: var(--oat); border: 1.5px dashed var(--oak); border-radius: 12px;
    display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted);
    font-size: .875rem; line-height: 1.4;
  }
  .ph svg { margin: 0 auto 10px; }
  .ph-hero { aspect-ratio: 4 / 5; }
  @media (max-width: 879px) { .ph-hero { aspect-ratio: 16 / 10; } }
  .hero-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; border-radius: 12px; }
  @media (max-width: 879px) { .hero-img { aspect-ratio: 16 / 10; } }
  .about-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; margin: 20px 0 24px; }
  .hero-photo { display: block; }
  .hero-photo img { display: block; width: 100%; height: auto; border-radius: 12px; }
  .ph-card { aspect-ratio: 3 / 2; }
  .card-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }

  /* ---------- Quick answer (AEO) ---------- */
  .answer { background: var(--cream); padding-bottom: 8px; }
  .answer-box { border: 1px solid var(--line); border-left: 4px solid var(--oak); background: var(--oat); border-radius: var(--radius); padding: 22px 26px; }
  .answer-box h2 { font-size: 1.375rem; margin-bottom: .4em; }
  .answer-box p { margin-bottom: .6em; }
  .answer-box .caption { margin: 0; }

  section.block { padding: 64px 0; }
  .alt { background: var(--oat); }
  .sec-head { margin-bottom: 32px; }
  .sec-head p { margin-bottom: 0; }

  /* ---------- Pillars ---------- */
  .grid { display: grid; gap: 20px; }
  .g4 { grid-template-columns: 1fr; }
  @media (min-width: 620px) { .g4 { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1040px) { .g4 { grid-template-columns: repeat(4, 1fr); } }
  .card > .tag { align-self: flex-start; }
  .g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .card { position: relative; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
  .alt .card { background: var(--cream); }
  .card h3 { margin: 6px 0 0; }
  .card p { margin: 0; font-size: 1rem; }
  .card .more { margin-top: auto; padding-top: 8px; font-weight: 500; font-size: 1rem; }
  .card .more a::after { content: ""; position: absolute; inset: 0; }   /* whole card clickable */
  .card:hover { border-color: var(--oak); }
  .icon { width: 40px; height: 40px; stroke: var(--oak); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

  /* ---------- Guides ---------- */
  .split { display: grid; gap: 40px; align-items: start; }
  @media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } }
  .qa { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
  .qa h3 { font-size: 1.1875rem; }
  .qa p { font-size: 1rem; margin-bottom: .5em; }
  .tilelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
  .tilelist li { position: relative; }

  /* ---------- Trust ---------- */
  .trust { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .trust div { border-top: 3px solid var(--oak); padding-top: 14px; }
  .trust h3 { font-size: 1.1875rem; }
  .trust p { font-size: 1rem; margin: 0; }

  /* ---------- FAQ ---------- */
  .faq { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
  .faq h3 { font-size: 1.1875rem; margin-bottom: .35em; }
  .faq p { font-size: 1rem; margin: 0; }

  /* ---------- About + signup ---------- */
  .signup { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
  .signup label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 1rem; }
  .signup input[type=email] { width: 100%; font: inherit; padding: 13px 14px; border: 1.5px solid var(--oak); border-radius: var(--radius); background: #fff; color: var(--charcoal); margin-bottom: 14px; }

  /* ---------- Footer ---------- */
  .site-footer { background: var(--charcoal); color: var(--cream); padding: 48px 0 28px; font-size: 1rem; }
  .site-footer a { color: var(--cream); }
  .foot { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .foot .brand-f { font: 700 1.5rem/1 var(--serif); margin-bottom: 10px; }
  .foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .foot h2 { color: var(--cream); font: 700 1rem/1.2 var(--sans); margin-bottom: 12px; letter-spacing: .04em; }
  .legal { border-top: 1px solid #4a423b; margin-top: 32px; padding-top: 20px; font-size: .875rem; }
  .legal p { max-width: none; margin: 0 0 6px; }

  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  /* ---------- Featured guide cards with photos ---------- */
  .guides-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 32px; margin-bottom: 8px; }
  .guides-head .sec-head { flex: 1 1 520px; margin-bottom: 24px; }
  .view-all { margin: 0 0 32px; font-weight: 500; font-size: 1rem; }
  .pcard { padding: 0; gap: 0; overflow: hidden; }
  .pcard .ph { border: 0; border-bottom: 1.5px dashed var(--oak); border-radius: 0; }
  .pcard .pbody { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
  .pcard h3 { margin: 0; font-size: 1.1875rem; line-height: 1.3; }
  .pcard h3 a { text-decoration: none; }
  .pcard h3 a::after { content: ""; position: absolute; inset: 0; }
  .pcard:hover h3 a { text-decoration: underline; }
  .ph-flag { display: block; width: max-content; margin: 0 auto 10px; font: 700 .75rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--charcoal); background: var(--cream); border: 1px solid var(--oak); border-radius: 999px; padding: 5px 9px; }
  .guides-answer { margin-top: 32px; background: var(--cream); }
  .guides-answer h3 { font-size: 1.125rem; margin-bottom: .3em; }
  .guides-answer p { margin: 0; font-size: 1rem; }

  /* ---------- Interactivity ---------- */
  .site-header { position: sticky; top: 0; z-index: 20; transition: box-shadow .2s ease; }
  .site-header.scrolled { box-shadow: 0 2px 14px rgba(47,42,38,.10); }

  .card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
  .card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(47,42,38,.08); }
  .pcard img { transition: transform .5s ease; }
  .pcard:hover img { transform: scale(1.04); }
  .btn { transition: background-color .15s ease, transform .15s ease; }
  .btn:active { transform: translateY(1px); }

  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }

  /* FAQ accordion (native <details>, so the answers stay in the page for search engines) */
  .faq { display: grid; grid-template-columns: 1fr; max-width: 820px; gap: 12px; }
  .faq-item { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s ease; }
  .faq-item[open] { border-color: var(--oak); }
  .faq-item summary { list-style: none; cursor: pointer; position: relative; padding: 16px 56px 16px 20px; border-radius: 12px; }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary h3 { margin: 0; font-size: 1.1875rem; line-height: 1.35; }
  .faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 500 1.75rem/1 var(--sans); color: var(--oak); }
  .faq-item[open] summary::after { content: "\2212"; }
  .faq-item p { padding: 0 20px 20px; margin: 0; font-size: 1rem; }

  /* Search panel (built by main.js) */
  .search-panel { background: var(--oat); border-top: 1px solid var(--line); padding: 14px 0; }
  .search-panel[hidden] { display: none; }
  .search-panel form { display: flex; gap: 10px; flex-wrap: wrap; }
  .search-panel input { flex: 1 1 240px; font: inherit; padding: 12px 14px; border: 1.5px solid var(--oak); border-radius: var(--radius); background: #fff; color: var(--charcoal); }
  .nav .search { background: none; border: 0; cursor: pointer; }

  /* Back to top */
  .to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--charcoal); color: var(--cream); display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; z-index: 15; }
  .to-top.show { opacity: 1; pointer-events: auto; transform: none; }

  /* Signup form feedback */
  .form-msg { margin: 0 0 14px; padding: 10px 12px; border-left: 4px solid var(--oak); background: var(--oat); border-radius: 4px; font-size: 1rem; }
  .form-msg[hidden] { display: none; }
  .form-msg.error { border-left-color: var(--terracotta); font-weight: 500; }
  .signup input[aria-invalid="true"] { border-color: var(--terracotta); border-width: 2px; }

  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .card, .card:hover, .btn, .to-top { transition: none; transform: none; }
  }

  /* ---------- Pillar pages ---------- */
  .crumbs { margin-bottom: 20px; font-size: .9375rem; }
  .crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; }
  .crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--muted); }
  .crumbs [aria-current] { color: var(--muted); }
  .nav a[aria-current="page"] { border-bottom-color: var(--terracotta); }

  .chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
  .chips[hidden], .filter-status[hidden] { display: none; }
  .chip { font: 500 1rem/1 var(--sans); padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--oak); background: transparent; color: var(--charcoal); cursor: pointer; transition: background-color .15s ease; }
  .chip:hover { background: var(--oat); }
  .chip[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); font-weight: 700; }
  .guide-grid .pcard[hidden] { display: none; }

  .checklist { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
  .checklist li { counter-increment: step; position: relative; padding: 16px 18px 16px 62px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; font-size: 1rem; }
  .checklist li::before { content: counter(step); position: absolute; left: 18px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--oak); color: #fff; font: 700 1rem/30px var(--sans); text-align: center; }

  .cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; background: var(--oat); border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
  .cta-band h2 { margin-bottom: .2em; }
  .cta-band p { margin: 0; }

  /* ---------- Breadcrumbs (replaces the earlier simple version) ---------- */
  .crumbs { margin: 0 0 22px; font-size: .9375rem; }
  .crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
  .crumbs li { display: inline-flex; align-items: center; margin: 0; padding: 0; }
  .crumbs li + li::before { content: ""; width: 7px; height: 7px; margin: 0 12px; border-top: 1.5px solid var(--oak); border-right: 1.5px solid var(--oak); transform: rotate(45deg); }
  .crumbs a { display: inline-flex; align-items: center; gap: 6px; }
  .crumbs li:first-child a::before { content: ""; width: 16px; height: 16px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A6A4B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8M5 10v10h14V10'/%3E%3C/svg%3E"); }
  .crumbs [aria-current] { color: var(--muted); font-weight: 500; }

  /* Sticky header must not cover anchored sections */
  [id] { scroll-margin-top: 96px; }

  /* ---------- Mobile menu (JS adds the button; without JS the menu just shows) ---------- */
  .menu-toggle { display: none; align-items: center; gap: 8px; font: 500 1rem/1 var(--sans); background: transparent; border: 1.5px solid var(--oak); color: var(--charcoal); border-radius: var(--radius); padding: 10px 14px; cursor: pointer; }
  .menu-toggle svg { stroke: currentColor; }
  @media (max-width: 760px) {
    .js-nav .bar { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
    .js-nav .menu-toggle { display: inline-flex; }
    .js-nav .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 6px; border-top: 1px solid var(--line); }
    .js-nav .nav.open { display: flex; }
    .js-nav .nav a { padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
    .js-nav .nav .search { display: none; }
    .js-nav .nav .btn-primary { margin-top: 12px; border-bottom: 2px solid transparent; text-align: center; }
  }

  /* ---------- "Find your starting point" tool ---------- */
  .finder { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: grid; gap: 24px; }
  .finder[hidden] { display: none; }
  .finder fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
  .finder legend { font: 700 1.1875rem/1.3 var(--serif); padding: 0; margin-bottom: 12px; }
  .opts { display: flex; flex-wrap: wrap; gap: 10px; }
  .opt { position: relative; }
  .opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
  .opt span { display: inline-block; padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--oak); font-weight: 500; transition: background-color .15s ease; }
  .opt:hover span { background: var(--oat); }
  .opt input:checked + span { background: var(--sage); border-color: var(--sage); font-weight: 700; }
  .opt input:focus-visible + span { outline: 3px solid var(--charcoal); outline-offset: 3px; }
  .finder-result { border-left: 4px solid var(--oak); background: var(--oat); border-radius: var(--radius); padding: 18px 22px; }
  .finder-result[hidden] { display: none; }
  .finder-result h3 { font-size: 1.25rem; margin-bottom: .3em; }
  .finder-result p { margin: 0 0 14px; font-size: 1rem; }
  .finder-result .more-link { margin: 14px 0 0; }

  /* ---------- Dynamic guide cards, articles and archives ---------- */
  .pimg { aspect-ratio: 3 / 2; overflow: hidden; background: var(--oat); }
  .pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .ph-plain { border: 0; border-bottom: 1.5px solid var(--line); }
  .ghost { opacity: .85; }
  .view-all-bottom { margin: 28px 0 0; font-weight: 500; }
  .empty-state { background: var(--oat); border: 1px solid var(--line); border-radius: 12px; padding: 32px; max-width: 720px; }
  .empty-state h3 { font-size: 1.375rem; }
  .empty-state p { margin-bottom: 18px; }

  .archive-head .lead, .archive-head .lead p { font-size: 1.1875rem; }
  .pagination { margin-top: 36px; }
  .pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .pagination .page-numbers { padding: 9px 14px; border: 1.5px solid var(--oak); border-radius: var(--radius); text-decoration: none; font-weight: 500; }
  .pagination .page-numbers.current { background: var(--sage); border-color: var(--sage); font-weight: 700; }
  .pagination a.page-numbers:hover { background: var(--oat); }
  .screen-reader-text { position: absolute; left: -9999px; }

  .wrap.narrow { max-width: 760px; }
  .article-head { padding-bottom: 8px; }
  .article-head .meta { margin: 14px 0 0; }
  .article-image { margin: 20px auto 8px; }
  .article-image figure { margin: 0; }
  .article-image figcaption { font-size: .8125rem; color: var(--muted); margin-top: 6px; }
  .article-image img { width: 100%; height: auto; border-radius: 12px; }

  .entry { padding-top: 24px; padding-bottom: 72px; }
  .entry > * { max-width: 70ch; }
  .entry h2 { margin: 1.8em 0 .5em; }
  .entry h3 { margin: 1.5em 0 .4em; }
  .entry p, .entry li { font-size: 1.0625rem; }
  .entry ul, .entry ol { padding-left: 1.3em; margin: 0 0 1.2em; }
  .entry li { margin-bottom: .4em; }
  .entry a { color: var(--charcoal); }
  .entry img, .entry figure { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5em 0; }
  .entry figcaption { font-size: .8125rem; color: var(--muted); margin-top: 6px; }
  .entry blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--oak); color: var(--charcoal); }
  .entry table { width: 100%; max-width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 1rem; display: block; overflow-x: auto; }
  .entry th { background: var(--oak); color: #fff; text-align: left; padding: 10px 12px; }
  .entry td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  /* Tables set to "Fixed width table cells" in the editor: every column the same width. */
  .entry table.has-fixed-layout { display: table; table-layout: fixed; width: 100%; }
  .entry table.has-fixed-layout th, .entry table.has-fixed-layout td { overflow-wrap: anywhere; vertical-align: top; }
  @media (max-width: 760px) {
    .entry .wp-block-table { overflow-x: auto; }
    .entry table.has-fixed-layout { min-width: 640px; }
  }
  .entry tbody tr:nth-child(even) { background: var(--oat); }

  /* ---------- Recipe card ---------- */
  .recipe-jump { margin: 16px 0 0; }
  .recipe-wrap { max-width: 940px; padding-bottom: 72px; }
  .recipe { background: var(--cream); border: 1px solid var(--line); border-top: 4px solid var(--oak); border-radius: 12px; padding: 28px; }
  .recipe-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 14px; }
  .recipe-head h2 { margin: 0; }
  .recipe-facts { list-style: none; margin: 0 0 14px; padding: 14px 0; display: flex; flex-wrap: wrap; gap: 10px 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .recipe-facts li { display: flex; flex-direction: column; gap: 2px; }
  .recipe-facts span { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .recipe-facts strong { font: 700 1.125rem/1.2 var(--sans); }
  .recipe-tested { margin: 0 0 22px; padding: 8px 12px; border-left: 4px solid var(--sage); background: var(--oat); border-radius: 4px; font-size: 1rem; }
  .recipe-tested.no { border-left-color: var(--terracotta); }
  .recipe-body { display: grid; gap: 28px 40px; }
  @media (min-width: 800px) { .recipe-body { grid-template-columns: 5fr 7fr; } }
  .recipe h3 { font-size: 1.25rem; margin: 0 0 .5em; }
  .recipe h4 { font: 700 1rem/1.3 var(--sans); margin: 1.2em 0 .4em; }
  .recipe ul, .recipe ol { margin: 0 0 1.4em; padding: 0; }
  .recipe .checks, .recipe .plain { list-style: none; }
  .recipe .checks li { margin-bottom: 8px; }
  .recipe .checks label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 1rem; }
  .recipe .checks input { margin-top: .35em; width: 18px; height: 18px; accent-color: var(--oak); flex: none; }
  .recipe .checks input:checked + span { text-decoration: line-through; color: var(--muted); }
  .recipe .plain li { margin-bottom: 6px; font-size: 1rem; }
  .recipe ol { padding-left: 1.4em; }
  .recipe ol li { margin-bottom: 14px; padding-left: 6px; font-size: 1.0625rem; }
  .recipe ol li::marker { font-weight: 700; color: var(--oak); }
  .recipe-note { margin: 8px 0 0; max-width: none; }

  .card-meta { margin: 0; font-size: .875rem; color: var(--muted); }

  @media print {
    .notice, .site-header, .site-footer, .to-top, .article-head, .article-image, .entry, .related, .recipe-print, .recipe-jump, section.block, .search-panel { display: none !important; }
    body { background: #fff; color: #000; font-size: 12pt; }
    .recipe-wrap { max-width: none; padding: 0; }
    .recipe { border: 0; border-top: 2px solid #000; padding: 0; }
    .recipe-body { grid-template-columns: 1fr 2fr; }
    .recipe .checks input { accent-color: #000; }
  }

  /* ---------- Content pages (About, Start Here, Printables, Contact, Privacy) ---------- */
  .wrap.page-body { max-width: 860px; }
  .page-article .article-head { padding-bottom: 8px; }
  .page-article .lead { font-size: 1.1875rem; }
  .page-article .entry { padding-top: 16px; padding-bottom: 56px; }
  .entry > .wp-block-columns, .entry > .wp-block-image, .entry > figure, .entry > .wp-block-buttons { max-width: none; }

  /* Card columns: any "Columns" block with the class oak-cards */
  .entry .oak-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 1.4em 0 2em; }
  .entry .oak-cards > .wp-block-column { flex: none; margin: 0; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
  .entry .oak-cards h3 { margin: 0 0 .4em; font-size: 1.1875rem; }
  .entry .oak-cards p { font-size: 1rem; margin: 0 0 .6em; }
  .entry .oak-cards p:last-child { margin-bottom: 0; }

  /* Two images side by side: a "Columns" block with the class oak-pair */
  .entry .oak-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.6em 0; }
  .entry .oak-pair > .wp-block-column { flex: none; margin: 0; }
  .entry .oak-pair figure, .entry .oak-pair .wp-block-image { margin: 0; }
  .entry .oak-pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; margin: 0; }
  @media (max-width: 560px) { .entry .oak-pair { grid-template-columns: 1fr; } }

  /* A single image kept to a reasonable size */
  .entry .oak-narrow { max-width: 420px; }
  .entry .oak-narrow img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }

  /* Block buttons follow the brand: secondary style */
  .entry .wp-block-button__link { display: inline-block; background: var(--sage); color: var(--charcoal); font: 700 1.0625rem/1.2 var(--sans); padding: 12px 20px; border-radius: var(--radius); text-decoration: none; }
  .entry .wp-block-button__link:hover { background: #7E9579; }

  /* Contact form */
  .contact-form { display: grid; gap: 4px; max-width: 620px; }
  .contact-form p { margin: 0 0 14px; max-width: none; }
  .contact-form label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 1rem; }
  .contact-form input[type=text], .contact-form input[type=email], .contact-form textarea { width: 100%; font: inherit; padding: 13px 14px; border: 1.5px solid var(--oak); border-radius: var(--radius); background: #fff; color: var(--charcoal); }
  .contact-form textarea { resize: vertical; }
  .contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  #contact-form .form-msg { margin-bottom: 20px; max-width: 620px; }

  .entry .oak-cards p.tag { font-size: .8125rem; margin: 0 0 .8em; }
  .entry .wp-block-list { max-width: 70ch; }
  @media (min-width: 620px) { .entry .oak-cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }

  /* ---------- Feature pages (About, Free printables) ---------- */
  .hero-photo .hero-img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; display: block; }
  @media (max-width: 879px) { .hero-photo .hero-img { aspect-ratio: 16 / 11; } }
  .split-photo .hero-img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; display: block; max-width: 460px; }
  .feature-split { align-items: center; }
  .g-two { grid-template-columns: 1fr; }
  @media (min-width: 620px) { .g-two { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1040px) { .g-two { grid-template-columns: repeat(2, 1fr); } }
  .pcard .pbody p { margin: 0; font-size: 1rem; }
  .pcard .pbody .card-meta { font-size: .9375rem; }

  /* Contact card inside the hero */
  .contact-card { background: var(--cream); border: 1px solid var(--line); border-top: 4px solid var(--oak); border-radius: 12px; padding: 26px; }
  .contact-card h2 { font-size: 1.5rem; margin-bottom: .6em; }
  .contact-card .contact-form { max-width: none; }
  .contact-card .form-msg { margin-bottom: 18px; }
  .hero-photo .contact-card { box-shadow: 0 10px 24px rgba(47,42,38,.06); }
  .hero-grid:has(.contact-card) { align-items: start; }

  /* ---------- Shop and products ---------- */
  .price, .product-price { font: 700 1.25rem/1.2 var(--sans); color: var(--charcoal); margin: 0; }
  .product-card .price { margin-top: auto; }
  .product-price { margin: 0 0 18px; font-size: 1.75rem; }
  .product-price .caption { font-weight: 500; }
  .plain-list { list-style: none; margin: 0 0 1.4em; padding: 0; }
  .plain-list li { position: relative; padding: 0 0 8px 26px; font-size: 1rem; }
  .plain-list li::before { content: ""; position: absolute; left: 4px; top: .35em; width: 8px; height: 13px; border-right: 2px solid var(--oak); border-bottom: 2px solid var(--oak); transform: rotate(45deg); }
  .entry-copy .entry { padding: 0; }
  .btn[aria-disabled="true"] { cursor: default; opacity: .8; }

  /* Owner notes inside draft legal pages: impossible to miss, easy to search for */
  .entry mark.confirm { background: #F3D9BF; color: var(--charcoal); padding: 1px 6px; border-radius: 4px; font-weight: 500; }

  /* ---------- 404 and search ---------- */
  .not-found-search { margin-top: 36px; max-width: 560px; }
  .not-found-search label { display: block; font-weight: 500; margin-bottom: 8px; }
  .nf-row { display: flex; gap: 10px; flex-wrap: wrap; }
  .nf-row input[type=search] { flex: 1 1 240px; min-width: 0; font: inherit; padding: 13px 14px; border: 1.5px solid var(--oak); border-radius: var(--radius); background: #fff; color: var(--charcoal); }

  /* ---------- One page width everywhere ----------
     Every page uses the same container (--wrap). Body text keeps a readable line length inside it. */
  .wrap.narrow, .wrap.page-body, .wrap.recipe-wrap { max-width: var(--wrap); }
  .entry > *, .entry-copy .entry > * { max-width: 70ch; }
  .signup { max-width: 760px; }
  .article-head h1 { max-width: 28ch; }
  .article-image img { width: 100%; height: auto; max-height: 560px; object-fit: cover; }
  .recipe { max-width: 100%; }

  /* ---------- Phone comfort ---------- */
  .ph-flag { font-size: .8125rem; }
  @media (max-width: 760px) {
    /* Bigger tap targets for footer and breadcrumb links */
    .site-footer .foot ul { gap: 0; }
    .site-footer .foot a { display: block; padding: 11px 0; }
    .crumbs a { min-height: 44px; }
    .crumbs li { min-height: 44px; }
    /* Search stays reachable: it becomes a row in the open menu */
    .js-nav .nav .search { display: flex; align-items: center; padding: 14px 2px; }
    .js-nav .nav .search::after { content: "Search"; margin-left: 10px; font-size: 1.0625rem; color: var(--charcoal); }
    /* The back-to-top button should never cover a form button or link on small screens */
    .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
  }
  .recipe .checks label { padding: 8px 0; }

  /* ---------- Text fills the content area ----------
     Paragraphs, lists, FAQ and headlines use the full width of their container, the same as photos and tables. */
  p, .entry > *, .entry-copy .entry > *, .entry .wp-block-list { max-width: none; }
  .faq { max-width: none; }
  .article-head h1 { max-width: none; }

  /* ---------- Author box ---------- */
  .author-wrap { padding-bottom: 64px; }
  .author-box { display: flex; gap: 22px; align-items: flex-start; background: var(--oat); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
  .author-photo { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--sage); }
  .author-initial { display: grid; place-items: center; font: 700 2.25rem/1 var(--serif); color: var(--charcoal); }
  .author-text h2 { font-size: 1.5rem; margin: 0 0 .15em; }
  .author-text .eyebrow { margin: 0 0 6px; }
  .author-role { margin: 0 0 .6em; color: var(--muted); font-weight: 500; }
  .author-text p:last-child { margin-bottom: 0; }
  @media (max-width: 560px) { .author-box { flex-direction: column; } }

  .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

  /* ---------- Printable call-out inside articles ---------- */
  .entry .printable-callout { background: var(--oat); border: 1px solid var(--line); border-left: 4px solid var(--terracotta); border-radius: 12px; padding: 22px 26px; margin: 1.6em 0; }
  .entry .printable-callout .eyebrow { margin: 0 0 6px; }
  .entry .printable-callout h3 { margin: 0 0 .35em; font-size: 1.375rem; }
  .entry .printable-callout p { margin: 0 0 .9em; }
  .entry .printable-callout .wp-block-buttons { margin: 0; }

  /* ---------- Printables ---------- */
  .embed-box { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 26px; max-width: 760px; }
  .embed-box iframe { max-width: 100%; }
  .alt .embed-box { background: var(--cream); }
  /* MailerLite forms: one clean card in the site's fonts and colors (the code from MailerLite brings its own styles, hence !important). */
  .embed-box:has(.ml-embedded) { background: transparent; border: 0; padding: 0; max-width: 560px; }
  :is(#get-it, #signup-section, #main) .embed-box .ml-form-embedContainer .ml-form-embedWrapper.embedForm { max-width: 560px !important; width: 100% !important; background: var(--cream) !important; border: 1px solid var(--line) !important; border-radius: 12px !important; }
  :is(#get-it, #signup-section, #main) .embed-box .ml-form-embedWrapper .ml-form-embedBody { padding: 28px 28px 8px !important; }
  :is(#get-it, #signup-section, #main) .embed-box .ml-form-embedWrapper label, :is(#get-it, #signup-section, #main) .embed-box .ml-form-embedWrapper input, :is(#get-it, #signup-section, #main) .embed-box .ml-form-embedWrapper button, :is(#get-it, #signup-section, #main) .embed-box .ml-form-embedWrapper p, :is(#get-it, #signup-section, #main) .embed-box .ml-form-embedWrapper .label-description { font-family: var(--sans) !important; }
  :is(#get-it, #signup-section, #main) .embed-box .ml-form-embedWrapper label { font-size: 1rem !important; font-weight: 500 !important; color: var(--charcoal) !important; margin-bottom: 6px !important; }
  :is(#get-it, #signup-section, #main) .embed-box .ml-form-embedContainer[id] .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow .ml-field-group input.form-control { font-size: 1rem !important; padding: 13px 14px !important; border: 1.5px solid var(--oak) !important; border-radius: var(--radius) !important; height: auto !important; color: var(--charcoal) !important; }
  :is(#get-it, #signup-section, #main) .embed-box .ml-form-embedWrapper .ml-form-checkboxRow label, :is(#get-it, #signup-section, #main) .embed-box .ml-form-embedWrapper .ml-form-checkboxRow .label-description, :is(#get-it, #signup-section, #main) .embed-box .ml-form-embedWrapper .ml-form-checkboxRow .label-description p { font-size: .9375rem !important; font-weight: 400 !important; line-height: 1.5 !important; }
  :is(#get-it, #signup-section, #main) .embed-box .ml-form-embedContainer[id] .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.primary { font-size: 1rem !important; font-weight: 700 !important; padding: 14px 18px !important; border-radius: var(--radius) !important;  font-family: var(--sans) !important;}
  .printable-card .more { margin-top: auto; }
  .hero-photo .preview-img { aspect-ratio: auto; object-fit: contain; background: var(--oat); border-radius: 12px; }
  .signup-alt { max-width: 760px; }

  /* Card grids keep a steady card size even with only one or two cards (no stretching to full width) */
  .g3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

  /* ---------- Expandable FAQ inside articles ---------- */
  .entry .faq { margin: 1em 0 2em; }
  .entry .faq .faq-item p { margin: 0; padding: 0 20px 18px; font-size: 1rem; }
  .entry .faq .faq-item p + p { padding-top: 0; margin-top: -6px; }
  .entry .faq .faq-item ul, .entry .faq .faq-item ol { margin: 0 0 18px; padding: 0 20px 0 40px; }

  /* The editor's own "Details" block looks the same */
  .entry .wp-block-details { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; }
  .entry .wp-block-details[open] { border-color: var(--oak); }
  .entry .wp-block-details summary { list-style: none; cursor: pointer; position: relative; padding: 16px 56px 16px 20px; font: 700 1.1875rem/1.35 var(--serif); }
  .entry .wp-block-details summary::-webkit-details-marker { display: none; }
  .entry .wp-block-details summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 500 1.75rem/1 var(--sans); color: var(--oak); }
  .entry .wp-block-details[open] summary::after { content: "\2212"; }
  .entry .wp-block-details > :not(summary) { padding: 0 20px; }
  .entry .wp-block-details > :last-child { padding-bottom: 18px; }

  /* Article "Quick answers" band: same look as the section pages */
  .faq-band .faq { max-width: none; }
  .entry-after { padding-top: 40px; }
  .faq-band { margin-top: 8px; }

  /* Scroll anchoring off inside the FAQ: the script keeps the opened question in place instead */
  .faq, .faq * { overflow-anchor: none; }
