/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark:   #101921;
  --bg-steel:  #304c68;
  --text:      #fcf9e2;
  --text-dim:  rgba(252, 249, 226, 0.65);
  --border:    rgba(252, 249, 226, 0.12);
  --accent:    #7fa8cc;
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

/* === LAYOUT === */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 4rem;
}

header.intro {
  width: 340px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

main {
  flex: 1;
  min-width: 0;
  padding: 5rem 0;
}

@media (max-width: 900px) {
  .wrapper {
    flex-direction: column;
    gap: 0;
  }
  header.intro {
    position: static;
    height: auto;
    width: 100%;
    padding: 3rem 0 2rem;
  }
  main {
    padding: 1rem 0 3rem;
  }
}

/* === INTRO / HERO === */
.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--bg-steel);
  border: 1px solid var(--border);
  object-fit: cover;
  margin-bottom: 1.5rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.5rem;
  letter-spacing: 0.01em;
  color: var(--text);
}

.title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--accent);
  margin-top: 0.5rem;
  font-weight: 500;
}

.tagline {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 320px;
}

nav.section-nav {
  margin-top: 3rem;
}

nav.section-nav li {
  margin-bottom: 0.85rem;
}

nav.section-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

nav.section-nav a .dash {
  width: 24px;
  height: 1px;
  background: var(--text-dim);
  transition: width 0.2s ease, background 0.2s ease;
}

nav.section-nav a:hover,
nav.section-nav a.active {
  color: var(--text);
}

nav.section-nav a:hover .dash,
nav.section-nav a.active .dash {
  width: 40px;
  background: var(--text);
}

.social-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 3rem;
}

.social-links a {
  color: var(--text-dim);
  font-size: 0.85rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

/* === SECTIONS === */
section {
  margin-bottom: 6rem;
  scroll-margin-top: 2rem;
}

section h2 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

section h2::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--border);
}

.about p {
  color: var(--text-dim);
  margin-bottom: 1.1rem;
  max-width: 640px;
}

.about p:last-child {
  margin-bottom: 0;
}

/* === SKILLS === */
.skills-intro {
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 2rem;
}

.skills-group {
  margin-bottom: 1.75rem;
}

.skills-group:last-child {
  margin-bottom: 0;
}

.skills-group-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

/* === EXPERIENCE === */
.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:first-child {
  padding-top: 0;
}

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

.timeline-item .period {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  padding-top: 0.2rem;
}

.timeline-item h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.timeline-item .org {
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.timeline-item p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-top: 0.6rem;
  max-width: 560px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.tag {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.2rem 0.55rem;
}

/* === PROJECTS === */
.project-card {
  display: grid;
  grid-template-columns: 1fr;
  padding: 1.5rem;
  margin: 0 -1.5rem 0.5rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.project-card:hover {
  background: rgba(252, 249, 226, 0.04);
}

.project-card h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.project-card .role {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

.project-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-top: 0.75rem;
  max-width: 620px;
}

footer.site-footer {
  color: var(--text-dim);
  font-size: 0.8rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
