:root {
  color-scheme: light;
  --color-background: #ffffff;
  --color-text: #000000;
  --color-muted: #595959;
  --color-border: #d9d9d9;
  --color-accent: #7a2529;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-background);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  max-width: 680px;
  margin: 0 auto;
  padding: 44px 28px 24px;
  line-height: 1.6;
}

.site-header {
  margin-bottom: 64px;
}

.wordmark {
  color: var(--color-accent);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.6px;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

p {
  max-width: 56ch;
}

.intro > p {
  font-size: 18px;
}

.experience {
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.experience-context {
  margin-top: 8px;
  color: var(--color-muted);
}

.project {
  margin-top: 24px;
}

.project p {
  margin-top: 8px;
}

.contact {
  margin-top: 32px;
}

.contact p {
  margin-top: 8px;
}

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

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

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  font-weight: 600;
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 5px;
  border-radius: 1px;
}

footer {
  margin-top: 56px;
  color: var(--color-muted);
  font-size: 16px;
}

footer a {
  color: inherit;
}

@media (max-width: 420px) {
  body {
    padding: 28px 20px 24px;
  }

  .site-header {
    margin-bottom: 44px;
  }

  h1 {
    font-size: 28px;
  }

  .intro > p {
    font-size: 16px;
  }

  footer {
    margin-top: 40px;
  }
}
