@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/barlow-condensed-600.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/barlow-condensed-700.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-600.woff2") format("woff2");
}

:root {
  --background: #0b0b0d;
  --surface: #16161a;
  --surface-raised: #221f22;
  --primary: #c8102e;
  --primary-pressed: #9b0c23;
  --on-primary: #f6f3ee;
  --bone: #e7e1d6;
  --on-surface: #f6f3ee;
  --muted: #b7b1a8;
  --line: #2c2a2e;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  --wrap: 1180px;
  --pad: 24px;
}

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

html {
  background: var(--background);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--on-surface);
  font-family: var(--body);
  font-size: 1.2rem;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

h1,
h2,
h3,
.wordmark,
.eyebrow,
.section-bar,
.pills,
.facts dt {
  font-family: var(--display);
}

a {
  color: var(--bone);
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--primary);
  color: var(--on-primary);
  padding: 8px 16px;
  z-index: 2;
}

.skip:focus {
  top: 16px;
}

.wrap {
  width: min(var(--wrap), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.wordmark,
.eyebrow {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  font-weight: 600;
  color: var(--muted);
}

.brand-bar {
  background: var(--background);
}

.brand-bar::after {
  content: "";
  display: block;
  height: 4px;
  background: var(--primary);
}

.brand-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
}

.hero {
  padding: 28px 0 40px;
}

.hero__grid {
  display: grid;
  gap: 28px;
}

.hero__figure {
  margin: 0;
  background: #070708;
}

.hero__figure img {
  width: 100%;
  height: min(78dvh, 760px);
  object-fit: cover;
  object-position: center 40%;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-top: 8px;
}

h1 {
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 12ch;
}

.lede {
  max-width: 38ch;
  color: var(--bone);
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  padding: 16px 24px;
}

.btn:hover {
  background: var(--primary-pressed);
}

.btn:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 3px;
}

.section-bar {
  margin: 0;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 3.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 18px max(24px, calc((100% - var(--wrap)) / 2));
}

.benefit,
.family,
.closer {
  padding: 72px 0;
}

.benefit__grid,
.closer__grid {
  display: grid;
  gap: 32px;
}

.benefit__figure,
.family__figure,
.closer__figure {
  margin: 0;
  background: var(--surface);
}

.benefit__figure img,
.family__figure img,
.closer__figure img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
}

h2 {
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.benefit__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.benefit__copy > p,
.family__names p,
.tile p,
.closer__copy p,
.site-footer p {
  color: var(--muted);
}

.facts {
  margin: 8px 0 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.facts div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.facts div:first-child {
  border-top: 0;
}

.facts dt {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.facts dd {
  margin: 0;
  color: var(--muted);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pills li {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 8px 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.family__names {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.family__names h3 {
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 8px;
}

.tiles {
  padding: 0 0 72px;
}

.tiles__grid {
  display: grid;
  gap: 12px;
}

.tile {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 28px;
  background-color: #111;
  background-size: cover;
  background-position: center;
  position: relative;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 13, 0.92) 0%, rgba(11, 11, 13, 0.15) 55%);
}

.tile > * {
  position: relative;
}

.tile--habit {
  background-image: url("/images/habit.jpg");
}

.tile--training {
  background-image: url("/images/training.jpg");
}

.closer__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  justify-content: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
}

.footer__inner {
  display: grid;
  gap: 10px;
}

.site-footer a {
  width: fit-content;
}

@media (max-width: 959px) {
  h1 {
    font-size: 4.4rem;
  }

  .hero__figure img,
  .benefit__figure img,
  .family__figure img,
  .closer__figure img {
    height: auto;
    max-height: none;
    object-fit: contain;
  }
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: end;
    gap: 48px;
  }

  .benefit__grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 48px;
  }

  .family__names {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 28px;
  }

  .tiles__grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .tile--habit {
    min-height: 460px;
  }

  .tile--training {
    min-height: 460px;
  }

  .closer__grid {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 48px;
  }
}
