/*
  Modern CV starter
  Edit the design tokens below first. Everything else follows from them.
*/

:root {
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --page-bg: #eef1f5;
  --paper: #fbfaf7;
  --ink: #1d2430;
  --muted: #687284;
  --line: #d9dee8;

  --accent: #2f6fed;
  --accent-soft: #e8f0ff;
  --accent-ink: #173f93;

  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 70px rgba(29, 36, 48, 0.12);

  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-bg);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

.page {
  width: min(100% - 32px, var(--max-width));
  margin: 32px auto;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 24px;
}

.sidebar,
.content {
  display: grid;
  align-content: start;
  gap: 18px;
}

.card {
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--line), transparent 10%);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.hero {
  padding: 34px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.photo-frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-soft), var(--paper));
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Use display: none in cv-data.js by leaving the matching arrays empty. */
[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: -0.06em;
}

h2 {
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.eyebrow,
.section-kicker {
  margin-bottom: 10px;
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.role {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.05rem;
}

.location {
  margin-top: 10px;
  color: var(--muted);
}

.intro {
  max-width: 68ch;
  color: var(--ink);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.muted {
  color: var(--muted);
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-list a,
.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.contact-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-ink);
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
  cursor: pointer;
}

.entry {
  padding-block: 22px;
  border-top: 1px solid var(--line);
}

.entry:first-child {
  padding-top: 0;
  border-top: 0;
}

.entry:last-child {
  padding-bottom: 0;
}

.entry-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 8px;
}

.entry-meta {
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.entry-subtitle {
  color: var(--accent-ink);
  font-weight: 700;
  margin-top: 4px;
}

.entry-summary {
  color: var(--muted);
  margin-top: 10px;
}

.task-list {
  margin: 12px 0 0;
  padding-left: 1.1rem;
  color: var(--ink);
}

.task-list li + li {
  margin-top: 6px;
}

.pill-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pill-list li,
.tag {
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.9rem;
  font-weight: 650;
}

.skill-group + .skill-group {
  margin-top: 18px;
}

.skill-group h3 {
  font-size: 0.94rem;
  margin-bottom: 10px;
}

.language-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.language-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.language-row span:last-child {
  color: var(--muted);
  text-align: right;
}

.license-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 1.1rem;
}

.license-item {
    padding-left: 4px;
}

.license-name {
    font-weight: 700;
}

.license-expiry {
    color: var(--muted);
}

    .license-expiry::before {
        content: " — ";
    }

@media (max-width: 850px) {
  .page {
    grid-template-columns: 1fr;
    margin: 16px auto;
  }

  .photo-frame {
    max-width: 260px;
  }

  .entry-head {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .entry-meta {
    white-space: normal;
  }
}

@media print {
  :root {
    --page-bg: #ffffff;
    --paper: #ffffff;
    --shadow: none;
  }

  html,
  body {
    background: #ffffff;
  }

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

  .page {
    width: 100%;
    margin: 0;
    grid-template-columns: 30% 1fr;
    gap: 16px;
  }

  .card,
  .hero {
    box-shadow: none;
    border-color: #d8d8d8;
    break-inside: avoid;
    padding: 16px;
  }

  .photo-frame {
    max-width: 180px;
  }

  body {
    font-size: 10.5pt;
  }

  h1 {
    font-size: 30pt;
  }

  .intro {
    font-size: 12pt;
  }
}
