@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-color: #0f172a;
  --text-color: #e2e8f0;
  --text-muted: #94a3b8;
  --card-bg: #1e293b;
  --accent-color: #38bdf8;
  --accent-hover: #0ea5e9;
  --border-color: #334155;
  --code-accent: #4ade80;
  --tag-accent: var(--code-accent);
  --heading-color: #f1f5f9;
  --max-width: 1400px;
  --header-height: 70px;
  --border-radius: 4px;
  --font-main: "Inter", "Open Sans", sans-serif;
  --font-heading: "Inter", "Open Sans", sans-serif;
  --font-sub: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Courier New", monospace;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.65;
  font-size: 16px;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Responsive adjustments */
@media (min-width: 1600px) {
  :root {
    --max-width: 1600px;
  }
}

@media (max-width: 1200px) {
  :root {
    --max-width: 96%;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  color: var(--heading-color);
  line-height: 1.2;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.6rem; font-weight: 600; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; display: inline-block; }
h3 { font-size: 1.15rem; font-weight: 600; margin-top: 0; }

p {
  margin-bottom: 1rem;
}

section {
  padding: 0.5rem 0;
}

/* Keep breathing room between the sticky header and the first section */
#about {
  padding-top: 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 0.5rem 0;
  }

  h1 { font-size: 2rem; }
  h2 {
    font-size: 1.75rem;
    display: block;
    text-align: center;
    border-bottom: none;
    margin-left: auto;
    margin-right: auto;
  }

  h2::after {
     content: "";
     display: block;
     width: 60px;
     height: 2px;
     background: var(--border-color);
     margin: 0.5rem auto 0;
  }
}

#site-header {
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

#site-footer {
  background: var(--bg-color);
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: auto;
}

/* Light mode overrides */
[data-theme="light"] {
  --bg-color: #f8fafc;
  --text-color: #1e293b;
  --text-muted: #64748b;
  --card-bg: #ffffff;
  --accent-color: #0284c7;
  --accent-hover: #0369a1;
  --border-color: #e2e8f0;
  --code-accent: #16a34a;
  --tag-accent: var(--accent-color);
  --heading-color: #0f172a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
}

/* Discreet resume link */
.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  margin-top: 1rem;
}

.resume-link:hover {
  color: var(--text-color);
}
