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

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

:root {
  --bg: #f6f2ea;
  --ink: #14213d;
  --muted: #5b6478;
  --rule: color-mix(in srgb, var(--ink) 14%, transparent);

  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1424;
    --ink: #f3eee4;
    --muted: #9aa3b6;
  }
}

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

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

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(3rem, 8vh, 6rem);
  min-height: 100vh;
  min-height: 100svh;
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1.25rem, 6vw, 4.5rem);
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
  transition: text-underline-offset 0.2s;
}

a:hover {
  text-underline-offset: 0.3em;
}

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

.wordmark {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  letter-spacing: -0.02em;
  line-height: 1;
}

.wordmark a {
  text-decoration: none;
}

main {
  align-self: center;
  max-width: 38rem;
}

.statement {
  margin: 0 0 1.25em;
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.125rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-wrap: pretty;
}

.statement strong {
  font-weight: 600;
}

.contact {
  margin: 0;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 500;
}

footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

footer p {
  margin: 0;
}

@media (min-width: 768px) {
  .address {
    display: block;
  }
}

@media (prefers-reduced-motion: no-preference) {
  header,
  main,
  footer {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  main {
    animation-delay: 0.1s;
  }

  footer {
    animation-delay: 0.2s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
}
