/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  background-color: #fdfcfa;
  color: #2c2c2c;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Georgia, serif;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.5em;
  color: #1a1a1a;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1em;
}

h2 {
  font-size: 1.75rem;
  margin-top: 1.5em;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.25em;
}

p {
  margin-bottom: 1.25em;
}

p.intro {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid #e8e6e3;
}

/* Lists */
ul,
ol {
  margin-bottom: 1.5em;
  padding-left: 2em;
}

li {
  margin-bottom: 0.5em;
}

li:last-child {
  margin-bottom: 0;
}

/* Links */
a {
  color: #0066cc;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #0052a3;
  text-decoration: underline;
}

/* Navigation */
nav {
  margin-bottom: 2em;
}

nav a {
  color: #666;
  font-size: 0.95rem;
}

nav a:hover {
  color: #0066cc;
}

/* Article Cards (Home Page) */
article {
  margin: 32px 0;
  padding: 24px 0;
  border-bottom: 1px solid #e8e6e3;
  transition: all 0.2s ease;
}

article:last-child {
  border-bottom: none;
}

article h2 {
  margin-top: 0;
  margin-bottom: 0.25em;
  font-size: 1.5rem;
}

article h2 a {
  color: #1a1a1a;
  text-decoration: none;
}

article h2 a:hover {
  color: #0066cc;
  text-decoration: none;
}

/* Time/Date Display */
time {
  display: block;
  color: #666;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  margin-bottom: 0.5em;
}

/* Article Description */
article .description {
  color: #666;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2em 0;
  border-radius: 4px;
}

/* Code blocks (if you add them later) */
code {
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas,
    "Courier New", monospace;
  font-size: 0.9em;
  background-color: #f4f3f1;
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

pre {
  background-color: #f4f3f1;
  padding: 1.5em;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5em 0;
}

pre code {
  background-color: transparent;
  padding: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    padding: 20px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  article {
    margin: 24px 0;
  }
}
