@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap");

:root {
  --primary-color: #2c3e50;
  --accent-color: #c0392b;
  --secondary-color: #546e7a;
  --bg-color: #ffffff;
  --sidebar-bg: #fdfbf7;
  --border-color: #e0e0e0;

  --font-heading: "Cormorant Garamond", serif;
  --font-body: "Lato", sans-serif;
}

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

body {
  font-family: var(--font-body);
  font-size: 9pt;
  line-height: 1.3;
  color: #333;
  background-color: #f0f2f5;
  -webkit-print-color-adjust: exact;
}

.page {
  width: 210mm;
  min-height: 297mm;
  margin: 20px auto;
  background: var(--bg-color);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  padding: 15px 30px;     
}

a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px dotted var(--primary-color);
}

a:hover {
  border-bottom: 1px solid var(--primary-color);
}

header {
  text-align: center;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 5px;
  margin-bottom: 10px;
}

header h1 {
  font-family: var(--font-heading);
  font-size: 2.2em;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.tagline {
  font-size: 1.1em;
  color: var(--secondary-color);
  font-style: italic;
  font-family: var(--font-heading);
  margin-bottom: 5px;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 0.9em;
  color: #555;
  flex-wrap: wrap;
}

.contact-info span {
  display: inline-flex;
  align-items: center;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 30% 68%;
  gap: 2%;
  align-items: start; /* Prevents sidebar border from extending beyond content */
  flex: 1;
}

aside {
  padding-right: 15px;
  border-right: 1px solid #eee;
  padding-bottom: 0;
}

main {
  padding-left: 5px;
}

section {
  margin-bottom: 10px;
}

h2 {
  font-family: var(--font-heading);
  font-size: 1.4em;
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 8px;
  padding-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.item {
  margin-bottom: 5px;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.item-title {
  font-weight: 700;
  font-size: 1.05em;
  color: #222;
}

.item-subtitle {
  font-size: 0.95em;
  color: var(--secondary-color);
  font-style: italic;
  margin-bottom: 4px;
}

.date {
  font-weight: 600;
  font-size: 0.9em;
  color: #666;
  text-align: right;
  min-width: 80px;
}

.description,
.description ul {
  font-size: 0.95em;
  color: #444;
}

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

.description li {
  position: relative;
  padding-left: 12px;
  margin-bottom: 2px;
}

.description li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

.skill-category {
  margin-bottom: 8px;
}

.skill-category h4 {
  font-size: 0.95em;
  font-weight: 700;
  color: #444;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.skill-tag {
  font-size: 0.85em;
  color: #555;
  background: #f4f4f4;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid #e0e0e0;
}

@media print {
  body {
    margin: 0;
    padding: 0;
    background: white;
  }
  .page {
    margin: 0;
    box-shadow: none;
    width: 100%;
    height: auto;
    padding: 20px 30px;
  }

  a {
    text-decoration: none;
    border: none;
    color: #000;
  }
}

@media screen and (max-width: 768px) {
  .page {
    width: 100%;
    margin: 0;
    padding: 20px;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  aside {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
  }
}
