@font-face {
  font-family: 'SB Serif Display';
  src: url('../assets/fonts/SBSerifDisplay-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SB Sans Interface';
  src: url('../assets/fonts/SBSansInterface-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SB Sans Interface';
  src: url('../assets/fonts/SBSansInterface-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SB Sans Interface';
  src: url('../assets/fonts/SBSansInterface-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--koroche-paper);
  color: var(--koroche-text);
  font-family: var(--font-text);
  font-weight: var(--type-body-weight);
  font-size: var(--type-body-size);
  line-height: var(--type-body-leading);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---- Type steps ------------------------------------------------------
   The heading system: a block picks a step, never a raw font size. */

.type-display-1,
.type-display-2,
.type-lead {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--font-ui);
}

.type-display-1 {
  font-size: 16cqw;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.type-display-2 {
  font-size: 11.7cqw;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.type-lead {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: normal;
  color: var(--koroche-text-muted);
}

.type-title {
  font-family: var(--font-text);
  font-weight: var(--type-title-weight);
  font-size: var(--type-title-size);
  line-height: var(--type-title-leading);
  color: var(--koroche-text);
}

.type-quote {
  font-family: var(--font-ui);
  font-weight: var(--type-quote-weight);
  font-size: var(--type-quote-size);
  line-height: var(--type-quote-leading);
  color: var(--koroche-ink);
}

.type-body {
  font-family: var(--font-text);
  font-weight: var(--type-body-weight);
  font-size: var(--type-body-size);
  line-height: calc(var(--type-body-leading) * 0.9775);
  color: var(--koroche-text-muted);
}

@media (min-width: 900px) {
  .type-lead { line-height: calc(1.16 * 1.15); }
  .type-body { line-height: calc(var(--type-body-leading) * 0.9775 * 1.15); }
}

.type-action {
  font-family: var(--font-text);
  font-weight: var(--type-action-weight);
  font-size: var(--type-action-size);
  line-height: var(--type-action-leading);
  letter-spacing: var(--type-action-tracking);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Text inside buttons needs its own transform box during the voice change. */
.action [data-copy] {
  display: inline-block;
}
