@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  color-scheme: light;
  --ink: #16211f;
  --ink-soft: #3d4a46;
  --teal: #0f3f3b;
  --gold: #c19a4e;
  --gold-ink: #8a5c14;
  --ivory: #f8f4ec;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  display: grid;
  place-items: center;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

.page {
  width: 100%;
  max-width: 36rem;
  padding-block: clamp(1rem, 3vh, 2rem);
  display: grid;
  justify-items: center;
  gap: clamp(2rem, 6vh, 3.5rem);
  text-align: center;
}

.brand {
  display: grid;
  justify-items: center;
}

.brand-name {
  margin: 0;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand-sub {
  margin: 0.45rem 0 0;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--teal);
}

main {
  display: grid;
  gap: 1.1rem;
  justify-items: center;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lede {
  margin: 0;
  max-width: 32rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.6vw, 1.125rem);
}

.note {
  margin: 0.35rem 0 0;
  max-width: 30rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

footer {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.rule {
  width: 3rem;
  height: 1px;
  background: var(--gold);
}

footer p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--teal);
}

@media (max-width: 22rem) {
  .brand-sub {
    letter-spacing: 0.34em;
  }

  .eyebrow {
    letter-spacing: 0.2em;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
