:root {
  color-scheme: light;
  --ink: #25372d;
  --forest: #1b3d34;
  --dark: #133129;
  --accent: #ad4b2b;
  --orange: #e88753;
  --paper: #fff;
  --cream: #faf8f2;
  --sage: #eaf0e8;
  --line: #dce6dd;
  --muted: #596b60;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); }
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--dark); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #b75230; outline-offset: 3px; }
button, input, textarea, select { color: inherit; font: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
svg { display: inline-block; vertical-align: middle; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { color: var(--dark); line-height: 1.2; }
h1, h2, h3 { margin-top: 0; }
p, ul, ol { margin-block: 0 1.15em; }
fieldset { min-width: 0; }
figure { margin: 1.7em 0; }
iframe { max-width: 100%; }
.screen-reader-text, .sr-only, .skip-link { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 30; width: auto; height: auto; margin: 0; padding: .6rem 1rem; clip-path: none; background: #fff; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: #fff; }
.header-shell { width: min(1190px, calc(100% - 48px)); min-height: 82px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.header-brand { flex: 0 1 250px; text-decoration: none; display: inline-flex; align-items: center; }
.header-brand img { width: 250px; }
.site-menu { display: flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 680; }
.site-menu > a, .nav-group > summary { display: flex; align-items: center; gap: .5rem; padding: .64rem .72rem; border-radius: 7px; white-space: nowrap; color: var(--dark); text-decoration: none; }
.site-menu > a:hover, .nav-group > summary:hover, .site-menu > a[aria-current], .nav-group[open] > summary { background: #edf4ee; color: var(--dark); }
.site-menu > .nav-book { border: 1px solid #d8e4d9; padding-inline: .8rem; }
.nav-group, .nav-search { position: relative; }
.nav-group > summary, .nav-search > summary, .mobile-menu > summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: ""; width: 6px; height: 6px; border-bottom: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-group[open] > summary::after { transform: rotate(225deg) translateY(-1px); }
.nav-sub, .search-popover { position: absolute; top: calc(100% + 10px); left: 0; width: 290px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 14px 34px #17392b1a; }
.nav-sub a { display: block; padding: .54rem .65rem; border-radius: 5px; color: var(--ink); text-decoration: none; white-space: normal; }
.nav-sub a:hover, .nav-sub a[aria-current] { background: var(--sage); }
.nav-sub a:first-child { color: var(--accent); border-bottom: 1px solid var(--line); }
.nav-search > summary, .mobile-menu > summary { min-width: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; color: var(--forest); border-radius: 7px; border: 1px solid var(--line); }
.nav-search[open] > summary, .nav-search > summary:hover, .mobile-menu[open] > summary { background: var(--sage); }
.search-popover { left: auto; right: 0; display: flex; gap: 7px; }
.search-popover input, .page-search input { min-width: 0; width: 100%; border: 1px solid var(--line); padding: .48rem .65rem; border-radius: 5px; }
.search-popover button, .page-search button, .small-button { border: 1px solid var(--forest); border-radius: 5px; padding: .48rem .7rem; background: var(--forest); color: #fff; font-weight: 650; text-decoration: none; }
.mobile-menu { display: none; }
.site-footer { background: #f0f4ef; border-top: 1px solid var(--line); padding: 36px 0 26px; }
.footer-shell { width: min(1160px, calc(100% - 48px)); margin: auto; }
.footer-primary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.footer-primary > a { color: var(--forest); font: bold 1.34rem/1.2 var(--serif); text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .89rem; }
.footer-links a, .footer-links button { color: var(--forest); text-decoration: underline; }
.footer-links button { padding: 0; border: 0; background: transparent; }
.footer-legal { display: flex; justify-content: space-between; align-items: start; gap: 15px 28px; margin-top: 16px; font-size: .76rem; color: var(--muted); }
.footer-legal p { margin: 0; max-width: 70ch; }
.cookie-panel { width: min(460px, calc(100vw - 36px)); border: 1px solid var(--line); border-radius: 12px; padding: 24px; color: var(--ink); box-shadow: 0 13px 40px #142d2140; }
.cookie-panel::backdrop { background: #10231970; }
.cookie-panel form { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-panel button { border: 1px solid var(--line); background: var(--cream); border-radius: 6px; padding: .45rem .7rem; }
.cookie-panel form { margin-top: 16px; }
.cookie-notice { position: fixed; bottom: 14px; right: 14px; width: min(430px, calc(100% - 28px)); z-index: 11; border: 1px solid var(--line); padding: 15px; border-radius: 8px; background: #fff; font-size: .89rem; box-shadow: 0 8px 30px #14362925; }
.cookie-notice p { margin: 0 0 8px; }
.cookie-notice > div { display: flex; gap: 8px; }
.cookie-notice button { padding: .33rem .65rem; border: 1px solid var(--line); border-radius: 5px; background: var(--cream); }
.cookie-notice button:last-child { background: var(--forest); color: #fff; }

.standard-main { background: #f2f2ee; padding: 19px 0 55px; min-height: 55vh; }
.reading-shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.reading-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 270px); align-items: start; gap: 24px; }
.surface { min-width: 0; background: #fff; border: 1px solid #e7eae4; padding: clamp(21px, 3.4vw, 42px); border-radius: 5px; }
.prose-page { width: min(850px, 100%); margin-inline: auto; }
.breadcrumb { margin-bottom: 16px; color: var(--muted); font-size: .8rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; color: #6a7b71; margin-right: 10px; }
.breadcrumb a { color: var(--forest); }
.legacy-title { margin-bottom: .42em; font: 700 clamp(2rem, 4.3vw, 3.04rem)/1.12 var(--serif); letter-spacing: -.031em; }
.post-meta { color: var(--muted); margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: .25rem .85rem; font-size: .83rem; }
.post-meta a { color: var(--forest); }
.feature-image { margin: 0 0 24px; overflow: hidden; border-radius: 4px; }
.feature-image img { width: 100%; height: auto; }
.prose { font-size: clamp(1rem, 1.65vw, 1.1rem); line-height: 1.67; overflow-wrap: anywhere; }
.prose :is(h2, h3, h4) { margin: 1.42em 0 .55em; }
.prose h2 { font-family: var(--serif); font-size: clamp(1.46rem, 2.7vw, 1.95rem); letter-spacing: -.015em; }
.prose h3 { font-size: 1.23em; }
.prose h4 { font-size: 1.05em; }
.prose :is(ul, ol) { padding-inline-start: 1.45em; }
.prose li + li { margin-top: .33em; }
.prose :is(figcaption, .wp-caption-text) { margin-top: .5rem; color: var(--muted); font-size: .82em; text-align: center; }
.prose :is(.aligncenter, .wp-caption.aligncenter) { margin-inline: auto; }
.prose .alignleft { float: left; margin: .3em 1em .7em 0; }
.prose .alignright { float: right; margin: .3em 0 .7em 1em; }
.prose .wp-caption { max-width: 100%; }
.prose img { border-radius: 3px; }
.prose a > img:only-child { display: inline-block; }
.prose blockquote { border-left: 3px solid #bbcfbe; color: #435447; margin: 1.5em 0; padding: .25em 0 .25em 1em; }
.prose blockquote p:last-child { margin-bottom: 0; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 1.3rem 0; }
.prose table { border-collapse: collapse; font-size: .89em; width: 100%; }
.prose th, .prose td { border: 1px solid var(--line); text-align: left; padding: 9px 11px; vertical-align: top; }
.prose th, .prose tr:nth-child(even) { background: #f6f9f6; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.7rem 0; }
.prose .wp-block-columns { display: flex; gap: 1.2em; margin: 1.4em 0; }
.prose .wp-block-column { flex: 1 1 0; min-width: 0; }
.prose .wp-block-button__link { display: inline-block; background: var(--forest); color: white; padding: .55em .9em; border-radius: 6px; text-decoration: none; }
.prose .wp-block-image { max-width: 100%; }
.prose iframe[title="Cat Happiness Score"] { width: 100%; border: 0; min-height: 860px; }
.inline-link, .embed-link { background: var(--cream); padding: .6rem .8rem; border-inline-start: 3px solid #abc7b1; font-size: .93em; }
.toc { clear: both; margin: 1.15rem 0 1.55rem; padding: .75rem 1rem; width: fit-content; max-width: 100%; border-radius: 6px; background: #f3f7f3; border: 1px solid var(--line); }
.toc summary { color: var(--forest); font-weight: 700; }
.toc :is(ol, ul) { margin-block: .5em .1em; font-size: .9em; list-style-type: decimal; }
.toc a { color: var(--forest); }
.toc ul ul { list-style-type: lower-alpha; font-size: 1em; }
.sidebar { display: grid; gap: 16px; }
.sidebar-panel { padding: 19px; background: #fff; border: 1px solid #e7eae4; border-radius: 5px; }
.sidebar h2 { margin: 0 0 10px; font: 700 1.2rem/1.22 var(--serif); }
.sidebar ul { list-style: none; margin: 0; padding: 0; font-size: .89rem; }
.sidebar li + li { margin-top: .55em; }
.sidebar a { color: var(--forest); }
.sidebar-promo img { border-radius: 4px; width: 100%; }
.sidebar-promo a { display: block; }
.sidebar-promo p { margin: .7em 0 0; font-size: .89rem; }
.sidebar-panel p:last-child { margin: .7em 0 0; font-size: .89rem; }
.more-reading { clear: both; margin-top: 32px; border-top: 1px solid var(--line); padding-top: 20px; }
.more-reading h2 { font: 700 1.65rem/1.2 var(--serif); margin-bottom: 13px; }
.more-reading ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; gap: 10px; padding: 0; margin: 0; }
.more-reading a { height: 100%; display: block; border: 1px solid var(--line); border-radius: 5px; padding: .65rem .8rem; color: var(--forest); background: #f9fbf8; }
.share-links { display: flex; flex-wrap: wrap; gap: 7px 15px; color: var(--muted); font-size: .83rem; margin-top: 22px; }
.share-links a { color: var(--forest); }
.product-references { border: 1px solid var(--line); border-radius: 6px; padding: .78rem 1rem; margin: 1.15rem 0; }
.product-references ol { margin: .4rem 0 0; }
.video-card { padding: 12px 15px; border: 1px solid var(--line); border-radius: 6px; background: var(--cream); }
.video-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.video-links button { padding: .36rem .6rem; border: 1px solid var(--forest); background: var(--forest); color: #fff; border-radius: 5px; }
.video-card iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; margin-top: 12px; }
.archive-head { padding-bottom: 18px; }
.archive-head p { margin-bottom: 0; max-width: 65ch; color: var(--muted); }
.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.archive-card { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.archive-card > a { display: block; }
.archive-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.archive-card > div { padding: 15px; }
.archive-card h2 { margin: .3rem 0 .55rem; font: 700 1.26rem/1.25 var(--serif); }
.archive-card h2 a { color: var(--forest); }
.archive-card p { margin: 0; font-size: .87rem; color: var(--muted); }
.archive-card time { font-size: .75rem; color: var(--muted); }
.archive-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 0; }
.archive-pagination :is(a, span) { border: 1px solid var(--line); padding: .28em .65em; border-radius: 5px; color: var(--forest); }
.archive-pagination [aria-current] { color: white; background: var(--forest); }
.topic-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 6px 0 24px; }
.topic-pills a { display: block; background: var(--sage); color: var(--forest); border-radius: 5px; padding: .27rem .65rem; font-size: .88rem; }
.page-search { display: flex; gap: 8px; max-width: 410px; margin: 18px 0; }
.legacy-book { width: min(1180px, calc(100% - 36px)); margin: auto; }
.form-honeypot { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.form-feedback { padding: .6em .8em; background: var(--sage); border-radius: 6px; }
.blog-fallback a { color: var(--forest); }

@media (max-width: 1030px) {
  .header-shell { min-height: 74px; }
  .header-brand { flex-basis: 210px; }
  .site-menu { font-size: .82rem; gap: 2px; }
  .site-menu > a, .nav-group > summary { padding-inline: .57rem; }
}
@media (max-width: 880px) {
  html { scroll-padding-top: 72px; }
  .header-shell { min-height: 66px; width: calc(100% - 30px); }
  .header-brand { flex-basis: 204px; }
  .header-shell > .site-menu { display: none; }
  .mobile-menu { display: block; margin-left: auto; }
  .mobile-menu > summary { gap: 7px; padding-inline: .63rem; font-size: .83rem; font-weight: 680; }
  .mobile-menu > .site-menu { position: absolute; top: 100%; left: 0; right: 0; display: block; padding: 10px 15px 17px; max-height: calc(100dvh - 67px); overflow: auto; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 17px 28px #17392b1f; }
  .mobile-menu .site-menu > a, .mobile-menu .nav-group > summary { min-height: 42px; padding: .59rem .73rem; }
  .mobile-menu .site-menu > .nav-book { border: 0; }
  .mobile-menu .nav-sub { position: static; width: 100%; box-shadow: none; border: 0; padding: 0 0 0 .65rem; }
  .mobile-menu .nav-sub a { padding-top: .46rem; padding-bottom: .46rem; }
  .mobile-menu .nav-search { padding: .45rem 0 0 .62rem; }
  .mobile-menu .search-popover { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
  .reading-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar-promo img { max-width: 230px; }
}
@media (max-width: 560px) {
  .reading-shell, .footer-shell { width: calc(100% - 26px); }
  .standard-main { padding-top: 13px; }
  .surface { padding: 17px; }
  .archive-grid, .more-reading ul { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; }
  .prose .wp-block-columns { flex-direction: column; }
  .prose .alignleft, .prose .alignright { float: none; margin-inline: auto; }
}
