@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/newsreader-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/newsreader-latin-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/newsreader-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}

:root {
  --paper: #f4ecdc;
  --storm: #181b22;
  --gold: #d6be8c;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
  color-scheme: light;
}

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

html {
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--storm);
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  width: min(40rem, calc(100% - 2.5rem));
  margin-inline: auto;
  padding: 3.5rem 0 4rem;
}

.mark {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 0 1.75rem;
}

h1 {
  margin: 0;
  max-width: 11em;
  color: var(--storm);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.96;
  text-wrap: balance;
}

.tagline {
  margin: 1.2rem 0 0;
  max-width: 22em;
  color: var(--storm);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  text-wrap: balance;
}

.rule {
  width: 3.25rem;
  height: 1px;
  margin: 1.7rem 0 1.35rem;
  border: 0;
  background: var(--gold);
}

.quiet {
  margin: 0;
  max-width: 34rem;
  color: var(--storm);
  font-size: 1.125rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.contact {
  margin: 1.85rem 0 0;
}

.contact a {
  color: var(--storm);
  font-weight: 600;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.contact a:hover {
  color: var(--storm);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--storm);
  outline-offset: 3px;
}

::selection {
  background: var(--storm);
  color: var(--paper);
}

@media (max-width: 640px) {
  main {
    width: min(40rem, calc(100% - 2rem));
    padding-top: 2.75rem;
  }

  .mark {
    width: 4.5rem;
    height: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
