/* Self-hosted fonts (latin subsets, straight from the Google Fonts CDN files
   that used to be fetched at runtime). Keeping the per-weight faces and the
   unicode-range exactly as Google served them means rendering is unchanged;
   font-display:swap keeps text visible while they load, so the footer no
   longer shifts when they arrive. Nothing here reaches the network. */
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/archivo-black-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter ships as a variable font, so one face covers 400/500/600 — verified
   rendering three distinct weights from this single file. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/space-mono-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/space-mono-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bone: #f5f3ee;
  --ink: #131313;
  --lime: #d4ff00;
  --gray: #6b6b66;
  --border: rgba(19, 19, 19, 0.12);

  --display: 'Archivo Black', sans-serif;
  --mono: 'Space Mono', monospace;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  max-width: 22ch;
}

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--ink);
  color: var(--bone);
  padding: 0.95rem 1.75rem;
  border: 2px solid var(--ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

/* Navbar */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  position: sticky;
  top: 0;
  background: var(--bone);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.navbar__mark {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.navbar__cta {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 2px solid var(--lime);
  padding-bottom: 2px;
}

/* Hero */

.hero {
  padding: 5.5rem 1.5rem 4.5rem;
  border-bottom: 1px solid var(--border);
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(3.5rem, 18vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero__tagline {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1rem, 3.5vw, 1.4rem);
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.hero__tagline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 48px;
  height: 4px;
  background: var(--lime);
}

.hero__sub {
  max-width: 32ch;
  font-size: 1.05rem;
  color: var(--gray);
  margin: 1.75rem 0 2.25rem;
}

/* About */

.about {
  padding: 4.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.about__text {
  max-width: 56ch;
  font-size: 1.05rem;
  color: #2c2c2a;
}

.about__pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.about__pillars span {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
}

/* What I do */

.what-i-do {
  padding: 4.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  border: 1px solid var(--border);
  padding: 1.75rem 1.5rem;
  background: #fbfaf7;
}

.card__num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--gray);
  display: block;
  margin-bottom: 1rem;
}

.card__title {
  font-family: var(--display);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.card__text {
  font-size: 0.95rem;
  color: var(--gray);
}

/* Stats */

.stats {
  padding: 4.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 2rem;
  border: 1px solid var(--border);
  background: var(--border);
}

.stat-card {
  background: var(--bone);
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-card__value {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--ink);
}

.stat-card__value::selection {
  background: var(--lime);
}

.stat-card__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

/* Footer */

.footer {
  padding: 3.5rem 1.5rem 2.5rem;
  background: var(--ink);
  color: var(--bone);
}

.footer__mark {
  font-family: var(--display);
  font-size: 1.5rem;
  display: block;
  margin-bottom: 1.5rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.footer__links a {
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 243, 238, 0.25);
  width: fit-content;
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.footer__links a:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.footer__copy {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(245, 243, 238, 0.5);
}

/* Tablet+ */

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (min-width: 900px) {
  .hero,
  .about,
  .what-i-do,
  .stats,
  .footer {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .navbar {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .section-title {
    font-size: 2.5rem;
  }
}
