/* Baadhis story: an internet fault lab page. Sea-glass accent on the site's dark surface, a calm reading column,
   a numbered rail for the quick questions, a grid of six layer cards, a flow of app steps, phone pictures in a pair.
   Chromium 67 safe (no flex gap, clamp, inset or aspect-ratio). Written 2026-11-26. */
@font-face { font-family: 'BDH UI'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'BDH Display'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2'); }
body.page-baadhis {
  --accent: #8FE0CF; --accent-ink: #062320; --accent-soft: rgba(143, 224, 207, .12);
  --head: 'BDH Display', 'Segoe UI', Roboto, Arial, sans-serif;
  --body: 'BDH UI', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Frame: reading column, room at the top, quiet back link */
.page-baadhis main { padding-bottom: 48px; }
.page-baadhis main .wrap { max-width: 820px; }
.page-baadhis main > .wrap:first-child { padding-top: 40px; }
.page-baadhis .crumb { margin: 0 0 28px; font-size: 14px; }
.page-baadhis .crumb a { color: var(--muted); text-decoration: none; }
.page-baadhis .crumb a:before { content: "\2190"; margin-right: 8px; }
.page-baadhis .crumb a:hover { color: var(--accent); }
.page-baadhis .story-app { margin-bottom: 36px; }
.page-baadhis main strong { color: var(--text); font-weight: 600; }

/* Title block */
.bdh-hero { padding: 0 0 36px; border-bottom: 1px solid var(--hair); }
.bdh-tag { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--accent); }
.bdh-hero h1 { margin: 0 0 18px; font-size: 32px; line-height: 1.15; }
.bdh-lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-2); }

/* Sections and text */
.bdh-sec { padding-top: 40px; }
.bdh-h2 { margin: 0 0 16px; font-size: 24px; line-height: 1.25; }
.bdh-p { margin: 0 0 18px; color: var(--text-2); }
.page-baadhis main p:not(.crumb) a:not(.btn), .page-baadhis main li a { color: var(--text); text-decoration: underline; -webkit-text-decoration-color: var(--accent); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.page-baadhis main p:not(.crumb) a:not(.btn):hover, .page-baadhis main li a:hover { color: var(--accent); }

/* Quick questions: a rail with a vertical line and ring numbers */
.bdh-rail { list-style: none; margin: 8px 0 26px; padding: 0 0 0 0; counter-reset: bdhq; position: relative; }
.bdh-rail:before { content: ""; position: absolute; left: 17px; top: 10px; bottom: 10px; width: 2px; background: var(--hair-2); }
.bdh-rail li { position: relative; margin: 0 0 18px; padding: 2px 0 0 58px; color: var(--text-2); counter-increment: bdhq; }
.bdh-rail li:before { content: counter(bdhq); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-ink); border: 2px solid var(--accent); color: var(--accent); font: 700 15px/32px var(--head); text-align: center; }
.bdh-rail li:last-child { margin-bottom: 0; }
.bdh-rail strong { display: block; margin-bottom: 4px; font-family: var(--head); font-size: 18px; }

/* Six layers: cards in a grid */
.bdh-layers { list-style: none; margin: 6px 0 26px; padding: 0; display: grid; grid-template-columns: 1fr; grid-gap: 14px; }
.bdh-layers li { margin: 0; padding: 18px 20px 20px; background: var(--surface); border: 1px solid var(--hair); border-left: 3px solid var(--accent); border-radius: 4px 14px 14px 4px; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.bdh-layers strong { display: block; margin-bottom: 6px; font-family: var(--head); font-size: 17px; }

/* App steps: boxed numbered flow */
.bdh-flow { list-style: none; margin: 6px 0 28px; padding: 0; counter-reset: bdhs; }
.bdh-flow li { position: relative; margin: 0 0 12px; padding: 16px 20px 16px 64px; background: var(--surface); border: 1px solid var(--hair); border-radius: 12px; color: var(--text-2); counter-increment: bdhs; }
.bdh-flow li:before { content: counter(bdhs); position: absolute; left: 18px; top: 15px; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font: 700 15px/30px var(--head); text-align: center; }
.bdh-flow strong { font-family: var(--head); }

/* Phone pictures: a pair side by side, one alone */
.bdh-pair { margin: 8px 0 32px; text-align: center; }
.bdh-shot { margin: 0 auto 28px; max-width: 280px; text-align: center; }
.bdh-shot img { display: block; width: 100%; height: auto; margin: 0 auto; border-radius: 22px; }
.bdh-shot figcaption { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.bdh-solo { margin: 32px auto 12px; }

/* Limits and the close */
.bdh-limits { padding: 26px 24px 12px; background: var(--surface); border: 1px solid var(--hair); border-top: 3px solid var(--accent); border-radius: 16px; }
.bdh-limits .bdh-h2 { font-size: 22px; }
.bdh-list { list-style: none; margin: 4px 0 14px; padding: 0; }
.bdh-list li { position: relative; margin: 0 0 14px; padding-left: 28px; color: var(--text-2); }
.bdh-list li:before { content: ""; position: absolute; left: 3px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.bdh-end { margin: 40px 0 0; }
.bdh-end .btn { margin: 0 18px 12px 0; vertical-align: middle; }
.page-baadhis .bdh-end a:not(.btn) { display: inline-block; margin-bottom: 12px; vertical-align: middle; }

@media (min-width: 700px) {
  .bdh-layers { grid-template-columns: 1fr 1fr; }
  .bdh-pair { font-size: 0; }
  .bdh-pair .bdh-shot { display: inline-block; width: 48%; max-width: 280px; margin: 0 1% 28px; vertical-align: top; font-size: 14px; }
}
@media (min-width: 900px) {
  .page-baadhis main > .wrap:first-child { padding-top: 64px; }
  .bdh-hero h1 { font-size: 44px; }
  .bdh-lead { font-size: 20px; }
  .bdh-sec { padding-top: 56px; }
  .bdh-h2 { font-size: 28px; }
  .bdh-limits .bdh-h2 { font-size: 24px; }
}
