/* Base: tokens, reset, global typography */

:root {
  --bbhm-bg: #ffffff;
  --bbhm-surface: transparent;
  --bbhm-text: #121212;
  --bbhm-muted: #5a5a5a;
  --bbhm-border: #d3d3d3;
  --bbhm-accent: #ff9500;
  --bbhm-accent-soft: #fff3e8;
  --bbhm-content-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bbhm-display-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bbhm-heading: var(--bbhm-display-font);
  --bbhm-body: var(--bbhm-display-font);
  --bbhm-editorial-copy-font: var(--bbhm-content-font);
  --bbhm-ui: var(--bbhm-display-font);
  --bbhm-max: 1080px;
  --bbhm-shell-width: var(--bbhm-wide-width);
  --bbhm-content-width: var(--wp--style--global--content-size, 50rem);
  --bbhm-wide-width: var(--wp--style--global--wide-size, 60rem);
  --bbhm-hero-copy-width: 42rem;
  --bbhm-page-content-width: 56rem;
  --bbhm-text-measure: min(var(--bbhm-content-width), 78ch);
  --bbhm-copy-line-height: 1.6;
  --bbhm-compact-copy-line-height: 20px;
  --bbhm-underline-thickness: 1px;
  --bbhm-space-1: 0.5rem;
  --bbhm-space-2: 0.75rem;
  --bbhm-space-3: 1rem;
  --bbhm-space-4: 1.5rem;
  --bbhm-space-5: 2rem;
  --bbhm-space-6: 3rem;
  --bbhm-space-7: 4rem;
}

* {
  box-sizing: border-box;
  text-decoration-thickness: var(--bbhm-underline-thickness);
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--bbhm-text);
  background: var(--bbhm-bg);
  font-family: var(--bbhm-body);
  line-height: var(--bbhm-copy-line-height);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: var(--bbhm-accent);
  text-decoration-thickness: var(--bbhm-underline-thickness);
  text-underline-offset: 0.12em;
  transition: color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--bbhm-accent);
  text-decoration-color: var(--bbhm-accent);
}

/* Copy-toast: shown when "Copy link" succeeds */
.bbhm-copy-toast {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 99999;
  padding: 0.75rem 1.25rem;
  background: var(--bbhm-text);
  color: var(--bbhm-bg);
  font-family: var(--bbhm-ui);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.bbhm-copy-toast.is-visible {
  transform: translate(-50%, 0);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--bbhm-heading);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

p {
  margin: 0 0 var(--bbhm-space-3);
}

.site-container {
  width: min(var(--bbhm-shell-width), 100% - 48px);
  margin-inline: auto;
}

.entry-content,
.page-entry-content.entry-content,
.single-editorial-content {
  font-family: var(--bbhm-editorial-copy-font);
}

.single-editorial-dek,
.single-editorial-summary p,
.archive-intro,
.archive-main-feature-excerpt,
.archive-subfeature-excerpt,
.home-featured-excerpt,
.story-excerpt,
.author-story-excerpt,
.author-hero-bio,
.hero-subtext {
  font-family: var(--bbhm-editorial-copy-font);
}
