:root {
  --bg-top: #fafaf8;
  --bg-bottom: #f1f3ef;
  --text: #101010;
  --muted: #4d4f4d;
  --rule: #d7dbd4;
  --link: #1d3a2a;
  --link-hover: #09160f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.page {
  width: min(700px, 92vw);
  margin: 14vh auto 4rem;
}

h1 {
  margin: 0 0 2.2rem;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1.05rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
}

.lead,
.closing {
  color: var(--text);
}

.lead {
  margin-bottom: 1.5rem;
  font-size: clamp(1.16rem, 2vw, 1.35rem);
}

.closing {
  margin-top: 1.6rem;
}

nav {
  margin-top: 2.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(29, 58, 42, 0.35);
  transition: color 160ms ease, border-color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
  border-color: currentColor;
  outline: none;
}

footer {
  width: min(700px, 92vw);
  margin: 0 auto 1.4rem;
  color: #636662;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .page {
    margin-top: 9vh;
  }
}
