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

@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --ink: #1e2823;
  --pine: #234e43;
  --muted: #59665e;
  --rule: #d4d9d1;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* { box-sizing: border-box; }

body { margin: 0; }

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

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 7px;
}

.page {
  width: min(100%, 100rem);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 6.5vw, 6.5rem);
  display: flex;
  flex-direction: column;
}

.masthead {
  padding-block: 2.15rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.brand__icon {
  flex: none;
  width: 3rem;
  height: 3rem;
  margin-left: -0.375rem;
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding-block: clamp(5rem, 10vh, 9rem);
}

h1 {
  margin: 0;
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: clamp(4.5rem, 8.9vw, 8.4rem);
  font-weight: 400;
  line-height: 0.99;
  letter-spacing: -0.047em;
}

h1 span { color: var(--pine); }

.hero__copy p {
  margin: 2.1rem 0 0;
  max-width: 30rem;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--muted);
}

.contact {
  width: fit-content;
  max-width: 100%;
  min-height: 3.5rem;
  margin-top: 2.2rem;
  padding: 0.95rem 1.2rem 0.95rem 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 2.6rem;
  border: 1px solid var(--pine);
  border-radius: 0.2rem;
  color: var(--paper);
  background: var(--pine);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.contact:hover {
  background: var(--paper);
  color: var(--pine);
}

.contact svg { flex: none; }

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

.hero__mark img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 28rem;
  opacity: 0.14;
}

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-block: 1.65rem 1.9rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.footer a {
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: transparent;
}

.footer a:hover { text-decoration-color: currentColor; }

@media (max-width: 56rem) {
  .hero { grid-template-columns: 1fr; }
  .hero__mark { display: none; }
  h1 { font-size: clamp(4.15rem, 10vw, 7rem); }
}

@media (max-width: 34rem) {
  .page { padding-inline: 6.5vw; }
  .masthead { padding-block: 1.4rem; }
  .hero { padding-block: 4.5rem 5.5rem; }
  h1 { font-size: clamp(3rem, 12.7vw, 4.4rem); letter-spacing: -0.043em; }
  .hero__copy p { font-size: 1rem; margin-top: 1.75rem; }
  .contact { margin-top: 1.8rem; }
  .footer { flex-direction: column; gap: 0.65rem; padding-block: 1.5rem; }
  .footer span { font-size: 0.8125rem; }
}

@media (prefers-reduced-motion: reduce) {
  .contact { transition: none; }
}
