/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Accessibility - Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 100;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 0;
}

:root {
  --bg: #ffffff;
  --text: #171717;
  --text-secondary: #737373;
  --text-tertiary: #a3a3a3;
  --border: #e5e5e5;
  --hover: #f5f5f5;
}

/* Dark theme - follows system preference */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --text: #ededed;
    --text-secondary: #a3a3a3;
    --text-tertiary: #737373;
    --border: #333333;
    --hover: #1a1a1a;
  }

  .logo-image {
    filter: invert(1);
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.nav {
  background-color: var(--bg);
  padding: 2rem 0 1rem 0;
}

.nav-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.logo-image {
  width: 24px;
  height: 24px;
  display: block;
}

.logo-text {
  display: inline-block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  font-size: 0.9375rem;
}

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

/* Main content */
.main-content {
  flex: 1;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem 1.5rem;
}

/* Hero section */
.hero {
  padding: 2rem 0 3rem 0;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 400;
  line-height: 1.7;
}

.description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Quick links */
.quick-links {
  margin-top: 3rem;
}

.quick-links h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.quick-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quick-links a {
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  transition: color 0.15s ease;
  text-decoration: underline;
  text-decoration-color: var(--text-tertiary);
  text-underline-offset: 3px;
}

.quick-links a:hover {
  color: var(--text-secondary);
}

/* Content pages */
.content {
  padding-top: 1rem;
}

.content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.content p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

/* Resume */
.resume-section {
  margin-bottom: 3rem;
}

.resume-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.resume-item:last-child {
  border-bottom: none;
}

.resume-meta {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

/* Portfolio */
.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

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

.portfolio-item:last-child {
  border-bottom: none;
}

.portfolio-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.portfolio-item p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Blog */
.blog-list {
  margin-top: 2rem;
}

.blog-post-preview {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.blog-post-preview:last-child {
  border-bottom: none;
}

.blog-post-preview h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.blog-post-preview h2 a:hover {
  color: var(--text-secondary);
}

.blog-post-preview p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.blog-meta {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

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

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  .nav {
    padding: 1rem 0 0.75rem 0;
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }

  .nav-links {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    font-size: 0.8125rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .content h1 {
    font-size: 1.75rem;
  }

  .main-content {
    padding: 2rem 1.25rem 4rem 1.25rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .nav {
    padding: 0.75rem 0 0.5rem 0;
  }

  .nav-container {
    gap: 0.75rem;
  }

  .nav-logo {
    font-size: 0.9375rem;
  }

  .logo-image {
    width: 20px;
    height: 20px;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .nav-links a {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
}

