@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/fonts/cormorant-garamond/cormorant-garamond-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("./assets/fonts/montserrat/montserrat-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("./assets/fonts/montserrat/montserrat-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf8f6;
  --brand-brown: #807066;
  --ink: #635349;
  --taupe: #ac9884;
}

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

html {
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--paper);
  background: var(--ink);
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 100rem;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 5rem);
}

.brand {
  justify-self: center;
  max-width: 100%;
  /* Padding alone exceeds one quarter of the rendered logo's height. */
  margin-top: clamp(1.5rem, 5.5svh, 4.5rem);
  padding: 1.5rem;
}

.brand__logo {
  display: block;
  width: 15.5rem;
  max-width: 100%;
  height: auto;
}

.introduction {
  align-self: center;
  text-align: center;
  padding-block: 4.5rem 6rem;
}

h1 {
  margin: 0;
  color: var(--brand-brown);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4.5rem, 8.5vw, 8rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.introduction__copy {
  max-width: 31.5rem;
  margin: 1.75rem auto 0;
  font-size: 1rem;
  line-height: 1.9;
  text-wrap: pretty;
}

.introduction__launch {
  margin: 3rem 0 0;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.19em;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  padding-block: 1.625rem 2rem;
  border-top: 1px solid rgb(172 152 132 / 38%);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer p {
  margin: 0;
}

.footer__contact p {
  font-weight: 500;
}

.footer a,
.footer__email {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  overflow-wrap: anywhere;
}

.footer a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}

.footer__copyright {
  padding-bottom: 0.6875rem;
  font-size: 0.8125rem;
}

.footer small {
  font-size: inherit;
}

@media (max-width: 42rem) {
  .brand {
    margin-top: clamp(1.5rem, 4svh, 3rem);
    padding: 1.25rem;
  }

  .brand__logo {
    width: 12.5rem;
  }

  .introduction {
    padding-block: 2.5rem 3rem;
  }

  h1 {
    font-size: clamp(3.5rem, 13.5vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.025em;
  }

  h1 span {
    display: block;
  }

  .introduction__copy {
    max-width: 23rem;
    margin-top: 1.75rem;
    line-height: 1.85;
  }

  .introduction__launch {
    margin-top: 2.5rem;
    letter-spacing: 0.14em;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-block: 1.5rem;
    text-align: center;
  }

  .footer__copyright {
    padding-bottom: 0;
  }
}

@media (max-width: 42rem) and (max-height: 40rem) {
  .brand {
    margin-top: 0.5rem;
    padding: 1rem;
  }

  .brand__logo {
    width: 11rem;
  }

  .introduction {
    padding-block: 1.25rem 1.75rem;
  }

  h1 {
    font-size: clamp(3.125rem, 12.5vw, 4.5rem);
  }

  .introduction__copy {
    margin-top: 1.25rem;
  }

  .introduction__launch {
    margin-top: 1.75rem;
  }

  .footer {
    gap: 0.5rem;
    padding-block: 1rem;
  }
}

@media (max-height: 38rem) and (min-width: 42.01rem) {
  .brand {
    margin-top: 0.5rem;
    padding: 1.25rem;
  }

  .brand__logo {
    width: 12.5rem;
  }

  .introduction {
    padding-block: 2rem 2.5rem;
  }

  .introduction__launch {
    margin-top: 2rem;
  }
}
