@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f4efe6;
  --ink: #2b261f;
  --muted: #5e5144;
  --rule: #c9bba8;
  --font: "EB Garamond", "Iowan Old Style", Palatino, "Palatino Linotype",
    "Book Antiqua", Georgia, "Times New Roman", serif;
}

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

html {
  color-scheme: light;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4.5rem 1.5rem 2.5rem;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 5.25rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.role {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.rule {
  width: 3.25rem;
  height: 1px;
  margin: 2rem auto;
  background: var(--rule);
}

.tagline {
  margin: 0;
  max-width: 22rem;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
}

footer {
  padding: 1.5rem 1.5rem 2.25rem;
  text-align: center;
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

@media (max-width: 40rem) {
  main {
    padding: 3.5rem 1.25rem 2rem;
  }

  .role {
    letter-spacing: 0.24em;
  }
}

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