/* ===================================================================
   Victoria Shoukier – CV Stylesheet
   Professional two-column layout for GitHub Pages
   =================================================================== */

/* --- Reset & Base -------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --page-bg: #ede3dc;
  --surface: #fcf8f4;
  --surface-strong: #fffdfb;
  --surface-border: #e3d5ca;
  --sidebar-bg: linear-gradient(180deg, #2b2321 0%, #171211 100%);
  --sidebar-print-bg: #211a18;
  --sidebar-text: #efe4db;
  --sidebar-muted: #d8bfae;
  --accent: #bc9078;
  --accent-strong: #9f6d57;
  --accent-soft: rgba(188, 144, 120, 0.16);
  --accent-outline: rgba(216, 191, 174, 0.26);
  --text-main: #514541;
  --text-heading: #251f1e;
  --text-soft: #8a7a72;
  --line-soft: #e7dbd2;
  --shadow-soft: rgba(40, 30, 27, 0.14);
}

body {
  font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-main);
  background: linear-gradient(180deg, #f2ebe6 0%, var(--page-bg) 100%);
  line-height: 1.6;
}

.print-document {
  display: none;
}

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

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* --- Page Wrapper -------------------------------------------------- */
.cv-page {
  max-width: 1100px;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--surface-strong);
  box-shadow: 0 12px 36px var(--shadow-soft);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  overflow: hidden;
  min-height: 100vh;
}

/* --- Sidebar ------------------------------------------------------- */
.sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Photo */
.photo-wrapper {
  text-align: center;
}

.photo-wrapper img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 10px 24px rgba(31, 24, 22, 0.24);
}

/* Name & Title */
.sidebar-header {
  text-align: center;
}

.sidebar-header h1 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--surface-strong);
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.sidebar-header .tagline {
  font-size: 0.82rem;
  color: var(--sidebar-muted);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

/* Sidebar Sections */
.sidebar-section h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--sidebar-muted);
  margin-bottom: 0.9rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(216, 191, 174, 0.22);
  font-weight: 600;
}

/* Contact */
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.contact-list .icon {
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  color: var(--sidebar-muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

.contact-list a:hover {
  color: var(--surface-strong);
}

/* Skill Tags */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tags .tag {
  background: var(--accent-soft);
  color: var(--sidebar-text);
  padding: 0.3rem 0.65rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  border: 1px solid var(--accent-outline);
}

/* Languages */
.language-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
  font-size: 0.85rem;
}

.language-item .name {
  color: var(--sidebar-text);
  font-weight: 500;
}

.language-item .level {
  font-size: 0.75rem;
  color: rgba(239, 228, 219, 0.74);
}

.lang-dots {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}

.lang-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(188, 144, 120, 0.18);
  border: 1px solid rgba(188, 144, 120, 0.28);
}

.lang-dots .dot.filled {
  background: var(--accent);
  border-color: var(--accent);
}

/* Tech Skills List */
.tech-list li {
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
  padding-left: 0.9rem;
  position: relative;
  color: var(--sidebar-text);
}

.tech-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* --- Main Content -------------------------------------------------- */
.main-content {
  background: var(--surface);
  padding: 2.5rem 2.5rem 2.5rem 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Section Headings */
.main-content section h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--text-heading);
  margin-bottom: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  font-weight: 700;
}

/* Profile Text */
.profile-text {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-main);
}

.profile-text p + p {
  margin-top: 0.7rem;
}

/* Timeline Entry */
.timeline-entry {
  margin-bottom: 1.8rem;
  position: relative;
  padding-left: 1.1rem;
  border-left: 2px solid var(--line-soft);
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--surface-strong);
}

.timeline-entry .role {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.15rem;
}

.timeline-entry .company {
  font-size: 0.88rem;
  color: var(--accent-strong);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.timeline-entry .dates {
  font-size: 0.78rem;
  color: var(--text-soft);
  font-weight: 500;
  margin-bottom: 0.55rem;
  letter-spacing: 0.3px;
}

.timeline-entry .note {
  font-size: 0.78rem;
  color: var(--text-soft);
  font-style: italic;
  margin-bottom: 0.55rem;
}

.timeline-entry ul {
  list-style: none;
}

.timeline-entry ul li {
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  padding-left: 1rem;
  position: relative;
  line-height: 1.6;
}

.timeline-entry ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

/* Education Entries */
.education-entry {
  margin-bottom: 1.4rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--line-soft);
  position: relative;
}

.education-entry:last-child {
  margin-bottom: 0;
}

.education-entry::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--surface-strong);
}

.education-entry .degree {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.1rem;
}

.education-entry .school {
  font-size: 0.85rem;
  color: var(--accent-strong);
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.education-entry .dates {
  font-size: 0.78rem;
  color: var(--text-soft);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.education-entry .details {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.6;
}

/* --- Responsive ---------------------------------------------------- */
@media (max-width: 860px) {
  .cv-page {
    grid-template-columns: 1fr;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .sidebar {
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .contact-list li {
    justify-content: center;
  }

  .skill-tags {
    justify-content: center;
  }

  .main-content {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .photo-wrapper img {
    width: 160px;
    height: 160px;
  }

  .sidebar-header h1 {
    font-size: 1.35rem;
  }

  .main-content {
    padding: 1.5rem 1.25rem;
  }
}

/* --- Print Styles -------------------------------------------------- */
@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  html,
  body {
    width: 210mm;
    margin: 0;
    padding: 0;
    background: #fff;
  }

  body {
    font-size: 9pt;
    line-height: 1.4;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .screen-cv {
    display: none !important;
  }

  .print-document {
    display: block;
    width: 210mm;
    margin: 0 auto;
    background: #fff;
  }

  .print-sheet {
    width: 210mm;
    min-height: 297mm;
    max-height: 297mm;
    display: grid;
    grid-template-columns: 72mm 1fr;
    background: #fff;
    break-after: page;
    page-break-after: always;
    overflow: hidden;
  }

  .print-sheet:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .print-sidebar,
  .print-main,
  .print-sheet .photo-wrapper img {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-sidebar {
    background: var(--sidebar-print-bg) !important;
    color: var(--sidebar-text);
    padding: 13mm 9mm 12mm;
    display: flex;
    flex-direction: column;
    gap: 6mm;
    align-content: start;
  }

  .print-sidebar--secondary {
    padding-top: 14mm;
  }

  .print-main {
    background: #fff;
    border-left: 0.35mm solid var(--line-soft);
    padding: 13mm 12mm 12mm 11mm;
    display: flex;
    flex-direction: column;
    gap: 6mm;
    align-content: start;
  }

  .print-mini-header,
  .print-sheet .sidebar-section,
  .print-sheet .main-content section,
  .print-sheet .timeline-entry,
  .print-sheet .education-entry {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-mini-header {
    padding-bottom: 4mm;
    border-bottom: 1px solid rgba(216, 191, 174, 0.22);
  }

  .print-mini-header .name {
    color: var(--surface-strong);
    font-size: 13pt;
    font-weight: 700;
    line-height: 1.15;
  }

  .print-mini-header .title {
    margin-top: 1.5mm;
    color: var(--sidebar-muted);
    font-size: 8.1pt;
    line-height: 1.35;
  }

  .print-sheet .photo-wrapper img {
    width: 35mm;
    height: 35mm;
    border-width: 1.2mm;
    box-shadow: none;
  }

  .print-sheet .sidebar-header h1 {
    font-size: 15.5pt;
    margin-bottom: 1.5mm;
    line-height: 1.12;
  }

  .print-sheet .sidebar-header .tagline {
    font-size: 8.3pt;
    line-height: 1.35;
  }

  .print-sheet .sidebar-section h2 {
    font-size: 8pt;
    margin-bottom: 3mm;
    padding-bottom: 1.6mm;
    letter-spacing: 1.6px;
  }

  .print-sheet .contact-list li {
    gap: 2.4mm;
    margin-bottom: 2.1mm;
    font-size: 7.6pt;
    line-height: 1.35;
  }

  .print-sheet .contact-list .icon {
    width: 4.5mm;
    font-size: 7.8pt;
    margin-top: 0;
  }

  .print-sheet .skill-tags {
    gap: 1.5mm;
  }

  .print-sheet .skill-tags .tag {
    padding: 1.4mm 2.3mm;
    border-radius: 1.4mm;
    font-size: 7pt;
    line-height: 1.25;
  }

  .print-sheet .tech-list li {
    padding-left: 3.3mm;
    margin-bottom: 1.8mm;
    font-size: 7.5pt;
    line-height: 1.35;
  }

  .print-sheet .language-item {
    align-items: flex-start;
    gap: 3mm;
    margin-bottom: 2.3mm;
    font-size: 7.5pt;
    line-height: 1.35;
  }

  .print-sheet .language-item .level {
    font-size: 6.8pt;
    line-height: 1.3;
  }

  .print-sheet .lang-dots {
    gap: 1mm;
    margin-top: 0.8mm;
  }

  .print-sheet .lang-dots .dot {
    width: 2.4mm;
    height: 2.4mm;
  }

  .print-sheet .main-content section h2 {
    font-size: 10.2pt;
    margin-bottom: 3.8mm;
    padding-bottom: 2mm;
    letter-spacing: 1.2px;
  }

  .print-sheet .profile-text {
    font-size: 8.2pt;
    line-height: 1.45;
  }

  .print-sheet .profile-text p + p {
    margin-top: 2.3mm;
  }

  .print-sheet .timeline-entry,
  .print-sheet .education-entry {
    padding-left: 4mm;
    margin-bottom: 5mm;
    border-left-width: 0.45mm;
  }

  .print-sheet .timeline-entry::before,
  .print-sheet .education-entry::before {
    left: -2.4mm;
    top: 1.7mm;
    width: 3.2mm;
    height: 3.2mm;
    border-width: 0.7mm;
  }

  .print-sheet .timeline-entry .role {
    font-size: 8.9pt;
    line-height: 1.25;
    margin-bottom: 0.6mm;
  }

  .print-sheet .timeline-entry .company,
  .print-sheet .education-entry .school {
    font-size: 7.8pt;
    line-height: 1.3;
    margin-bottom: 0.4mm;
  }

  .print-sheet .timeline-entry .dates,
  .print-sheet .timeline-entry .note,
  .print-sheet .education-entry .dates {
    font-size: 7pt;
    line-height: 1.3;
    margin-bottom: 1.5mm;
    letter-spacing: 0.15px;
  }

  .print-sheet .timeline-entry ul li {
    padding-left: 3.4mm;
    margin-bottom: 1.2mm;
    font-size: 7.6pt;
    line-height: 1.4;
  }

  .print-sheet .timeline-entry ul li::before {
    font-size: 7pt;
  }

  .print-sheet .education-entry .degree {
    font-size: 8.6pt;
    line-height: 1.25;
    margin-bottom: 0.5mm;
  }

  .print-sheet .education-entry .details {
    font-size: 7.5pt;
    line-height: 1.4;
  }

  a[href]::after {
    content: none;
  }
}
