/*
  css/cv.css
  Stylesheet for the CV Page (cv.html)
  Author: Jules
*/

/* ------------------- */
/* --- Page Title --- */
/* ------------------- */
.page-title {
  /* Center-aligns the main title of the page. */
  text-align: center;
  /* Adds extra space below the title before the main content. */
  margin-bottom: var(--spacing-large);
  /* Increases the font size for a strong visual hierarchy. */
  font-size: 2.5rem;
}

/* ------------------- */
/* --- CV Content --- */
/* ------------------- */
.cv-content {
  /* Sets a maximum width for the CV content for better readability on large screens. */
  max-width: 800px;
  /* Centers the content block on the page. */
  margin: 0 auto;
  /* Adds a border for a defined, clean look. */
  border: 1px solid var(--primary-accent-color);
  /* Adds padding inside the content block. */
  padding: var(--spacing-xlarge);
  /* A subtle background color to make the CV stand out from the page background. */
  background-color: rgba(255, 255, 255, 0.02);
}

.cv-header {
  /* Styles for the top section of the CV containing the name and location. */
  text-align: center; /* Centers the header text. */
  margin-bottom: var(--spacing-xlarge); /* Adds significant space below the header. */
}

.cv-header h2 {
  /* The artist's name. */
  margin-bottom: var(--spacing-small); /* Reduces space below the name. */
}

.cv-header p {
  /* The location text. */
  margin-bottom: 0; /* Removes default paragraph margin. */
  line-height: 1.4; /* Tighter line spacing for the header details. */
  color: var(--secondary-accent-color); /* Uses white for secondary info. */
}

.cv-section {
  /* A container for major sections like Education, Exhibitions, Awards. */
  margin-bottom: var(--spacing-large); /* Adds space between sections. */
}

.cv-section h3 {
  /* The title for each section (e.g., "EDUCATION"). */
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--primary-text-color);
  font-size: 1.25rem;
  /* A bottom border to visually underline the section title. */
  border-bottom: 1px solid var(--secondary-accent-color);
  padding-bottom: var(--spacing-small);
  margin-bottom: var(--spacing-medium);
  text-transform: uppercase; /* Makes section titles uppercase. */
}

.cv-entry {
  /* A container for a single entry within a section (e.g., one exhibition). */
  display: grid;
  /* A two-column grid: one for the year, one for the details. */
  grid-template-columns: 100px 1fr; /* Fixed width for the year column. */
  gap: var(--spacing-large); /* Space between the year and the details. */
  margin-bottom: var(--spacing-medium); /* Space between CV entries. */
}

.cv-entry .year {
  /* The year of the CV entry. */
  font-family: var(--body-font);
  font-weight: 700; /* Bold year for easy scanning. */
  text-align: right; /* Aligns the year to the right, against the details column. */
  color: var(--secondary-accent-color);
}

.cv-entry .details {
  /* The main text of the CV entry. */
  margin-bottom: 0;
}

.cv-entry .details em {
  /* Italicized text, typically for juror names. */
  color: var(--secondary-accent-color);
  display: block; /* Puts the juror name on its own line. */
  margin-top: var(--spacing-small); /* Adds a little space above the juror name. */
  font-size: 0.9rem; /* Makes the juror name slightly smaller. */
}

/* ------------------- */
/* --- Media Queries --- */
/* ------------------- */
@media (max-width: 600px) {
  .cv-content {
    /* Reduces padding on smaller screens to maximize content space. */
    padding: var(--spacing-large);
  }

  .cv-entry {
    /* Stacks the year and details into a single column on small screens. */
    grid-template-columns: 1fr;
    gap: var(--spacing-small); /* Reduces the gap for the stacked layout. */
  }

  .cv-entry .year {
    /* Left-aligns the year when stacked. */
    text-align: left;
    margin-bottom: 0; /* Removes margin since it's now just text above the details. */
  }
}
