/* Base / Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: #0d0d0d;
  color: #e0e0e0;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  padding: 1.5rem 2rem;
  background: #0d0d0d;
  z-index: 100;
}
nav a {
  color: #7eb8e0;
  text-decoration: none;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  transition: color 0.2s;
}
nav a:hover { color: #b3d4f0; }

/* Common Link Styles */
a { color: #7eb8e0; text-decoration: none; transition: color 0.2s; }
a:hover { color: #b3d4f0; }

/* Page Layout */
main {
  max-width: 700px;
  margin: 6rem auto 3rem;
  padding: 0 1.5rem;
}

/* Landing Page Specific */
body.landing {
  display: flex;
  justify-content: center;
  align-items: center;
}
body.landing nav {
  background: transparent;
}
a.main {
  color: #7eb8e0;
  text-decoration: none;
  font-size: clamp(1.2rem, 4vw, 2rem);
  transition: color 0.2s;
}
a.main:hover { color: #b3d4f0; }

/* About Page Specific */
body.about {
  padding-top: 4.5rem;
}
body.about main {
  margin: 0 auto 3rem;
}
h1 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  margin-bottom: 0.5rem;
  color: #e0e0e0;
}
.role {
  color: #7eb8e0;
  font-size: clamp(1rem, 3vw, 1.3rem);
  margin-bottom: 2rem;
}
section {
  margin-bottom: 2rem;
}
section h2 {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: #b3d4f0;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 0.3rem;
}
.info, .langs, .skills, .soft {
  line-height: 1.8;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}
.info p { margin-bottom: 0.2rem; }
.langs, .skills, .soft { white-space: pre-line; }
.experience { margin-bottom: 1.5rem; }
.experience h3 {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: #e0e0e0;
}
.experience .meta {
  color: #999;
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  margin-bottom: 0.3rem;
}
.experience p {
  color: #bbb;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  line-height: 1.7;
}

/* Writeups Index Specific */
.writeups-index ul { list-style: none; }
.writeups-index ul li { margin-bottom: 1rem; }
.writeups-index ul li a {
  color: #7eb8e0;
  text-decoration: none;
  font-size: clamp(1rem, 3vw, 1.2rem);
  transition: color 0.2s;
}
.writeups-index .meta {
  color: #999;
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  margin-top: 0.3rem;
}

/* Writeup Post Specific */
.writeup-post .meta {
  color: #999;
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  margin-bottom: 2rem;
}
.writeup-post .content {
  line-height: 1.8;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}
.writeup-post .content p { margin-bottom: 1.2rem; }
.writeup-post .content code {
  background: #1a1a1a;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}
.writeup-post .content ul { margin: 1rem 0 1.2rem 1.5rem; }
.writeup-post .content ul li {
  margin-bottom: 0.8rem;
  color: #bbb;
}

.writeup-post .content iframe {
  width: 100%;
  max-width: 560px;
  margin: 2rem 0;
  display: block;
}
