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

:root {
  --color-text: #1a1a1a;
  --color-text-muted: #555;
  --color-bg: #fff;
  --color-bg-subtle: #f8f9fa;
  --color-accent: #0e7c86;
  --color-accent-hover: #0a5f67;
  --color-accent-light: #e8f5f6;
  --color-accent-dark: #074e54;
  --color-border: #dee2e6;
  --max-width: 42rem;
}

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

body {
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

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

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

.skip-link:focus {
  top: 0;
  color: #fff;
  text-decoration: none;
}

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

header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

header .site-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
  font-size: 1.05rem;
}

header .site-name img {
  height: 48px;
  width: 48px;
}

header .nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  font-size: 0.9rem;
}

header .nav-links a {
  display: inline-block;
  padding: 0.5rem 0.25rem;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

ul,
ol {
  padding-left: 1.5rem;
}

.subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.updated-date {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  display: block;
}

.section {
  margin-bottom: 2rem;
}

.highlight-box {
  background-color: var(--color-bg-subtle);
  border-left: 3px solid var(--color-accent);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 0 4px 4px 0;
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

th {
  font-weight: 600;
  background-color: var(--color-bg-subtle);
}

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

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

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

.error-page {
  text-align: center;
  padding-top: 4rem;
}

.error-page h1 {
  font-size: 3rem;
  color: var(--color-text-muted);
}

/* Landing page: hero */
.hero {
  text-align: center;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--color-border);
}

.hero h1 {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero p {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  line-height: 1.5;
  max-width: 34rem;
  margin: 0 auto;
}

/* Landing page: content sections */
main > section + section {
  padding-top: 2.5rem;
}

main > section + section:not(.cta-section) {
  border-top: 1px solid var(--color-border);
}

.hero + section {
  border-top: none;
}

/* Landing page: numbered steps */
.steps {
  list-style: none;
  padding-left: 0;
  counter-reset: step-counter;
}

.steps li {
  counter-increment: step-counter;
  padding-left: 2.5rem;
  position: relative;
  margin-bottom: 1.5rem;
}

.steps li:last-child {
  margin-bottom: 0;
}

.steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0.15em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background-color: var(--color-accent-light);
  color: var(--color-accent-dark);
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
}

.steps li strong {
  display: inline;
}

/* Landing page: CTA section */
.cta-section {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.cta-section h2 {
  margin-top: 0;
}

.cta-section > p {
  color: var(--color-text-muted);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

.cta-link {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-accent);
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--color-accent);
  border-radius: 6px;
  transition: background-color 0.15s, color 0.15s;
}

.cta-link:hover,
.cta-link:focus {
  background-color: var(--color-accent);
  color: #fff;
  text-decoration: none;
}

.cta-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  header {
    padding: 0.75rem 1rem;
  }

  header nav {
    gap: 0.75rem;
  }

  header .site-name {
    width: 100%;
    font-size: 0.95rem;
  }

  header .site-name img {
    height: 36px;
    width: 36px;
  }

  header .nav-links {
    gap: 0.75rem;
    font-size: 0.85rem;
  }

  main {
    padding: 1.5rem 1rem 3rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .steps li {
    padding-left: 2.25rem;
  }

  .steps li::before {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-link {
    transition: none;
  }
}

@media print {
  header,
  footer,
  .skip-link {
    display: none;
  }

  main {
    padding: 0;
  }

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

  a[href^="#"]::after,
  a[href^="/"]::after {
    content: "";
  }
}
