:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #17212b;
  --muted: #44515f;
  --border: #d7dce2;
  --accent: #0f5aa6;
  --accent-hover: #0c4a87;
  --focus: #ffbf47;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -100%;
  background: #111;
  color: #fff;
  padding: 0.6rem 0.9rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 0.5rem;
}

.container {
  width: min(900px, 92%);
  margin: 0 auto;
}

.site-header {
  background: var(--surface);
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

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

.badge {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 1rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
}

main {
  padding: 2rem 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin-top: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.button {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.button-secondary {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.2rem 0 1.8rem;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.footer-meta {
  margin: 0.35rem 0;
  color: var(--muted);
}

.list-plain {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    gap: 0.8rem;
  }
}
