:root {
  --paper: #fbfaf4;
  --ink: #17160f;
  --ink-soft: #45433a;
  --ink-muted: #7c7a70;
  --line: #e2dfd3;
  --lime: #e9a83e;
  --lime-ink: #8a5a0e;
  --font-display: 'Clash Display', 'Segoe UI', sans-serif;
  --font-body: 'Satoshi', 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 15% 0%, rgba(233, 168, 62, 0.08), transparent 42%),
    #15120e;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

.page-bar {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #a5a196;
}

.back-link {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}

.back-link:hover { color: var(--lime); }

.page-bar__actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.page-bar__note {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6f6c62;
}

.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--lime);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.print-btn span {
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.print-btn:hover {
  transform: translateY(-2px);
  background: #f3c56b;
  box-shadow: 0 10px 30px rgba(233, 168, 62, 0.18);
}

.print-btn:hover span { transform: translateY(2px); }

.sheet {
  width: 100%;
  max-width: 820px;
  margin: 0 auto 4rem;
  background: var(--paper);
  border-radius: 6px;
  padding: 3.4rem 3.6rem 2.4rem;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
}

.r-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 1.8rem;
  border-bottom: 2px solid var(--ink);
}

.r-header h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.r-role {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime-ink);
  font-weight: 700;
}

.r-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  padding-top: 0.3rem;
}

.r-contact a { transition: color 0.2s ease; }
.r-contact a:hover { color: var(--lime-ink); }

.r-summary {
  margin-top: 1.7rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 64ch;
}

.r-section {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 1.6rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}

.r-section:last-of-type { border-bottom: none; }

.r-section h2 {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 0.2rem;
}

.r-content {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.r-item__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.r-item h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.r-item__date {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.r-item__org {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--lime-ink);
  margin-top: 0.2rem;
}

.r-item__note {
  font-size: 0.76rem;
  color: var(--ink-muted);
  margin-top: 0.2rem;
}

.r-bullets {
  margin-top: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.r-bullets li {
  position: relative;
  padding-left: 0.95rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.r-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-muted);
}

.r-item--compact h3 { font-size: 0.9rem; }

.r-item--compact p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

.r-tech {
  color: var(--lime-ink);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.r-skills {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.r-skill-group {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  align-items: baseline;
}

.r-skill-group h4 {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.r-skill-group p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.r-certs {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.r-certs li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.r-certs li span {
  font-size: 0.7rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.r-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  border-top: 2px solid var(--ink);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 720px) {
  .page-bar {
    flex-wrap: wrap;
    padding: 1.2rem 1.1rem 1rem;
  }
  .page-bar__note { display: none; }
  .sheet {
    margin: 0 0.8rem 3rem;
    padding: 2.2rem 1.5rem 1.8rem;
    border-radius: 4px;
  }
  .r-header {
    flex-direction: column;
    gap: 1rem;
  }
  .r-contact { align-items: flex-start; }
  .r-section {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .r-skill-group { grid-template-columns: 1fr; gap: 0.2rem; }
}

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

  body {
    background: #fff;
    font-size: 10pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .page-bar { display: none; }

  .sheet {
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }

  .r-header { padding-bottom: 10pt; }

  .r-header h1 { font-size: 24pt; }

  .r-summary { margin-top: 10pt; font-size: 9pt; }

  .r-section {
    padding: 10pt 0;
    grid-template-columns: 88pt 1fr;
    gap: 12pt;
    break-inside: avoid;
  }

  .r-content { gap: 8pt; }

  .r-item { break-inside: avoid; }

  .r-item h3 { font-size: 10pt; }
  .r-item__date, .r-item__org, .r-item__note { font-size: 8pt; }
  .r-bullets li, .r-item--compact p, .r-skill-group p, .r-certs li { font-size: 8pt; }
  .r-tech { font-size: 7.5pt; }

  .r-certifications, .r-footer { break-inside: avoid; }

  .r-footer { padding-top: 8pt; }

  .r-footer a, .r-contact a { color: var(--ink); }
}