:root {
  --bg: #fafafa;
  --text: #1a1a1a;
  --muted: #555;
  --accent: #c0410e;
  --accent-dim: #9e3609;
  --header-bg: #300a24;
  --header-text: #e6edf3;
  --header-accent: #E95420;
  --header-muted: #a98ea4;
  --header-link: #7ab3d4;
  --border: #e0e0e0;
  --section-gap: 28px;
}

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

body {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto;
}

.header {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 36px 40px 30px;
}

.terminal-label {
  font-size: 10px;
  color: var(--header-muted);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-label::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--header-accent);
  border-radius: 2px;
  opacity: 0.8;
}

.prompt-line {
  font-size: 11px;
  color: var(--header-muted);
  margin-bottom: 6px;
}
.prompt-line span.dir   { color: var(--header-link); }
.prompt-line span.arrow { color: var(--header-accent); }

.name {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.name span.last { color: var(--header-accent); }

.title {
  font-size: 11px;
  font-weight: 400;
  color: var(--header-accent);
  margin-top: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-meta {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 40px;
  font-size: 11px;
  color: var(--header-muted);
}
.header-meta a { color: var(--header-link); text-decoration: none; }
.header-meta .key { color: var(--header-accent); margin-right: 4px; }

.cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--header-accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.body { padding: 32px 40px; }

.section { margin-bottom: var(--section-gap); }

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.section-header .prefix { color: var(--accent); font-weight: 700; font-size: 13px; }
.section-header h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-text {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
  max-width: 700px;
  margin-bottom: 5px;
}
.profile-text:last-child { margin-bottom: 0; }

.job { margin-bottom: 22px; }
.job:last-child { margin-bottom: 0; }

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}
.job-title { font-weight: 600; font-size: 15px; }

.job-period { font-size: 10.5px; color: var(--muted); font-weight: 500; white-space: nowrap; }

.job-company {
  font-size: 12px;
  color: var(--accent-dim);
  margin-bottom: 8px;
  margin-top: 2px;
}
.job-company a {
  color: var(--accent-dim);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent-dim);
}

.job ul { list-style: none; padding: 0; }
.job ul li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
  margin-bottom: 4px;
}
.job ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 10px;
  top: 2px;
}

.job-divider {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 18px 0;
}
.job-divider.page-break { margin: 28px 0; }

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 40px;
}
.skill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.skill-item::before {
  content: '→';
  color: var(--accent);
  font-size: 11px;
  flex-shrink: 0;
}

.edu-item { margin-bottom: 12px; }
.edu-item:last-child { margin-bottom: 0; }
.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.edu-school { font-weight: 600; font-size: 12.5px; }
.edu-period { font-size: 10.5px; color: var(--accent); }
.edu-degree { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

.lang-list { display: flex; gap: 28px; flex-wrap: wrap; }
.lang-item { font-size: 12px; color: var(--muted); }
.lang-item strong { color: var(--text); font-weight: 500; }

.phone-field, .email-field { display: none; }

.dl-bar {
  padding: 16px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.dl-prompt { font-size: 13px; color: var(--muted); }
.dl-arrow { color: var(--accent); }
.dl-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 13px;
  padding: 4px 12px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}
.dl-btn:hover { background: var(--accent); color: #fff; }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 28px 32px;
  width: 400px;
  max-width: 90vw;
  position: relative;
  border: 1px solid rgba(233,84,32,0.3);
}
.modal-title {
  font-size: 10px;
  color: var(--header-muted);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.modal-prompt {
  font-size: 11px;
  color: var(--header-muted);
  margin-bottom: 10px;
}
.modal-dir { color: var(--header-link); }
.modal-arrow { color: var(--header-accent); }
.modal-input-row { display: flex; align-items: center; gap: 8px; }
.modal-input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--header-accent);
  color: var(--header-text);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 12px;
  padding: 4px 0;
  outline: none;
}
.modal-submit {
  background: var(--header-accent);
  border: none;
  color: #fff;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
}
.modal-submit:disabled { opacity: 0.5; cursor: wait; }
.modal-error { margin-top: 12px; font-size: 10.5px; color: #e05c5c; min-height: 16px; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--header-muted);
  font-size: 12px;
  cursor: pointer;
}
.modal-close:hover { color: var(--header-text); }

@media print {
  body { max-width: 100%; font-size: 11px; }
  .cursor { animation: none; }
  .dl-bar, .modal-overlay { display: none; }
  .phone-field, .email-field { display: block; }
  .header { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .page-break { break-after: page; page-break-after: always; }
  .page-break + .job { padding-top: 33px; }
  @page { margin: 0; }
}
