:root {
  --color-bg: #fbf8f2;
  --color-text: #1f1a14;
  --color-muted: #6b6258;
  --color-accent: #8a3818;
  --color-rule: #e4dccc;
  --max-width: 640px;
}

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

html {
  font-size: 18px;
}

body {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-variation-settings: 'opsz' 14, 'SOFT' 50;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  padding: 4rem 1.5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header,
main,
footer {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ---------- Header ---------- */

header {
  margin-bottom: 4rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-rule);
}

header h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.25rem;
}

header .tagline {
  font-style: italic;
  font-variation-settings: 'opsz' 24;
  color: var(--color-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

nav a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

nav a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

nav a[aria-current="page"] {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ---------- Main ---------- */

main section {
  margin-bottom: 3rem;
}

main section:last-child {
  margin-bottom: 0;
}

main h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-variation-settings: 'opsz' 36;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--color-text);
}

main h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-variation-settings: 'opsz' 24;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

main p {
  margin-bottom: 1rem;
}

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

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness 0.15s ease;
}

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

/* ---------- Resume-specific ---------- */

.contact-line {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-rule);
  font-size: 0.95rem;
  color: var(--color-muted);
}

.contact-line strong {
  color: var(--color-text);
  font-weight: 600;
}

.job {
  margin-bottom: 2rem;
}

.job:last-child {
  margin-bottom: 0;
}

.dates {
  font-style: italic;
  font-variation-settings: 'opsz' 14;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

ul li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

ul li::marker {
  color: var(--color-muted);
}

ul li:last-child {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */

footer {
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-rule);
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  body {
    padding: 2.5rem 1.25rem;
  }
  header {
    margin-bottom: 2.5rem;
  }
  header h1 {
    font-size: 2rem;
  }
  main h2 {
    font-size: 1.3rem;
  }
  main section {
    margin-bottom: 2rem;
  }
  footer {
    margin-top: 3rem;
  }
}
