:root {
  --bdh-ink: #17211b;
  --bdh-muted: #66706a;
  --bdh-paper: #fbfaf7;
  --bdh-card: #ffffff;
  --bdh-line: #e7e4dd;
  --bdh-accent: #2e6448;
  --bdh-accent-dark: #214b35;
  --bdh-warm: #efe7d6;
  --bdh-radius: 18px;
  --bdh-shadow: 0 14px 40px rgba(29, 44, 35, .08);
}

.bdh-home { background: var(--bdh-paper); color: var(--bdh-ink); font-family: inherit; line-height: 1.65; }
.bdh-home *, .bdh-home *::before, .bdh-home *::after { box-sizing: border-box; }
.bdh-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.bdh-hero { padding: clamp(52px, 7vw, 92px) 0 52px; background: linear-gradient(135deg, #f8f5ee 0%, #eef5ef 100%); border-bottom: 1px solid var(--bdh-line); }
.bdh-hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: clamp(32px, 6vw, 84px); align-items: center; }
.bdh-eyebrow { margin: 0 0 12px; color: var(--bdh-accent); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.bdh-hero h1 { max-width: 850px; margin: 0; font-size: clamp(2.35rem, 5.3vw, 4.75rem); line-height: 1.04; letter-spacing: -.045em; }
.bdh-hero-text { max-width: 760px; margin: 22px 0 0; color: var(--bdh-muted); font-size: clamp(1.05rem, 1.8vw, 1.22rem); }
.bdh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.bdh-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 20px; border: 1px solid transparent; border-radius: 999px; font-weight: 750; text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.bdh-button:hover { transform: translateY(-2px); }
.bdh-button-primary { background: var(--bdh-accent); color: #fff !important; box-shadow: 0 10px 24px rgba(46, 100, 72, .2); }
.bdh-button-primary:hover { background: var(--bdh-accent-dark); }
.bdh-button-secondary { border-color: #cfd8d1; background: rgba(255,255,255,.62); color: var(--bdh-ink) !important; }
.bdh-hero-panel { position: relative; overflow: hidden; padding: 34px; border: 1px solid rgba(255,255,255,.7); border-radius: 26px; background: rgba(255,255,255,.76); box-shadow: var(--bdh-shadow); backdrop-filter: blur(8px); }
.bdh-book-mark { display: grid; width: 54px; height: 72px; place-items: center; margin-bottom: 24px; border-radius: 4px 10px 10px 4px; background: var(--bdh-accent); color: #fff; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 700; box-shadow: inset 6px 0 rgba(255,255,255,.12); }
.bdh-hero-panel h2 { margin: 0 0 8px; font-size: 1.45rem; }
.bdh-hero-panel p { margin: 0; color: var(--bdh-muted); }
.bdh-hero-panel ul { margin: 20px 0 0; padding-left: 20px; }
.bdh-hero-panel li + li { margin-top: 6px; }
.bdh-search-strip { padding: 26px 0; background: #fff; border-bottom: 1px solid var(--bdh-line); }
.bdh-search { max-width: 820px; margin: auto; }
.bdh-search label { display: block; margin-bottom: 8px; font-size: .88rem; font-weight: 750; }
.bdh-search-row { display: flex; gap: 10px; }
.bdh-search input { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border: 1px solid #cfd4d0; border-radius: 12px; background: #fff; color: var(--bdh-ink); font: inherit; }
.bdh-search button { min-width: 112px; border: 0; border-radius: 12px; background: var(--bdh-ink); color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.bdh-section { padding: clamp(54px, 6.5vw, 84px) 0; }
.bdh-featured { background: #fff; }
.bdh-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.bdh-section-heading h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.15; letter-spacing: -.025em; }
.bdh-text-link { color: var(--bdh-accent-dark) !important; font-weight: 750; text-decoration: none !important; }

/* Portrait-cover editorial cards: designed specifically for 100 x 150 thumbnails. */
.bdh-card-grid,
.bdh-featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bdh-card { display: grid; grid-template-columns: 100px minmax(0, 1fr); min-height: 182px; overflow: hidden; border: 1px solid var(--bdh-line); border-radius: var(--bdh-radius); background: var(--bdh-card); box-shadow: 0 6px 24px rgba(31, 46, 37, .04); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.bdh-card:hover { transform: translateY(-3px); border-color: #d7d2c9; box-shadow: var(--bdh-shadow); }
.bdh-card-image { display: block; width: 100px; height: 150px; margin: 16px 0 16px 16px; overflow: hidden; align-self: start; border-radius: 7px; background: var(--bdh-warm); box-shadow: 0 8px 18px rgba(24, 32, 27, .14); }
.bdh-card-image img { display: block; width: 100px !important; height: 150px !important; max-width: none !important; object-fit: cover; transition: transform .3s ease; }
.bdh-card:hover .bdh-card-image img { transform: scale(1.025); }
.bdh-placeholder { display: grid; width: 100px; height: 150px; place-items: center; padding: 12px; color: rgba(23,33,27,.46); font-family: Georgia, serif; font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-align: center; writing-mode: vertical-rl; }
.bdh-card-body { min-width: 0; padding: 17px 18px 16px 20px; }
.bdh-card-category { display: inline-block; margin-bottom: 7px; color: var(--bdh-accent) !important; font-size: .7rem; font-weight: 800; letter-spacing: .075em; text-decoration: none !important; text-transform: uppercase; }
.bdh-card h3 { margin: 0; font-size: clamp(1.04rem, 1.45vw, 1.24rem); line-height: 1.28; }
.bdh-card h3 a { color: var(--bdh-ink) !important; text-decoration: none !important; }
.bdh-card h3 a:hover { color: var(--bdh-accent-dark) !important; }
.bdh-card p { display: -webkit-box; overflow: hidden; margin: 9px 0 13px; color: var(--bdh-muted); font-size: .9rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bdh-card-meta { display: flex; flex-wrap: wrap; gap: 5px 13px; color: #7a827d; font-size: .75rem; }
.bdh-card-featured { min-height: 198px; border-color: #ddd8cf; }
.bdh-card-featured .bdh-card-body { padding-top: 19px; }
.bdh-card-featured h3 { font-size: clamp(1.12rem, 1.6vw, 1.34rem); }
.bdh-card-featured p { -webkit-line-clamp: 3; }

.bdh-category-section { background: #f3f0e9; border-top: 1px solid var(--bdh-line); border-bottom: 1px solid var(--bdh-line); }
.bdh-shelves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.bdh-shelf { padding: 26px; border: 1px solid var(--bdh-line); border-radius: var(--bdh-radius); background: #fff; }
.bdh-shelf-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--bdh-line); }
.bdh-shelf h3 { margin: 0; font-size: 1.35rem; }
.bdh-shelf h3 a { color: var(--bdh-ink) !important; text-decoration: none !important; }
.bdh-shelf-head p { margin: 6px 0 0; color: var(--bdh-muted); font-size: .9rem; }
.bdh-shelf-head span { flex: 0 0 auto; color: var(--bdh-muted); font-size: .78rem; }
.bdh-shelf-list { margin: 0 0 18px; padding: 8px 0 0; list-style: none; }
.bdh-shelf-list li { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid #f0eee9; }
.bdh-shelf-list a { color: var(--bdh-ink) !important; font-weight: 650; text-decoration: none !important; }
.bdh-shelf-list time { color: var(--bdh-muted); font-size: .76rem; }
.bdh-callout { padding: 66px 0; background: var(--bdh-accent-dark); color: #fff; }
.bdh-callout-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.bdh-callout .bdh-eyebrow { color: #bcd8c7; }
.bdh-callout h2 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 3rem); }
.bdh-callout p:not(.bdh-eyebrow) { max-width: 740px; margin: 12px 0 0; color: #dce8e0; }
.bdh-button-light { flex: 0 0 auto; background: #fff; color: var(--bdh-accent-dark) !important; }

@media (max-width: 900px) {
  .bdh-hero-grid { grid-template-columns: 1fr; }
  .bdh-card-grid, .bdh-featured-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .bdh-container { width: min(100% - 28px, 1180px); }
  .bdh-hero { padding-top: 46px; }
  .bdh-shelves { grid-template-columns: 1fr; }
  .bdh-section-heading, .bdh-callout-inner { align-items: flex-start; flex-direction: column; }
  .bdh-search-row { flex-direction: column; }
  .bdh-search button { min-height: 48px; }
  .bdh-shelf-list li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 430px) {
  .bdh-card { grid-template-columns: 82px minmax(0, 1fr); min-height: 150px; }
  .bdh-card-image { width: 82px; height: 123px; margin: 13px 0 13px 13px; }
  .bdh-card-image img, .bdh-placeholder { width: 82px !important; height: 123px !important; }
  .bdh-card-body { padding: 14px 13px 13px 15px; }
  .bdh-card h3, .bdh-card-featured h3 { font-size: 1rem; }
  .bdh-card p { display: none; }
  .bdh-card-meta { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bdh-home *, .bdh-home *::before, .bdh-home *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Most-read shelf: deliberately distinct from the recent-post cards. */
.bdh-popular {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #173d2d 0%, #24523d 58%, #193729 100%);
  color: #fff;
}
.bdh-popular::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  top: -220px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018);
  pointer-events: none;
}
.bdh-popular .bdh-section-heading { position: relative; z-index: 1; align-items: center; }
.bdh-popular .bdh-eyebrow { color: #c8e3d2; }
.bdh-popular .bdh-section-heading h2 { color: #fff; }
.bdh-section-intro { margin: 10px 0 0; color: rgba(255,255,255,.72); }
.bdh-popular-badge { flex: 0 0 auto; padding: 8px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.bdh-popular-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bdh-popular-card { position: relative; display: grid; grid-template-columns: 32px 100px minmax(0, 1fr); gap: 16px; min-height: 182px; padding: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: var(--bdh-radius); background: rgba(255,255,255,.075); box-shadow: 0 18px 38px rgba(0,0,0,.13); backdrop-filter: blur(5px); transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.bdh-popular-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.11); }
.bdh-popular-rank { align-self: start; padding-top: 3px; color: #d7b875; font-family: Georgia, serif; font-size: 1.12rem; font-weight: 700; }
.bdh-popular-cover { display: block; width: 100px; height: 150px; overflow: hidden; border-radius: 6px; background: var(--bdh-warm); box-shadow: 0 10px 26px rgba(0,0,0,.24); }
.bdh-popular-cover img { display: block; width: 100px !important; height: 150px !important; max-width: none !important; object-fit: cover; transition: transform .3s ease; }
.bdh-popular-card:hover .bdh-popular-cover img { transform: scale(1.025); }
.bdh-popular-content { min-width: 0; align-self: center; }
.bdh-popular-category { display: inline-block; margin-bottom: 8px; color: #cae5d3 !important; font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-decoration: none !important; text-transform: uppercase; }
.bdh-popular-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.28; }
.bdh-popular-card h3 a { color: #fff !important; text-decoration: none !important; }
.bdh-popular-card p { margin: 9px 0 13px; color: rgba(255,255,255,.7); font-size: .86rem; line-height: 1.5; }
.bdh-popular-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; color: rgba(255,255,255,.58); font-size: .74rem; }

@media (max-width: 1050px) {
  .bdh-popular-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .bdh-popular-grid { grid-template-columns: 1fr; }
  .bdh-popular-badge { display: none; }
}
@media (max-width: 430px) {
  .bdh-popular-card { grid-template-columns: 24px 82px minmax(0, 1fr); gap: 12px; min-height: 150px; padding: 13px; }
  .bdh-popular-cover, .bdh-popular-cover img, .bdh-popular-cover .bdh-placeholder { width: 82px !important; height: 123px !important; }
  .bdh-popular-card p { display: none; }
  .bdh-popular-card h3 { font-size: 1rem; }
}
