:root {
  --paper: #F4F6F9;
  --card: #FFFFFF;
  --ink: #1B2A41;
  --muted: #5B6B82;
  --line: #D6DCE5;
  --blue: #1F5FD1;
  --stub: #FFC845;
  --stub-ink: #4A3A00;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cond: "IBM Plex Sans Condensed", "Arial Narrow", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
}
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

header.top { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; }
.name-mark { font: 600 18px/1 var(--cond); letter-spacing: .01em; color: var(--ink); text-decoration: none; }
.btn {
  display: inline-block; font: 500 15px/1 var(--sans); text-decoration: none;
  padding: 12px 18px; border-radius: 8px; border: 1.5px solid var(--ink); color: var(--ink); background: transparent;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover { background: var(--blue); border-color: var(--blue); }

/* Boarding pass hero */
.pass {
  margin: 24px 0 72px;
  display: grid; grid-template-columns: 1fr 220px;
  background: var(--card); border-radius: 18px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(27,42,65,.35);
  overflow: hidden; position: relative;
}
.pass-main { padding: 32px 32px 28px; }
.pass-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.pass-head span { font: 500 14px/1.2 var(--cond); color: var(--muted); }
.pass h1 { font: 600 clamp(40px, 7vw, 64px)/1.02 var(--cond); letter-spacing: -.01em; margin: 22px 0 6px; }
.role { font: 400 20px/1.4 var(--sans); color: var(--muted); margin: 0 0 26px; }
.route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-bottom: 26px; }
.route b { font: 600 26px/1 var(--cond); }
.route small { display: block; font: 400 13px/1.3 var(--sans); color: var(--muted); margin-top: 4px; }
.route .path { height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px); position: relative; }
.route .path::after {
  content: ""; position: absolute; right: -2px; top: -5px;
  border-left: 10px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 20px; margin: 0; }
.fields dt { font: 400 13px/1.3 var(--sans); color: var(--muted); }
.fields dd { margin: 2px 0 0; font: 500 16px/1.35 var(--cond); }

.pass-stub {
  background: var(--stub); color: var(--stub-ink);
  padding: 32px 24px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  border-left: 2px dashed rgba(74,58,0,.35); position: relative;
}
.pass-stub::before, .pass-stub::after {
  content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper);
}
.pass-stub::before { top: -12px; }
.pass-stub::after { bottom: -12px; }
.stub-status { font: 600 22px/1.15 var(--cond); margin: 0; }
.stub-note { font: 400 14px/1.45 var(--sans); margin: 8px 0 0; }
.barcode { height: 54px; background: repeating-linear-gradient(90deg, var(--stub-ink) 0 2px, transparent 2px 4px, var(--stub-ink) 4px 7px, transparent 7px 9px, var(--stub-ink) 9px 10px, transparent 10px 13px); opacity: .85; border-radius: 2px; }
.pass-stub .btn { border-color: var(--stub-ink); color: var(--stub-ink); text-align: center; }
.pass-stub .btn:hover { background: var(--stub-ink); color: var(--stub); }

@media (prefers-reduced-motion: no-preference) {
  .pass-main { animation: slide 700ms cubic-bezier(.2,.7,.2,1) both; }
  .pass-stub { animation: stub 700ms 250ms cubic-bezier(.2,.7,.2,1) both; }
  @keyframes slide { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes stub { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
}

/* Sections */
section { padding: 8px 0 56px; }
h2 { font: 600 28px/1.2 var(--cond); margin: 0 0 18px; }
.lead { font-size: 19px; line-height: 1.6; max-width: 62ch; margin: 0; }
p { max-width: 66ch; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline > li { position: relative; padding: 0 0 36px 28px; }
.timeline > li:last-child { padding-bottom: 4px; }
.timeline > li::before {
  content: ""; position: absolute; left: -8px; top: 7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--blue);
}
.job-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.job-head h3 { font: 600 21px/1.3 var(--cond); margin: 0; }
.when { font: 400 15px/1.5 var(--sans); color: var(--muted); white-space: nowrap; }
.org { margin: 2px 0 10px; color: var(--muted); }
.steps { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.timeline ul { margin: 0; padding-left: 20px; }
.timeline ul li { margin: 6px 0; }

.skills { display: grid; grid-template-columns: 180px 1fr; gap: 12px 24px; margin: 0; }
.skills dt { font: 600 16px/1.5 var(--cond); }
.skills dd { margin: 0; color: var(--ink); }

.edu { margin: 0; padding: 0; list-style: none; }
.edu li { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); }
.edu li:last-child { border-bottom: 1px solid var(--line); }
.edu li > div { flex: 1 1 320px; }
.edu li > span { white-space: nowrap; }
.edu strong { font: 600 17px/1.4 var(--cond); display: block; }
.edu span { color: var(--muted); }

.contact { background: var(--ink); color: #fff; border-radius: 18px; padding: 36px 32px; margin-bottom: 40px; }
.contact h2 { color: #fff; }
.contact p { color: #C9D3E3; margin: 0 0 22px; }
.contact .links { display: flex; flex-wrap: wrap; gap: 12px; }
.contact .btn { border-color: #fff; color: #fff; }
.contact .btn:hover { background: #fff; color: var(--ink); }
.contact .btn.solid { background: #fff; color: var(--ink); }
.contact .btn.solid:hover { background: var(--stub); border-color: var(--stub); }
footer { color: var(--muted); font-size: 14px; padding: 0 0 40px; }

@media (max-width: 720px) {
  .pass { grid-template-columns: 1fr; }
  .pass-stub { border-left: 0; border-top: 2px dashed rgba(74,58,0,.35); flex-direction: row; flex-wrap: wrap; align-items: center; }
  .pass-stub::before { top: -13px; left: -12px; }
  .pass-stub::after { top: -13px; bottom: auto; left: auto; right: -12px; }
  .pass-stub .barcode { display: none; }
  .fields { grid-template-columns: repeat(2, 1fr); }
  .route { grid-template-columns: 1fr 48px 1fr; gap: 10px; }
  .skills { grid-template-columns: 1fr; gap: 2px; }
  .skills dd { margin-bottom: 12px; }
  .pass-main { padding: 24px 22px; }
}
