/* =========================================================
   LOCAL FONTS
   ========================================================= */

/* Barlow Condensed — Normal */

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Barlow Condensed — Italic */

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-600-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-800-italic.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-900-italic.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* DM Mono */

@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* =========================================
GLOBAL VARIABLES
========================================= */

:root {
  --ink: #101010;
  --red: #af2819;
  --paper: #fafafa;
  --silver: #bfc2c4;
  --line: rgba(16, 16, 16, 0.18);

  --display: "Barlow Condensed", Impact, sans-serif;
  --mono: "DM Mono", monospace;
}

/* =========================================
GLOBAL RESET
========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* =========================================
ACCESSIBILITY
========================================= */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================
SHARED SECTION LAYOUT
========================================= */

.section {
  padding: 115px 32px;
}

.section-inner {
  max-width: 1400px;
  margin: auto;
}

/* =========================================
SECTION INTRO
========================================= */

.section-kicker {
  color: var(--red);
  font: 700 14px var(--display);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 90px;
  align-items: start;
}

.intro-title {
  font: 900 clamp(50px, 7vw, 100px)/0.78 var(--display);
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 12px 0 0;
}

.intro-copy {
  max-width: 575px;
  font: 500 clamp(19px, 2vw, 27px)/1.25 var(--display);
  margin: 9px 0 29px;
}

/* =========================================
STATS
========================================= */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 68px;
}

.stat {
  padding: 21px 20px 0 0;
  border-right: 1px solid var(--line);
  margin-right: 20px;
}

.stat:last-child {
  border: 0;
}

.stat-number {
  display: block;
  font: 900 58px/0.85 var(--display);
  letter-spacing: -0.035em;
  color: var(--red);
}

.stat-label {
  display: block;
  margin-top: 9px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.09em;
}

/* =========================================
MOBILE GLOBAL LAYOUT
========================================= */

@media (max-width: 760px) {
  .section {
    padding: 78px 20px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .intro-title {
    font-size: 64px;
  }

  .stats {
    margin-top: 45px;
  }

  .stat-number {
    font-size: 42px;
  }
}
