/* mācron — macron.tech. Flattened from the Modernist design system:
   flat, architectural, Archivo throughout, one red accent, 2px rules. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+2192, U+FEFF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F;
}

:root {
  --color-bg: #f3f2f2;
  --color-text: #201e1d;
  --color-accent: #ec3013;
  --color-accent-600: #dd2b0f;
  --color-accent-700: #ae1800;
  --color-neutral-200: #eae7e7;
  --color-neutral-300: #d7d3d3;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);
  --font: "Archivo", system-ui, sans-serif;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 28px;
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
}

p {
  margin: 0;
}

a {
  color: var(--color-accent-700);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

::selection {
  background: color-mix(in srgb, var(--color-accent) 30%, transparent);
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

.rule {
  height: 2px;
  border: 0;
  margin: 0;
  background: var(--color-divider);
}

.kicker {
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-700);
}

/* — masthead — */

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding-top: 56px;
  padding-bottom: 20px;
}

.brand {
  font-weight: 800;
  font-size: 26px;
  line-height: 28px;
  letter-spacing: -0.02em;
  margin-left: -0.03em;
}

.brand-kicker {
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-neutral-700);
  margin-top: 8px;
}

.masthead-mail {
  font-weight: 800;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  padding-bottom: 4px;
}

.masthead-mail:hover {
  color: var(--color-accent);
}

/* — hero — */

.hero {
  padding: 72px 0 56px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-left: -0.058em;
}

.hero h1 span {
  display: block;
}

.lede {
  font-size: 18px;
  line-height: 30px;
  max-width: 46ch;
  margin-top: 32px;
  color: var(--color-neutral-800);
}

/* — what we do — */

.what {
  padding: 56px 0 8px;
}

.what > .kicker {
  margin-bottom: 40px;
}

.row {
  display: grid;
  grid-template-columns: minmax(56px, 88px) minmax(0, 300px) minmax(0, 1fr);
  gap: 20px clamp(24px, 4vw, 64px);
  align-items: baseline;
  padding: 36px 0;
}

.row:first-of-type {
  padding-top: 0;
}

.row + .row {
  border-top: 2px solid var(--color-divider);
}

.row-num {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 15px;
  line-height: 28px;
  font-feature-settings: "tnum" 1;
}

.row-num::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  flex: none;
}

.row h2 {
  font-size: 26px;
  line-height: 30px;
  letter-spacing: -0.02em;
}

.row p {
  max-width: 52ch;
  color: var(--color-neutral-800);
}

/* — where we work — */

.place {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px clamp(24px, 5vw, 80px);
  align-items: end;
  padding: 56px 0 72px;
}

figure {
  margin: 0;
}

.muted img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.05);
}

figcaption {
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0.04em;
  color: var(--color-neutral-700);
  margin-top: 12px;
}

.place h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-top: 16px;
}

.place p {
  max-width: 40ch;
  margin-top: 20px;
  color: var(--color-neutral-800);
}
.place p.kicker {
  color: var(--color-accent-700);
}

@media (min-width: 720px) {
  .place > div {
      margin-bottom: 2rem;
  }
}
/* — say hello — */

.cta {
  background: var(--color-accent);
  color: var(--color-bg);
}

.cta .shell {
  padding-block: 72px;
}

.cta h3 {
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-left: -0.058em;
}

.cta h3 span {
  display: block;
}

.cta :focus-visible {
  outline-color: var(--color-bg);
}

.btn {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  padding: 14px 20px;
  margin-top: 40px;
  background: var(--color-bg);
  color: var(--color-text);
  text-decoration: none;
}

.btn:hover {
  background: var(--color-neutral-200);
  color: var(--color-accent-600);
}

.btn:active {
  background: var(--color-neutral-300);
}

/* — footer — */

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: space-between;
  padding: 32px 0 56px;
  font-size: 13px;
  line-height: 20px;
  color: var(--color-neutral-700);
}

/* — narrow screens — */

@media (max-width: 720px) {
  .masthead {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
    padding-top: 40px;
  }

  .row,
  .place {
    grid-template-columns: 1fr;
  }

  .row {
    gap: 10px;
  }

  .place {
    align-items: start;
  }
}
