/* ============================================================
   Madison Newman — Resume
   Design concept: engineer's blueprint. Cool paper, navy ink,
   a single circuit-teal accent, mono "code comment" section
   labels that nod to the REST-API / robotics background.
   ============================================================ */

:root {
  --paper:      #F3F6F5;
  --paper-edge: #E4E9E8;
  --ink:        #16212A;
  --ink-soft:   #4A5760;
  --muted:      #8B979C;
  --accent:     #0E7C7B;
  --accent-dim: #CFE3E1;
  --line:       #D3DBDA;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'IBM Plex Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper-edge);
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.sheet {
  max-width: 780px;
  margin: 48px auto;
  background: var(--paper);
  padding: 56px 64px 64px;
  border: 1px solid var(--line);
}

/* ===== HEADER ===== */

.header { margin-bottom: 28px; }

.name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin: 6px 0 18px;
  letter-spacing: 0.01em;
}

.trace { width: 100%; height: 14px; margin-bottom: 16px; }
.trace svg { width: 100%; height: 100%; display: block; }
.trace-line { stroke: var(--line); stroke-width: 1.5; }
.trace-node { fill: var(--paper); stroke: var(--accent); stroke-width: 1.5; }

.contact {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.contact li {
  margin: 0 22px 6px 0;
  white-space: nowrap;
}

.contact li:last-child { margin-right: 0; }

.contact .label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  margin-right: 6px;
}

/* ===== SECTIONS ===== */

.section {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.section-title { margin: 0 0 14px; }

.tag {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.summary {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
  max-width: 62ch;
}

/* ===== ENTRIES (experience / education / projects) ===== */

.entry { margin-bottom: 20px; }
.entry:last-child { margin-bottom: 0; }

.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.entry-head h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

.entry-head .org {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink-soft);
}

.date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.bullets {
  margin: 8px 0 0;
  padding-left: 18px;
}

.bullets li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.entry-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 8px 0 0;
}

.repo-link {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 1px;
}

.repo-link:hover { border-bottom-color: var(--accent); }

/* ===== SKILLS ===== */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 3px;
}

/* ===== PLAIN LIST (achievements) ===== */

.plain-list {
  margin: 0;
  padding-left: 18px;
}

.plain-list li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 5px;
}

/* ===== FOOTER ===== */

.footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}

.footer .views {
  margin-top: 6px;
}

/* ===== PRINT ===== */

@media print {
  body { background: #fff; }
  .sheet { border: none; margin: 0; padding: 28px 36px; max-width: 100%; }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 600px) {
  .sheet { padding: 36px 24px 44px; }
  .name { font-size: 32px; }
  .entry-head { flex-direction: column; gap: 2px; }
}

/* ===== ACCESSIBILITY ===== */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}