/* Bound’s bundled ABC Diatype package; licensed web faces. */
@font-face {
  font-family: "ABC Diatype";
  src:
    url("/fonts/abc-diatype/ABCDiatype-Light.woff2") format("woff2"),
    url("/fonts/abc-diatype/ABCDiatype-Light.woff") format("woff");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "ABC Diatype";
  src: url("/fonts/abc-diatype/ABCDiatypeRegular.woff2") format("woff2"), url("/fonts/abc-diatype/ABCDiatypeRegular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "ABC Diatype";
  src: url("/fonts/abc-diatype/ABCDinamoDiatypeMedium.woff2") format("woff2"), url("/fonts/abc-diatype/ABCDinamoDiatypeMedium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "ABC Diatype";
  src: url("/fonts/abc-diatype/ABCDinamoDiatypeBold.woff2") format("woff2"), url("/fonts/abc-diatype/ABCDinamoDiatypeBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "ABC Diatype Mono";
  src: url("/fonts/abc-diatype/abc-diatype-mono-regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --font-diatype: "ABC Diatype", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-diatype-mono: "ABC Diatype Mono", "SFMono-Regular", Consolas, monospace;
}

html,
body {
  font-family: var(--font-diatype);
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code,
kbd,
pre,
samp {
  font-family: var(--font-diatype-mono);
}

:root {
  --type-hero-display-size: 3.25rem;
  --type-hero-display-weight: 700;
  --type-hero-display-leading: 1;
  --type-hero-display-tracking: -0.03em;

  --type-section-display-size: 2rem;
  --type-section-display-weight: 700;
  --type-section-display-leading: 1.05;
  --type-section-display-tracking: -0.02em;

  --type-card-heading-size: 1.125rem;
  --type-card-heading-weight: 700;
  --type-card-heading-leading: 1.1;
  --type-card-heading-tracking: -0.01em;

  --type-body-size: 0.875rem;
  --type-body-weight: 400;
  --type-body-leading: 1.5;
  --type-body-tracking: 0;

  --type-label-size: 0.75rem;
  --type-label-weight: 500;
  --type-label-leading: 1.3;
  --type-label-tracking: 0.08em;

  --type-legal-size: 0.75rem;
  --type-legal-weight: 400;
  --type-legal-leading: 1.4;
  --type-legal-tracking: 0.02em;
}

.font-diatype-light {
  font-family: var(--font-diatype);
  font-weight: 300;
}

.font-diatype-regular {
  font-family: var(--font-diatype);
  font-weight: 400;
}

.font-diatype-medium {
  font-family: var(--font-diatype);
  font-weight: 500;
}

.font-diatype-bold {
  font-family: var(--font-diatype);
  font-weight: 700;
}

.font-diatype-mono {
  font-family: var(--font-diatype-mono);
  font-weight: 400;
}

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

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

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

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

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

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

.font-preview-page {
  min-height: 100vh;
  padding: 96px clamp(18px, 5vw, 72px) 72px;
  color: #0e0f0e;
  background: #f8f8f8;
}

.font-preview-page__header {
  width: min(980px, 100%);
  margin: 0 auto 36px;
}

.font-preview-page__header p {
  margin: 0 0 10px;
  color: #0e0f0e;
  text-transform: uppercase;
}

.font-preview-page__header h1,
.font-preview-page__header span {
  display: block;
  margin: 0;
}

.font-preview-page__header span {
  max-width: 680px;
  margin-top: 14px;
  color: #6f6f67;
}

.font-preview-page__checks,
.font-preview-page__specimens {
  width: min(980px, 100%);
  margin: 0 auto;
}

.font-preview-page__checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  margin-bottom: 28px;
}

.font-preview-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #dedcd8;
  border-radius: 8px;
  background: #fff;
}

.font-preview-check strong {
  color: #8a3d12;
}

.font-preview-check[data-loaded="true"] strong {
  color: #21643a;
}

.font-preview-page__specimens {
  display: grid;
  gap: 12px;
}

.font-preview-row {
  overflow: hidden;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid #dedcd8;
  border-radius: 12px;
  background: #fff;
}

.font-preview-row__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 22px;
  color: #6f6f67;
}

.font-preview-row__meta strong {
  color: #0e0f0e;
}

.font-preview-row__display,
.font-preview-row__alphabet,
.font-preview-row__body {
  margin: 0;
}

.font-preview-row__display {
  overflow-wrap: anywhere;
  font-size: clamp(2rem, 6vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.font-preview-row__alphabet {
  margin-top: 20px;
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.font-preview-row__body {
  max-width: 720px;
  margin-top: 16px;
  color: #55544f;
  font-size: 0.875rem;
  line-height: 1.5;
}
