:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #52606d;
  --border: #d9e2ec;
  --accent: #0a66c2;
  --accent-soft: #e7f1fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 "Segoe UI", Tahoma, sans-serif;
}

main {
  max-width: 920px;
  margin: 32px auto;
  padding: 0 16px 24px;
}

.site-header,
.site-footer {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.hero {
  margin-bottom: 16px;
}

h1,
h2 {
  margin-top: 0;
}

h1 {
  font-size: 30px;
  margin-bottom: 8px;
}

h2 {
  font-size: 20px;
  margin-top: 28px;
  margin-bottom: 8px;
}

p,
li {
  color: var(--text);
}

.meta {
  color: var(--muted);
  margin-top: 0;
}

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

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--accent);
  text-decoration: none;
  font-weight: 700;
  padding: 9px 12px;
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
}

.btn.secondary {
  background: var(--accent-soft);
  color: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.tile {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  background: #fafcff;
}

.site-footer {
  color: var(--muted);
  font-size: 14px;
}

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

  .grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 26px;
  }
}
