:root {
  color-scheme: light;
  --brand-color: #0b3d91;
  --accent-color: #f0a202;
  --text-color: #1f1f1f;
  --background-color: #ffffff;
  --muted-color: #6b7280;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  padding: 8px 12px;
  background: var(--brand-color);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  background: var(--brand-color);
  color: #fff;
  padding: 24px 0;
  border-bottom: 4px solid var(--accent-color);
}

.site-header a {
  color: #fff;
  text-decoration: none;
}

.site-title {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 0.03em;
}

.site-tagline {
  margin: 4px 0 16px;
  color: rgba(255, 255, 255, 0.85);
}

.site-nav a {
  margin-right: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 4px;
}

.container {
  width: min(960px, 92vw);
  margin: 0 auto;
  padding: 0 16px;
}

.site-content {
  padding: 40px 0 64px;
}

.post {
  margin-bottom: 48px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(10, 31, 68, 0.08);
  padding: 32px;
}

.post-title {
  margin-top: 0;
  color: var(--brand-color);
}

.post-meta {
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--muted-color);
  font-size: 0.95rem;
}

.post-content p {
  margin-bottom: 1.2em;
}

.post-content a {
  color: var(--brand-color);
  text-decoration: underline;
}

.post-tags {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.post-tags ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-tags li {
  background: var(--accent-color);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.post-pagination {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.post-pagination a {
  display: inline-block;
  margin-top: 16px;
  color: var(--brand-color);
  text-decoration: none;
  font-weight: 600;
}

.post-pagination a:hover {
  text-decoration: underline;
}

.home-intro {
  margin-bottom: 32px;
  padding: 24px;
  background: #f3f4f6;
  border-radius: 8px;
}

.post-list {
  display: grid;
  gap: 24px;
}

.post-list article {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-list article:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.post-list h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.post-list p {
  margin: 0;
  color: var(--muted-color);
}

.site-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.85);
  padding: 24px 0;
}

.site-footer a {
  color: #fff;
}

@media (max-width: 640px) {
  .post,
  .home-intro,
  .post-list article {
    padding: 20px;
  }

  .site-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .post-pagination {
    flex-direction: column;
    align-items: flex-start;
  }
}
