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

:root {
  --bg: #FAFAF8;
  --text: #1A1A1A;
  --text-secondary: #555;
  --accent: #2A6B7C;
  --accent-hover: #1E4F5C;
  --rule: #E0DDD8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --text: #E8E6E1;
    --text-secondary: #9A9790;
    --accent: #5BA8B5;
    --accent-hover: #7DC0CB;
    --rule: #2A2A2A;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

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

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

header {
  margin-bottom: 4rem;
}

.wordmark {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
}

main > section {
  margin-bottom: 3.5rem;
}

h2 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1rem;
}

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

.service {
  margin-bottom: 2rem;
}

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

.service p {
  color: var(--text-secondary);
}

.background {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1.5rem;
  align-items: baseline;
}

.background dt {
  font-weight: 600;
  white-space: nowrap;
}

.background dd {
  color: var(--text-secondary);
}

.email {
  margin-top: 0.5rem;
}

.email a {
  font-weight: 600;
}

footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

footer a:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  body {
    padding: 2.5rem 1.25rem 2rem;
  }

  header {
    margin-bottom: 3rem;
  }

  .wordmark {
    font-size: 1.8rem;
  }

  main > section {
    margin-bottom: 2.5rem;
  }

  .background {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .background dt {
    margin-top: 1rem;
  }

  .background dt:first-child {
    margin-top: 0;
  }

  .background dd {
    margin-top: 0.15rem;
  }
}

@media print {
  body {
    color: #000;
    background: #fff;
    padding: 1cm;
  }

  footer {
    display: none;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
  }
}
