/* Theme variables */

:root {
  --bs-primary: #2F7F79;
  --bs-primary-rgb: 47, 127, 121;
  --bs-dark: #1F2A44;
  --bs-dark-rgb: 31, 42, 68;
  --bs-body-color: #4A5568;
  --bs-body-color-rgb: 74, 85, 104;
  --bs-heading-color: #1F2A44;
  --bs-body-bg: #FFFFFF;
  --bs-body-bg-rgb: 255, 255, 255;
  --bs-secondary-bg: #F7F5F0;
  --bs-secondary-bg-rgb: 247, 245, 240;
  --bs-border-color: #E2E8F0;
  --bs-border-color-rgb: 226, 232, 240;
  --bs-link-color: #276E69;
  --bs-link-color-rgb: 39, 110, 105;
  --bs-link-hover-color: #1F2A44;
  --bs-link-hover-color-rgb: 31, 42, 68;
  --bs-warning: #C9973F;
  --bs-warning-rgb: 201, 151, 63;
  --bs-body-font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-line-height: 1.6;
  --bs-focus-ring-opacity: 1;
  --bs-focus-ring-color: rgba(47, 127, 121, 1);
  color-scheme: light;
}

/* Primary action variables. White text on teal; hover uses the darkened teal. */
.bw-btn {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: #2F7F79;
  --bs-btn-border-color: #2F7F79;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #276E69;
  --bs-btn-hover-border-color: #276E69;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #276E69;
  --bs-btn-active-border-color: #276E69;
  --bs-btn-disabled-color: #ffffff;
  --bs-btn-disabled-bg: #2F7F79;
  --bs-btn-disabled-border-color: #2F7F79;
  --bs-btn-padding-y: 0.625rem;
  --bs-btn-padding-x: 1.25rem;
  --bs-btn-font-weight: 600;
  --bs-btn-focus-box-shadow: 0 0 0 2px #ffffff, 0 0 0 5px #1F2A44;
}

/* Navy bar. Solid white text, links, and menu icon. */
.bw-navbar {
  --bs-navbar-color: #ffffff;
  --bs-navbar-hover-color: #ffffff;
  --bs-navbar-active-color: #ffffff;
  --bs-navbar-brand-color: #ffffff;
  --bs-navbar-brand-hover-color: #ffffff;
  --bs-navbar-disabled-color: rgba(255, 255, 255, 0.75);
  --bs-navbar-toggler-border-color: rgba(255, 255, 255, 0.9);
  --bs-navbar-toggler-padding-y: 0.625rem;
  --bs-navbar-toggler-padding-x: 0.75rem;
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Footer links are white on navy, not teal. */
.bw-footer {
  --bs-link-color: #ffffff;
  --bs-link-color-rgb: 255, 255, 255;
  --bs-link-hover-color: #ffffff;
  --bs-link-hover-color-rgb: 255, 255, 255;
}

/* Form outlines need 3:1. Decorative rules keep the lighter border from :root. */
.bw-signup,
.bw-draft-note {
  --bs-border-color: #718096;
}

/* Fonts */

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 600;
}

strong,
b {
  font-weight: 600;
}

.bw-eyebrow {
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--bs-primary);
}

/* Layout extras */

.bw-logo {
  width: auto;
  max-width: 100%;
  height: 64px;
}

.bw-logo-footer {
  width: auto;
  max-width: 100%;
  height: 52px;
}

.bw-logo-link {
  text-decoration: none;
}

.bw-field {
  min-height: 44px;
}

.bw-tap {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.bw-signup {
  max-width: 36rem;
}

.bw-nav-link:focus-visible,
.bw-logo-link:focus-visible,
.bw-footer a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

#subscribe {
  scroll-margin-top: 1rem;
}

body {
  overflow-wrap: break-word;
}
