/*
 * Resume – single-column layout in the spirit of
 * https://blog.markvincze.com/how-i-created-my-cv-with-modern-html-and-css/
 * All sizes in rem for consistency and easy PDF scaling via root font-size.
 */

/* ----- Job page: all h2 headings match profile__text--job ----- */
.job-heading,
.job-page h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 3rem;
  line-height: 120%;
  letter-spacing: -2px;
}

/* ----- Minimal resume (combined resume + clients-style layout) ----- */
.resume-minimal {
  margin: 8rem 0;
}

.resume-minimal__heading {
  margin-bottom: 0.5rem;
  padding: 1rem 0 0;
}

.resume-minimal__subheading .resume-minimal__subheading-icon {
  margin-right: 0.35em;
  vertical-align: -0.15em;
  color: var(--amber-700, #213b9c);
}

.resume-minimal__subheading-accent {
  color: var(--amber-700, #213b9c);
}

.resume-minimal__pdf-link {
  display: inline-flex;
  align-items: center;
  color: var(--amber-700, #213b9c);
  text-decoration: underline;
}

.resume-minimal__pdf-link:hover,
.resume-minimal__pdf-link:focus {
  color: var(--amber-700, #213b9c);
  text-decoration: underline;
}

.resume-minimal__pdf-link .resume-minimal__subheading-icon {
  margin-right: 0.35em;
  flex-shrink: 0;
}

.resume-minimal__content {
  max-width: 48rem;
  color: #333;
}

.resume-minimal__summary {
  margin-bottom: 3rem;
}

.resume-minimal__summary p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  color: #333;
}

.resume-minimal__list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 3rem 0;
}

.resume-minimal__item {
  margin-bottom: 6rem;
}

.resume-minimal__company {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #333;
}

.resume-minimal__role {
  font-size: 4rem;
  font-weight: 100;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #333;
  letter-spacing: -0.01em;
}

.resume-minimal__meta {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.resume-minimal__description {
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  color: #333;
}

.resume-minimal__bullets {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.resume-minimal__bullets li {
  margin-bottom: 0.3rem;
}

.resume-minimal__expertise,
.resume-minimal__education {
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #333;
}

.resume-minimal__expertise-line {
  margin-bottom: 0.35rem;
}

.resume-minimal__education-school {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.resume-minimal__education-degrees {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.resume-minimal__education-degrees li {
  margin-bottom: 0.2rem;
}

.resume-minimal__page-break-before {
  break-before: page;
  page-break-before: always;
}

.resume-minimal__actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.resume-minimal__download-pdf {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--amber-700, #213b9c);
  background: transparent;
  border: 2px solid var(--amber-700, #213b9c);
  border-radius: 0.25rem;
  cursor: pointer;
  font-family: inherit;
}

.resume-minimal__download-pdf:hover {
  background: rgba(33, 59, 156, 0.08);
}

/* ----- Values section (love letter page) ----- */
.values {
  margin: 8rem 0;
  padding: 3.25rem max(1.5rem, env(safe-area-inset-left)) 3.25rem max(1.5rem, env(safe-area-inset-right));
  background-color: var(--slate-200);
  color: #333;
  border-radius: 0.5rem;
}

.values__inner {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem 4rem;
  align-items: start;
}

.values__header {
  min-width: 0;
}

.values__heading {
  margin-bottom: 1rem;
  padding: 0;
}

.values__intro {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  color: var(--slate-700, #333);
}

.values__intro:last-of-type {
  margin-bottom: 0;
}

.values__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  min-width: 0;
}

.values__item {
  margin: 0;
}

.values__icon {
  display: block;
  font-size: 1.5rem;
  color: var(--slate-700, #333);
  margin-bottom: 0.75rem;
}

.values__title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
  margin-bottom: 0.35rem;
  color: var(--slate-800, #333);
}

.values__description {
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0;
  color: var(--slate-700, #333);
  font-weight: 400;
}

@media (max-width: 48rem) {
  .values__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .values__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ----- Job page: mobile-responsive (screen only) ----- */
@media screen and (max-width: 768px) {
  .job-page .job-heading,
  .job-page h2 {
    font-size: 2rem;
    letter-spacing: -1px;
  }

  .job-page .resume-minimal {
    margin: 4rem 0;
  }

  .job-page .resume-minimal__role {
    font-size: 2.25rem;
  }

  .job-page .resume-minimal__company {
    font-size: 1.25rem;
  }

  .job-page .resume-minimal__item {
    margin-bottom: 3rem;
  }

  .job-page .values {
    margin: 4rem 0;
    padding: 2rem max(1rem, env(safe-area-inset-left)) 2rem max(1rem, env(safe-area-inset-right));
  }

  .job-page .values__heading {
    font-size: 2rem;
  }
}

@media screen and (max-width: 480px) {
  .job-page .job-heading,
  .job-page h2 {
    font-size: 2rem;
  }

  .job-page .resume-minimal {
    margin: 3rem 0;
  }

  .job-page .resume-minimal__role {
    font-size: 2.5rem;
  }

  .job-page .values {
    margin: 3rem 0;
    padding: 1.5rem max(0.75rem, env(safe-area-inset-left)) 1.5rem max(0.75rem, env(safe-area-inset-right));
  }

  .job-page .values__heading {
    font-size: 2rem;
  }
}

/* ----- Job intro (shared with job layout) ----- */
.job-intro__title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.job-intro__body {
  margin-bottom: 0.75rem;
}

.job-intro__body.prose {
  max-width: 65ch;
}

.job-intro__email {
  font-size: 0.9375rem;
}

/* ----- Resume section heading ----- */
.resume-section .technologies__heading {
  margin-bottom: 1rem;
}

/* ----- Resume document (single column) ----- */
/* Color scheme: white bg, dark charcoal (#333) name/body, accent var(--amber-700) title/contact/headers */
.resume {
  /* Document-style container on screen */
  max-width: 50rem;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #333333;
  background: #fff;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.resume__header {
  margin-bottom: 1.5rem;
}

.resume__name {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0;
  color: #333333;
  letter-spacing: -0.02em;
}

.resume__title {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--amber-700, #213b9c);
}

.resume__contact {
  font-size: 0.875rem;
  /* color: var(--amber-700, #213b9c); */
}

.resume__contact a {
  text-decoration: none;
  color: var(--amber-700, #213b9c);
}

.resume__contact a:hover {
  text-decoration: underline;
}

/* ----- Sections ----- */
.resume__section {
  margin-bottom: 2.5rem;
}

.resume__section-title {
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  /* letter-spacing: 0.08em; */
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: #333333;
  border-bottom: 1px solid rgba(33, 59, 156, 0.25);
  padding-bottom: 0.25rem;
}

/* ----- Summary ----- */
.resume__summary {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.resume__summary li {
  margin-bottom: 0.4rem;
}

.resume__summary li::marker {
  color: #333333;
}

/* ----- Experience ----- */
.resume__job {
  margin-bottom: 2.25rem;
}

.resume__job-company {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.resume__job-role {
  color: var(--amber-700, #213b9c);
}

.resume__job-dates {
  font-size: 0.8125rem;
  color: #333333;
  margin-bottom: 0.4rem;
}

.resume__job-description {
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
}

.resume__bullets {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-top: 0.35rem;
}

.resume__bullets li {
  margin-bottom: 0.35rem;
}

.resume__bullets li::marker {
  color: #333333;
}

/* ----- Expertise ----- */
.resume__expertise {
  font-size: 1rem;
}

.resume__expertise-line {
  margin-bottom: 0.1rem;
}

.resume__expertise-line strong {
  /* color: var(--amber-700, #213b9c); */
}

/* ----- Education ----- */
.resume__education-school {
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.resume__education-degrees {
  list-style: none;
  padding-left: 0;
  font-size: 0.875rem;
}

.resume__education-degrees li {
  margin-bottom: 0.25rem;
}

/* ----- Page break (print/PDF) ----- */
.resume__page-break-before {
  break-before: page;
  page-break-before: always;
}

/* ----- Download PDF (screen only) ----- */
.resume__actions {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(33, 59, 156, 0.2);
}

.resume__download-pdf {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--amber-700, #213b9c);
  background: transparent;
  border: 2px solid var(--amber-700, #213b9c);
  border-radius: 0.25rem;
  cursor: pointer;
  font-family: inherit;
}

.resume__download-pdf:hover {
  background: rgba(33, 59, 156, 0.08);
}

.no-print {
  /* Screen only */
}

/* ----- Cover letter (PDF) – same format as resume ----- */
.cover-letter__content {
  margin-top: 4rem;
  white-space: pre-wrap;
  font-size: 1rem;
  line-height: 1.5;
}

/* ----- Love Letter Dark Theme ----- */
[data-theme="dark"] .profile-hero_job {
  position: relative;
}

[data-theme="dark"] .profile-hero_job::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.85));
  z-index: 1;
  pointer-events: none;
}

[data-theme="dark"] .profile-hero__content,
[data-theme="dark"] .profile-hero__content h1,
[data-theme="dark"] .profile-hero__content h2,
[data-theme="dark"] .profile-hero__content .profile__text,
[data-theme="dark"] .profile-hero__content .profile__text--lead0 {
  color: #f1f5f9;
}

[data-theme="dark"] .profile-hero__content a {
  color: #60a5fa;
}

[data-theme="dark"] .profile-hero__content a:hover {
  color: #93c5fd;
}

[data-theme="dark"] .resume-minimal__content,
[data-theme="dark"] .resume-minimal__summary p,
[data-theme="dark"] .resume-minimal__company,
[data-theme="dark"] .resume-minimal__role,
[data-theme="dark"] .resume-minimal__description,
[data-theme="dark"] .resume-minimal__bullets,
[data-theme="dark"] .resume-minimal__bullets li,
[data-theme="dark"] .resume-minimal__expertise,
[data-theme="dark"] .resume-minimal__education,
[data-theme="dark"] .resume-minimal__education-degrees li {
  color: #e2e8f0;
}

[data-theme="dark"] .resume-minimal__meta {
  color: #94a3b8;
}

[data-theme="dark"] .resume-minimal__subheading .resume-minimal__subheading-icon,
[data-theme="dark"] .resume-minimal__subheading-accent,
[data-theme="dark"] .resume-minimal__pdf-link {
  color: #60a5fa;
}

[data-theme="dark"] .resume-minimal__pdf-link:hover,
[data-theme="dark"] .resume-minimal__pdf-link:focus {
  color: #93c5fd;
}

[data-theme="dark"] .resume-minimal__actions {
  border-top-color: rgba(148, 163, 184, 0.3);
}

[data-theme="dark"] .resume-minimal__download-pdf {
  color: #60a5fa;
  border-color: #60a5fa;
}

[data-theme="dark"] .resume-minimal__download-pdf:hover {
  background: rgba(96, 165, 250, 0.15);
}

[data-theme="dark"] .values {
  background-color: #1e293b;
  color: #e2e8f0;
}

[data-theme="dark"] .values__intro,
[data-theme="dark"] .values__icon,
[data-theme="dark"] .values__description {
  color: #cbd5e1;
}

[data-theme="dark"] .values__title {
  color: #f1f5f9;
}

[data-theme="dark"] .other-work,
[data-theme="dark"] .job-heading,
[data-theme="dark"] .job-page h2 {
  color: #e2e8f0;
}

[data-theme="dark"] .other-work .profile__text--lead1 {
  color: #cbd5e1;
}

/* ----- Mobile: simplify document look (Vincze-style) ----- */
@media screen and (max-width: 65rem) {
  .resume {
    padding: 3.5rem 1.25rem;
    margin: 0 auto;
    box-shadow: none;
  }
}

/* ----- Print: only resume visible (browser Print → Save as PDF) ----- */
@media print {
  /* Hide everything, then show only the resume (Mark Vincze approach) */
  body * {
    visibility: hidden;
  }
  #resume-content,
  #resume-content * {
    visibility: visible;
  }
  #resume-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  .no-print,
  .resume__actions {
    display: none !important;
    visibility: hidden !important;
  }

  .resume {
    box-sizing: border-box;
    padding: 0 1.2cm;
    margin: 0;
    max-width: none;
    box-shadow: none;
  }

  /* Match margin-bottom from web (lines above) so print/PDF matches screen */
  /* Reset header block margins so browser defaults (p/h1) don’t add extra space */
  .resume__header {
    margin-bottom: 1.5rem;
  }
  .resume__header .resume__name,
  .resume__header .resume__title,
  .resume__header .resume__contact {
    margin-top: 0;
  }
  .resume__name {
    margin-bottom: 0.1rem;
  }
  .resume__title {
    margin-bottom: 0.5rem;
  }
  .resume__section {
    margin-bottom: 2.5rem;
  }
  .resume__section-title {
    margin-bottom: 0.6rem;
  }
  .resume__summary li {
    margin-bottom: 0.4rem;
  }
  /* Reset job block p margins so browser defaults don’t add extra space */
  .resume__job .resume__job-company,
  .resume__job .resume__job-dates,
  .resume__job .resume__job-description {
    margin-top: 0;
  }
  .resume__job {
    margin-bottom: 2rem;
  }
  .resume__job-company {
    margin-bottom: 0.2rem;
  }
  .resume__job-dates {
    margin-bottom: 0.4rem;
  }
  .resume__job-description {
    margin-bottom: 0.4rem;
  }
  .resume__bullets li {
    margin-bottom: 0.15rem;
  }
  .resume__expertise-line {
    margin-bottom: 0.4rem;
  }
  .resume__education-school {
    margin-bottom: 0.35rem;
  }
  .resume__education-degrees li {
    margin-bottom: 0.25rem;
  }

  /* Minimal resume print */
  .resume-minimal__content {
    padding: 0;
    max-width: none;
  }
  .resume-minimal__heading {
    margin-bottom: 1.5rem;
  }
  .resume-minimal__item {
    margin-bottom: 2rem;
  }
  .resume-minimal__role {
    font-size: 2.25rem;
  }

  /* Scale content so it fits pages neatly (rem-based = one knob). 10pt fills the page better than 9pt. */
  html {
    font-size: 11pt;
  }

  @page {
    size: letter;
    margin: 1.2cm;
  }

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