/* BizFrame marketing site. Colours come from bizframe-tokens.css only. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/GeistVF.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  background: var(--bf-page);
  color: var(--bf-ink);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bf-page);
  color: var(--bf-ink);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

img,
svg {
  display: block;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--bf-ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 20px;
  top: 0;
  z-index: 4;
  transform: translateY(-120%);
  min-height: 44px;
  padding: 12px 20px;
  background: var(--bf-page);
  color: var(--bf-ink);
  border: 1px solid var(--bf-line);
}

.skip:focus {
  transform: none;
}

.sheet {
  padding: 20px;
}

.frame {
  position: relative;
  width: 100%;
  max-width: 1344px;
  margin: 0 auto;
  border-top: 1px solid var(--bf-line);
  border-left: 1px solid var(--bf-line);
  border-right: 1px solid var(--bf-line);
}

.frame::before,
.row::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  height: 9px;
  background-image: url("mark.svg"), url("mark.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: left center, right center;
  background-size: 9px 9px, 9px 9px;
  pointer-events: none;
}

.frame::before {
  top: -4px;
}

.row {
  position: relative;
  border-bottom: 1px solid var(--bf-line);
}

.row::after {
  bottom: -4px;
}

.site-header {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 44px;
  color: var(--bf-ink);
  text-decoration: none;
}

.logo {
  width: 40px;
  height: 40px;
  flex: none;
}

.logo-tile {
  fill: var(--bf-forest);
}

.logo-mark {
  fill: none;
  stroke: var(--bf-action);
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  line-height: 1;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--bf-line);
  background: var(--bf-page);
  color: var(--bf-ink);
  font: inherit;
  font-weight: 500;
}

.signin {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--bf-ink);
  font-weight: 500;
  text-decoration: none;
}

.section-head {
  border-bottom: 1px solid var(--bf-line);
}

.index-cell,
.headline-cell,
.lead,
.fine,
.why,
.ledger p,
.approved,
.cell {
  padding: 20px;
}

.num {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 14px;
  font-optical-sizing: auto;
  letter-spacing: 0.16em;
  line-height: 1.6;
  color: var(--bf-muted);
}

.label {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--bf-muted);
}

h1,
h2,
.legal-body h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}

.headline-cell h1 {
  font-size: 40px;
  letter-spacing: -0.035em;
}

.headline-cell h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}

h3 {
  margin: 20px 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.lead {
  font-size: 19px;
  line-height: 1.6;
}

.fine {
  color: var(--bf-muted);
}

.trio + .why {
  border-top: 1px solid var(--bf-line);
}

.reading-lead {
  border-bottom: 1px solid var(--bf-line);
}

.cell h3 {
  margin: 20px 0;
}

.cell p {
  font-size: 16px;
  line-height: 1.6;
}

.trio .cell + .cell,
.ledger p + p,
.quad .cell + .cell {
  border-top: 1px solid var(--bf-line);
}

.is-marked {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
}

.marker {
  display: block;
  width: 12px;
  height: 12px;
  background: var(--bf-action);
  flex: none;
}

.approved {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bf-card);
  border-top: 1px solid var(--bf-line);
}

.primary-action,
.secondary-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 20px;
  color: var(--bf-ink);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.primary-action {
  background: var(--bf-action);
  color: var(--bf-action-ink);
  border-top: 1px solid var(--bf-line);
}

.secondary-action {
  background: var(--bf-page);
  border-top: 1px solid var(--bf-line);
}

.arrow {
  flex: none;
  transition: transform 180ms ease;
}

.primary-action:hover .arrow,
.secondary-action:hover .arrow {
  transform: translateX(4px);
}

.name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.people a,
.footer-mail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 4px;
}

.site-footer {
  display: flex;
  flex-direction: column;
}

.site-footer > * {
  margin: 0;
  padding: 20px;
}

.site-footer > * + * {
  border-top: 1px solid var(--bf-line);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  text-decoration: none;
}

.legal-body {
  padding: 20px;
}

.legal-body .legal-intro {
  margin-top: 32px;
}

.legal-body h1 {
  font-size: 40px;
}

.legal-body h2 {
  margin-top: 40px;
  font-size: 22px;
}

.legal-body p,
.legal-body li,
.legal-body td,
.legal-body th {
  font-family: "Geist", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
}

.legal-body .meta {
  margin-top: 20px;
  color: var(--bf-muted);
}

.legal-body p + p,
.legal-body ul,
.legal-body ol {
  margin-top: 20px;
}

.legal-body li + li {
  margin-top: 20px;
}

.legal-body a {
  text-underline-offset: 3px;
}

.legal-body .steps {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
  counter-reset: step;
}

.legal-body .steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-top: 20px;
  border-top: 1px solid var(--bf-line);
  counter-increment: step;
}

.legal-body .steps li::before {
  content: counter(step);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  font-optical-sizing: auto;
  line-height: 1.05;
}

.legal-body .steps li .step-body {
  min-width: 0;
}

.table-scroll {
  width: 100%;
  margin-top: 20px;
  overflow-x: auto;
}

.legal-body table {
  width: 100%;
  min-width: 640px;
  margin-top: 0;
  border-collapse: collapse;
}

.legal-body th,
.legal-body td {
  border: 1px solid var(--bf-line);
  padding: 20px;
  text-align: left;
  vertical-align: top;
}

.legal-body th {
  background: var(--bf-card);
  font-weight: 500;
  color: var(--bf-ink);
}

@media (min-width: 800px) {
  .sheet {
    padding: 40px 20px;
  }

  .site-header {
    padding: 0 40px;
  }

  .index-cell,
  .headline-cell,
  .lead,
  .fine,
  .why,
  .ledger p,
  .approved,
  .cell {
    padding: 40px;
  }

  .section-head {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .index-cell {
    grid-column: span 3;
    border-right: 1px solid var(--bf-line);
  }

  .headline-cell {
    grid-column: span 9;
    display: flex;
    align-items: flex-end;
  }

  .headline-cell h1 {
    font-size: 64px;
  }

  .headline-cell h2 {
    font-size: 44px;
  }

  .hero-body {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
  }

  .lead {
    grid-column: span 8;
    font-size: 20px;
  }

  .fine {
    grid-column: span 4;
  }

  .trio,
  .quad {
    display: grid;
  }

  .trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trio .cell + .cell,
  .quad .cell:nth-child(2) {
    border-top: 0;
  }

  .trio .cell {
    border-right: 1px solid var(--bf-line);
  }

  .trio .cell:last-child {
    border-right: 0;
  }

  .quad .cell:nth-child(odd) {
    border-right: 1px solid var(--bf-line);
  }

  .quad .cell:nth-child(n + 3) {
    border-top: 1px solid var(--bf-line);
  }

  .primary-action,
  .secondary-action {
    min-height: 72px;
    padding: 20px 40px;
  }

  .site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1.2fr) auto;
    align-items: stretch;
  }

  .site-footer > * + * {
    border-top: 0;
    border-left: 1px solid var(--bf-line);
  }

  .site-footer > * {
    display: flex;
    align-items: center;
    padding: 32px 40px;
  }

  .legal-body {
    padding: 56px 40px 40px;
  }
}

@media (max-width: 799px) {
  .sheet {
    padding: 20px 0;
  }

  .frame::before,
  .row::after {
    left: 0;
    right: 0;
  }

  html.js .site-header {
    flex-wrap: wrap;
  }

  html.js .nav-toggle {
    display: inline-flex;
  }

  html.js .site-nav {
    display: none;
    flex: 1 0 100%;
    order: 3;
    margin-left: -20px;
    margin-right: -20px;
    background: var(--bf-page);
    border-top: 1px solid var(--bf-line);
  }

  html.js .site-nav.is-open {
    display: block;
  }

  html.js .site-nav .signin {
    display: flex;
    min-height: 44px;
    padding: 0 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arrow {
    transition: none;
  }

  .primary-action:hover .arrow,
  .secondary-action:hover .arrow {
    transform: none;
  }
}
