/* =========================================
   Resume website styles
   Edit the variables below to change colors.
   ========================================= */

:root {
  --navy: #14283f;
  --blue: #23618a;
  --text: #263442;
  --muted: #657487;
  --line: #dce4eb;
  --surface: #f3f6f9;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  background: linear-gradient(135deg, #14283f, #235477);
  color: var(--white);
  padding: 58px 0 52px;
}

.hero-content {
  max-width: 1120px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #c5d9e8;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 2px;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -1px;
}

.role {
  margin: 12px 0 22px;
  color: #e0edf6;
  font-size: 1.2rem;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: #e0edf6;
  font-size: 0.92rem;
}

.contact a,
footer a {
  color: inherit;
  text-decoration: none;
}

.contact a:hover,
footer a:hover {
  text-decoration: underline;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
  gap: 28px;
  align-items: start;
  padding-top: 32px;
  padding-bottom: 44px;
}

.main-column,
.side-column {
  min-width: 0;
}

.section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px 27px;
  margin-bottom: 22px;
  box-shadow: 0 5px 18px rgba(20, 40, 63, 0.04);
}

.section h2 {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  color: var(--navy);
  font-size: 1.18rem;
  letter-spacing: 0.3px;
}

.section p {
  margin-top: 0;
}

.job {
  padding: 0 0 21px;
  margin-bottom: 21px;
  border-bottom: 1px solid var(--line);
}

.job:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.job-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

.job h3,
.education-item h3,
.skill-group h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.4;
}

.company {
  margin: 3px 0 0;
  color: var(--blue);
  font-weight: 700;
}

.date {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

ul {
  margin: 9px 0 0;
  padding-left: 21px;
}

li {
  margin-bottom: 7px;
  padding-left: 2px;
}

.achievement {
  margin: 12px 0 0;
  padding: 11px 13px;
  border-left: 3px solid var(--blue);
  background: #f2f7fa;
  font-size: 0.92rem;
}

.skill-group {
  margin-bottom: 18px;
}

.skill-group:last-child {
  margin-bottom: 0;
}

.skill-group h3 {
  margin-bottom: 4px;
  font-size: 0.91rem;
}

.skill-group p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.education-item {
  margin-bottom: 17px;
}

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

.education-item p {
  margin: 3px 0 0;
  color: var(--muted);
}

.education-item span {
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 700;
}

.side-column li {
  font-size: 0.91rem;
}

footer {
  padding: 20px 0;
  background: var(--navy);
  color: #e0edf6;
  text-align: center;
  font-size: 0.88rem;
}

footer p {
  margin: 0;
}

/* Tablet and mobile layout */
@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero {
    padding: 44px 0 38px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 26px, 1120px);
  }

  .section {
    padding: 20px 18px;
  }

  .job-heading {
    display: block;
  }

  .date {
    display: block;
    margin-top: 5px;
    text-align: left;
  }

  .contact {
    flex-direction: column;
    gap: 5px;
  }
}

/* Print-friendly version */
@media print {
  body {
    background: white;
    font-size: 10pt;
  }

  .container {
    width: 100%;
  }

  .hero {
    padding: 25px 0;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 12px;
    padding-top: 15px;
  }

  .section {
    box-shadow: none;
    break-inside: avoid;
    padding: 14px;
    margin-bottom: 12px;
  }

  .job {
    break-inside: avoid;
  }

  footer {
    display: none;
  }

  a {
    text-decoration: none;
  }
}
