/* MBB editorial — white page, serif headlines, thin rules, navy accents */
:root {
  --ink: #141414; --muted: #646464; --rule: #e3e3e3; --paper: #fff; --soft: #f5f4f0;
  --navy: #1e2a45; --navy-2: #2c3d63;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --w: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* masthead */
.masthead { border-bottom: 1px solid var(--rule); }
.mast-top { display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 14px; }
.brand img { width: 150px; }
.tagline { margin: 0; font: italic 400 17px/1.3 var(--serif); color: var(--muted); }
.mast-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.search-link { display: grid; place-items: center; width: 36px; height: 36px; }
.btn-outline { display: inline-block; border: 1px solid var(--ink); padding: 7px 14px; font-size: 13px; font-weight: 500; text-decoration: none; letter-spacing: .02em; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.sections { border-top: 1px solid var(--rule); }
.sections ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.sections ul::-webkit-scrollbar { display: none; }
.sections a { display: block; padding: 12px 0; font: 500 15px/1 var(--serif); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.sections a:hover, .sections a[aria-current] { border-bottom-color: var(--ink); }
.trending { background: var(--navy); color: #fff; }
.trending .wrap { display: flex; gap: 28px; align-items: center; padding-top: 9px; padding-bottom: 9px; overflow-x: auto; scrollbar-width: none; font-size: 13px; white-space: nowrap; }
.trending strong { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: 12px; }
.trending a { text-underline-offset: 3px; }

/* type */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.15; margin: 0; }
.kicker { display: inline-block; font: 600 11.5px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .09em; color: var(--navy-2); text-decoration: none; margin: 0 0 8px; }
a.kicker:hover { text-decoration: underline; }
.deck { font-size: 16px; color: #333; margin: 10px 0 0; }
.byline { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 0 0; }
.small { font-size: 13px; color: var(--muted); }
.price { font-weight: 600; margin: 6px 0 0; }
.price s { color: var(--muted); font-weight: 400; }
.oos { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #a33; margin-left: 6px; }

/* blocks */
.block { padding-top: 44px; padding-bottom: 44px; }
.band { background: var(--soft); }
.sec-head { display: flex; align-items: baseline; justify-content: center; gap: 18px; position: relative; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 30px); text-align: center; }
.sec-head a { position: absolute; right: 0; font-size: 13px; text-decoration: none; color: var(--muted); }
.sec-head a:hover { color: var(--ink); text-decoration: underline; }
.wrap.block + .wrap.block { border-top: 1px solid var(--rule); }

/* lead */
.lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; padding-top: 32px; padding-bottom: 40px; align-items: center; border-bottom: 1px solid var(--rule); }
.lead-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: top; }
.lead-title { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; }
.lead-title a, .card-title a, .pcard-title a { text-decoration: none; }
.lead-title a:hover, .card-title a:hover, .pcard-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.lead .deck { font-size: 18px; }
.more { display: inline-block; margin-top: 18px; font-weight: 500; text-underline-offset: 4px; }

/* grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.card-media img, .card-media .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: var(--soft); }
.card-body { padding-top: 14px; }
.card-title { font-size: 21px; line-height: 1.22; }
.card-lg { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
.card-lg .card-title { font-size: clamp(26px, 3vw, 36px); }
.card-lg .card-body { padding: 0; }
.ph { display: grid; place-items: center; background: var(--soft); }
.ph img { width: 56px; opacity: .25; }

/* product cards */
.pcard-media img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--rule); padding: 10px; transition: border-color .2s; }
.pcard-media:hover img { border-color: var(--ink); }
.pcard .kicker { margin-top: 14px; }
.pcard-title { font-size: 20px; }

/* tips list + promo */
.split { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.split .sec-head { justify-content: flex-start; }
.list .row { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--rule); align-items: center; }
.list .row:first-child { border-top: 0; padding-top: 0; }
.row-media img, .row-media .ph { width: 160px; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.promo-box { background: var(--navy); color: #fff; padding: 34px 30px; align-self: start; }
.promo-box .kicker { color: #b9c6e4; }
.promo-box h2 { font-size: 28px; margin-bottom: 12px; }
.promo-box p { color: #dde3f0; }
.promo-box.wide { max-width: 820px; margin: 0 auto; }
.btn { display: inline-block; background: var(--ink); color: #fff; border: 0; padding: 12px 20px; font: 500 14px/1 var(--sans); text-decoration: none; letter-spacing: .02em; cursor: pointer; }
.btn:hover { background: var(--navy-2); }
.promo-box .btn { background: #fff; color: var(--navy); margin-top: 10px; }
.btn-lg { padding: 16px 28px; font-size: 16px; margin-top: 18px; }

/* quotes */
.quotes figure { margin: 0; border-top: 2px solid var(--ink); padding-top: 18px; }
.quotes blockquote { margin: 0; font: 400 19px/1.45 var(--serif); }
.quotes figcaption { margin-top: 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* e-books */
.eb-list { list-style: none; counter-reset: eb; margin: 0 auto; padding: 0; max-width: 900px; columns: 2; column-gap: 48px; }
.eb-list li { break-inside: avoid; counter-increment: eb; display: grid; grid-template-columns: 34px 1fr; padding: 14px 0; border-top: 1px solid var(--rule); }
.eb-list li::before { content: counter(eb, decimal-leading-zero); font: 500 14px var(--serif); color: var(--muted); grid-row: span 2; }
.eb-list a { font: 500 18px/1.3 var(--serif); text-decoration: none; }
.eb-list a:hover { text-decoration: underline; }
.eb-list span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 4px; }
.eb-full { max-width: none; columns: 3; }

/* page headers, crumbs, pager */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 0 0; margin: 0; font-size: 12.5px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; }
.crumbs li[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head { text-align: center; padding-top: 30px; padding-bottom: 10px; }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); }
.page-head > p { max-width: 640px; margin: 14px auto 0; color: #333; font-size: 17px; }
.page-head.narrow { max-width: 820px; }
.page-head .deck { font-size: 20px; font-family: var(--serif); }
.pg { color: var(--muted); font-size: .5em; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.chips a { border: 1px solid var(--rule); padding: 7px 14px; font-size: 13px; text-decoration: none; border-radius: 99px; }
.chips a:hover { border-color: var(--ink); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14px; }
.pager a { font-weight: 500; }

/* article */
.story-head { max-width: 820px; text-align: center; padding-top: 34px; }
.story-head h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; }
.story-head .deck { font: 400 20px/1.45 var(--serif); color: #333; margin-top: 16px; }
.story-hero { max-width: 860px; margin: 30px auto 0; }
.story-hero img { margin: 0 auto; max-height: 80vh; width: auto; }
.prose { max-width: 700px; margin: 0 auto; padding: 30px 24px 10px; font: 400 19px/1.7 var(--serif); }
.prose-left { padding-left: 0; padding-right: 0; margin: 0; }
.prose h2 { font-size: 28px; margin: 1.6em 0 .5em; }
.prose h3, .prose h4 { font-size: 22px; margin: 1.4em 0 .4em; }
.prose p { margin: 0 0 1.1em; }
.prose img { margin: 1.6em auto; max-height: 90vh; width: auto; }
.prose figure { margin: 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; margin: 1.4em 0; }
.prose blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 2px solid var(--ink); font-style: italic; }
.prose a { text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.story-foot { border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 20px; }
.share { font: 14px var(--sans); color: var(--muted); }

/* product */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding-top: 26px; padding-bottom: 44px; align-items: start; }
.gallery-main { width: 100%; aspect-ratio: 1; object-fit: contain; border: 1px solid var(--rule); }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.thumbs img { aspect-ratio: 1; object-fit: cover; border: 1px solid var(--rule); }
.buy { position: sticky; top: 20px; }
.buy h1 { font-size: clamp(34px, 4vw, 50px); }
.price-lg { font: 500 28px var(--serif); margin-top: 14px; }
.short { margin-top: 18px; font-size: 17px; border-top: 1px solid var(--rule); padding-top: 18px; }
.short p { margin: 0 0 .6em; }
.oos-box { padding: 14px; background: var(--soft); margin-top: 18px; }

/* search */
.search { display: flex; gap: 10px; max-width: 560px; margin: 22px auto 0; }
.search input { flex: 1; font: 17px var(--sans); padding: 11px 14px; border: 1px solid var(--ink); border-radius: 0; }
.results { list-style: none; padding: 0; max-width: 760px; margin: 0 auto; }
.results li { padding: 18px 0; border-top: 1px solid var(--rule); }
.results p { margin: 6px 0 0; color: #333; }

.map iframe { width: 100%; height: 420px; border: 0; }

/* footer */
.foot { background: var(--navy); color: #dfe4ef; margin-top: 40px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 52px; padding-bottom: 34px; }
.foot-brand img { width: 140px; margin-bottom: 16px; }
.foot h2 { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .09em; color: #fff; margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 8px; }
.foot a { text-decoration: none; overflow-wrap: anywhere; }
.foot a:hover { text-decoration: underline; color: #fff; }
.foot-note { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 18px; padding-bottom: 28px; font-size: 12.5px; color: #aeb8cf; }
.foot-note p { margin: 0 0 6px; }

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tagline { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .eb-full { columns: 2; }
}
@media (max-width: 820px) {
  .lead, .card-lg, .split, .product { grid-template-columns: 1fr; gap: 24px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .buy { position: static; }
  .sec-head { justify-content: flex-start; }
  .sec-head h2 { text-align: left; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .brand img { width: 120px; }
  .btn-outline { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { gap: 24px 14px; }
  .pcard-title { font-size: 17px; }
  .list .row { grid-template-columns: 110px 1fr; gap: 14px; }
  .row-media img, .row-media .ph { width: 110px; }
  .card-title { font-size: 19px; }
  .eb-list, .eb-full { columns: 1; }
  .prose { font-size: 18px; padding-left: 18px; padding-right: 18px; }
  .foot-grid { grid-template-columns: 1fr; }
}
