/* Byte2MB 1.2: one flat dark surface, hairlines, mono numbers, one amber accent. */

:root {
  --b2m-paper: #07090d;
  --b2m-surface: #0d1117;
  --b2m-surface-2: #121821;
  --b2m-ink: #e6e8ee;
  --b2m-muted: #8b93a7;
  --b2m-rule: #ffffff14;
  --b2m-rule-strong: #ffffff29;
  --b2m-teal: #5ad1c8;
  --b2m-teal-deep: #5ad1c8;
  --b2m-amber: #f5b43c;
  --b2m-amber-deep: #e0a02a;
  --b2m-amber-ink: #14100a;
  --b2m-amber-text: #f5b43c;
  --b2m-focus: #f5b43c;
  --b2m-danger: #ff9a9a;
  --b2m-code: #0a0e14;
  --b2m-navy: #07090d;
  --b2m-footer: #07090d;
  --b2m-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --b2m-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --b2m-display: Fraunces, Georgia, "Times New Roman", serif;
  --b2m-mono: ui-monospace, "JetBrains Mono", "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --b2m-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --b2m-gap: 128px;
  color-scheme: dark;
}

html[data-theme="light"] {
  --b2m-paper: #f6f4ee;
  --b2m-surface: #ffffff;
  --b2m-surface-2: #efece3;
  --b2m-ink: #14181f;
  --b2m-muted: #4a5365;
  --b2m-rule: #14181f1f;
  --b2m-rule-strong: #14181f40;
  --b2m-teal: #0f6e6b;
  --b2m-teal-deep: #0b5552;
  --b2m-amber-text: #8a5a10;
  --b2m-focus: #0b5552;
  --b2m-danger: #a02c2c;
  --b2m-navy: #14181f;
  --b2m-footer: #f6f4ee;
  color-scheme: light;
}

/* Hero, essay header, footer, pre-footer, covers and the unit board stay dark in both themes. */
html[data-theme="light"] :is(.b2m-hero, .b2m-article-hero, .b2m-footer, .b2m-prefooter, .b2m-board, .b2m-cover) {
  --b2m-paper: #07090d;
  --b2m-surface: #0d1117;
  --b2m-surface-2: #121821;
  --b2m-ink: #e6e8ee;
  --b2m-muted: #8b93a7;
  --b2m-rule: #ffffff14;
  --b2m-rule-strong: #ffffff29;
  --b2m-teal: #5ad1c8;
  --b2m-teal-deep: #5ad1c8;
  --b2m-amber-text: #f5b43c;
  --b2m-focus: #f5b43c;
  --b2m-danger: #ff9a9a;
  --b2m-footer: #07090d;
  color: var(--b2m-ink);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html body {
  margin: 0;
  background: var(--b2m-paper);
  color: var(--b2m-ink);
  font-family: var(--b2m-serif);
  font-size: 1.125rem;
  line-height: 1.7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--b2m-amber) 32%, transparent); }
:focus-visible { outline: 2px solid var(--b2m-focus); outline-offset: 3px; }
a { color: inherit; }

.b2m-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.b2m-wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.b2m-skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--b2m-amber);
  color: var(--b2m-amber-ink);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--b2m-sans);
}
.b2m-skip:focus { top: 0.7rem; }

/* Header */
.wp-block-template-part:has(> .b2m-header) { position: sticky; top: 0; z-index: 40; }
.b2m-header {
  position: relative;
  z-index: 40;
  background: color-mix(in srgb, var(--b2m-paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--b2m-rule);
}
.b2m-header-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.25rem;
  min-height: 64px;
  flex-wrap: wrap;
  padding-block: 0.35rem;
}
.b2m-wordmark {
  color: var(--b2m-ink);
  font-family: var(--b2m-display);
  font-weight: 560;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.b2m-wordmark span { color: var(--b2m-amber-text); }
.b2m-nav-inline { display: none; gap: 0.25rem; margin-left: 1rem; }
.b2m-nav-inline a,
.b2m-nav a {
  color: var(--b2m-muted);
  text-decoration: none;
  font-family: var(--b2m-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  transition: color 150ms ease-out, background-color 150ms ease-out;
}
.b2m-nav-inline a:hover,
.b2m-nav a:hover { color: var(--b2m-ink); }
.b2m-nav-inline a[aria-current="page"],
.b2m-nav a[aria-current="page"] { color: var(--b2m-ink); background: var(--b2m-rule); }
.b2m-nav { flex: 0 0 auto; }
.b2m-nav summary {
  list-style: none;
  cursor: pointer;
  min-height: 40px;
  padding: 0 0.9rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--b2m-rule);
  border-radius: 999px;
  color: var(--b2m-muted);
  font-family: var(--b2m-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: color 150ms ease-out, border-color 150ms ease-out;
}
.b2m-nav summary::-webkit-details-marker { display: none; }
.b2m-nav summary::marker { content: ""; }
.b2m-nav summary:hover,
.b2m-nav details[open] summary { color: var(--b2m-ink); border-color: var(--b2m-rule-strong); }
.b2m-nav-list {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 0.5rem 1rem 1rem;
  /* A raised surface, not the page colour: on a near-black page a shadow alone has no edge. */
  background: var(--b2m-surface-2);
  border-top: 1px solid var(--b2m-rule);
  border-bottom: 1px solid var(--b2m-rule-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.b2m-nav details[open] .b2m-nav-list { display: grid; gap: 0.1rem; }
.b2m-nav a { font-size: 1.0625rem; display: block; padding: 0.6rem 0.75rem; }
.b2m-header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.b2m-theme-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--b2m-rule);
  background: transparent;
  color: var(--b2m-ink);
  cursor: pointer;
}
.b2m-theme-toggle:hover { border-color: var(--b2m-rule-strong); }
.b2m-icon { width: 20px; height: 20px; display: block; }
html[data-theme="dark"] .b2m-icon-moon,
html[data-theme="light"] .b2m-icon-sun,
html:not([data-theme]) .b2m-icon-sun { display: none; }

/* Buttons, pills, tags */
.b2m-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--b2m-amber);
  color: var(--b2m-amber-ink);
  font-family: var(--b2m-sans);
  font-weight: 650;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
}
.b2m-button:hover,
.wp-block-button__link:hover { background: var(--b2m-amber-deep); color: var(--b2m-amber-ink); }
.b2m-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.85rem;
  border: 1px solid var(--b2m-rule-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--b2m-muted);
  font-family: var(--b2m-sans);
  font-weight: 550;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out;
}
.b2m-pill:hover { color: var(--b2m-ink); border-color: var(--b2m-ink); }
.b2m-pill.is-active { background: var(--b2m-ink); color: var(--b2m-paper); border-color: var(--b2m-ink); }
.b2m-pill--solid { background: var(--b2m-amber); color: var(--b2m-amber-ink); border-color: var(--b2m-amber); font-weight: 650; }
.b2m-pill--solid:hover { background: var(--b2m-amber-deep); color: var(--b2m-amber-ink); border-color: var(--b2m-amber-deep); }

.b2m-kicker,
.b2m-mono-label,
.b2m-eyebrow {
  margin: 0;
  font-family: var(--b2m-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--b2m-muted);
}
.b2m-kicker a { color: inherit; text-decoration: none; }
.b2m-mono-label--muted { text-transform: none; letter-spacing: 0.02em; }
.b2m-tag {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--b2m-rule-strong);
  border-radius: 4px;
  font-family: var(--b2m-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--b2m-muted);
  line-height: 1.6;
}
.b2m-mono-date,
.b2m-meta-mono {
  font-family: var(--b2m-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--b2m-muted);
}
.b2m-tag-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0 0 0.6rem; }

.b2m-display,
.b2m-article-title,
.b2m-page-title,
.b2m-archive-title,
.b2m-section-title,
.b2m-card-title,
.b2m-lead-title,
.b2m-row-title {
  font-family: var(--b2m-display);
  font-weight: 540;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
  margin: 0;
}
.b2m-dek {
  margin: 0 0 1rem;
  max-width: 40rem;
  color: var(--b2m-muted);
  font-family: var(--b2m-sans);
  font-size: 1.125rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.b2m-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0.8rem 0 0;
  color: var(--b2m-muted);
  font-family: var(--b2m-sans);
  font-size: 0.9375rem;
}
.b2m-meta a { color: inherit; text-decoration: none; }
.b2m-empty { color: var(--b2m-muted); font-family: var(--b2m-sans); }
.b2m-avatar {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--b2m-surface-2);
  border: 1px solid var(--b2m-rule-strong);
  color: var(--b2m-amber-text);
  font-family: var(--b2m-sans);
  font-size: 0.625rem;
  font-weight: 700;
  flex: none;
}
.b2m-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.8rem 0 0;
  color: var(--b2m-muted);
  font-family: var(--b2m-sans);
  font-size: 0.8125rem;
}
.b2m-byline a { color: inherit; text-decoration: none; }
.b2m-byline a:hover { color: var(--b2m-ink); }

.b2m-main { display: block; }
.b2m-section { margin-top: 72px; }
.b2m-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.b2m-section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-top: 0.4rem; }
.b2m-section-link {
  font-family: var(--b2m-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--b2m-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--b2m-amber);
  padding-bottom: 0.05rem;
  white-space: nowrap;
}

/* Hero */
@keyframes b2m-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.b2m-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 8vw, 104px) 0 0;
  background: var(--b2m-paper);
}
.b2m-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -8%;
  width: min(1100px, 130%);
  height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(245, 180, 60, 0.08), transparent);
  pointer-events: none;
}
.b2m-hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.b2m-eyebrow { margin-bottom: 1.25rem; }
.b2m-hero .b2m-display {
  font-size: clamp(3rem, 6.7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 14ch;
  animation: b2m-rise 400ms ease-out both;
}
.b2m-hero .b2m-display span,
.b2m-hero .b2m-display em { display: block; }
.b2m-hero .b2m-display em {
  font-style: normal;
  background: linear-gradient(90deg, var(--b2m-teal), var(--b2m-amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.b2m-hero .b2m-dek { margin: 1.5rem auto 1.75rem; max-width: 520px; font-size: 1.125rem; }

.b2m-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--b2m-rule);
  font-family: var(--b2m-mono);
  font-size: 0.8125rem;
  color: var(--b2m-muted);
}
.b2m-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.b2m-window-bar i:nth-child(2) { background: #febc2e; }
.b2m-window-bar i:nth-child(3) { background: #28c840; }
.b2m-window-bar span { margin-left: auto; }

.b2m-console {
  width: min(960px, 100%);
  margin: clamp(40px, 6vw, 64px) auto 0;
  text-align: left;
  background: var(--b2m-surface);
  border: 1px solid var(--b2m-rule);
  border-radius: 12px 12px 0 0;
  border-bottom: 0;
  overflow: hidden;
  box-shadow: 0 -20px 80px rgba(245, 180, 60, 0.05);
}
.b2m-console-body { display: grid; grid-template-columns: minmax(0, 1fr); }
.b2m-console-in { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; justify-content: center; }
.b2m-console-label {
  font-family: var(--b2m-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--b2m-muted);
}
.b2m-console-input {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  border-bottom: 1px solid var(--b2m-rule-strong);
  padding-bottom: 0.4rem;
}
.b2m-console-input:focus-within { border-color: var(--b2m-amber); }
.b2m-console-input input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--b2m-mono);
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.b2m-console-input input:focus-visible { outline: 0; }
.b2m-console-input span { font-family: var(--b2m-mono); font-size: 0.9375rem; color: var(--b2m-muted); }
.b2m-console-foot { margin: 0; color: var(--b2m-muted); font-family: var(--b2m-sans); font-size: 0.8125rem; line-height: 1.5; }
.b2m-ladder { list-style: none; margin: 0; padding: 1rem 1.5rem 1.25rem; border-top: 1px solid var(--b2m-rule); display: grid; gap: 0.7rem; }
.b2m-ladder li {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  grid-template-areas: "unit bar dec" "unit bar bin";
  align-items: center;
  column-gap: 0.9rem;
  row-gap: 0;
}
.b2m-ladder strong { grid-area: unit; font-family: var(--b2m-mono); font-size: 0.9375rem; font-weight: 600; color: var(--b2m-muted); }
.b2m-ladder-bar { grid-area: bar; display: block; height: 4px; border-radius: 2px; background: var(--b2m-rule); overflow: hidden; }
.b2m-ladder-bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--b2m-teal);
  transform: scaleX(var(--fill, 0));
  transform-origin: left center;
  transition: transform 600ms ease-out;
}
.b2m-ladder output { font-family: var(--b2m-mono); font-variant-numeric: tabular-nums; }
.b2m-ladder [data-dec] { grid-area: dec; justify-self: end; font-size: 1rem; color: var(--b2m-ink); }
.b2m-ladder small { grid-area: bin; justify-self: end; font-family: var(--b2m-mono); font-size: 0.8125rem; color: var(--b2m-muted); }
.b2m-ladder small output { font-size: inherit; }
.b2m-ladder li.is-best strong { color: var(--b2m-amber-text); }
.b2m-ladder li.is-best .b2m-ladder-bar i { background: var(--b2m-amber); }

/* Unit board (split-flap) */
.b2m-board {
  background: var(--b2m-surface);
  border: 1px solid var(--b2m-rule);
  border-radius: 12px;
  padding: clamp(1rem, 3vw, 2rem);
  color: var(--b2m-ink);
}
.b2m-board-section { margin-top: clamp(56px, 8vw, 96px); }
.b2m-board-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.b2m-board-rows { list-style: none; margin: 0; padding: 0; }
.b2m-board-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 11rem) 2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--b2m-rule);
}
.b2m-board-label {
  font-family: var(--b2m-mono);
  font-size: 0.9375rem;
  letter-spacing: 0.22em;
  color: var(--b2m-muted);
}
.b2m-board-eq { font-family: var(--b2m-mono); color: var(--b2m-muted); }
.b2m-board-val { display: flex; flex-wrap: wrap; gap: 4px; }
.b2m-flap-gap { width: 10px; }
.b2m-flap {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: clamp(20px, 3.4vw, 34px);
  height: clamp(30px, 4.8vw, 48px);
  background: linear-gradient(#141a23 0 49%, #0d1219 51% 100%);
  border: 1px solid var(--b2m-rule);
  border-radius: 4px;
  font-family: var(--b2m-mono);
  font-size: clamp(1.05rem, 2.2vw, 1.65rem);
  font-weight: 600;
  color: #f0e9d8;
  backface-visibility: hidden;
}
.b2m-flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #000000a6; }
@keyframes b2m-flip {
  0% { transform: perspective(300px) rotateX(-90deg); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: perspective(300px) rotateX(0); opacity: 1; }
}
html.b2m-js .b2m-flip-board:not(.is-in) .b2m-flap { opacity: 0; }
.b2m-flip-board.is-in .b2m-flap { animation: b2m-flip 420ms ease-out both; animation-delay: calc(var(--i, 0) * 40ms); }

/* Tool cards */
.b2m-tool-group + .b2m-tool-group { margin-top: 2.5rem; }
.b2m-group-label {
  margin: 0 0 1rem;
  font-family: var(--b2m-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--b2m-muted);
}
.b2m-tool-index { display: grid; gap: 1rem; }
.b2m-tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #ffffff12;
  border: 1px solid color-mix(in srgb, var(--b2m-ink) 7%, transparent);
  border-radius: 16px;
  background: var(--b2m-surface);
  color: inherit;
  text-decoration: none;
  min-height: 100%;
  transition: border-color 150ms ease-out, background-color 150ms ease-out;
}
.b2m-tool-card:hover { border-color: var(--b2m-rule-strong); background: var(--b2m-surface-2); }
.b2m-tool-card h2,
.b2m-tool-card h3 { margin: 0 0 0.35rem; font-family: var(--b2m-sans); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1.3; }
.b2m-tool-card p { margin: 0; color: var(--b2m-muted); font-family: var(--b2m-sans); font-size: 0.9375rem; line-height: 1.5; }
.b2m-tool-card .b2m-kicker { margin-bottom: 0.5rem; }
.b2m-tool-eg { margin-top: 1.25rem; padding-right: 1.5rem; font-family: var(--b2m-mono); font-size: 0.8125rem; color: var(--b2m-teal); line-height: 1.5; }
.b2m-tool-go {
  position: absolute;
  right: 24px;
  bottom: 22px;
  color: var(--b2m-muted);
  transition: transform 150ms ease-out, color 150ms ease-out;
}
.b2m-tool-card:hover .b2m-tool-go { transform: translateX(4px); color: var(--b2m-amber-text); }

/* Essays header, pills, search */
.b2m-essays-head { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.25rem; }
.b2m-archive-title { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.035em; }
.b2m-essays-title .b2m-dek { margin-top: 0.8rem; }
.b2m-essays-title .b2m-kicker { margin-bottom: 0.6rem; }
.b2m-essays-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.b2m-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.b2m-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 260px);
  min-height: 36px;
  border: 1px solid var(--b2m-rule-strong);
  border-radius: 999px;
  background: var(--b2m-surface);
  padding: 0 0.35rem 0 0.9rem;
}
.b2m-search:focus-within { border-color: var(--b2m-amber); }
.b2m-search input[type="search"] {
  flex: 1;
  min-width: 0;
  min-height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--b2m-sans);
  font-size: 0.9375rem;
  color: var(--b2m-ink);
}
.b2m-search input::placeholder { color: var(--b2m-muted); opacity: 1; }
.b2m-kbd {
  font-family: var(--b2m-mono);
  font-size: 0.8125rem;
  color: var(--b2m-muted);
  border: 1px solid var(--b2m-rule-strong);
  border-radius: 6px;
  padding: 0 0.4rem;
  margin-right: 0.2rem;
}
.b2m-search button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--b2m-muted);
  cursor: pointer;
}
.b2m-search button:hover { color: var(--b2m-ink); }
.b2m-404-search { margin-top: 1rem; }

/* Covers */
.b2m-cover {
  position: relative;
  display: block;
  aspect-ratio: 480 / 264;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--b2m-rule);
  background: #090c11;
  color: #f3f0e8;
}
.b2m-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 9, 13, 0.96) 0%, rgba(7, 9, 13, 0.82) 38%, rgba(7, 9, 13, 0.4) 68%, transparent 92%);
}
.b2m-cover-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.b2m-cover-dots { transition: transform 200ms ease-out; }
.b2m-cover-title {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.15rem 1.05rem;
  font-family: var(--b2m-display);
  font-weight: 540;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.b2m-cover-link { display: block; text-decoration: none; }
.b2m-card:hover .b2m-cover-dots,
.b2m-lead:hover .b2m-cover-dots,
.b2m-row:hover .b2m-cover-dots { transform: translateX(-24px); }
.b2m-card:hover .b2m-cover-title,
.b2m-lead:hover .b2m-cover-title { text-decoration: underline; }

/* Essay cards and board */
.b2m-card-grid { display: grid; gap: 40px 32px; }
.b2m-card { min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.b2m-card-body { display: flex; flex-direction: column; }
.b2m-card-title { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.02em; }
.b2m-card-title a,
.b2m-lead-title a,
.b2m-author-name a { color: inherit; text-decoration: none; }
.b2m-card-title a:hover,
.b2m-lead-title a:hover { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.b2m-card-excerpt { margin: 0.7rem 0 0; color: var(--b2m-muted); font-family: var(--b2m-sans); font-size: 1rem; line-height: 1.55; }
.b2m-archive-hero { padding: 2.5rem 0 0.5rem; }
.b2m-archive-list { padding-bottom: 4rem; }

.b2m-board-layout { display: grid; border-top: 1px solid var(--b2m-rule); border-bottom: 1px solid var(--b2m-rule); }
.b2m-lead { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.5rem 0; }
.b2m-lead-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; }
.b2m-stack { display: flex; flex-direction: column; }
.b2m-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 1px solid var(--b2m-rule);
  color: inherit;
  text-decoration: none;
}
.b2m-row:first-child { border-top: 0; }
.b2m-row-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; min-width: 0; }
.b2m-row-title { font-size: 1.125rem; line-height: 1.2; letter-spacing: -0.015em; }
.b2m-row:hover .b2m-row-title { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.b2m-rows { display: flex; flex-direction: column; }
.b2m-cover-thumb .b2m-cover { border-radius: 8px; }

.b2m-crumbs { margin: 0 0 1rem; font-family: var(--b2m-sans); font-size: 0.8125rem; }
.b2m-crumbs ol { display: flex; flex-wrap: wrap; gap: 0.2rem 0; list-style: none; margin: 0; padding: 0; }
.b2m-crumbs li { display: inline-flex; align-items: center; color: var(--b2m-muted); }
.b2m-crumbs li + li::before { content: "›"; margin: 0 0.5rem; color: var(--b2m-muted); }
.b2m-crumbs a { color: var(--b2m-muted); text-decoration: none; }
.b2m-crumbs a:hover { color: var(--b2m-ink); }

.b2m-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; padding: 2.5rem 0 0.5rem; font-family: var(--b2m-sans); }
.b2m-pagination .page-numbers {
  display: inline-flex;
  min-width: 2.5rem;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  border: 1px solid var(--b2m-rule-strong);
  border-radius: 999px;
  text-decoration: none;
  color: var(--b2m-ink);
}
.b2m-pagination .current { background: var(--b2m-ink); color: var(--b2m-paper); border-color: var(--b2m-ink); }

/* Essay page */
.b2m-article { margin: 0 0 4rem; }
.b2m-article-hero { background: var(--b2m-paper); border-bottom: 1px solid var(--b2m-rule); padding: 3rem 0 2.5rem; }
.b2m-article-hero .b2m-wrap { max-width: 1120px; }
.b2m-article-title { font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 22ch; margin-bottom: 1.1rem; }
.b2m-article-hero .b2m-dek { max-width: 46rem; }
.b2m-meta-mono { display: flex; flex-wrap: wrap; gap: 0.25rem 0; margin: 1.25rem 0 0; }
.b2m-meta-mono > * + *::before { content: "·"; margin: 0 0.7rem; color: var(--b2m-muted); }
.b2m-meta-mono a { color: inherit; text-decoration: none; }
.b2m-meta-mono a:hover { color: var(--b2m-ink); }
.b2m-article-hero .b2m-byline { margin-top: 1rem; font-size: 0.9375rem; }

.b2m-reading-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; margin-top: 3rem; justify-content: center; }
.b2m-article-rail { display: none; }
.b2m-article-side { min-width: 0; }
.b2m-toc { font-family: var(--b2m-sans); font-size: 0.8125rem; }
.b2m-toc-title { margin: 0 0 0.6rem; font-family: var(--b2m-mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--b2m-muted); }
.b2m-toc ol { list-style: none; margin: 0; padding: 0; }
.b2m-toc a {
  display: block;
  padding: 0.3rem 0;
  color: var(--b2m-muted);
  text-decoration: none;
  line-height: 1.4;
  transition: color 150ms ease-out;
}
.b2m-toc .is-h3 a { padding-left: 0.9rem; }
.b2m-toc a:hover { color: var(--b2m-ink); }
.b2m-toc a[aria-current="true"] { color: var(--b2m-ink); font-weight: 600; }
.b2m-share { margin-top: 1.75rem; }
.b2m-share-links { display: flex; gap: 0.35rem; margin: 0; }
.b2m-share-links a,
.b2m-share-links button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--b2m-rule);
  border-radius: 50%;
  background: transparent;
  color: var(--b2m-muted);
  cursor: pointer;
}
.b2m-share-links a:hover,
.b2m-share-links button:hover { color: var(--b2m-ink); border-color: var(--b2m-rule-strong); }
.b2m-share-links button.is-done { color: var(--b2m-teal); border-color: var(--b2m-teal); }

.b2m-prose,
.b2m-page-body,
.b2m-tool-copy { font-size: 1.125rem; line-height: 1.75; color: var(--b2m-ink); }
.b2m-reading-main { max-width: 700px; width: 100%; margin-inline: auto; min-width: 0; }
.b2m-prose > *:first-child,
.b2m-page-body > *:first-child { margin-top: 0; }
.b2m-prose p,
.b2m-page-body p,
.b2m-tool-copy p { margin: 0 0 1.2rem; text-wrap: pretty; }
.b2m-prose h2,
.b2m-page-body h2,
.b2m-tool-copy h2 {
  font-family: var(--b2m-display);
  font-weight: 540;
  letter-spacing: -0.03em;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1.12;
  margin: 2.6rem 0 0.8rem;
  scroll-margin-top: 6rem;
}
.b2m-prose h3,
.b2m-page-body h3,
.b2m-tool-copy h3 {
  font-family: var(--b2m-display);
  font-weight: 540;
  letter-spacing: -0.02em;
  font-size: 1.35rem;
  margin: 1.8rem 0 0.5rem;
  scroll-margin-top: 6rem;
}
.b2m-prose a,
.b2m-page-body a,
.b2m-tool-copy a { color: var(--b2m-teal-deep); text-underline-offset: 0.16em; }
.b2m-prose ul,
.b2m-prose ol,
.b2m-page-body ul,
.b2m-page-body ol,
.b2m-tool-copy ul { padding-left: 1.25rem; }
.b2m-prose li,
.b2m-page-body li,
.b2m-tool-copy li { margin: 0.4rem 0; }
.b2m-prose .wp-block-quote,
.b2m-reading-main blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.2rem;
  border-left: 2px solid var(--b2m-amber);
  font-family: var(--b2m-display);
  font-size: 1.5rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.b2m-prose .wp-block-quote p,
.b2m-reading-main blockquote p { margin: 0; }
.b2m-prose code,
.b2m-tool-copy code { font-family: var(--b2m-mono); font-size: 0.9em; background: var(--b2m-surface-2); padding: 0.1em 0.35em; border-radius: 4px; }
.b2m-prose .wp-block-code,
.b2m-reading-main pre,
.b2m-tool-copy pre {
  position: relative;
  margin: 1.8rem 0;
  background-color: var(--b2m-code);
  background-image:
    radial-gradient(circle at 18px 17px, #ff5f57 0 4.5px, transparent 5px),
    radial-gradient(circle at 36px 17px, #febc2e 0 4.5px, transparent 5px),
    radial-gradient(circle at 54px 17px, #28c840 0 4.5px, transparent 5px),
    linear-gradient(var(--b2m-rule), var(--b2m-rule));
  background-repeat: no-repeat;
  background-size: 100% 34px, 100% 34px, 100% 34px, 100% 1px;
  background-position: 0 0, 0 0, 0 0, 0 34px;
  color: #e7ecf2;
  border: 1px solid var(--b2m-rule);
  border-radius: 12px;
  padding: 3.1rem 1.15rem 1.1rem;
  overflow: auto;
  font-family: var(--b2m-mono);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.b2m-prose code:where(pre *) { background: transparent; padding: 0; }
.b2m-prose table,
.b2m-page-body table,
.b2m-tool-copy table,
.b2m-table-wrap table { width: 100%; border-collapse: collapse; font-family: var(--b2m-sans); font-size: 1rem; }
.b2m-prose th,
.b2m-prose td,
.b2m-tool-copy th,
.b2m-tool-copy td,
.b2m-table-wrap th,
.b2m-table-wrap td { text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--b2m-rule); vertical-align: top; }
.b2m-table-wrap td,
.b2m-tool-copy td { font-family: var(--b2m-mono); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.b2m-prose thead th,
.b2m-tool-copy thead th,
.b2m-table-wrap thead th { border-bottom: 1px solid var(--b2m-rule-strong); font-weight: 650; color: var(--b2m-muted); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; }
.b2m-prose .wp-block-table { margin: 0 0 1.6rem; overflow-x: auto; border: 1px solid var(--b2m-rule); border-radius: 12px; padding: 0.25rem 0.75rem; background: var(--b2m-surface); }
.b2m-prose .wp-block-table table { border: 0; }
.b2m-prose .wp-block-table th,
.b2m-prose .wp-block-table td { border: 0; border-bottom: 1px solid var(--b2m-rule); }
.b2m-prose .wp-block-table tbody tr:last-child td { border-bottom: 0; }
.b2m-prose .wp-block-table td { font-family: var(--b2m-mono); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.b2m-prose .wp-block-table thead { border-bottom: 0; }
.b2m-table-wrap { overflow-x: auto; margin: 0 0 1.4rem; border: 1px solid var(--b2m-rule); border-radius: 12px; padding: 0.25rem 0.75rem; background: var(--b2m-surface); }
.b2m-prose figcaption,
.b2m-reading-main figcaption { font-family: var(--b2m-sans); font-size: 0.8125rem; color: var(--b2m-muted); margin-top: 0.6rem; }
.b2m-prose img { border-radius: 12px; }

.b2m-diagram { margin: 2rem 0; }
.b2m-diagram-frame {
  border: 1px solid var(--b2m-rule);
  border-radius: 12px;
  background: var(--b2m-code);
  overflow: hidden;
  padding: 2.6rem 1rem 1rem;
  background-image:
    radial-gradient(circle at 18px 17px, #ff5f57 0 4.5px, transparent 5px),
    radial-gradient(circle at 36px 17px, #febc2e 0 4.5px, transparent 5px),
    radial-gradient(circle at 54px 17px, #28c840 0 4.5px, transparent 5px);
  background-repeat: no-repeat;
}
.b2m-diagram svg { width: 100%; height: auto; display: block; }

.b2m-callout {
  margin: 1.8rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--b2m-rule);
  border-left: 2px solid var(--b2m-teal);
  border-radius: 0 12px 12px 0;
  background: var(--b2m-surface);
}
.b2m-callout--amber { border-left-color: var(--b2m-amber); }
.b2m-callout p:last-child { margin-bottom: 0; }
.b2m-takeaways {
  margin: 2rem 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--b2m-rule);
  border-radius: 12px;
  background: var(--b2m-surface);
}
.b2m-takeaways h3 { margin: 0.3rem 0 0.6rem; }
.b2m-takeaways ul { margin: 0; padding-left: 1.1rem; }

.b2m-article-foot { max-width: 1120px; margin-top: 4.5rem; }
.b2m-author {
  max-width: 700px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.1rem;
  align-items: center;
  border-top: 1px solid var(--b2m-rule);
  border-bottom: 1px solid var(--b2m-rule);
  padding: 1.4rem 0;
}
.b2m-monogram {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--b2m-surface-2);
  border: 1px solid var(--b2m-rule-strong);
  color: var(--b2m-amber-text);
  font-family: var(--b2m-display);
  font-size: 1.35rem;
}
.b2m-author-name { margin: 0.15rem 0; font-family: var(--b2m-display); font-size: 1.35rem; }
.b2m-author-bio { margin: 0 0 0.55rem; color: var(--b2m-muted); font-family: var(--b2m-sans); font-size: 1rem; }
.b2m-essay-signup { margin: 0 auto 4rem; }
.b2m-related .b2m-section-head { margin-top: 0; }

/* Try-it card */
.b2m-try {
  border: 1px solid var(--b2m-rule);
  border-radius: 12px;
  background: var(--b2m-surface);
  padding: 1.25rem;
  font-family: var(--b2m-sans);
}
.b2m-try h3 { margin: 0.4rem 0 0.4rem; font-family: var(--b2m-display); font-weight: 540; font-size: 1.4rem; letter-spacing: -0.02em; line-height: 1.1; }
.b2m-try > p { margin: 0 0 0.9rem; color: var(--b2m-muted); font-size: 0.9375rem; line-height: 1.5; }
.b2m-try .b2m-tool { margin-top: 0.8rem; border: 0; padding: 0; background: transparent; }
.b2m-try > p:last-child { margin: 1rem 0 0; }
.b2m-try--links ul { list-style: none; margin: 0.8rem 0 0; padding: 0; }
.b2m-try--links li { border-top: 1px solid var(--b2m-rule); }
.b2m-try--links a { display: block; padding: 0.55rem 0; color: var(--b2m-ink); text-decoration: none; font-size: 0.9375rem; }
.b2m-try--links a:hover { color: var(--b2m-amber-text); }
.b2m-article-side .b2m-try { max-width: 700px; margin-inline: auto; }

/* Pages and tool pages */
.b2m-page { width: min(760px, calc(100% - 2rem)); margin: 3rem auto 4.5rem; }
.b2m-main--about .b2m-page { width: min(920px, calc(100% - 2rem)); }
.b2m-main--about .b2m-page-body { max-width: 700px; }
.b2m-main--tools .b2m-page,
.b2m-page--tool { width: min(1120px, calc(100% - 2rem)); }
.b2m-page-hero { margin-bottom: 1.5rem; }
.b2m-page-hero .b2m-kicker { margin-bottom: 0.75rem; }
.b2m-page-titlebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.b2m-page-title { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.035em; }
.b2m-page--tool .b2m-page-title { font-size: clamp(2rem, 3.4vw, 2.5rem); }
.b2m-page--about .b2m-page-title { font-size: clamp(3rem, 8vw, 5.5rem); }
.b2m-tool-promise { margin: 0.2rem 0 0; font-family: var(--b2m-sans); font-size: 0.9375rem; color: var(--b2m-muted); }
.b2m-page--tool .b2m-meta { font-family: var(--b2m-mono); font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; }
.b2m-page--tool .b2m-page-body > .b2m-tool-copy { max-width: 760px; margin-top: 3rem; }
.b2m-answer {
  border: 1px solid var(--b2m-rule);
  border-left: 2px solid var(--b2m-amber);
  border-radius: 0 12px 12px 0;
  background: var(--b2m-surface);
  padding: 1rem 1.25rem;
  margin: 1.2rem 0 1.5rem;
  max-width: 760px;
}
.b2m-answer-label { margin: 0 0 0.35rem; font-family: var(--b2m-mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--b2m-amber-text); }
.b2m-answer-text { margin: 0; font-size: 1.125rem; line-height: 1.55; color: var(--b2m-ink); }
.b2m-faq details { border-top: 1px solid var(--b2m-rule); padding: 0.8rem 0; }
.b2m-faq summary { cursor: pointer; font-family: var(--b2m-sans); }
.b2m-faq summary h3 { display: inline; margin: 0; font-family: var(--b2m-sans); font-size: 1.1875rem; font-weight: 650; line-height: 1.35; letter-spacing: 0; }
.b2m-faq summary::marker { color: var(--b2m-teal); }
.b2m-faq details p { margin: 0.5rem 0 0.2rem; }
.b2m-related-tools { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; list-style: none; padding: 0; }

.b2m-not-found { padding: 3rem 0 4rem; }
.b2m-not-found .b2m-display { font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 0.6rem 0 1rem; }
.b2m-inline-links { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; list-style: none; padding: 1rem 0 1.5rem; margin: 0; font-family: var(--b2m-sans); font-weight: 600; }

/* Pre-footer signup band */
.b2m-prefooter { margin-top: var(--b2m-gap); padding-bottom: 64px; background: var(--b2m-paper); }
.b2m-frame {
  position: relative;
  border: 1px solid var(--b2m-rule);
  border-radius: 4px;
  padding: clamp(1.5rem, 6vw, 4.5rem);
  background: var(--b2m-surface);
}
@media (min-width: 960px) {
  .b2m-frame { background: linear-gradient(var(--b2m-rule), var(--b2m-rule)) 72% top / 1px 100% no-repeat, var(--b2m-surface); }
}
.b2m-sunburst { position: absolute; right: clamp(1rem, 4vw, 2.5rem); top: clamp(1rem, 4vw, 2.5rem); color: var(--b2m-amber); opacity: 0.9; }

/* Footer */
.b2m-footer { position: relative; overflow: hidden; margin-top: 0; background: var(--b2m-footer); border-top: 1px solid var(--b2m-rule); padding-top: 4rem; font-family: var(--b2m-sans); }
.b2m-footer-grid { display: grid; gap: 2.25rem 2rem; grid-template-columns: 1fr 1fr; }
.b2m-footer-brand { grid-column: 1 / -1; }
.b2m-footer-tools { grid-column: 1 / -1; order: 10; padding-top: 1.75rem; border-top: 1px solid var(--b2m-rule); }
.b2m-footer .b2m-footer-tools ul { display: block; columns: 2; column-gap: 2rem; }
.b2m-footer .b2m-footer-tools li { break-inside: avoid; padding-bottom: 12px; }
.b2m-footer-dek { color: var(--b2m-muted); max-width: 22rem; font-size: 0.9375rem; line-height: 1.55; margin: 0.9rem 0; }
.b2m-social { display: flex; gap: 0.4rem; margin: 0; }
.b2m-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--b2m-rule); color: var(--b2m-muted); }
.b2m-social a:hover { color: var(--b2m-ink); border-color: var(--b2m-rule-strong); }
.b2m-footer-head { margin: 0 0 0.9rem; font-size: 0.875rem; font-weight: 600; color: var(--b2m-ink); }
.b2m-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.b2m-footer li a { color: var(--b2m-muted); text-decoration: none; font-size: 0.8125rem; }
.b2m-footer li a:hover { color: var(--b2m-ink); }
.b2m-footer li a.b2m-footer-more { color: var(--b2m-ink); font-weight: 600; border-bottom: 1px solid var(--b2m-amber); }
.b2m-footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 3.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--b2m-rule);
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}
.b2m-footer-base p { margin: 0; color: var(--b2m-muted); font-size: 0.8125rem; }
.b2m-footer-mark {
  position: relative;
  height: 15vw;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.b2m-footer-mark span {
  display: block;
  font-family: var(--b2m-display);
  font-weight: 600;
  font-size: 22vw;
  line-height: 0.82;
  letter-spacing: -0.045em;
  white-space: nowrap;
  text-align: center;
  color: #ffffff10;
  background: linear-gradient(100deg, #ffffff10 35%, rgba(245, 180, 60, 0.28) 50%, #ffffff10 65%) 100% 0 / 300% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: b2m-sweep 8s linear infinite;
}
@keyframes b2m-sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }

.b2m-notice { background: var(--b2m-surface-2); color: var(--b2m-ink); text-align: center; padding: 0.7rem 1rem; font-family: var(--b2m-sans); }
.b2m-progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; background: var(--b2m-amber); transform: scaleX(0); transform-origin: 0 0; z-index: 70; pointer-events: none; }

.b2m-comments,
.comment-respond { max-width: 700px; margin: 2.5rem auto 0; font-family: var(--b2m-sans); }
.b2m-comments .comments-title,
.comment-reply-title { font-family: var(--b2m-display); font-size: 1.6rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { border-top: 1px solid var(--b2m-rule); padding: 1rem 0; }
.b2m-comment-form input[type="text"],
.b2m-comment-form input[type="email"],
.b2m-comment-form input[type="url"],
.b2m-comment-form textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  border: 1px solid var(--b2m-rule-strong);
  border-radius: 8px;
  background: var(--b2m-surface);
  color: var(--b2m-ink);
  padding: 0.7rem 0.8rem;
  font-family: var(--b2m-sans);
  font-size: 1rem;
}
.b2m-comment-form textarea { min-height: 140px; }
.b2m-comment-form label { display: block; margin-bottom: 0.3rem; font-size: 0.9375rem; color: var(--b2m-muted); }
.b2m-comment-form .submit { margin-top: 0.6rem; min-height: 44px; border: 0; border-radius: 999px; background: var(--b2m-amber); color: var(--b2m-amber-ink); padding: 0 1.25rem; font-weight: 600; cursor: pointer; }

/* Scroll reveal: only hidden when JS is running and motion is allowed */
html.b2m-js .b2m-reveal { opacity: 0; transform: translateY(12px); transition: opacity 400ms ease-out, transform 400ms ease-out; }
html.b2m-js .b2m-reveal.is-in { opacity: 1; transform: none; }

@media (min-width: 600px) {
  .b2m-tool-index { grid-template-columns: 1fr 1fr; }
  .b2m-card-grid--2,
  .b2m-card-grid--3 { grid-template-columns: 1fr 1fr; }
  .b2m-footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 720px) {
  .b2m-wrap { width: min(1120px, calc(100% - 3.5rem)); }
  .b2m-section { margin-top: var(--b2m-gap); }
  .b2m-board-section { margin-top: 96px; }
  .b2m-essays-head { flex-direction: row; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
  .b2m-console-body { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .b2m-console-in { padding: 2rem; }
  .b2m-ladder { border-top: 0; border-left: 1px solid var(--b2m-rule); padding: 1.75rem 2rem; }
  .b2m-board-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .b2m-lead { padding: 2rem 2rem 2rem 0; border-right: 1px solid var(--b2m-rule); }
  .b2m-stack { padding-left: 2rem; }
  .b2m-footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); }
  .b2m-footer .b2m-footer-tools ul { columns: 3; }
  .b2m-footer-brand { grid-column: auto; }
}

@media (min-width: 960px) {
  .b2m-nav-inline { display: flex; }
  .b2m-nav { display: none; }
  .b2m-tool-index { grid-template-columns: repeat(3, 1fr); }
  .b2m-card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .b2m-reading-layout {
    grid-template-columns: minmax(170px, 220px) minmax(0, 700px) minmax(240px, 280px);
    gap: 2.5rem;
    width: min(1360px, calc(100% - 3.5rem));
    align-items: start;
  }
  .b2m-article-rail { display: block; position: sticky; top: 6rem; }
  .b2m-article-side { position: sticky; top: 6rem; }
  .b2m-article-side .b2m-try { max-width: none; margin: 0; }
  .b2m-reading-main { margin: 0; }
}

@media (max-width: 599px) {
  .b2m-board-row { grid-template-columns: 1fr; gap: 0.45rem; }
  .b2m-board-eq { display: none; }
  .b2m-row { grid-template-columns: 96px minmax(0, 1fr); }
  .b2m-footer-mark { height: 17vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html.b2m-js .b2m-reveal { opacity: 1; transform: none; }
  .b2m-flap { animation: none !important; opacity: 1 !important; transform: none !important; }
  .b2m-footer-mark span { animation: none; background-position: 0 0; }
  .b2m-cover-dots { transition: none; }
  .b2m-card:hover .b2m-cover-dots,
  .b2m-lead:hover .b2m-cover-dots,
  .b2m-row:hover .b2m-cover-dots { transform: none; }
}

@media print {
  .b2m-header,
  .b2m-footer,
  .b2m-prefooter,
  .b2m-article-rail,
  .b2m-article-side,
  .b2m-progress,
  .b2m-essay-signup,
  .b2m-theme-toggle,
  .b2m-comments { display: none !important; }
  body { background: #fff; color: #000; }
}
