/* MH Trace marketing site
   Background #FDFDFD and navy #01257D are the brand colors Divya specified. */

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2");
}

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

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-display-400-italic.woff2") format("woff2");
}

:root {
  --paper: #fdfdfd;
  --navy: #01257d;
  --ink: #141b2d;
  --ink-soft: #4a5368;
  --gutter: clamp(1.5rem, 5vw, 4.5rem);
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: var(--paper);
  font-size: 0.875rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3.2vw, 2.5rem) var(--gutter);
}

.wordmark {
  color: var(--navy);
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

/* The three bars between MH and TRACE, sized to the capital letters. */
.wordmark__bars {
  height: 0.715em;
  width: auto;
  margin: 0 0.36em 0 0.19em;
  vertical-align: baseline;
  fill: currentColor;
}

.site-nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}

.site-nav a {
  position: relative;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

/* ---------- Two columns with a rule between ---------- */

main {
  display: grid;
  align-items: center;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(2rem, 5.5vw, 6rem);
  width: min(100% - 2 * var(--gutter), 86rem);
  margin-inline: auto;
  padding-block: clamp(2rem, 5vh, 4rem) clamp(2.5rem, 8vh, 6rem);
}

.split__rule {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  width: 1px;
  min-height: min(54vh, 31rem);
  background: var(--navy);
}

.split__left {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

.split__right {
  grid-column: 3;
  grid-row: 1;
  container-type: inline-size;
}

.tagline {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.6vw, 4.5rem);
  font-size: clamp(2.25rem, 10.4cqi, 4.5rem);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: -0.012em;
}

.tagline span {
  display: block;
}

.tagline em {
  font-style: italic;
}

.lede {
  max-width: 25.5em;
  font-size: clamp(1.0625rem, 1.25vw, 1.25rem);
}

.lede p {
  margin: 0 0 1.1em;
  line-height: 1.65;
  text-wrap: pretty;
}

.lede p:last-child {
  margin-bottom: 0;
}

.soon {
  margin: clamp(2rem, 5vh, 3rem) 0 0;
  color: var(--navy);
  font-size: clamp(1.0625rem, 1.55vw, 1.3125rem);
  font-weight: 600;
  letter-spacing: 0.36em;
  line-height: 1.2;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.95em;
  margin-top: clamp(2rem, 5vh, 3rem);
  padding: 1.2em 1.9em 1.2em 2em;
  border: 1px solid var(--navy);
  border-radius: 2px;
  background: var(--navy);
  color: var(--paper);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.button svg {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: square;
  transition: transform 0.25s var(--ease);
}

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

.button:hover svg {
  transform: translateX(4px);
}

/* ---------- Contact page ---------- */

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  line-height: 1.2;
  text-transform: uppercase;
}

.contact-email {
  display: inline-block;
  margin-top: clamp(1.25rem, 3vh, 1.75rem);
  font-size: clamp(1.0625rem, 4.6cqi, 1.375rem);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  overflow-wrap: anywhere;
}

.contact-actions {
  display: block;
}

.contact-actions .button {
  margin-top: clamp(1.5rem, 3.5vh, 2.25rem);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 1rem var(--gutter) clamp(1.25rem, 3vw, 2rem);
  color: var(--ink-soft);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.site-footer p {
  margin: 0;
}

/* ---------- Small screens: one column ---------- */

@media (max-width: 52rem) {
  .site-header {
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }

  .wordmark {
    font-size: 1.125rem;
  }

  main {
    align-items: start;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    padding-block: clamp(2rem, 9vh, 4.5rem) 3rem;
  }

  .split__left,
  .split__right {
    display: contents;
  }

  .split > *,
  .split__left > *,
  .split__right > * {
    grid-column: 1;
    grid-row: auto;
  }

  .soon,
  .eyebrow {
    order: 1;
    margin: 0 0 1.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.3em;
  }

  .tagline {
    order: 2;
    font-size: clamp(1.75rem, 8.3vw, 3.5rem);
  }

  .split__rule {
    order: 3;
    align-self: auto;
    width: 3.5rem;
    height: 1px;
    min-height: 0;
    margin: 2rem 0;
  }

  .lede {
    order: 4;
    max-width: 34rem;
  }

  .button,
  .contact-actions {
    order: 5;
  }

  .contact-email {
    order: 4;
    margin-top: 1.5rem;
    font-size: 1.125rem;
  }

  /* On the contact page the address and button follow the heading directly. */
  .split--contact .split__rule {
    order: 6;
  }

  .split--contact .lede {
    order: 7;
  }
}

/* ---------- Entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes draw {
    from {
      transform: scaleY(0);
    }
    to {
      transform: none;
    }
  }

  @keyframes draw-across {
    from {
      transform: scaleX(0);
    }
    to {
      transform: none;
    }
  }

  .reveal {
    animation: rise 0.8s var(--ease) both;
  }

  .reveal--1 {
    animation-delay: 0.1s;
  }

  .reveal--2 {
    animation-delay: 0.22s;
  }

  .reveal--3 {
    animation-delay: 0.34s;
  }

  .reveal--4 {
    animation-delay: 0.46s;
  }

  .split__rule {
    transform-origin: top;
    animation: draw 1s var(--ease) both;
  }

  @media (max-width: 52rem) {
    .split__rule {
      transform-origin: left;
      animation-name: draw-across;
      animation-delay: 0.2s;
    }
  }
}

/* ---------- Not found ---------- */

.notfound {
  width: min(100% - 2 * var(--gutter), 40rem);
  margin-inline: auto;
  padding-block: 3rem 5rem;
}

.notfound .tagline {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
}

.notfound p {
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
}
