@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #1a3043;
  --cream: #f9f6ec;
  --rule: #1a3043;
  --muted: #4a5a68;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --max: 1120px;
  --pad: clamp(20px, 4vw, 40px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--navy);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Header */

.header-row {
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: block;
  flex: none;
}

.brand img {
  width: 180px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  padding-top: clamp(40px, 8vw, 104px);
  padding-bottom: clamp(48px, 7vw, 88px);
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.015em;
}

.hero-side p {
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Buttons */

.button {
  display: inline-block;
  padding: 14px 24px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--cream);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.button:hover {
  background: transparent;
  color: var(--navy);
}

.button-ghost {
  background: transparent;
  color: var(--navy);
}

.button-ghost:hover {
  background: var(--navy);
  color: var(--cream);
}

/* Sections */

.block {
  padding-bottom: clamp(48px, 7vw, 88px);
}

.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-left: 1px solid var(--rule);
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid li {
  padding: 28px 28px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.grid h3 {
  font-size: 26px;
  margin-bottom: 12px;
}

.grid.compact h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.grid p {
  color: var(--muted);
  font-size: 16px;
}

.num {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
}

/* Footer */

.footer {
  background: var(--navy);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.footer img {
  width: 120px;
}

/* Small screens */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .grid.three {
    grid-template-columns: 1fr;
  }

  .num {
    margin-bottom: 16px;
  }

}

@media (max-width: 560px) {
  .brand img {
    width: 220px;
  }

  .grid li {
    padding: 24px 20px 26px;
  }

  .actions .button {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
