/* Cormorant Garamond by Christian Thalmann, Catharsis Fonts.
   Licensed under the SIL Open Font License 1.1. See fonts/OFL.txt. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}

/* Parchment and Grove in light and dark mode alike. */
:root {
  color-scheme: only light;
  --parchment: #F2E9D8;
  --grove: #394431;
}

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

html {
  background: var(--parchment);
  color: var(--grove);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* The page fills the screen. The wordmark centers in the space above the email. */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 24px 40px;
  background: var(--parchment);
  color: var(--grove);
  font-family: "Cormorant Garamond", Garamond, Georgia, serif;
  text-align: center;
}

main {
  flex: 1 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* The wordmark. 620px on desktop, 84 percent of the screen on phones. */
.mark {
  margin: 0;
  line-height: 0;
  width: min(620px, 84vw);
}

.mark img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2428.6 / 826.6;
}

/* The email at the bottom of the page. */
footer {
  padding-top: 32px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* The negative margin cancels the trailing letter space so the address sits centered. */
footer a {
  color: var(--grove);
  text-decoration: none;
  margin-right: -0.2em;
}

footer a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 6px;
}
