/* Base styles */
body {
  font-family: 'Segoe UI', sans-serif;
  /* color palette variables */
}

:root {
  --primary: #395035;   /* main green */
  --accent: #2C332B;    /* bright accent */
  --dark: #395035;      /* darker green */
  --darkest: #2C332B;   /* near-black green */
  --muted-bg: #f4f7f2;  /* very light background */
  --panel-bg: #ffffff;  /* panel background */
  --muted-border: #e6ebe5;
  --text: #243028;      /* readable text color */
}

body {
  background-color: var(--muted-bg);
  color: var(--text);
  margin: 40px;
  line-height: 1.6;
}

/* Header section */
header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 0.2em;
  color: var(--primary);
}

header p {
  margin: 0.3em 0;
}

header a {
  color: var(--accent);
  text-decoration: none;
}

header a:hover {
  text-decoration: underline;
}

/* Section titles */
section h2 {
  font-size: 1.5em;
  color: var(--dark);
  border-bottom: 1px solid var(--muted-border);
  padding-bottom: 5px;
  margin-top: 40px;
}

/* Job titles */
.job h3 {
  font-size: 1.2em;
  margin-top: 20px;
  color: var(--darkest);
}

.job p {
  font-style: italic;
  margin-bottom: 10px;
}

/* Lists */
ul {
  padding-left: 20px;
  margin-top: 10px;
}

li {
  margin-bottom: 8px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  body {
    margin: 20px;
  }

  header h1 {
    font-size: 2em;
  }

  section h2 {
    font-size: 1.3em;
  }

  .job h3 {
    font-size: 1.1em;
  }
}

/* Two-column layout for resume content */
.resume-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.left-column {
  /* left column becomes a sidebar */
  box-sizing: border-box;
  background: var(--panel-bg);
  border-right: 1px solid var(--muted-border);
  padding: 20px 16px;
  height: fit-content;
  position: sticky;
  top: 24px; /* remains visible while scrolling */
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  border-radius: 4px;
}

.right-column {
  /* main content */
  box-sizing: border-box;
  padding-left: 8px;
}

/* Ensure columns stack on small screens */
@media (max-width: 900px) {
  .resume-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .left-column {
    position: static; /* disable sticky for stacked layout */
    background: transparent;
    border-right: none;
    padding: 0;
    border-radius: 0;
  }
}