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

:root {
  --color-bg: white;
  --color-text: #2c2c2c;
  --color-accent: #002153;
  --color-accent-hover: #000091;
  --color-muted: #6b6b6b;
  --color-border: #e0dcd4;
  --font-body: system-ui, -apple-system, sans-serif;
  --max-width: 960px;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Nav */
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--color-text);
}

.site-header ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.site-header a {
  text-decoration: none;
  color: var(--color-accent);
  transition: color 0.2s;
}

.site-header a:hover,
.site-header a.active {
  color: var(--color-accent-hover);
}

/* Hero */
.hero {
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}

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

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.feature {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
}

.feature h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Blog list */
.blog-list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.blog-list h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.blog-intro {
  color: var(--color-muted);
  margin-bottom: 2.5rem;
}

.blog-card {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.blog-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.blog-card h3 {
  font-size: 1.175rem;
  margin-bottom: 0.15rem;
}

.blog-card h2 a, .blog-card h3 a {
  text-decoration: none;
  color: var(--color-text);
}

.blog-card h2 a:hover, .blog-card h3 a:hover {
  color: var(--color-accent);
}

.blog-card time {
  font-size: 0.85rem;
  color: var(--color-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.blog-card > a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Single post */
.blog-post {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.blog-post header {
  margin-bottom: 2rem;
}

.blog-post h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.blog-post time {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.post-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.post-content p {
  margin-bottom: 1rem;
}

.post-content a {
  color: var(--color-accent);
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

/* Footer */
footer {
  margin-top: auto;
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
}
