/* Rofida CV — clean corporate single-page CV website */

:root {
  --bg: #e8ecf1;
  --paper: #ffffff;
  --ink: #2c3440;
  --ink-muted: #5c6675;
  --navy: #0b1f3a;
  --accent: #3a5f8a;
  --rule: #c9d2de;
  --shadow: 0 18px 48px rgba(11, 31, 58, 0.08);
  --radius: 2px;
  --font-display: "Source Serif 4", "Times New Roman", serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --page-max: 780px;
  --space: clamp(1.25rem, 2.5vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(58, 95, 138, 0.12), transparent 55%),
    linear-gradient(180deg, #dfe5ed 0%, var(--bg) 35%, #eef1f5 100%);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.page {
  width: min(100% - 2rem, var(--page-max));
  margin: clamp(1.5rem, 4vw, 3rem) auto;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--paper);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--navy);
}

/* Header */

.hero {
  padding-bottom: 1.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.roles {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.roles span {
  margin: 0 0.35rem;
  color: var(--rule);
  font-weight: 400;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.contact li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 9rem;
}

.contact-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.contact a,
.contact span:not(.contact-label) {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.contact a {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.25s ease, color 0.2s ease;
}

.contact a:hover,
.contact a:focus-visible {
  color: var(--accent);
  background-size: 100% 1px;
  outline: none;
}

.actions {
  margin-top: 1.5rem;
}

.btn {
  appearance: none;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.7rem 1.15rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: transparent;
  color: var(--navy);
  outline: none;
}

/* Sections */

.section {
  padding: var(--space) 0 0;
}

.section h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  min-width: 11rem;
}

.summary {
  margin: 0;
  max-width: 62ch;
  color: var(--ink);
}

/* Experience */

.job {
  padding: 1.15rem 0 0.35rem;
}

.job + .job {
  margin-top: 0.85rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.35rem;
}

.job-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.65rem;
}

.job h3,
.meta-block h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}

.org {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  color: var(--accent);
  font-weight: 500;
}

.tenure {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}

.job ul {
  margin: 0;
  padding-left: 1.15rem;
}

.job li {
  margin-bottom: 0.35rem;
  padding-left: 0.15rem;
}

.job li::marker {
  color: var(--accent);
}

/* Skills */

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: 0.45rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skills li {
  position: relative;
  padding-left: 0.95rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.skills li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--accent);
  border-radius: 1px;
}

/* Education / certs */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
}

.meta-block {
  margin-bottom: 1rem;
}

.lang-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.lang-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 14rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}

.lang-list span {
  font-weight: 600;
  color: var(--navy);
}

/* Footer */

.site-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.site-footer strong {
  color: var(--navy);
  font-weight: 600;
}

.print-only {
  display: none;
}

/* Motion */

.reveal {
  animation: fade-up 0.7s ease both;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    animation: none;
  }

  .contact a,
  .btn {
    transition: none;
  }
}

/* Responsive */

@media (max-width: 640px) {
  .page {
    width: min(100% - 1rem, var(--page-max));
    margin: 0.75rem auto;
    padding: 1.35rem 1.15rem 1.75rem;
  }

  .roles span {
    display: none;
  }

  .roles {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .skills {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .skills {
    grid-template-columns: 1fr;
  }
}

/* Print / PDF */

@media print {
  @page {
    margin: 12mm 14mm;
    size: A4;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 10.5pt;
    line-height: 1.45;
  }

  .page {
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border-top: 2.5pt solid #0b1f3a;
  }

  .no-print {
    display: none !important;
  }

  .print-only {
    display: block;
  }

  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero {
    padding-bottom: 0.85rem;
  }

  .hero h1 {
    font-size: 20pt;
  }

  .section {
    padding-top: 0.85rem;
    break-inside: avoid;
  }

  .section h2 {
    font-size: 12pt;
    min-width: 0;
    margin-bottom: 0.55rem;
  }

  .job {
    break-inside: avoid;
    padding-top: 0.65rem;
  }

  .job + .job {
    margin-top: 0.4rem;
    padding-top: 0.75rem;
  }

  .job li {
    margin-bottom: 0.15rem;
  }

  .contact a {
    color: #000;
    text-decoration: none;
    background: none;
  }

  .site-footer {
    margin-top: 1rem;
    padding-top: 0.65rem;
  }

  a[href]::after {
    content: none !important;
  }
}
