/* ===== Nätmus - Stylesheet ===== */
:root {
  --bg: #0d1117;
  --bg-alt: #161b22;
  --card: #1c2128;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #2f81f7;
  --accent-hover: #58a6ff;
  --green: #3fb950;
  --radius: 12px;
  --max-width: 1080px;
}

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

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

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

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

/* ===== Header ===== */
.site-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }
.main-nav a {
  color: var(--text-muted);
  margin-left: 24px;
  font-weight: 500;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--text); text-decoration: none; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #161b22 0%, #1c2933 100%);
  padding: 72px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* ===== Article grid ===== */
.section-title {
  font-size: 1.8rem;
  margin: 56px 0 28px;
  font-weight: 700;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--accent) 0%, #1c2933 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.card-body { padding: 20px; }
.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.card-body h3 { font-size: 1.2rem; margin-bottom: 8px; line-height: 1.4; }
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--accent); text-decoration: none; }
.card-body p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Article page ===== */
.article {
  background: var(--bg);
  padding: 48px 0 64px;
}
.breadcrumbs {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumbs a { color: var(--text-muted); }
.article-content { max-width: 760px; margin: 0 auto; }
.article-content h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.article-content h2 {
  font-size: 1.6rem;
  margin: 40px 0 16px;
  font-weight: 700;
}
.article-content h3 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  font-weight: 600;
}
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol {
  margin: 0 0 18px 24px;
}
.article-content li { margin-bottom: 8px; }
.article-content strong { color: #fff; }

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}
th, td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
}
th { background: var(--bg-alt); font-weight: 600; }

.info-box {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

.related {
  max-width: 760px;
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.related h3 { margin-bottom: 16px; }
.related ul { list-style: none; }
.related li { margin-bottom: 10px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 64px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.site-footer a { color: var(--text-muted); }
.footer-links a { margin-left: 18px; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.9rem; }
  .article-content h1 { font-size: 1.7rem; }
  .main-nav a { margin-left: 14px; font-size: 0.9rem; }
  .site-footer .container { flex-direction: column; }
  .footer-links a { margin-left: 0; margin-right: 18px; }
}
