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

:root {
  /* Colors */
  --color-text: #1d1d1f;
  --color-heading: #292929;
  --color-muted: #6e6e73;
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-border: #e5e5e7;
  --color-link: #1a73e8;
  --color-link-hover: #1557b0;
  --color-accent: #f5a623;

  /* Typography */
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  --font-serif: 'Iowan Old Style', 'Apple Garamond', Baskerville,
    'Times New Roman', 'Droid Serif', Times, serif;
  --font-mono: 'SFMono-Regular', Menlo, Consolas, 'DejaVu Sans Mono', monospace;

  /* Layout */
  --max-width: 44rem;
}

html {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2rem;
  color: var(--color-text);
}

h2 {
  font-size: 1.375rem;
  color: var(--color-heading);
}

h3 {
  font-size: 1.125rem;
  color: var(--color-heading);
}

a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-color: rgba(26, 115, 232, 0.3);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

a:hover {
  text-decoration-color: var(--color-link);
}

/* Header / Nav */
.site-header {
  margin-bottom: 3.5rem;
}

.site-header h1 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
  letter-spacing: -0.01em;
}

.site-header h1 a {
  color: inherit;
  text-decoration: none;
}

.site-header h1 a:hover {
  opacity: 0.8;
}

.site-nav {
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

.site-nav a {
  color: var(--color-muted);
  margin-right: 1.25rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--color-text);
}

/* Footer */
.site-footer {
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-muted);
  letter-spacing: 0.01em;
}

/* Post list */
.post-list {
  list-style: none;
}

.post-list li {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
}

.post-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.post-date {
  font-size: 0.8125rem;
  color: var(--color-muted);
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}

.post-list h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.375rem;
}

.post-list h2 a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.post-list h2 a:hover {
  color: var(--color-link);
}

/* Post content */
.post-content {
  margin-top: 2.5rem;
}

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

.post-content ul,
.post-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.375rem;
}

.post-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 1rem 1.25rem;
  color: var(--color-muted);
  margin: 1.5rem 0;
  background: var(--color-surface);
  border-radius: 0 6px 6px 0;
  font-style: italic;
}

.post-content pre {
  background: var(--color-surface);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  line-height: 1.6;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  /* background: var(--color-surface);
  border: 1px solid var(--color-border); */
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.post-content img {
  max-width: 100%;
  border-radius: 6px;
}

/* Post navigation */
.post-nav {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.post-nav a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.post-nav a:hover {
  color: var(--color-link);
}
