/* Hearth: theme layer on top of the Hearth foundation. CSS only. */
:root{ --hearth-ui: var(--wp--custom--font-ui, system-ui, sans-serif); --hearth-hw: var(--wp--custom--heading-weight, 600); --hearth-card: var(--hth-surface-2); }
@supports (color: color-mix(in oklch, red, blue)) { :root{ --hearth-card: color-mix(in oklch, var(--hth-ink) 3%, var(--hth-surface)); } }

/* Small labels */
.hearth-kicker, .hearth-kicker a, .is-style-kicker{ font-family:var(--hearth-ui); font-size:.76rem; font-weight:600; letter-spacing:.09em; text-transform:uppercase; color:var(--hth-accent-ink); text-decoration:none; margin:0; }
.hearth-deck, .is-style-deck, .hearth-lede{ font-size:var(--wp--preset--font-size--medium); color:var(--hth-ink-soft); line-height:1.5; }
.hearth-soft{ color:var(--hth-ink-soft); }
.wp-block-post-terms, .wp-block-post-date, .wp-block-post-author-name, .wp-block-query-pagination, .wp-block-categories, .wp-block-navigation{ font-family:var(--hearth-ui); }

/* Header */
.hearth-header{ border-bottom:1px solid var(--hth-line); }
.hearth-header-row{ gap:var(--wp--preset--spacing--30); }
.hearth-header .wp-block-site-title{ font-family:var(--wp--custom--font-display); font-weight:var(--hearth-hw); font-size:var(--wp--preset--font-size--medium); letter-spacing:-.01em; margin:0; }
.hearth-header .wp-block-site-title a{ color:var(--hth-ink); text-decoration:none; }
.hearth-header-actions{ gap:var(--wp--preset--spacing--40); }
.hearth-header .wp-block-navigation{ font-size:var(--wp--preset--font-size--small); }
.hearth-header .wp-block-navigation a{ color:var(--hth-ink-soft); text-decoration:none; }
.hearth-header .wp-block-navigation a:hover{ color:var(--hth-ink); }
.wp-block-navigation__responsive-container.is-menu-open{ padding:var(--wp--preset--spacing--50) var(--wp--preset--spacing--40); background:var(--hth-surface); color:var(--hth-ink); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{ font-size:var(--wp--preset--font-size--large); padding-block:.35em; color:var(--hth-ink); }
@media (max-width:600px){ .hearth-header .hearth-header-cta{ display:none; } }

/* Home */
.hearth-intro .hearth-intro-title{ font-size:var(--wp--preset--font-size--display); max-width:16ch; margin-block:.3em .4em; }
.hearth-lede{ max-width:36rem; }
.hearth-section{ margin-top:var(--wp--preset--spacing--70); }
.hearth-sec-head{ margin-bottom:var(--wp--preset--spacing--40); gap:var(--wp--preset--spacing--30); }
.hearth-sec-head h2{ margin:0; }
.hearth-sec-link{ margin:0; font-family:var(--hearth-ui); font-size:var(--wp--preset--font-size--small); }
.hearth-sec-link a, .hearth-archive-link a, .hearth-book-link a{ color:var(--hth-accent-ink); }

/* Grids with few items share the full width instead of leaving an empty column */
.hearth-topics .wp-block-post-template.is-layout-grid{ grid-template-columns:repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.hearth-steps.is-layout-grid{ grid-template-columns:repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); }
.hearth-siblings.is-layout-grid{ grid-template-columns:repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); }

/* Topic cards */
.hearth-topics .wp-block-post-template{ gap:var(--wp--preset--spacing--30); }
.hearth-topic{ height:100%; padding:var(--wp--preset--spacing--40); background:var(--hearth-card); border:1px solid var(--hth-line); border-radius:var(--wp--custom--radius--base); transition:border-color .15s, transform .15s; }
.hearth-topic:hover{ border-color:var(--hth-accent); transform:translateY(-2px); }
.hearth-topic .wp-block-post-title{ font-size:var(--wp--preset--font-size--large); margin:0 0 .3em; }
.hearth-topic .wp-block-post-title a{ color:var(--hth-ink); text-decoration:none; }
.hearth-topic .wp-block-post-excerpt{ color:var(--hth-ink-soft); font-size:var(--wp--preset--font-size--small); margin:0; }
.hearth-topic .wp-block-post-excerpt__excerpt{ margin:0; }
.hearth-count{ font-family:var(--hearth-ui); font-size:.8rem; font-weight:600; color:var(--hth-accent-ink); margin:.8em 0 0; }

/* Most read */
.hearth-most{ counter-reset:hearth-m; display:grid; grid-template-columns:repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); column-gap:var(--wp--preset--spacing--60); }
.hearth-most > li{ margin:0; counter-increment:hearth-m; border-top:1px solid var(--hth-line); padding-block:var(--wp--preset--spacing--30); display:grid; grid-template-columns:2.4rem 1fr; gap:var(--wp--preset--spacing--20); }
.hearth-most > li::before{ content:counter(hearth-m); font-family:var(--wp--custom--font-display); font-weight:var(--hearth-hw); font-size:var(--wp--preset--font-size--large); color:var(--hth-accent-ink); line-height:1; }
.hearth-most-item .wp-block-post-title{ font-size:var(--wp--preset--font-size--medium); margin:0; line-height:1.25; }
.hearth-most-item .wp-block-post-title a{ color:var(--hth-ink); text-decoration:none; }
.hearth-most-item .wp-block-post-title a:hover{ color:var(--hth-accent-ink); }
.hearth-most-topic{ font-size:var(--wp--preset--font-size--small); color:var(--hth-ink-soft); margin-top:.25em; }
.hearth-most-topic a{ color:inherit; text-decoration:none; }

/* Newsletter */
.hearth-newsletter{ margin-top:var(--wp--preset--spacing--70); background:var(--hth-accent-soft); border-radius:calc(var(--wp--custom--radius--base) * 1.5); padding:var(--wp--preset--spacing--60) var(--wp--preset--spacing--50); }
.hearth-newsletter-inner{ align-items:center; gap:var(--wp--preset--spacing--50); }
.hearth-newsletter h2{ margin:.2em 0 .3em; }
.hearth-newsletter .hearth-soft{ margin:0; }
.hearth-newsletter .hth-core-subscribe, .hearth-newsletter form{ display:flex; flex-wrap:wrap; gap:.5rem; }
.hearth-newsletter input[type="email"]{ flex:1 1 13rem; padding:.5rem .8rem; font:inherit; }
.hearth-newsletter .hearth-kicker, .hearth-archive-link a, .hth-takeaways > :first-child{ color:var(--hth-ink); }
.hearth-archive-link{ font-family:var(--hearth-ui); font-size:var(--wp--preset--font-size--small); margin:.8em 0 0; }

/* Books */
.hearth-books{ gap:var(--wp--preset--spacing--50) var(--wp--preset--spacing--40); }
.hearth-book{ max-width:14rem; }
.hearth-cover{ color:var(--hth-on-accent); aspect-ratio:2 / 3; display:flex; flex-direction:column; justify-content:flex-end; padding:var(--wp--preset--spacing--30); border-radius:3px; box-shadow:0 10px 24px -14px rgb(0 0 0 / 50%); background:var(--hth-accent); }
.hearth-cover-b{ background:var(--hth-ink); }
.hearth-cover-c{ background:var(--hth-surface-2); box-shadow:inset 0 0 0 1px var(--hth-line), 0 10px 24px -14px rgb(0 0 0 / 50%); }
.hearth-cover .hearth-cover-title{ color:var(--hth-on-accent); font-size:var(--wp--preset--font-size--medium); line-height:1.15; margin:0; }
.hearth-cover-b .hearth-cover-title{ color:var(--hth-surface); }
.hearth-cover-c .hearth-cover-title{ color:var(--hth-ink); }
.hearth-book-desc{ color:var(--hth-ink-soft); font-size:var(--wp--preset--font-size--small); margin:.8em 0 .3em; }
.hearth-book-link{ font-family:var(--hearth-ui); font-size:var(--wp--preset--font-size--small); margin:0; }

/* Start here */
.hearth-steps{ counter-reset:hearth-s; gap:var(--wp--preset--spacing--30); }
.hearth-step{ counter-increment:hearth-s; padding:var(--wp--preset--spacing--40); border:1px solid var(--hth-line); border-radius:var(--wp--custom--radius--base); }
.hearth-step::before{ content:"Step " counter(hearth-s); display:block; font-family:var(--hearth-ui); font-size:.75rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--hth-accent-ink); margin-bottom:.5rem; }
.hearth-step h3{ font-size:var(--wp--preset--font-size--medium); margin:0 0 .3em; }
.hearth-step h3 a{ color:var(--hth-ink); text-decoration:none; }
.hearth-step p{ margin:0; font-size:var(--wp--preset--font-size--small); }

/* Article cards (blog, topics, search) */
.hearth-chips ul, ul.hearth-chips{ list-style:none; padding:0; margin:var(--wp--preset--spacing--30) 0 0; display:flex; flex-wrap:wrap; gap:.5rem; }
.hearth-chips li a{ display:inline-flex; align-items:center; min-height:44px; padding:0 .9rem; border:1px solid var(--hth-line); border-radius:999px; color:var(--hth-ink); text-decoration:none; font-size:var(--wp--preset--font-size--small); }
.hearth-chips li a:hover{ border-color:var(--hth-accent); color:var(--hth-accent-ink); }
.hearth-cards{ gap:var(--wp--preset--spacing--40); }
.hearth-card{ height:100%; padding-top:var(--wp--preset--spacing--30); border-top:2px solid var(--hth-ink); }
.hearth-card .hearth-card-title{ font-size:var(--wp--preset--font-size--medium); margin:.35em 0; line-height:1.25; }
.hearth-card .hearth-card-title a{ color:var(--hth-ink); text-decoration:none; }
.hearth-card .hearth-card-title a:hover{ color:var(--hth-accent-ink); }
.hearth-card .wp-block-post-excerpt{ color:var(--hth-ink-soft); font-size:var(--wp--preset--font-size--small); }
.hearth-card .wp-block-post-excerpt__excerpt{ margin:0; }

/* Article */
.hearth-article-head .wp-block-post-title{ margin:.25em 0 .3em; }
.hearth-byline{ gap:.35rem .5rem; font-family:var(--hearth-ui); font-size:var(--wp--preset--font-size--small); color:var(--hth-ink-soft); padding-block:var(--wp--preset--spacing--30) var(--wp--preset--spacing--40); border-bottom:1px solid var(--hth-line); }
.hearth-byline > *{ margin:0; }
.hearth-byline a{ color:var(--hth-ink); }
.hearth-updated-label{ margin:0; }
.hearth-byline .wp-block-post-author-name::after{ content:"·"; margin-left:.5rem; color:var(--hth-line); }
.hearth-body{ font-size:calc(var(--wp--preset--font-size--base) * 1.05); line-height:1.75; }
.hearth-body h2{ margin-top:1.8em; }
.hearth-takeaways{ border-left:3px solid var(--hth-accent); background:var(--hearth-card); border-radius:0 var(--wp--custom--radius--base) var(--wp--custom--radius--base) 0; }
.wp-block-quote.is-style-pull{ border:0; padding:0; margin-block:var(--wp--preset--spacing--50); font-family:var(--wp--custom--font-display); font-weight:var(--hearth-hw); font-size:var(--wp--preset--font-size--x-large); line-height:1.3; color:var(--hth-accent-ink); }
.wp-block-quote.is-style-pull p{ max-width:none; }
.wp-block-quote cite{ display:block; font-family:var(--hearth-ui); font-size:var(--wp--preset--font-size--small); font-style:normal; color:var(--hth-ink-soft); }
.hearth-part-of{ gap:.6rem; padding-block:var(--wp--preset--spacing--30); border-block:1px solid var(--hth-line); }
.hearth-part-of .wp-block-post-terms a{ color:var(--hth-ink); font-weight:600; }
.hearth-siblings{ gap:var(--wp--preset--spacing--30); margin-top:var(--wp--preset--spacing--20); }
.hearth-sibling{ font-size:var(--wp--preset--font-size--base); margin:0; height:100%; }
.hearth-sibling a{ display:block; height:100%; padding:var(--wp--preset--spacing--30); border:1px solid var(--hth-line); border-radius:var(--wp--custom--radius--base); color:var(--hth-ink); text-decoration:none; line-height:1.3; }
.hearth-sibling a:hover{ border-color:var(--hth-accent); }
.hearth-author-card{ padding:var(--wp--preset--spacing--40); background:var(--hearth-card); border-radius:var(--wp--custom--radius--base); border-top:0; }
.hearth-author-card .wp-block-avatar img{ border-radius:50%; }
.hearth-author-intro{ gap:var(--wp--preset--spacing--40); }
.hearth-author-intro .wp-block-avatar img{ border-radius:50%; }

/* Pillar */
.hearth-pillar-meta{ gap:.3rem .9rem; font-family:var(--hearth-ui); font-size:var(--wp--preset--font-size--small); color:var(--hth-ink-soft); }
.hearth-pillar-meta > *{ margin:0; }
.hearth-pillar-meta .hearth-count{ font-size:inherit; margin:0; }
.hearth-pillar-list{ counter-reset:hearth-p; }
.hearth-pillar-list > li{ margin:0; counter-increment:hearth-p; display:grid; grid-template-columns:2.6rem 1fr; padding-block:var(--wp--preset--spacing--30); border-top:1px solid var(--hth-line); }
.hearth-pillar-list > li::before{ content:counter(hearth-p, decimal-leading-zero); font-family:var(--wp--custom--font-display); font-weight:var(--hearth-hw); color:var(--hth-accent-ink); }
.hearth-pillar-item .wp-block-post-title{ font-size:var(--wp--preset--font-size--medium); margin:0 0 .2em; }
.hearth-pillar-item .wp-block-post-title a{ color:var(--hth-ink); text-decoration:none; }
.hearth-pillar-item .wp-block-post-excerpt{ margin-top:.2em;  color:var(--hth-ink-soft); font-size:var(--wp--preset--font-size--small); }
.hearth-pillar-item .wp-block-post-excerpt__excerpt{ margin:0; }

/* Group styles */
.wp-block-group.is-style-panel{ padding:var(--wp--preset--spacing--40); border:1px solid var(--hth-line); border-radius:var(--wp--custom--radius--base); }
.wp-block-group.is-style-band{ padding:var(--wp--preset--spacing--50); background:var(--hth-accent-soft); border-radius:var(--wp--custom--radius--base); }

/* Footer */
.hearth-footer{ border-top:1px solid var(--hth-line); color:var(--hth-ink-soft); font-family:var(--hearth-ui); font-size:var(--wp--preset--font-size--small); }
.hearth-footer .wp-block-site-title{ font-family:var(--wp--custom--font-display); font-weight:var(--hearth-hw); font-size:var(--wp--preset--font-size--medium); color:var(--hth-ink); margin:0; }
.hearth-footer-tagline{ margin:.3em 0 0; max-width:28rem; }
.hearth-footer-nav a{ color:var(--hth-ink-soft); text-decoration:none; }
.hearth-footer-nav a:hover{ color:var(--hth-ink); }
.hearth-footer-nav .wp-block-navigation-item__content{ min-height:44px; display:inline-flex; align-items:center; }
.hearth-credit{ margin:var(--wp--preset--spacing--40) 0 0; }
.hearth-credit a{ color:inherit; }
.wp-block-search__input{ min-height:44px; }

/* Site identity */
:root { --hth-accent: #4A3A3F; --hth-accent-ink: #4A3A3F; --hth-on-accent: #fff; }
.hearth-header .wp-block-site-logo img { height: auto; }
.hth-takeaways { border-left: 4px solid var(--wp--preset--color--brand); }
.hth-takeaways > :first-child { color: var(--wp--preset--color--ink); text-transform: uppercase; letter-spacing: .06em; }
.hearth-topic { border-top: 4px solid var(--wp--preset--color--apricot); }
.hearth-kicker, .hearth-kicker a { color: #8E4B54; }
.hearth-kit { background: var(--hth-accent-soft); border-radius: calc(var(--wp--custom--radius--base) * 2); padding: var(--wp--preset--spacing--50); }
.hearth-kit img { border-radius: var(--wp--custom--radius--base); box-shadow: 0 10px 30px rgba(74,58,63,.15); }
.mm-author-photo img { border-radius: 50%; }
.mm-kit-cover img { border-radius: var(--wp--custom--radius--base); box-shadow: 0 10px 30px rgba(74,58,63,.18); border: 1px solid var(--hth-line); }
.hearth-topics .hearth-topic .wp-block-post-title { font-size: var(--wp--preset--font-size--medium); line-height: 1.25; }
.hearth-topic .wp-block-post-featured-image { margin-bottom: .75rem; }
.hearth-topics .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)) !important; }
.hearth-topic .wp-block-post-featured-image img { border-radius: var(--wp--custom--radius--base); }
.mm-signup iframe { width: 100%; max-width: 560px; border: 0; }
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table th { background: var(--hth-accent-soft); text-align: left; }
.wp-block-table td, .wp-block-table th { border: 1px solid var(--hth-line); padding: .55rem .7rem; vertical-align: top; }
