/* Complete CV reading surface. Print and responsive rules live with the page. */
.cv-page {
  --text: var(--ink);
  --text-primary: var(--ink);
  --muted: #52605e;
  --text-muted: #52605e;
  --accent: #4b645a;
  --line: rgba(7, 27, 35, .19);
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
  padding: 0 var(--gutter);
  max-width: none;
  margin: auto;
}
.cv-page > section, .cv-page > .cv-index { max-width: 1440px; margin-inline: auto; }
.cv-intro { padding: clamp(55px, 7vw, 100px) 0 43px; }
.cv-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(59px, 8vw, 118px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.045em;
  margin: 27px 0 24px;
}
.cv-intro > .lead {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 38px);
  letter-spacing: -.025em;
  line-height: 1.3;
  color: var(--ink);
}
.cv-page .eyebrow { font-family: var(--font-sans); font-size: 14px; letter-spacing: .075em; color: var(--accent); }
.cv-intro-bottom { display: flex; align-items: start; justify-content: space-between; gap: 8%; margin-top: 28px; }
.cv-intro-bottom > p { font-size: 17px; line-height: 1.75; max-width: 780px; color: var(--muted); }
.cv-page .pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  min-height: 48px;
  border: 1px solid var(--ink);
  padding: 14px 23px;
  gap: 30px;
  font-size: 14px;
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  white-space: normal;
}
.cv-index { display: flex; flex-wrap: wrap; gap: 8px 30px; border-block: 1px solid var(--line); padding-block: 12px; font-size: 14px; }
.cv-index a { min-height: 44px; display: inline-flex; align-items: center; }
.cv-index a:hover { color: var(--accent); }
.cv-section { display: grid; grid-template-columns: .8fr 1.8fr; gap: 8%; padding-block: 60px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.cv-section > div { min-width: 0; }
.cv-section > h2 { font-family: var(--font-display); font-size: clamp(33px, 3.2vw, 49px); font-weight: 400; line-height: 1.12; letter-spacing: -.035em; max-width: 330px; }
.cv-entry { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 25px; padding-block: 26px; border-top: 1px solid var(--line); break-inside: avoid; }
.cv-entry:first-child { border-top: 0; padding-top: 0; }
.cv-date { font-family: var(--font-sans); font-size: 14px; line-height: 1.7; color: var(--accent); padding-top: 3px; }
.cv-entry h3 { font-family: var(--font-sans); font-size: 20px; font-weight: 500; line-height: 1.4; letter-spacing: -.02em; color: var(--ink); margin-bottom: 10px; max-width: 620px; }
.cv-entry p:not(.cv-date), .cv-education p:last-child, .cv-interests p { font-size: 17px; line-height: 1.75; color: var(--muted); max-width: 700px; }
.cv-entry p.cv-organization { font-size: 14px; color: var(--ink); margin-bottom: 10px; }
.cv-entry p + p { margin-top: 8px; }
.cv-publication h3 { font-family: var(--font-display); font-size: 29px; line-height: 1.2; font-weight: 400; letter-spacing: -.025em; }
.cv-entry p.cv-authors { font-size: 14px; color: var(--ink); }
.cv-education { padding: 25px 0; border-top: 1px solid var(--line); }
.cv-education:first-child { padding-top: 0; border-top: 0; }
.cv-education h3 { font-family: var(--font-display); font-size: 33px; font-weight: 400; line-height: 1.2; margin-bottom: 9px; }
.cv-education .cv-organization { font-size: 15px; color: var(--ink); margin-bottom: 9px; }
.cv-interests p { margin-bottom: 15px; }
.cv-page .text-link { font-size: 14px; line-height: 1.5; min-height: 44px; color: var(--ink); }
.cv-section .text-link { margin-top: 15px; }
.cv-contact { padding-block: 55px 80px; }
.cv-contact h2 { font-family: var(--font-display); font-size: clamp(43px, 5vw, 74px); font-weight: 400; line-height: 1.1; letter-spacing: -.035em; margin-block: 24px; }
.cv-contact .text-link { font-size: 17px; overflow-wrap: anywhere; }
.cv-page a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

@media (max-width: 950px) {
  .cv-section { grid-template-columns: .7fr 1.3fr; gap: 7%; }
  .cv-entry { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 680px) {
  .cv-intro { padding-top: 45px; padding-bottom: 33px; }
  .cv-intro h1 { font-size: clamp(49px, 11.5vw, 78px); }
  .cv-intro-bottom { flex-direction: column; gap: 24px; }
  .cv-intro-bottom > p { font-size: 17px; line-height: 1.7; }
  .cv-index { gap: 3px 23px; }
  .cv-section { grid-template-columns: 1fr; gap: 27px; padding-block: 42px; }
  .cv-section > h2 { font-size: 36px; max-width: 500px; }
  .cv-entry { gap: 9px; padding-block: 24px; }
  .cv-publication h3 { font-size: 27px; }
  .cv-contact { padding-block: 45px 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .cv-page a { transition: none; transform: none; }
}
@media print {
  .site-header, .site-footer, .skip-link, .cv-index, .cv-page .pill-link, .cv-contact { display: none !important; }
  body { background: #fff; color: #000; }
  .cv-page { padding: 0; background: #fff; color: #000; --ink: #000; --muted: #333; --line: #bbb; --accent: #333; }
  .cv-intro { padding: 0 0 15px; }
  .cv-intro h1 { font-size: 28pt; }
  .cv-intro > .lead { font-size: 14pt; }
  .cv-intro-bottom > p { font-size: 10pt; line-height: 1.5; max-width: none; }
  .cv-section { grid-template-columns: 1fr 2.5fr; gap: 20px; padding-block: 18px; }
  .cv-section > h2 { font-size: 16pt; }
  .cv-entry { grid-template-columns: 70px minmax(0, 1fr); gap: 15px; padding-block: 12px; }
  .cv-entry h3, .cv-publication h3 { font-size: 11pt; }
  .cv-entry p:not(.cv-date), .cv-date, .cv-education p:last-child, .cv-interests p { font-size: 9pt; line-height: 1.5; }
  .cv-education h3 { font-size: 15pt; }
}
