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

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

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

:root {
  --orange: #f27620;
  --navy: #223345;
  --gray: #a7a8aa;
  --muted: #5b6470;
  --white: #fff;

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Barlow", system-ui, sans-serif;

  --space: clamp(1.5rem, 5vw, 3rem);
  --measure: 65ch;
}

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

body {
  margin: 0;
  color: var(--navy);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}

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

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

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

/* Layout: hero, about, contact stack on phones; hero and contact sit side by side on wide screens. */
.page {
  display: grid;
  grid-template-areas:
    "hero"
    "about"
    "contact";
}

.page__main {
  display: contents;
}

.hero {
  grid-area: hero;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: var(--space);
  color: var(--white);
  background: var(--navy);
}

.hero__mark {
  width: clamp(3.5rem, 18vw, 6rem);
}

.hero__name {
  color: var(--orange);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 10.5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__tagline {
  max-width: 26rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--orange);
  color: var(--gray);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--white);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

/* Navy label on the orange fill (4.5:1); white on this orange is 2.8:1. */
.button--primary {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.about {
  grid-area: about;
  padding: var(--space);
}

.about > * {
  max-width: var(--measure);
}

.about h2 {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
}

.contact {
  grid-area: contact;
  padding: var(--space);
  border-top: 1px solid var(--gray);
}

.contact__name {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--orange);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 3rem);
  line-height: 1.1;
}

.contact__title {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 1.25rem;
}

.contact__list {
  margin-top: 1.5rem;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact__label {
  min-width: 1.25rem;
  color: var(--muted);
}

.contact__list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.footer {
  padding: 1.25rem var(--space);
  color: var(--gray);
  background: var(--navy);
  font-size: 0.9375rem;
}

@media (min-width: 56rem) {
  .page {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "hero contact"
      "about about";
  }

  .hero {
    min-height: 32rem;
  }

  .contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 0;
  }
}
