/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:       #C0122C;
  --red-dark:  #8B0D1F;
  --red-light: #f5e6e9;
  --black:     #1a1a1a;
  --gray:      #555555;
  --soft:      #888888;
  --rule:      #e0e0e0;
  --bg-left:   #f9f9f9;
  --bg-right:  #ffffff;
  --font-head: 'Raleway', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --left-w:    300px;
}

body {
  background: #e8e8e8;
  font-family: var(--font-body);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
}

/* ── Page layout ──────────────────────────────────────── */
.page {
  display: flex;
  max-width: 920px;
  margin: 32px auto;
  box-shadow: 0 6px 48px rgba(0,0,0,0.18);
  background: var(--bg-right);
}

/* ══════════════════════════════════════════════════════
   LEFT COLUMN
══════════════════════════════════════════════════════ */
.left {
  width: var(--left-w);
  flex-shrink: 0;
  background: var(--bg-left);
  border-right: 3px solid var(--red);
  display: flex;
  flex-direction: column;
}

/* Name block */
.name-block {
  padding: 40px 28px 28px;
  border-bottom: 2px solid var(--rule);
}

.name {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 800;
  line-height: 0.96;
  color: var(--red);
  margin-bottom: 12px;
}

.role {
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--black);
}

/* Left sections */
.left-section {
  padding: 20px 28px;
  border-bottom: 1px solid var(--rule);
}

.left-section:last-child { border-bottom: none; }

.left-title {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

.left-text {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--gray);
}

/* Contact */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11.5px;
  color: var(--gray);
  line-height: 1.4;
  word-break: break-word;
}

.contact-list a {
  color: var(--gray);
  text-decoration: none;
}

.contact-list a:hover { color: var(--red); }

.ci {
  color: var(--red);
  font-size: 12px;
  min-width: 16px;
  text-align: center;
  padding-top: 1px;
  font-weight: 700;
}

/* Bullet list */
.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bullet-list li {
  font-size: 12.5px;
  color: var(--gray);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 14px;
  line-height: 1.2;
}

/* ══════════════════════════════════════════════════════
   RIGHT COLUMN
══════════════════════════════════════════════════════ */
.right {
  flex: 1;
  background: var(--bg-right);
  display: flex;
  flex-direction: column;
}

/* Photo area */
.photo-area {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

/* Decorative diagonal stripes top-right */
.deco-stripe {
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  background: repeating-linear-gradient(
    -45deg,
    var(--red) 0px,
    var(--red) 6px,
    transparent 6px,
    transparent 14px
  );
  opacity: 0.85;
}

/* Photo circular clip */
.photo-wrap {
  position: absolute;
  top: 20px;
  right: 32px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid var(--red);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(192,18,44,0.25);
  z-index: 2;
}

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Right sections */
.right-section {
  padding: 22px 32px;
  border-bottom: 1px solid var(--rule);
}

.right-section:last-child { border-bottom: none; }

.right-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--red);
}

/* Entries */
.entry {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--rule);
}

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

.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 3px;
}

.entry-role {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
}

.entry-period {
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
}

.entry-org {
  font-size: 11.5px;
  color: var(--gray);
  font-style: italic;
  margin-bottom: 7px;
}

.entry-org em {
  font-style: normal;
  color: var(--soft);
}

.entry-org-link {
  font-size: 11px;
  color: var(--red);
  font-style: italic;
  margin-bottom: 6px;
}

/* Entry bullet list */
.entry-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.entry-list li {
  font-size: 12.5px;
  color: var(--gray);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.entry-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 14px;
  line-height: 1.2;
}

/* Tech inline */
.tech-inline {
  font-size: 11px;
  font-weight: 600;
  color: var(--red-dark);
  background: var(--red-light);
  padding: 1px 7px;
  border-radius: 3px;
}

/* Status badges */
.status-done {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
  margin-left: 4px;
}

.status-wip {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin-left: 4px;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
  .page { flex-direction: column; margin: 0; }
  .left { width: 100%; border-right: none; border-bottom: 3px solid var(--red); }
  .name { font-size: 34px; }
  .photo-area { height: 180px; }
  .photo-wrap { width: 120px; height: 120px; right: 20px; top: 16px; }
  .right-section { padding: 18px 20px; }
}

/* ── Print ────────────────────────────────────────────── */
@media print {
  @page { margin: 0; size: A4 portrait; }

  body { background: none; }
  .page { margin: 0; max-width: 100%; box-shadow: none; }

  .left  { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .photo-area { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tech-inline { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .name-block    { padding: 24px 20px 18px; }
  .name          { font-size: 32px; }
  .left-section  { padding: 13px 20px; }
  .right-section { padding: 14px 24px; }
  .photo-area    { height: 170px; }
  .photo-wrap    { width: 130px; height: 130px; top: 18px; right: 24px; }
  .deco-stripe   { width: 120px; height: 120px; }
  .left-text     { font-size: 11px; }
  .bullet-list li { font-size: 11px; }
  .contact-list li { font-size: 10.5px; }
  .entry-role    { font-size: 12px; }
  .entry-list li { font-size: 11px; }
  .entry-org     { font-size: 10.5px; }
  .right-title   { font-size: 11.5px; margin-bottom: 10px; }
  .entry         { margin-bottom: 10px; padding-bottom: 10px; }
}
