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

@font-face {
  font-family: "DM Sans";
  src: url("./assets/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f5f0;
  --ink: #131a2b;
  --muted: #4d5362;
  --rule: #c4c8ce;
  --blue: #263ebf;
  --deep-blue: #121d48;
  --pale-blue: #e3e8ff;
  --white: #fff;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --page-width: 74rem;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-block-size: 100vh;
  min-block-size: 100svh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem / 1.55 var(--body);
}

::selection {
  color: var(--white);
  background: var(--blue);
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

#main,
#company,
#contact {
  scroll-margin-block-start: 1rem;
}

.page-width {
  width: min(var(--page-width), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: var(--gutter);
  z-index: 1;
  padding: 0.65rem 1rem;
  background: var(--deep-blue);
  color: var(--white);
  transform: translateY(calc(-100% - 1.25rem));
}

.skip-link:focus {
  transform: none;
}

.header-inner,
.navigation,
.wordmark {
  display: flex;
  align-items: center;
}

.header-inner {
  min-height: 5rem;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  flex: 0 1 auto;
  gap: 0.6rem;
  min-height: 2.75rem;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-decoration: none;
}

.wordmark img {
  flex: none;
  display: block;
}

.navigation {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.125rem clamp(0.875rem, 2.8vw, 2.25rem);
  font-size: 0.9375rem;
  font-weight: 650;
}

.navigation a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 2.75rem;
  text-decoration: none;
}

.navigation .nav-contact {
  color: var(--blue);
}

.navigation a:hover,
.wordmark:hover {
  text-decoration: underline;
}

.arrow {
  position: relative;
  display: inline-block;
  flex: none;
  width: 0.8em;
  height: 0.8em;
}

.arrow::before,
.arrow::after {
  position: absolute;
  content: "";
  display: block;
}

.arrow-external::before {
  width: 100%;
  inset-block-start: 50%;
  inset-inline-start: 0;
  border-top: 1.5px solid currentColor;
  transform: rotate(-45deg);
}

.arrow-external::after {
  inset-block-start: 0.08em;
  inset-inline-end: 0.08em;
  width: 53%;
  height: 53%;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

.arrow-down::before {
  height: 86%;
  inset-block-start: 0;
  inset-inline-start: calc(50% - 0.75px);
  border-left: 1.5px solid currentColor;
}

.arrow-down::after {
  inset-block-end: 0.12em;
  inset-inline-start: 50%;
  width: 48%;
  height: 48%;
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 5.4vw, 4.875rem) clamp(3.5rem, 6vw, 5.75rem);
}

.hero h1,
.company h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
}

.hero h1 {
  max-width: max-content;
  font-size: 6rem;
  line-height: 0.87;
  letter-spacing: -0.022em;
  overflow-wrap: anywhere;
}

.hero h1 span {
  display: block;
  color: var(--blue);
}

.hero p {
  max-width: 28ch;
  margin: clamp(1.25rem, 2.6vw, 2rem) 0 0;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.65vw, 1.375rem);
  line-height: 1.45;
  text-wrap: pretty;
}

.hero-art {
  overflow: hidden;
  aspect-ratio: 33 / 25;
  background: var(--blue);
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: 0.7rem;
  padding-block: clamp(2rem, 4vw, 3.5rem) clamp(2.875rem, 6vw, 5.5rem);
  border-top: 1px solid var(--ink);
}

.company h2 {
  font-size: clamp(2.25rem, 3.9vw, 3.5rem);
  line-height: 0.99;
  letter-spacing: -0.012em;
}

.facts {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.375rem, 3vw, 3rem);
  margin: 0;
}

.fact {
  padding-block: 0.9rem 1rem;
  border-bottom: 1px solid var(--rule);
}

.fact:nth-child(-n+2) {
  padding-top: 0;
}

.fact dt {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.35;
}

.fact dd {
  margin: 0.3rem 0 0;
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.fact-office,
.fact-activity {
  border-bottom: 0;
  padding-bottom: 0;
}

.fact-office dd,
.fact-activity dd {
  font-weight: 500;
}

.registry-link {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 2.75rem;
  color: var(--blue);
  font-size: 0.9375rem;
  font-weight: 650;
  text-decoration-thickness: 1px;
}

.registry-link:hover {
  text-decoration-thickness: 2px;
}

.contact {
  display: grid;
  flex: 1 0 auto;
  align-items: center;
  background: var(--deep-blue);
  color: var(--white);
}

.contact :focus-visible,
.contact:focus-visible {
  outline-color: var(--pale-blue);
  outline-offset: -2px;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr);
  align-items: center;
  gap: 0.55rem clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.25rem, 5vw, 4.5rem);
}

.contact h2 {
  margin: 0;
  color: var(--pale-blue);
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.35;
}

.email-link {
  justify-self: start;
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.12em 0.12em 0.18em 0;
  font-size: clamp(1.875rem, 4.6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.034em;
  text-underline-offset: 0.16em;
  text-decoration: underline 1px var(--pale-blue);
  overflow-wrap: anywhere;
}

.email-link .arrow {
  margin-inline-start: 0.45em;
  vertical-align: 0.11em;
  font-size: 0.56em;
  color: var(--pale-blue);
}

.email-link:hover {
  text-decoration-thickness: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .arrow {
    transition: transform 180ms ease-out;
  }

  .nav-contact:hover .arrow {
    transform: translateY(2px);
  }

  :is(.email-link, .registry-link):hover .arrow {
    transform: translate(2px, -2px);
  }
}

@media (max-width: 65rem) {
  .hero h1 {
    font-size: 4.75rem;
  }
}

@media (max-width: 47rem) {
  .header-inner {
    min-height: 4.125rem;
  }

  .hero,
  .company,
  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    gap: 1.75rem;
    padding-block: 2.625rem 3.25rem;
  }

  .hero h1 {
    font-size: 4.375rem;
  }

  .hero-art {
    aspect-ratio: 4 / 3;
  }

  .company {
    grid-template-rows: none;
    gap: 1rem;
  }

  .facts {
    grid-column: auto;
    grid-row: auto;
  }

  .fact-office,
  .fact-activity {
    grid-column: 1 / -1;
  }

  .fact-office {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rule);
  }

  .registry-link {
    grid-column: auto;
  }
}

@media (max-width: 22rem) {
  :root {
    --gutter: min(1.25rem, 6.25vw);
  }

  .header-inner {
    gap: 0.875rem;
  }

  .wordmark {
    min-width: 2.75rem;
  }

  .wordmark span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .wordmark img {
    width: 1.75rem;
    height: 1.75rem;
  }

  .navigation {
    column-gap: 1rem;
    font-size: 0.875rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .fact:nth-child(2) {
    padding-top: 0.9rem;
  }
}
