:root {
  --accent: #d9480f;
  --text: #16181d;
  --muted: #555a64;
  --bg: #ffffff;
  --surface: #f5f5f4;
  --border: #e2e3e6;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #ff8a4c;
    --text: #eceef1;
    --muted: #a7abb3;
    --bg: #111214;
    --surface: #1b1d20;
    --border: #2c2f34;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 0.75rem;
  background: var(--accent);
  color: var(--bg);
}

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

header,
main,
footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

nav ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

nav a[aria-current="page"] {
  font-weight: 600;
  text-decoration: none;
}

main {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

h1 {
  font-size: 1.875rem;
  line-height: 1.25;
  margin: 1rem 0 0.5rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2rem 0 0.5rem;
}

h3 {
  font-size: 1.0625rem;
  margin: 1.5rem 0 0.25rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

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

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

.meta {
  color: var(--muted);
  font-size: 0.9375rem;
}

.lead {
  font-size: 1.1875rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.badge {
  display: inline-block;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9375rem;
}

details {
  border-top: 1px solid var(--border);
  padding: 0.75rem 0;
}

details:last-of-type {
  border-bottom: 1px solid var(--border);
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details[open] summary {
  margin-bottom: 0.5rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface);
  padding: 0.1em 0.3em;
  border-radius: 0.25em;
  overflow-wrap: anywhere;
}

footer {
  padding-top: 1rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}
