:root {
  --paper: #F6F1E7;
  --ink: #1C1A17;
  --ink-secondary: #6E665B;
  --hairline: #E6DFD1;
  --accent: #C26A3A;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161412;
    --ink: #EDE8DD;
    --ink-secondary: #9A9085;
    --hairline: #2A2520;
    --accent: #D07A4A;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Newsreader', 'Source Serif Pro', 'Charter', 'Iowan Old Style', Georgia, serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 24px 96px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 0.5px solid var(--hairline);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
}

nav .brand {
  font-family: 'Newsreader', 'Source Serif Pro', 'Charter', Georgia, serif;
  font-size: 1.3rem;
  color: var(--ink);
  font-weight: 400;
  text-decoration: none;
  margin-right: auto;
}

nav a:not(.brand) {
  text-decoration: none;
  color: var(--ink-secondary);
  padding: 4px 0;
}

nav a:not(.brand):hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

h1 {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  line-height: 1.2;
}

h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 48px 0 12px;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 1.5px;
}

ul {
  padding-left: 1.25em;
  margin: 0 0 1em;
}

li {
  margin-bottom: 0.3em;
}

hr {
  border: none;
  border-top: 0.5px solid var(--hairline);
  margin: 48px 0;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 32px;
  color: var(--ink);
}

.meta {
  color: var(--ink-secondary);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.faq {
  margin-top: 32px;
}

.faq-item {
  margin-bottom: 40px;
}

.faq-item h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.4;
}

.faq-item p {
  margin: 0;
}

.contact-block {
  margin-top: 64px;
  padding: 32px 0;
  border-top: 0.5px solid var(--hairline);
  border-bottom: 0.5px solid var(--hairline);
}

.contact-block h2 {
  margin-top: 0;
}

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 0.5px solid var(--hairline);
  color: var(--ink-secondary);
  font-size: 0.85rem;
}

footer a {
  color: var(--ink-secondary);
  text-decoration: none;
}

footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

@media (max-width: 480px) {
  .container {
    padding: 24px 20px 80px;
  }

  h1 {
    font-size: 1.65rem;
  }

  h2 {
    font-size: 1.15rem;
    margin: 40px 0 10px;
  }

  nav {
    margin-bottom: 32px;
  }

  nav .brand {
    font-size: 1.2rem;
  }
}
