:root {
  --color-primary: #004f90;
  --color-text: #111;
  --color-muted: #555;
  --color-light: #888;
  --color-rule: #ddd;
  --color-bg: #fff;
  --color-selection: #004f9018;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

::selection {
  background: var(--color-selection);
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  max-width: 780px;
  margin: 4rem auto;
  padding: 0 2rem;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* =====================
   ICONS
   ===================== */
.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

/* =====================
   HEADER
   ===================== */
header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.photo {
  width: 110px;
  height: 138px;
  object-fit: cover;
  flex-shrink: 0;
}

.header-content {
  flex: 1;
  min-width: 0;
}

/* Level 1: Name */
header h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.6rem;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

/* Contact row with icons */
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-bottom: 0.6rem;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  text-decoration: none;
}

.contact-item:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-item .icon {
  width: 0.95em;
  height: 0.95em;
  opacity: 0.7;
}

/* Header meta row */
.header-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.25rem;
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--color-light);
}

.location .icon {
  width: 0.9em;
  height: 0.9em;
  opacity: 0.6;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: var(--color-text);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
}

.download-btn .icon {
  width: 0.9em;
  height: 0.9em;
}

.download-btn:hover {
  background: #333;
  text-decoration: none;
}

.download-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* =====================
   SECTIONS
   ===================== */
section {
  margin-bottom: 1.75rem;
}

section:last-child {
  margin-bottom: 0;
}

/* Level 2: Section titles */
h2 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-light);
  margin-bottom: 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-rule);
}

/* =====================
   ENTRIES
   ===================== */
.entry {
  margin-bottom: 1.5rem;
}

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

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
  gap: 0.35rem 1rem;
}

/* Level 3: Entry titles */
.entry-header strong,
.entry-header > div > strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
}

/* Level 4: Subtitles */
.subtitle {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-muted);
  margin-top: 0.1rem;
}

/* Level 5: Metadata */
.date {
  font-size: 0.8rem;
  color: var(--color-light);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 400;
}

.link .icon {
  width: 0.85em;
  height: 0.85em;
  opacity: 0.7;
}

.link:hover .icon {
  opacity: 1;
}

/* =====================
   LISTS (Level 6: Body)
   ===================== */
ul {
  padding-left: 0;
  margin: 0.5rem 0 0 0;
  list-style: none;
}

li {
  margin-bottom: 0.35rem;
  line-height: 1.5;
  padding-left: 0.9rem;
  position: relative;
  font-size: 0.925rem;
}

li:last-child {
  margin-bottom: 0;
}

li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 3px;
  height: 3px;
  background: var(--color-light);
  border-radius: 50%;
}

/* Bold labels in highlights use serif */
li strong {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
}

/* =====================
   PARAGRAPHS
   ===================== */
section > p {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  font-size: 0.925rem;
}

section > p:last-child {
  margin-bottom: 0;
}

/* Bold labels in paragraphs use serif */
section > p strong {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
}

/* =====================
   HONORS (compact entries)
   ===================== */
section > .entry-header {
  margin-bottom: 0.5rem;
}

section > .entry-header:last-child {
  margin-bottom: 0;
}

section > .entry-header strong {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  font-style: normal;
}

section > .entry-header > div {
  font-size: 0.925rem;
}

/* =====================
   PRINT
   ===================== */
@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    margin: 0;
    padding: 0.6cm;
    max-width: none;
    font-size: 9.5pt;
    color: #000;
  }

  a {
    color: #000;
  }

  header {
    margin-bottom: 1.25rem;
    gap: 1.5rem;
  }

  header h1 {
    font-size: 20pt;
    color: #000;
    margin-bottom: 0.5rem;
  }

  .photo {
    width: 85px;
    height: 106px;
  }

  .contact {
    gap: 0.3rem 1rem;
  }

  .contact-item {
    font-size: 8.5pt;
  }

  .header-meta {
    margin-top: 0.15rem;
  }

  .location {
    font-size: 8pt;
  }

  section {
    margin-bottom: 1.25rem;
  }

  h2 {
    border-bottom: 0.5pt solid #ccc;
    color: #666;
    margin-bottom: 0.6rem;
    padding-bottom: 0.3rem;
  }

  .entry {
    margin-bottom: 0.9rem;
  }

  .entry-header strong,
  .entry-header > div > strong {
    font-size: 10.5pt;
    color: #000;
  }

  .download-btn {
    display: none;
  }

  section > .entry-header strong {
    color: #000;
  }

  .date, .subtitle, .contact-item, .location {
    color: #444;
  }

  .link {
    color: #000;
  }

  li::before {
    background: #666;
  }

  li, section > p {
    font-size: 9pt;
  }

  .icon {
    opacity: 0.6;
  }
}

/* =====================
   MOBILE
   ===================== */
@media (max-width: 600px) {
  body {
    padding: 1.25rem;
    margin: 0;
    font-size: 14px;
  }

  header {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
    align-items: center;
  }

  .header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .photo {
    width: 100px;
    height: 125px;
  }

  header h1 {
    font-size: 1.9rem;
  }

  .contact {
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
  }

  .header-meta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .entry-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .date {
    text-align: left;
  }

  h2 {
    font-size: 0.65rem;
  }

  .entry-header strong,
  .entry-header > div > strong {
    font-size: 1.05rem;
  }

  .download-btn {
    margin-top: 0;
  }
}
