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

:root {
  --background: #fbfbf9;
  --foreground: #1d1d1b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.52;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #dfdfda;
}

.site-shell {
  width: min(100% - 48px, 1080px);
  margin: 0 auto;
}

main {
  width: min(100%, 640px);
  margin: clamp(48px, 7vw, 78px) auto clamp(76px, 10vw, 108px);
}

h1 {
  margin: 0 0 clamp(46px, 6vw, 68px);
  color: var(--foreground);
  font-size: clamp(3rem, 7vw, 5.25rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}

.introduction,
section {
  font-size: clamp(1.04rem, 1.5vw, 1.16rem);
}

.introduction p,
section p {
  margin: 0 0 1.35em;
}

.introduction p:first-child {
  font-size: clamp(1.22rem, 1.9vw, 1.42rem);
  font-weight: 500;
  line-height: 1.4;
}

section {
  margin-top: clamp(40px, 5vw, 54px);
}

h2 {
  margin: 0 0 0.5em;
  font-size: clamp(1.35rem, 2vw, 1.58rem);
  font-weight: 600;
  line-height: 1.2;
}

.contact-link {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 14px 8px;
  border: 1px solid var(--foreground);
  background: var(--foreground);
  color: var(--background);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.contact-link:hover,
.contact-link:focus-visible {
  background: transparent;
  color: var(--foreground);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 24px;
  border-top: 1px solid #dfdfda;
  color: #4a4a47;
  font-size: 0.82rem;
}

footer p {
  margin: 0;
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .site-shell {
    width: min(100% - 34px, 1080px);
  }

  main {
    margin-top: 42px;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4.25rem);
  }
}

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