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

:root {
  color: #463e2f;
  background: #f3f0ee;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: 96px 1fr 96px;
  padding-inline: clamp(24px, 3.3vw, 56px);
}

header {
  display: grid;
  place-items: center;
}

header img {
  display: block;
  width: clamp(190px, 16vw, 230px);
  height: auto;
}

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

h1 {
  margin: 0;
  font: 300 clamp(3.5rem, 8vw, 8.5rem)/.95 "Source Serif 4", Georgia, serif;
  letter-spacing: -.035em;
  text-wrap: balance;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
}

a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .65em;
  color: inherit;
  font-size: .75rem;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
}

a:hover { text-decoration: underline; text-underline-offset: 5px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }

@media (max-width: 600px) {
  body { grid-template-rows: 72px 1fr 88px; }
  header img { width: 176px; }
  h1 { font-size: clamp(3rem, 16vw, 5rem); }
}

@media (prefers-reduced-motion: no-preference) {
  h1 { animation: reveal 900ms cubic-bezier(.22, 1, .36, 1) both; }
  footer { animation: reveal 900ms 120ms cubic-bezier(.22, 1, .36, 1) both; }
  @keyframes reveal {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
