/* David B. Wheeler | wheelernc.com
   Clean executive style: dark navy and white, serif headlines, large type. */

:root {
  --navy: #0f1f3d;
  --navy-soft: #1c3157;
  --ink: #1a1a1a;
  --body-text: #2b2b2b;
  --rule: #d6dae2;
  --paper: #ffffff;
  --accent: #b08d3f;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body-text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

.wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Masthead ---------- */

.masthead {
  background: var(--navy);
  color: #fff;
  padding: 76px 0 60px;
  border-bottom: 6px solid var(--accent);
}

.masthead h1 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 54px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 14px;
  color: #fff;
}

.tagline {
  font-size: 22px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 30px;
  color: #c9d2e2;
}

/* ---------- Contact lists ---------- */

.contact {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 17px;
}

.contact a {
  color: #e8edf6;
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 237, 246, 0.45);
  padding-bottom: 2px;
}

.contact a:hover,
.contact a:focus { color: #fff; border-bottom-color: #fff; }

.contact-block { margin-bottom: 28px; }

.contact-block a {
  color: var(--navy-soft);
  border-bottom: 1px solid rgba(28, 49, 87, 0.35);
}

.contact-block a:hover,
.contact-block a:focus { color: var(--navy); border-bottom-color: var(--navy); }

/* ---------- Button ---------- */

.cta-row { margin: 0; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #12203c;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 38px;
  border-radius: 3px;
  border: 2px solid var(--accent);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover,
.btn:focus {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}

#contact .btn {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

#contact .btn:hover,
#contact .btn:focus {
  background: var(--accent);
  border-color: var(--accent);
  color: #12203c;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Sections ---------- */

main { padding: 12px 0 20px; }

section {
  padding: 52px 0;
  border-bottom: 1px solid var(--rule);
}

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

h2 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 32px;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 26px;
  letter-spacing: 0.01em;
}

h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 24px;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 6px;
}

p { font-size: 18px; margin: 0 0 18px; }

#summary p { font-size: 19px; }

/* ---------- Roles ---------- */

.role { margin: 0 0 42px; }
.role:last-child { margin-bottom: 0; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0 0 16px;
  font-size: 17px;
}

.meta .title {
  font-weight: 700;
  color: var(--navy-soft);
  letter-spacing: 0.02em;
}

.meta .dates {
  color: #5c6478;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 16px;
}

.role ul {
  margin: 0;
  padding-left: 24px;
}

.role li {
  font-size: 18px;
  margin-bottom: 12px;
  padding-left: 4px;
}

.role li::marker { color: var(--accent); }

/* ---------- Skills and media ---------- */

.skills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
}

.skills li {
  font-size: 17px;
  padding-left: 20px;
  position: relative;
}

.skills li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.media-list {
  margin: 0;
  padding-left: 24px;
}

.media-list li {
  font-size: 18px;
  margin-bottom: 10px;
}

.media-list li::marker { color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #b9c3d6;
  padding: 34px 0;
  margin-top: 20px;
}

.site-footer p {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.04em;
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }

  .masthead { padding: 52px 0 44px; }
  .masthead h1 { font-size: 38px; }
  .tagline { font-size: 19px; margin-bottom: 24px; }

  .contact { gap: 10px 0; flex-direction: column; font-size: 17px; }

  .btn {
    display: block;
    text-align: center;
    font-size: 17px;
    padding: 17px 24px;
  }

  section { padding: 40px 0; }
  h2 { font-size: 27px; }
  h3 { font-size: 22px; }

  .skills { grid-template-columns: 1fr; }
}

/* ---------- Print: clean backup resume ---------- */

@media print {
  @page { margin: 14mm; }

  body {
    font-size: 10.5pt;
    line-height: 1.34;
    color: #000;
    background: #fff;
  }

  .wrap { max-width: none; padding: 0; }

  .masthead {
    background: none;
    color: #000;
    padding: 0 0 8pt;
    border-bottom: 1.5pt solid #000;
    margin-bottom: 11pt;
  }

  .masthead h1 { font-size: 22pt; color: #000; margin-bottom: 2pt; }

  .tagline {
    font-size: 11pt;
    color: #000;
    margin-bottom: 7pt;
    letter-spacing: 0.12em;
  }

  .contact {
    flex-direction: row;
    gap: 4pt 18pt;
    font-size: 10pt;
    margin-bottom: 0;
  }

  .contact a,
  .contact-block a {
    color: #000;
    border-bottom: none;
    text-decoration: none;
  }

  /* Buttons and duplicate contact block are screen-only */
  .cta-row,
  #contact { display: none; }

  main { padding: 0; }

  /* Sections must be allowed to flow across pages, otherwise a long
     section is pushed whole onto the next sheet and leaves a half
     empty page. Keep individual roles intact instead. */
  section {
    padding: 0 0 10pt;
    border-bottom: none;
    break-inside: auto;
  }

  h2 {
    font-size: 12.5pt;
    color: #000;
    margin: 0 0 6pt;
    padding-bottom: 2.5pt;
    border-bottom: 0.75pt solid #666;
    break-after: avoid;
  }

  h3 { font-size: 11.5pt; color: #000; margin-bottom: 1pt; break-after: avoid; }

  p { font-size: 10.5pt; margin-bottom: 6pt; }
  #summary p { font-size: 10.5pt; }

  /* Keep each job block whole so a role never splits across sheets */
  .role { margin-bottom: 10pt; break-inside: avoid; }

  .meta { font-size: 9.5pt; margin-bottom: 4pt; gap: 2pt 14pt; }
  .meta .dates { font-size: 9.5pt; color: #000; }
  .meta .title { color: #000; }

  .role li { font-size: 10pt; margin-bottom: 2pt; }
  .role li::marker { color: #000; }

  .skills {
    grid-template-columns: repeat(3, 1fr);
    gap: 2pt 16pt;
  }

  .skills li { font-size: 9.5pt; }
  .skills li::before { background: #000; width: 4px; height: 4px; top: 0.55em; }

  /* Run the publication list inline rather than one name per line */
  .media-list {
    padding-left: 0;
    list-style: none;
  }

  .media-list li {
    display: inline;
    font-size: 10pt;
    margin: 0;
  }

  .media-list li:not(:last-child)::after { content: ",\00a0"; }

  .site-footer { display: none; }
}
