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

:root {
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --border: #d4d4d4;
  --bg: #fafafa;
  --accent: #1a1a1a;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  opacity: 0.6;
}

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0;
  width: 100%;
}

.wordmark {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* Main */
main {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  width: 100%;
  flex: 1;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Footer */
footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
