:root {
  --hb-ink: #0b1726;
  --hb-ink-soft: #17283b;
  --hb-paper: #f7f7f4;
  --hb-paper-alt: #eef1ef;
  --hb-white: #fff;
  --hb-green: #25d366;
  --hb-green-dark: #128c4a;
  --hb-muted: #556476;
  --hb-line: #d5dbd8;
  --hb-wide: 1180px;
  --hb-reading: 780px;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--hb-paper); color: var(--hb-ink); }
body, button, input { font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: Archivo, 'Arial Narrow', Arial, sans-serif; letter-spacing: -.025em; }
img { max-width: 100%; height: auto; }
::selection { background: var(--hb-green); color: var(--hb-ink); }
:where(a, button, input, summary):focus-visible { outline: 3px solid var(--hb-green-dark); outline-offset: 4px; }
a { text-underline-offset: .16em; }

.hb-site-header, .hb-site-footer { display: block; margin: 0 !important; max-width: none !important; }
.hb-site-header { position: relative; z-index: 20; background: var(--hb-ink); color: var(--hb-white); border-bottom: 1px solid rgba(255,255,255,.15); }
.hb-header-inner { width: min(calc(100% - 48px), 1280px); min-height: 76px; margin: auto; display: flex; align-items: center; gap: clamp(16px, 3vw, 46px); }
.hb-brand { display: inline-flex; flex: none; width: 58px; height: 58px; align-items: center; justify-content: center; }
.hb-brand__mark { display: block; width: 55px; height: 55px; background: url('../logo.png') center / contain no-repeat; }
.hb-nav { display: flex; align-items: center; justify-content: center; flex: 1; gap: clamp(14px, 2.2vw, 30px); }
.hb-site-header a { color: var(--hb-white); text-decoration: none; font-size: .87rem; font-weight: 650; white-space: nowrap; }
.hb-nav a:hover, .hb-nav a[aria-current] { color: var(--hb-green); }
.hb-header-cta { border: 1px solid rgba(255,255,255,.48); border-radius: 5px; padding: .76em 1.05em; }
.hb-header-cta:hover { background: var(--hb-green); border-color: var(--hb-green); color: var(--hb-ink); }
.hb-menu { display: none; margin-left: auto; }

main.hb-main { box-sizing: border-box; width: 100%; max-width: none !important; margin: 0 !important; padding: 0 24px 84px; }
.hb-main > .hb-hero, .hb-main > .hb-category-bar, .hb-main > .hb-section-heading, .hb-main > .hb-query, .hb-main > .hb-archive-head, .hb-main > .wp-block-template-part { box-sizing: border-box; max-width: var(--hb-wide) !important; margin-left: auto !important; margin-right: auto !important; }
.hb-hero { padding: clamp(48px, 6vw, 82px) 0 44px; border-bottom: 1px solid var(--hb-line); }
.hb-hero h1 { max-width: 920px; margin: 0; font-size: clamp(2.45rem, 5vw, 4.6rem); line-height: 1.04; font-weight: 800; }
.hb-hero p { max-width: 680px; margin: 20px 0 0; font-size: clamp(1rem, 1.4vw, 1.24rem); line-height: 1.55; color: var(--hb-ink-soft); }
.hb-category-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 30px; padding: 22px 0; border-bottom: 1px solid var(--hb-line); }
.hb-category-label { flex: none; margin: 0; font-size: .81rem; font-weight: 700; color: var(--hb-muted); text-transform: uppercase; letter-spacing: .06em; }
.hb-category-bar .wp-block-categories { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hb-category-bar .wp-block-categories li { margin: 0; list-style: none; }
.hb-category-bar .wp-block-categories a { display: inline-flex; align-items: center; min-height: 35px; padding: 0 13px; border: 1px solid var(--hb-line); border-radius: 5px; color: var(--hb-ink); background: var(--hb-white); text-decoration: none; font-size: .82rem; font-weight: 650; }
.hb-category-bar .wp-block-categories a:hover { border-color: var(--hb-green-dark); color: var(--hb-green-dark); }
.hb-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-top: 52px !important; margin-bottom: 26px !important; }
.hb-section-heading h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.hb-section-heading p { margin: 0; color: var(--hb-muted); font-size: .94rem; }

.hb-query .wp-block-post-template { display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 38px 25px; margin: 0; padding: 0; }
.hb-query .wp-block-post-template > li { min-width: 0; margin: 0; list-style: none; }
.hb-card { max-width: none !important; margin: 0 !important; padding: 0 0 22px; border-bottom: 1px solid var(--hb-line); }
.hb-card > * { margin-top: 0; }
.hb-card__image { margin-bottom: 19px; overflow: hidden; background: var(--hb-paper-alt); }
.hb-card__image a { display: block; aspect-ratio: 16 / 10; }
.hb-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hb-card__terms { margin-bottom: 9px; color: var(--hb-green-dark); font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.hb-card__terms a, .hb-article-categories a { color: inherit; text-decoration: none; }
.hb-card__terms a:hover, .hb-article-categories a:hover { text-decoration: underline; }
.hb-card__title { margin: 0; font-size: clamp(1.25rem, 1.65vw, 1.55rem); line-height: 1.28; }
.hb-card__title a { text-decoration: none; color: var(--hb-ink); }
.hb-card__title a:hover { color: var(--hb-green-dark); }
.hb-card__excerpt { margin: 13px 0 0; font-size: .93rem; line-height: 1.55; color: var(--hb-muted); }
.hb-card__excerpt p { margin: 0; }
.hb-card__date { margin: 14px 0 0; color: var(--hb-muted); font-size: .79rem; }
.hb-card__more { display: inline-block; margin-top: 12px; color: var(--hb-ink); font-size: .83rem; font-weight: 750; text-decoration: underline; }
body:not(.paged) .hb-home .hb-query .wp-block-post-template > li:first-child { grid-column: span 2; }
body:not(.paged) .hb-home .hb-query .wp-block-post-template > li:first-child .hb-card__image a { aspect-ratio: 2.1 / 1; }
body:not(.paged) .hb-home .hb-query .wp-block-post-template > li:first-child .hb-card__title { font-size: clamp(1.6rem, 2.8vw, 2.35rem); max-width: 660px; }
body:not(.paged) .hb-home .hb-query .wp-block-post-template > li:first-child .hb-card__excerpt { max-width: 640px; }
.hb-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; margin: 44px 0 0; }
.hb-pagination a, .hb-pagination .page-numbers, .hb-pagination .wp-block-query-pagination-previous, .hb-pagination .wp-block-query-pagination-next { display: inline-flex; min-width: 39px; min-height: 39px; align-items: center; justify-content: center; border: 1px solid var(--hb-line); border-radius: 5px; padding: 0 9px; color: var(--hb-ink); text-decoration: none; font-size: .86rem; }
.hb-pagination .current, .hb-pagination a:hover { border-color: var(--hb-ink); background: var(--hb-ink); color: var(--hb-white); }

.hb-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin: 74px auto 0; padding: clamp(26px, 4vw, 42px); background: var(--hb-ink); color: var(--hb-white); border-radius: 6px; }
.hb-cta h2 { margin: 0; font-size: clamp(1.38rem, 2.7vw, 2rem); }
.hb-cta p { margin: 9px 0 0; color: #d3ded9; font-size: .95rem; }
.hb-cta a { flex: none; padding: 13px 17px; background: var(--hb-green); border-radius: 5px; color: var(--hb-ink); text-decoration: none; font-size: .88rem; font-weight: 800; }
.hb-cta a:hover { background: #59e587; }

.hb-archive-head { padding: 60px 0 32px; border-bottom: 1px solid var(--hb-line); }
.hb-archive-head > p { margin: 0 0 20px; font-size: .85rem; }
.hb-archive-head > p a { color: var(--hb-muted); }
.hb-archive-head h1 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.3rem); }
.hb-archive-head .wp-block-term-description { max-width: 680px; color: var(--hb-muted); }
.hb-archive .hb-query { margin-top: 40px !important; }
.hb-archive .hb-category-bar + .hb-query { margin-top: 42px !important; }
.hb-empty { min-height: 62vh; padding-top: 80px !important; }
.hb-empty h1 { font-size: clamp(2rem, 4vw, 3rem); }
.hb-empty .wp-block-search, .hb-archive-head .wp-block-search { max-width: 560px; }
.hb-main .wp-block-search__input { border: 1px solid var(--hb-line); border-radius: 5px; background: var(--hb-white); }
.hb-main .wp-block-search__button { background: var(--hb-ink); color: var(--hb-white); border-radius: 5px; }

.hb-single > .hb-article-head, .hb-single > .hb-article-body { max-width: var(--hb-reading) !important; margin-left: auto !important; margin-right: auto !important; }
.hb-article-head { padding: 50px 0 26px; }
.hb-breadcrumb { margin-bottom: 26px; font-size: .8rem; color: var(--hb-muted); }
.hb-breadcrumb a { color: var(--hb-muted); }
.hb-article-categories { margin: 0 0 13px; color: var(--hb-green-dark); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.hb-article-head h1 { margin: 0; font-size: clamp(2.15rem, 4.4vw, 3.8rem); line-height: 1.12; }
.hb-article-meta { display: flex; gap: 12px 28px; margin: 20px 0 0; color: var(--hb-muted); font-size: .85rem; }
.hb-article-meta > * { margin: 0; }
.hb-single > .hb-article-image { max-width: min(100%, 1080px) !important; margin: 0 auto 44px !important; }
.hb-article-image img { display: block; max-height: 580px; width: 100%; object-fit: cover; }
.hb-article-body { font-size: clamp(1rem, 1.3vw, 1.075rem); line-height: 1.78; }
.hb-article-body > * { max-width: 100%; }
.hb-article-body h2 { margin-top: 2.1em; margin-bottom: .55em; font-size: clamp(1.52rem, 2.4vw, 2.05rem); line-height: 1.25; }
.hb-article-body h3 { margin-top: 1.7em; margin-bottom: .5em; font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
.hb-article-body p, .hb-article-body li { overflow-wrap: anywhere; }
.hb-article-body a { color: #0b713d; text-decoration-thickness: 1px; }
.hb-article-body blockquote { margin: 1.8em 0; padding: 3px 0 3px 24px; border-left: 2px solid var(--hb-green-dark); font-size: 1.15em; }
.hb-article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .9em; }
.hb-article-body th, .hb-article-body td { border: 1px solid var(--hb-line); padding: .65em .8em; }
.hb-article-body figcaption { color: var(--hb-muted); font-size: .82rem; text-align: center; }
.hb-single > .wp-block-template-part { max-width: var(--hb-wide) !important; }
.hb-single .hb-cta { margin-top: 70px; }
.hb-single > .wp-block-shortcode { max-width: var(--hb-wide) !important; margin-left: auto !important; margin-right: auto !important; }
.hb-related { margin-top: 80px; }
.hb-related h2 { margin: 0 0 24px; font-size: clamp(1.55rem, 2.7vw, 2rem); }
.hb-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hb-related__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--hb-paper-alt); }
.hb-related__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hb-related__date { margin: 12px 0 5px; font-size: .78rem; color: var(--hb-muted); }
.hb-related h3 { margin: 0; font-size: 1.13rem; line-height: 1.35; }
.hb-related h3 a { color: var(--hb-ink); text-decoration: none; }
.hb-related h3 a:hover { color: var(--hb-green-dark); }

.hb-site-footer { background: var(--hb-ink); color: var(--hb-white); }
.hb-footer-inner { box-sizing: border-box; max-width: 1280px; margin: auto; padding: 42px 24px 30px; display: grid; grid-template-columns: minmax(210px, 1fr) 2fr; gap: 25px 70px; }
.hb-footer-about p { max-width: 270px; margin: 8px 0 0; color: #ccd5d6; font-size: .87rem; line-height: 1.5; }
.hb-footer-nav { display: flex; flex-wrap: wrap; align-content: start; justify-content: end; gap: 12px 25px; padding-top: 16px; }
.hb-site-footer a { color: var(--hb-white); text-decoration: none; font-size: .87rem; }
.hb-site-footer a:hover { color: var(--hb-green); }
.hb-footer-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 18px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); color: #c5d1d2; font-size: .79rem; }
.hb-footer-meta a { font-size: .79rem; }

@media (max-width: 1024px) {
  .hb-nav { gap: 13px; }
  .hb-site-header a { font-size: .78rem; }
  .hb-query .wp-block-post-template { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body:not(.paged) .hb-home .hb-query .wp-block-post-template > li:first-child { grid-column: 1 / -1; }
  body:not(.paged) .hb-home .hb-query .wp-block-post-template > li:first-child .hb-card__image a { aspect-ratio: 2 / 1; }
}
@media (max-width: 850px) {
  .hb-header-inner { width: min(calc(100% - 36px), 1280px); min-height: 70px; }
  .hb-nav, .hb-header-cta { display: none; }
  .hb-menu { display: block; position: relative; }
  .hb-menu summary { min-height: 42px; display: flex; align-items: center; padding: 0 12px; border: 1px solid rgba(255,255,255,.5); border-radius: 5px; cursor: pointer; list-style: none; font-size: .89rem; font-weight: 700; }
  .hb-menu summary::-webkit-details-marker { display: none; }
  .hb-menu summary::after { content: ' ☰'; padding-left: 10px; font-size: 1rem; }
  .hb-menu[open] nav { position: absolute; top: calc(100% + 10px); right: 0; width: min(300px, calc(100vw - 36px)); padding: 9px; display: grid; background: var(--hb-ink); border: 1px solid rgba(255,255,255,.18); border-radius: 6px; box-shadow: 0 12px 24px rgba(0,0,0,.22); }
  .hb-menu nav a { display: block; padding: 10px 12px; font-size: .92rem; }
  .hb-menu nav a:hover { background: var(--hb-ink-soft); }
  .hb-footer-inner { grid-template-columns: 1fr; }
  .hb-footer-nav { justify-content: start; }
  .hb-cta { align-items: start; flex-direction: column; }
}
@media (max-width: 600px) {
  main.hb-main { padding: 0 18px 64px; }
  .hb-hero { padding-top: 42px; padding-bottom: 34px; }
  .hb-category-bar { align-items: start; flex-direction: column; gap: 10px; }
  .hb-section-heading { display: block; margin-top: 42px !important; }
  .hb-section-heading p { margin-top: 7px; }
  .hb-query .wp-block-post-template { grid-template-columns: 1fr; gap: 30px; }
  body:not(.paged) .hb-home .hb-query .wp-block-post-template > li:first-child { grid-column: auto; }
  body:not(.paged) .hb-home .hb-query .wp-block-post-template > li:first-child .hb-card__image a { aspect-ratio: 16 / 10; }
  body:not(.paged) .hb-home .hb-query .wp-block-post-template > li:first-child .hb-card__title { font-size: 1.52rem; }
  .hb-article-head { padding-top: 36px; }
  .hb-single > .hb-article-image { margin-bottom: 30px !important; }
  .hb-related__grid { grid-template-columns: 1fr; gap: 30px; }
  .hb-footer-inner { padding: 38px 18px 28px; }
  .hb-footer-meta { flex-wrap: wrap; }
}
