/* CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, h3, h4, p, ul, ol {
  margin: 0;
  padding: 0;
}

/* Custom Properties */
:root {
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Monaco, 'Cascadia Code', 'Courier New', monospace;
  --bg: #0a0a0a;
  --text: #e0e0e0;
  --text-muted: #888;
  --accent: #60a5fa;
  --border: #333;
  --max-width: 700px;
  --spacing: 1rem;
}

/* Font Face */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/JetBrainsMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Base */
html {
  font-size: 15px;
}

body {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem var(--spacing);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.left-column,
.right-column {
  min-width: 0;
}

.left-column h1:first-child {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.left-column h1:first-child + p {
  margin-bottom: 0.25rem;
}

.left-column h1:first-child + p + p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.15rem;
}

h4 {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

p {
  margin-bottom: 1rem;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

li {
  margin-bottom: 0.5rem;
}

li::marker {
  color: var(--text-muted);
}

/* Horizontal Rule */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Right column adjustments */
.right-column h2:first-child {
  margin-top: 0;
}

/* GitHub activity chart */
.right-column img[alt="GitHub Contribution Chart"] {
  width: 100%;
  max-width: 100%;
  border-radius: 4px;
  filter: invert(1) hue-rotate(180deg);
  opacity: 0.9;
}

/* Experience/Job entries */
h3 + h4 {
  margin-top: 0;
}

/* Tech badges - styled as inline text */
p > strong:only-child {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85rem;
}

/* Code */
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

pre {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

pre code {
  background: none;
  padding: 0;
}

/* Job entries with logos */
.job {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.company-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 1rem;
  border-radius: 6px;
}

.job-content {
  flex: 1;
  min-width: 0;
}

.job-content h3 {
  margin-top: 1rem;
}

.job-content h3:first-child {
  margin-top: 0;
}

/* Education entry */
.education {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.education-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}

.education-content {
  flex: 1;
  min-width: 0;
}

.education-content h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.education-content p {
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.education-content em {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Single column layout for blog */
.container:has(.single-column) {
  grid-template-columns: 1fr;
  max-width: var(--max-width);
}

.single-column {
  width: 100%;
}

.single-column > p:first-child a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.single-column > p:first-child a:hover {
  color: var(--accent);
}

/* Blog post listing */
.blog-listing {
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .right-column h2:first-child {
    margin-top: 3rem;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 1.5rem var(--spacing);
  }

  h1 {
    font-size: 1.5rem;
  }

  .left-column h1:first-child {
    font-size: 1.75rem;
  }

  .company-logo {
    width: 32px;
    height: 32px;
  }

  .job {
    gap: 0.5rem;
  }
}
