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

html {
  scroll-behavior: smooth;
}

body.bp-preview-page {
  margin: 0;
  background: var(--bp-color-paper);
  color: var(--bp-color-graphite);
  font-family: var(--bp-font-sans);
  font-size: var(--bp-font-body);
  line-height: var(--bp-line-body);
}

.bp-skip-link {
  position: fixed;
  top: var(--bp-space-3);
  left: var(--bp-space-3);
  z-index: 1000;
  padding: var(--bp-space-3) var(--bp-space-4);
  border-radius: var(--bp-radius-control);
  background: var(--bp-color-ink);
  color: var(--bp-color-on-dark);
  transform: translateY(-200%);
}

.bp-skip-link:focus {
  transform: translateY(0);
}

.bp-preview-note {
  padding: var(--bp-space-2) var(--bp-gutter-mobile);
  background: var(--bp-color-field);
  border-bottom: var(--bp-border);
  color: var(--bp-color-graphite);
  font-family: var(--bp-font-mono);
  font-size: var(--bp-font-caption);
  text-align: center;
}

.bp-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--bp-motion-surface) var(--bp-ease-standard),
    box-shadow var(--bp-motion-surface) var(--bp-ease-standard);
}

.bp-site-header[data-scrolled="true"] {
  border-color: var(--bp-color-mist);
  box-shadow: var(--bp-shadow-raised);
}

.bp-header-inner,
.bp-footer-inner,
.bp-preview-section {
  width: min(
    calc(100% - (var(--bp-gutter-desktop) * 2)),
    var(--bp-container-wide)
  );
  margin-inline: auto;
}

.bp-header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--bp-space-8);
}

.bp-brand {
  min-height: var(--bp-target-min);
  display: inline-flex;
  align-items: center;
  color: var(--bp-color-ink);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.bp-brand span {
  color: var(--bp-color-blue);
}

.bp-primary-nav {
  justify-self: center;
}

.bp-primary-list {
  display: flex;
  align-items: center;
  gap: var(--bp-space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bp-nav-item {
  position: relative;
}

.bp-nav-pair {
  display: flex;
  align-items: center;
}

.bp-nav-link,
.bp-disclosure {
  color: var(--bp-color-graphite);
}

.bp-nav-link {
  min-height: var(--bp-target-min);
  display: inline-flex;
  align-items: center;
  padding-inline: var(--bp-space-1);
  font-size: var(--bp-font-small);
  font-weight: 500;
  text-decoration: none;
}

.bp-nav-link:hover,
.bp-nav-link[aria-current="page"] {
  color: var(--bp-color-ink);
}

.bp-nav-link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--bp-color-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.bp-disclosure,
.bp-mobile-toggle {
  min-width: var(--bp-target-min);
  min-height: var(--bp-target-min);
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.bp-disclosure svg,
.bp-mobile-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.bp-disclosure svg {
  transition: transform var(--bp-motion-control) var(--bp-ease-standard);
}

.bp-disclosure[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.bp-menu {
  position: absolute;
  top: calc(100% + var(--bp-space-2));
  left: 0;
  min-width: 248px;
  padding: var(--bp-space-2);
  border: var(--bp-border);
  border-radius: var(--bp-radius-surface);
  background: var(--bp-color-paper);
  box-shadow: var(--bp-shadow-raised);
}

.bp-menu[hidden] {
  display: none;
}

.bp-menu-list {
  display: grid;
  gap: var(--bp-space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bp-menu-link {
  display: block;
  padding: var(--bp-space-3) var(--bp-space-4);
  border-radius: var(--bp-radius-control);
  color: var(--bp-color-graphite);
  font-size: var(--bp-font-small);
  font-weight: 500;
  text-decoration: none;
}

.bp-menu-link:hover,
.bp-menu-link:focus-visible {
  background: var(--bp-color-field);
  color: var(--bp-color-ink);
}

.bp-primary-action,
.bp-secondary-action {
  min-height: var(--bp-target-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--bp-space-3) var(--bp-space-4);
  border-radius: var(--bp-radius-control);
  font-size: var(--bp-font-small);
  font-weight: 700;
  text-decoration: none;
  transition:
    transform var(--bp-motion-control) var(--bp-ease-standard),
    background var(--bp-motion-control) var(--bp-ease-standard);
}

.bp-primary-action {
  background: var(--bp-color-ink);
  color: var(--bp-color-on-dark);
}

.bp-primary-action:hover {
  background: var(--bp-color-ink-hover);
  transform: translateY(-1px);
}

.bp-secondary-action {
  border: var(--bp-border);
  background: var(--bp-color-paper);
  color: var(--bp-color-ink);
}

.bp-mobile-toggle {
  display: none;
  color: var(--bp-color-ink);
}

.bp-brand:focus-visible,
.bp-nav-link:focus-visible,
.bp-disclosure:focus-visible,
.bp-menu-link:focus-visible,
.bp-primary-action:focus-visible,
.bp-secondary-action:focus-visible,
.bp-mobile-toggle:focus-visible,
.bp-footer-link:focus-visible {
  outline: 2px solid var(--bp-color-blue);
  outline-offset: 3px;
}

.bp-preview-main {
  min-height: 110vh;
}

.bp-preview-section {
  padding-block: var(--bp-section-space);
}

.bp-preview-section + .bp-preview-section {
  border-top: var(--bp-border);
}

.bp-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: var(--bp-space-16);
}

.bp-preview-eyebrow {
  margin: 0 0 var(--bp-space-4);
  color: var(--bp-color-blue);
  font-family: var(--bp-font-mono);
  font-size: var(--bp-font-caption);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bp-preview-title {
  max-width: 760px;
  margin: 0;
  color: var(--bp-color-ink);
  font-size: var(--bp-font-display-2);
  line-height: var(--bp-line-display-2);
  letter-spacing: -0.05em;
}

.bp-preview-title em {
  color: var(--bp-color-blue);
  font-family: var(--bp-font-serif);
  font-weight: 400;
}

.bp-preview-lede {
  max-width: 620px;
  margin: var(--bp-space-6) 0 0;
  font-size: var(--bp-font-lead);
  line-height: var(--bp-line-lead);
}

.bp-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bp-space-3);
  margin-top: var(--bp-space-8);
}

.bp-evidence-window {
  min-height: 380px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-radius: var(--bp-radius-feature);
  background: var(--bp-color-evidence);
  color: var(--bp-color-on-dark);
  box-shadow: var(--bp-shadow-evidence);
}

.bp-evidence-head,
.bp-evidence-foot {
  display: flex;
  justify-content: space-between;
  gap: var(--bp-space-4);
  padding: var(--bp-space-4) var(--bp-space-6);
  font-family: var(--bp-font-mono);
  font-size: var(--bp-font-caption);
}

.bp-evidence-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.bp-evidence-head span:first-child {
  color: var(--bp-color-on-dark-accent);
}

.bp-evidence-body {
  display: grid;
  align-content: center;
  gap: var(--bp-space-6);
  padding: var(--bp-space-8);
}

.bp-redaction {
  height: 14px;
  border-radius: var(--bp-radius-redaction);
  background: var(--bp-color-on-dark-muted);
  opacity: 0.78;
}

.bp-redaction:nth-child(1) {
  width: 78%;
}

.bp-redaction:nth-child(2) {
  width: 54%;
}

.bp-redaction:nth-child(3) {
  width: 88%;
}

.bp-evidence-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--bp-color-on-dark-muted);
}

.bp-preview-copy {
  max-width: 720px;
}

.bp-preview-copy h2 {
  margin: 0;
  color: var(--bp-color-ink);
  font-size: var(--bp-font-heading-2);
  line-height: var(--bp-line-heading-2);
  letter-spacing: -0.04em;
}

.bp-preview-copy p {
  margin: var(--bp-space-6) 0 0;
}

.bp-site-footer {
  position: relative;
  overflow: hidden;
  padding-block: var(--bp-space-16) var(--bp-space-8);
  background: var(--bp-color-evidence);
  color: var(--bp-color-on-dark-muted);
}

.bp-site-footer::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 132px;
  height: 3px;
  background: var(--bp-color-blue);
  content: "";
}

.bp-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--bp-space-8);
}

.bp-footer-brand p {
  max-width: 280px;
  margin: var(--bp-space-4) 0 0;
  font-size: var(--bp-font-small);
}

.bp-site-footer .bp-brand {
  color: var(--bp-color-on-dark);
}

.bp-footer-heading {
  margin: 0 0 var(--bp-space-4);
  color: var(--bp-color-on-dark);
  font-family: var(--bp-font-mono);
  font-size: var(--bp-font-caption);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bp-footer-list {
  display: grid;
  gap: var(--bp-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bp-footer-link {
  min-width: var(--bp-target-min);
  min-height: var(--bp-target-min);
  display: inline-flex;
  align-items: center;
  color: var(--bp-color-on-dark-muted);
  font-size: var(--bp-font-small);
  text-decoration: none;
}

.bp-footer-link:hover {
  color: var(--bp-color-on-dark);
}

.bp-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--bp-space-4);
  margin-top: var(--bp-space-12);
  padding-top: var(--bp-space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--bp-font-mono);
  font-size: var(--bp-font-caption);
}

@media (max-width: 940px) {
  .bp-header-inner,
  .bp-footer-inner,
  .bp-preview-section {
    width: min(
      calc(100% - (var(--bp-gutter-tablet) * 2)),
      var(--bp-container-wide)
    );
  }

  .bp-header-inner {
    grid-template-columns: 1fr auto;
    gap: var(--bp-space-4);
  }

  .bp-mobile-toggle {
    display: inline-grid;
  }

  .bp-primary-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: none;
    padding-bottom: var(--bp-space-4);
  }

  .bp-site-header[data-mobile-open="true"] .bp-primary-nav {
    display: block;
  }

  .bp-primary-list {
    display: grid;
    gap: 0;
  }

  .bp-nav-item {
    border-top: var(--bp-border);
  }

  .bp-nav-pair {
    justify-content: space-between;
  }

  .bp-nav-link {
    flex: 1;
    min-height: 52px;
  }

  .bp-header-action {
    margin-top: var(--bp-space-3);
    border-top: 0;
  }

  .bp-header-action .bp-primary-action {
    width: 100%;
  }

  .bp-menu {
    position: static;
    min-width: 0;
    margin-bottom: var(--bp-space-3);
    padding: 0 0 0 var(--bp-space-4);
    border: 0;
    border-left: 2px solid var(--bp-color-blue);
    border-radius: 0;
    box-shadow: none;
  }

  .bp-preview-grid {
    grid-template-columns: 1fr;
  }

  .bp-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bp-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .bp-header-inner,
  .bp-footer-inner,
  .bp-preview-section {
    width: calc(100% - (var(--bp-gutter-mobile) * 2));
  }

  .bp-preview-title {
    font-size: var(--bp-font-heading-1);
    line-height: var(--bp-line-heading-1);
  }

  .bp-evidence-window {
    min-height: 310px;
  }

  .bp-footer-grid {
    grid-template-columns: 1fr;
  }

  .bp-footer-brand {
    grid-column: auto;
  }

  .bp-footer-bottom {
    flex-direction: column;
  }
}

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

  .bp-site-header,
  .bp-disclosure svg,
  .bp-primary-action,
  .bp-secondary-action {
    transition: none;
  }
}
