:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #64748b;
  --accent: #2563eb;
  --border: #e2e8f0;
  --max-width: 680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318;
    --fg: #e6e8eb;
    --muted: #9aa4b2;
    --accent: #6ea8fe;
    --border: #2a2f3a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
font-weight: normal;
  font-weight: normal;
  font-weight: normal;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 1rem;
}

.site-title {
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  font-size: 1.05rem;
}

.site-header nav a {
  margin-left: 1.25rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}

h1, h2, h3 {
  line-height: 1.3;
}

.intro {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.featured-posts {
  margin-bottom: 2rem;
}

.featured-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.featured-card a {
  display: block;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.featured-card a:hover {
  border-color: var(--accent);
}

.featured-thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.featured-title {
  display: block;
  font-weight: 600;
  padding: 0.75rem 0.9rem 0;
}

.featured-card p {
  margin: 0.3rem 0.9rem 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.recent-posts h2,
.featured-posts h2 {
  font-size: 1.1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.post-item a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
}

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

.post-date {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.post-item p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.see-all {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

.post img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 6px;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.5rem 0;
  border-radius: 6px;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.post pre {
  background: var(--border);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
}

.post code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.post pre code {
  background: none;
}

.post blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}
