/*
  Resume Stylesheet - Editorial Refined
  A print-first design with elegant typography and restrained sophistication
*/

/* Personal Vogue - Custom Display Font */
@font-face {
  font-family: 'Personal Vogue';
  src: url('fonts/PersonalVogue-Regular.woff2') format('woff2'),
       url('fonts/PersonalVogue-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Personal Vogue';
  src: url('fonts/PersonalVogue-Italic.woff2') format('woff2'),
       url('fonts/PersonalVogue-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ═══════════════════════════════════════════════════════════════
   CSS Variables
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Color Palette - Refined Navy & Warm Neutrals */
  --navy-deep: #1a2a3a;
  --navy-medium: #2d4052;
  --charcoal: #3d4852;
  --warm-gray: #6b7280;
  --silver: #9ca3af;
  --platinum: #e5e7eb;
  --cream: #fafaf9;
  --white: #ffffff;
  --accent-copper: #b87333;

  /* Typography Scale */
  --font-display: 'Personal Vogue', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Layout */
  --page-width: 8.5in;
  --page-height: 11in;
  --page-margin: 0.6in;
  --content-width: calc(var(--page-width) - (var(--page-margin) * 2));
}

/* ═══════════════════════════════════════════════════════════════
   Base Reset & Document
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--charcoal);
  background: #e8e8e8;
}

/* ═══════════════════════════════════════════════════════════════
   Page Container
   ═══════════════════════════════════════════════════════════════ */

.resume {
  width: var(--page-width);
  min-height: var(--page-height);
  margin: 1rem auto;
  padding: var(--page-margin);
  background: var(--white);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ═══════════════════════════════════════════════════════════════
   Header - Name & Contact
   ═══════════════════════════════════════════════════════════════ */

.header {
  text-align: center;
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--platinum);
  position: relative;
}

.header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--navy-deep);
}

.name {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 500;
  color: var(--navy-deep);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--warm-gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-6);
  font-size: var(--text-sm);
  color: var(--charcoal);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.contact-item svg {
  width: 14px;
  height: 14px;
  color: var(--navy-medium);
  flex-shrink: 0;
}

.contact-item a {
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: var(--navy-deep);
}

/* ═══════════════════════════════════════════════════════════════
   Main Content - Two Column Layout
   ═══════════════════════════════════════════════════════════════ */

.content {
  display: grid;
  grid-template-columns: 1fr 0.42fr;
  gap: var(--space-8);
}

.main-column {
  padding-right: var(--space-6);
  border-right: 1px solid var(--platinum);
}

.side-column {
  padding-left: var(--space-2);
}

/* ═══════════════════════════════════════════════════════════════
   Section Styling
   ═══════════════════════════════════════════════════════════════ */

.section {
  margin-bottom: var(--space-6);
}

.section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--navy-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--platinum);
  position: relative;
}

.section-title::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--navy-deep);
}

/* ═══════════════════════════════════════════════════════════════
   Professional Summary
   ═══════════════════════════════════════════════════════════════ */

.summary {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--charcoal);
  text-align: justify;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

/* ═══════════════════════════════════════════════════════════════
   Experience Entries
   ═══════════════════════════════════════════════════════════════ */

.experience-item {
  margin-bottom: var(--space-5);
  page-break-inside: avoid;
}

.experience-item:last-child {
  margin-bottom: 0;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-1);
}

.experience-role {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--navy-deep);
}

.experience-dates {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--warm-gray);
  font-style: italic;
}

.experience-company {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  font-style: italic;
  color: var(--navy-medium);
  margin-bottom: var(--space-2);
}

.experience-description {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--charcoal);
}

.experience-description ul {
  list-style: none;
  padding-left: 0;
}

.experience-description li {
  position: relative;
  padding-left: var(--space-4);
  margin-bottom: var(--space-1);
}

.experience-description li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--silver);
  font-weight: 300;
}

/* ═══════════════════════════════════════════════════════════════
   Education
   ═══════════════════════════════════════════════════════════════ */

.education-item {
  margin-bottom: var(--space-4);
}

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

.education-school {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 2px;
}

.education-degree {
  font-size: var(--text-sm);
  color: var(--charcoal);
  margin-bottom: 2px;
}

.education-dates {
  font-size: var(--text-xs);
  color: var(--warm-gray);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   Certifications
   ═══════════════════════════════════════════════════════════════ */

.certification-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--charcoal);
}

.certification-item:last-child {
  margin-bottom: 0;
}

.cert-badge {
  width: 8px;
  height: 8px;
  background: var(--navy-deep);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.cert-name {
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   Skills
   ═══════════════════════════════════════════════════════════════ */

.skills-category {
  margin-bottom: var(--space-4);
}

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

.skills-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-medium);
  margin-bottom: var(--space-2);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.skill-tag {
  flex: 1 1 auto;
  font-size: var(--text-xs);
  color: var(--charcoal);
  background: var(--cream);
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid var(--platinum);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   Highlights / Key Achievements
   ═══════════════════════════════════════════════════════════════ */

.highlight-item {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
}

.highlight-item:last-child {
  margin-bottom: 0;
}

.highlight-icon {
  width: 20px;
  height: 20px;
  color: var(--navy-medium);
  flex-shrink: 0;
  margin-top: 2px;
}

.highlight-text {
  color: var(--charcoal);
  line-height: 1.5;
}

.highlight-text strong {
  color: var(--navy-deep);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   Print Styles
   ═══════════════════════════════════════════════════════════════ */

@media print {
  @page {
    size: letter;
    margin: 0;
  }

  html {
    font-size: 12.5px;
  }

  body {
    background: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .resume {
    width: 100%;
    min-height: auto;
    max-height: 100vh;
    margin: 0;
    padding: 0.4in 0.5in;
    box-shadow: none;
    overflow: hidden;
  }

  .header {
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .name {
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
  }

  .title {
    margin-bottom: 0.6rem;
  }

  .contact {
    gap: 0.25rem 1rem;
  }

  .content {
    gap: 1.25rem;
  }

  .main-column {
    padding-right: 1rem;
  }

  .section {
    margin-bottom: 0.875rem;
    page-break-inside: avoid;
  }

  .section-title {
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    font-size: 1.1rem;
  }

  .summary {
    line-height: 1.5;
  }

  .experience-item {
    margin-bottom: 0.625rem;
    page-break-inside: avoid;
  }

  .experience-company {
    margin-bottom: 0.25rem;
  }

  .experience-description {
    line-height: 1.45;
  }

  .experience-description li {
    margin-bottom: 0;
  }

  .education-item {
    margin-bottom: 0.5rem;
  }

  .skills-category {
    margin-bottom: 0.5rem;
  }

  .skills-label {
    margin-bottom: 0.25rem;
  }

  .highlight-item {
    margin-bottom: 0.375rem;
    gap: 0.5rem;
  }

  .highlight-icon {
    width: 16px;
    height: 16px;
  }

  .header::after,
  .section-title::before {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .contact-item a {
    color: var(--charcoal);
  }
}

/* ═══════════════════════════════════════════════════════════════
   Screen Responsiveness (for preview)
   ═══════════════════════════════════════════════════════════════ */

@media screen and (max-width: 900px) {
  body {
    background: var(--white);
  }

  .resume {
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: 1.5rem;
    box-shadow: none;
  }

  .content {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .main-column {
    padding-right: 0;
    border-right: none;
    order: 1;
  }

  .side-column {
    padding-left: 0;
    order: 2;
  }

  .name {
    font-size: var(--text-3xl);
  }

  .contact {
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
  }
}
