@font-face {
  font-family: "Fraunces Light";
  src: url("/fonts/Fraunces-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/InstrumentSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/InstrumentSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --ground: #e8dcc8;
  --ink: #2a241c;
  --quiet: #5c5148;
  --faint: #8a7b68;
  --line: #cdbba4;
  --link: #7a5640;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #2a231c;
    --ink: #e4d3b6;
    --quiet: #b5a690;
    --faint: #8a7d70;
    --line: #5a4c40;
    --link: #c4a484;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  max-width: 36rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5rem;
  color: var(--ink);
  background: var(--ground);
  font-family: "Instrument Sans", sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
}

h1 {
  margin: 0 0 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: "Fraunces Light", serif;
  font-weight: 300;
  font-size: 2.35rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h2 {
  margin: 2.1rem 0 0.35rem;
  font-family: "Fraunces Light", serif;
  font-weight: 300;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0.75rem 0 0;
}

a {
  color: var(--link);
}

.kicker {
  margin: 0 0 0.35rem;
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

nav {
  margin-top: 2.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.95rem;
}

nav a {
  margin-right: 1.1rem;
}
