* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --text: #111827;
  --muted: #4b5563;
  --border: #e5e7eb;
  --surface: #f3f4f6;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-offset: 4px;
}

::selection {
  background: var(--surface);
  color: #000;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

body,
a,
p,
h1,
h2,
h3 {
  margin: 0;
}

main,
.nav-container,
.footer-container {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

nav,
footer {
  border-bottom: 1px solid var(--border);
}

nav {
  padding: 2rem 0;
}

.footer-container {
  padding: 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.025em;
}

.nav-links,
.social-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.social-links {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
}

main {
  padding-top: 3rem;
}

section {
  padding: 2rem 0;
}

section + section,
footer {
  border-top: 1px solid var(--border);
}

h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1rem;
  font-weight: 500;
}

p {
  line-height: 1.5;
}

.intro-text {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.625;
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.view-all-link {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--muted);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
}

#blog-posts,
#project-list {
  display: flex;
  flex-direction: column;
}

article,
.project-item {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  border-bottom: 1px solid var(--surface);
}

.project-item {
  padding: 1.25rem 0;
}

article:last-child,
.project-item:last-child {
  border-bottom: none;
}

@media (min-width: 640px) {
  article {
    flex-direction: row;
    align-items: baseline;
  }
}

.post-date {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
  .post-date {
    width: 8rem;
    margin-bottom: 0;
  }
}

.post-content h3 a,
.project-name a {
  display: inline-block;
}

.post-excerpt,
.project-description,
.project-tech,
.view-all-link,
.nav-links,
.social-links a {
  color: var(--muted);
}

.post-excerpt {
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

.project-description {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.project-tech {
  margin-top: 0.75rem;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
}

footer {
  padding: 2rem 0;
  margin-top: 3rem;
  border-bottom: none;
}

.footer-text {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--muted);
}
