:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #2563eb;
  --text: #0f172a;
  --radius: 12px;
  --max-width: 1100px;
  --gap: 20px;
  font-family: 'Dosis', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --card: #1e293b;
    --muted: #94a3b8;
    --accent: #60a5fa;
    --text: #f1f5f9;
  }
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 28px auto;
  padding: 18px;
}

header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand h1 {
  margin: 0;
  font-size: 1.4rem;
}

.brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .95rem;
}

nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav-list a.current {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  font-weight: 600;
}

.hero {
  margin: 16px 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--gap);
  align-items: start;
}

.card {
  background: var(--card);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

h2 {
  margin-top: 0;
}

.muted {
  color: var(--muted);
}

footer {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 8px;
  background: #111;
  color: #fff;
  border-radius: 6px;
  z-index: 999;
}

@media (max-width: 860px) {
  .grid {
    grid-template-columns: 1fr;
  }
  nav {
    order: 3;
    width: 100%;
    margin-top: 12px;
  }
  .nav-list {
    flex-wrap: wrap;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero {
    border-radius: 10px;
  }
}