:root {
  --bm-paper: #faf7f2;
  --bm-inkblue: #1e3a5f;
  --bm-coral: #e06a50;
  --bm-mint: #3fae8c;
  --bm-graphite: #3a3a3a;
  --bm-rule: #c9c0b4;
  --bm-white: #fffefb;
  --bm-shadow: rgba(30, 58, 95, 0.08);
  --bm-font-display: "Source Serif 4", "Times New Roman", serif;
  --bm-font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --bm-sheet-max: 720px;
  --bm-pad: clamp(1.25rem, 4vw, 2.5rem);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--bm-font-body);
  font-size: 1.0625rem;
  color: var(--bm-graphite);
  background-color: var(--bm-paper);
  background-image:
    linear-gradient(90deg, transparent 2.75rem, rgba(224, 106, 80, 0.18) 2.75rem, rgba(224, 106, 80, 0.18) 2.85rem, transparent 2.85rem),
    repeating-linear-gradient(
      transparent,
      transparent 1.75rem,
      var(--bm-rule) 1.75rem,
      var(--bm-rule) calc(1.75rem + 1px)
    );
  background-attachment: fixed;
}

.bm-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--bm-inkblue);
  color: var(--bm-white);
}

.bm-skip:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.bm-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: calc(var(--bm-sheet-max) + 4rem);
  margin: 0 auto;
  padding: 1rem var(--bm-pad) 0.5rem;
}

.bm-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--bm-font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--bm-inkblue);
  text-decoration: none;
}

.bm-brand-mark img {
  width: 1.75rem;
  height: 1.75rem;
}

.bm-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.95rem;
}

.bm-nav a {
  color: var(--bm-inkblue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.bm-nav a:hover,
.bm-nav a[aria-current="page"] {
  border-bottom-color: var(--bm-coral);
  color: var(--bm-coral);
}

.bm-sheet {
  max-width: var(--bm-sheet-max);
  margin: 1rem auto 3rem;
  padding: var(--bm-pad) calc(var(--bm-pad) + 0.5rem);
  background: var(--bm-white);
  border: 1px solid var(--bm-rule);
  box-shadow: 0 12px 40px var(--bm-shadow);
  position: relative;
}

.bm-sheet::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2.35rem;
  width: 1px;
  background: rgba(224, 106, 80, 0.35);
  pointer-events: none;
}

.bm-sheet > * {
  position: relative;
  z-index: 1;
}

.bm-hero {
  min-height: min(72vh, 34rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding-block: 1.5rem 2rem;
}

.bm-hero__brand {
  font-family: var(--bm-font-display);
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--bm-inkblue);
  letter-spacing: -0.02em;
}

.bm-hero__lead {
  font-size: 1.15rem;
  max-width: 34ch;
  line-height: 1.55;
  color: var(--bm-graphite);
}

.bm-cta-row--spaced {
  margin-top: 1.25rem;
}

.bm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 2px;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.bm-btn:hover {
  transform: translateY(-1px);
}

.bm-btn:active {
  transform: translateY(0);
}

.bm-btn--primary {
  background: var(--bm-inkblue);
  color: var(--bm-white);
  border: 1px solid var(--bm-inkblue);
}

.bm-btn--primary:hover {
  background: #162c49;
}

.bm-btn--ghost {
  background: transparent;
  color: var(--bm-inkblue);
  border: 1px solid var(--bm-rule);
}

.bm-btn--ghost:hover {
  border-color: var(--bm-inkblue);
}

.bm-btn--coral {
  background: var(--bm-coral);
  color: var(--bm-white);
  border: 1px solid var(--bm-coral);
}

.bm-btn:disabled,
.bm-btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  transform: none;
}

.bm-section {
  padding-block: 1.5rem;
  border-top: 1px solid var(--bm-rule);
}

.bm-section:first-of-type {
  border-top: none;
}

.bm-section h2 {
  font-family: var(--bm-font-display);
  font-size: 1.45rem;
  color: var(--bm-inkblue);
  margin-bottom: 0.75rem;
}

.bm-section h3 {
  font-family: var(--bm-font-display);
  font-size: 1.15rem;
  color: var(--bm-inkblue);
  margin: 1.25rem 0 0.5rem;
}

.bm-section p + p {
  margin-top: 0.75rem;
}

.bm-section ul,
.bm-section ol {
  margin: 0.75rem 0 0 1.1rem;
}

.bm-section ul {
  list-style: disc;
}

.bm-section ol {
  list-style: decimal;
}

.bm-section li + li {
  margin-top: 0.4rem;
}

.bm-lead {
  font-size: 1.08rem;
  line-height: 1.6;
}

.bm-muted {
  color: #5c5c5c;
  font-size: 0.95rem;
}

.bm-page-title {
  font-family: var(--bm-font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--bm-inkblue);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.bm-page-intro {
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.bm-feature-list {
  display: grid;
  gap: 1.15rem;
  margin-top: 0.5rem;
}

.bm-feature-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem 1rem;
  align-items: start;
  list-style: none;
  padding: 0;
  border-left: none;
}

.bm-feature-list__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-top: 0.15rem;
}

.bm-feature-list strong {
  display: block;
  color: var(--bm-inkblue);
  font-family: var(--bm-font-display);
  margin-bottom: 0.2rem;
}

.bm-figure {
  margin: 1.25rem 0 0;
  overflow: hidden;
  border: 1px solid var(--bm-rule);
}

.bm-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.bm-figure figcaption {
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  color: #6a6a6a;
  background: rgba(250, 247, 242, 0.9);
  border-top: 1px solid var(--bm-rule);
}

.bm-page-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
  margin-bottom: 0.35rem;
}

.bm-page-head__icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-top: 0.15rem;
}

.bm-page-head--compact {
  margin-bottom: 1rem;
  align-items: center;
}

.bm-page-head--compact .bm-muted {
  margin: 0;
}

.bm-icon-inline {
  width: 1.15rem;
  height: 1.15rem;
  display: inline-block;
  vertical-align: -0.2em;
}

.bm-btn .bm-icon-inline {
  width: 1.05rem;
  height: 1.05rem;
}

.bm-ticket-list {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
}

.bm-ticket-row {
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  align-items: start;
  gap: 0.5rem 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--bm-rule);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.bm-ticket-row__icon {
  width: 1.85rem;
  height: 1.85rem;
  margin-top: 0.2rem;
}

.bm-ticket-row:hover .bm-ticket-row__title {
  color: var(--bm-coral);
}

.bm-ticket-row__title {
  font-family: var(--bm-font-display);
  font-size: 1.2rem;
  color: var(--bm-inkblue);
  transition: color 0.2s ease;
}

.bm-ticket-row__meta {
  font-size: 0.9rem;
  color: #5c5c5c;
}

@media (max-width: 560px) {
  .bm-ticket-row {
    grid-template-columns: 2rem 1fr;
  }

  .bm-ticket-row__meta {
    grid-column: 2;
  }
}

.bm-disclaimer {
  margin-top: 2rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--bm-rule);
  border-left: 3px solid var(--bm-inkblue);
  background: rgba(250, 247, 242, 0.85);
  font-size: 0.875rem;
  line-height: 1.5;
  color: #4a4a4a;
}

.bm-footer {
  max-width: calc(var(--bm-sheet-max) + 4rem);
  margin: 0 auto 2rem;
  padding: 0 var(--bm-pad);
  font-size: 0.85rem;
  color: #5c5c5c;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.bm-footer a {
  color: var(--bm-inkblue);
}

.bm-callout {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--bm-rule);
  border-left: 3px solid var(--bm-mint);
  background: rgba(63, 174, 140, 0.06);
  font-size: 0.95rem;
  line-height: 1.5;
}

.bm-callout--warn {
  border-left-color: var(--bm-coral);
  background: rgba(224, 106, 80, 0.06);
}

.bm-callout strong {
  color: var(--bm-inkblue);
  font-family: var(--bm-font-display);
}

.bm-topic-grid {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

.bm-topic-card {
  padding: 0.9rem 0 1rem;
  border-bottom: 1px dashed var(--bm-rule);
}

.bm-topic-card h3 {
  font-family: var(--bm-font-display);
  font-size: 1.1rem;
  color: var(--bm-inkblue);
  margin: 0 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bm-topic-card p {
  margin: 0;
  line-height: 1.55;
  font-size: 0.98rem;
}

.bm-toc {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--bm-rule);
  background: rgba(250, 247, 242, 0.7);
}

.bm-toc strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--bm-inkblue);
  font-family: var(--bm-font-display);
}

.bm-toc ol {
  margin: 0 0 0 1.1rem;
  list-style: decimal;
}

.bm-toc li + li {
  margin-top: 0.25rem;
}

.bm-toc a {
  color: var(--bm-inkblue);
}

.bm-faq details {
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--bm-rule);
}

.bm-faq summary {
  cursor: pointer;
  font-family: var(--bm-font-display);
  color: var(--bm-inkblue);
  font-weight: 600;
  list-style: none;
}

.bm-faq summary::-webkit-details-marker {
  display: none;
}

.bm-faq summary::before {
  content: "+ ";
  color: var(--bm-coral);
}

.bm-faq details[open] summary::before {
  content: "− ";
}

.bm-faq p {
  margin-top: 0.55rem;
  line-height: 1.55;
}

.bm-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
}

.bm-chip {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.8rem;
  border: 1px solid var(--bm-rule);
  color: #5c5c5c;
  background: var(--bm-white);
}

.bm-status {
  padding: 1rem;
  border: 1px dashed var(--bm-rule);
  color: #5c5c5c;
}

.bm-status--error {
  border-color: var(--bm-coral);
  color: var(--bm-coral);
}

@media (max-width: 560px) {
  body {
    background-image:
      linear-gradient(90deg, transparent 1.4rem, rgba(224, 106, 80, 0.18) 1.4rem, rgba(224, 106, 80, 0.18) 1.5rem, transparent 1.5rem),
      repeating-linear-gradient(
        transparent,
        transparent 1.75rem,
        var(--bm-rule) 1.75rem,
        var(--bm-rule) calc(1.75rem + 1px)
      );
  }

  .bm-sheet::before {
    left: 1.15rem;
  }

  .bm-sheet {
    margin-inline: 0.5rem;
  }

  .bm-hero {
    min-height: auto;
  }
}

@keyframes bm-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bm-sheet {
  animation: bm-fade-in 0.45s ease both;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bm-sheet,
  .bm-btn,
  .bm-nav a,
  .bm-ticket-row__title {
    animation: none;
    transition: none;
  }
}
