.cv-cover {
  --cv-navy: #172333;
  --cv-bronze: #8b442c;
  color: var(--cv-navy);
  background: #eee8de;
  border-bottom: 1px solid #cfbfb0;
}
.cv-cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .52fr);
  align-items: center;
  gap: clamp(28px, 6.4vw, 94px);
  padding-block: clamp(33px, 5vw, 73px);
}
.cv-location {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cv-bronze);
}
.cv-location::before {
  content: '';
  width: 26px;
  height: 2px;
  background: currentColor;
}
.cv-cover h1 {
  font-size: clamp(3.2rem, 6.1vw, 6rem);
  line-height: 1.01;
  margin-block: 12px 13px;
}
.cv-title { font-size: clamp(1.05rem, 2.2vw, 1.6rem); font-weight: 690; line-height: 1.2; }
.cv-cover .cv-byline { color: #574f4b; margin-top: 8px; font-size: .89rem; }
.cv-byline span { padding-inline: .2em; }
.cv-cover .cv-summary { color: #443d3a; max-width: 57ch; margin-top: 23px; line-height: 1.62; }
.cv-cover-actions,.cv-close-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 15px; }
.cv-cover-actions { margin-top: 23px; }
.cv-cover-actions > span { color: #574f4b; font: 600 .73rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.cv-cover .cv-download { background: var(--cv-navy); color: #fff7ed; border-color: var(--cv-navy); }
.cv-cover .cv-download:hover { background: #773923; border-color: #773923; }
.cv-cover-links,.cv-source-links { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; }
.cv-cover-links { margin-top: 6px; }
.cv-cover-links a,.cv-source-links a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: .82rem; font-weight: 660;
}
.cv-cover-links a { color: #3e464e; }
.cv-cover-links a:hover { color: #773923; }
.cv-portrait {
  width: 100%;
  max-width: 420px;
  justify-self: end;
  border: 1px solid #677281;
  background: #121c2a;
  padding: 8px;
  box-shadow: 10px 10px 0 #d8c9b8;
}
.cv-portrait img {
  aspect-ratio: 1;
  height: auto;
  width: 100%;
  object-fit: cover;
}
.cv-featured { color: #fff5e8; background: #172333; }
.cv-featured ul { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 0; }
.cv-featured li + li { border-inline-start: 1px solid #4a5665; }
.cv-featured li a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 15px clamp(12px, 2.4vw, 34px);
  min-height: 75px; text-decoration: none;
}
.cv-featured li a:hover { background: #233247; }
.cv-featured a:focus-visible { outline-color: #ffd2a0; outline-offset: -4px; }
.cv-featured a .folio-label,.cv-featured a > span { color: #ffce9e; }
.cv-featured a strong { display: block; margin-top: 2px; }
.cv-content {
  display: grid; grid-template-columns: minmax(164px, .24fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 78px); padding-block: clamp(27px, 5.4vw, 74px);
}
.cv-index {
  position: sticky; top: 98px; align-self: start; padding: 15px 15px 7px;
  background: #ece5d9; border-top: 3px solid #172333;
}
.cv-index ol,.cv-roles,.cv-projects { list-style: none; padding: 0; margin: 0; }
.cv-index ol { margin-top: 6px; }
.cv-index a {
  display: flex; align-items: center; min-height: 44px; gap: 10px;
  font-size: .86rem; font-weight: 650; text-decoration: none;
}
.cv-index a:hover { text-decoration: underline; color: var(--accent); }
.cv-index a span,.cv-section-heading > span,.cv-project-top > span { color: var(--accent); font: 650 .72rem/1.25 var(--mono); }
.cv-index .cv-index-download { border-top: 1px solid #d3c3b6; margin-top: 5px; }
.cv-section + .cv-section { margin-top: clamp(42px, 6vw, 80px); }
.cv-section-heading {
  display: flex; align-items: baseline; gap: 13px; padding: 0 0 17px; border-bottom: 2px solid #172333;
}
.cv-section-heading h2 { font-size: clamp(2.25rem, 4.5vw, 4.2rem); }
.cv-section-heading h2:target { color: var(--accent); }
.cv-role,.cv-skills > div,.cv-education {
  padding-block: clamp(18px, 2.45vw, 31px);
  border-bottom: 1px solid var(--rule);
}
.cv-role-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 9px 16px; }
.cv-role h3 { font-size: clamp(1.58rem, 3vw, 2.28rem); margin-bottom: 8px; }
.cv-role-title { color: #7b3527; font-weight: 700; font-size: .96rem; }
.cv-period { color: var(--muted); font: 600 .74rem/1.45 var(--mono); }
.cv-role-heading .cv-period { padding: 4px 8px; background: #ede5d9; }
.cv-role ul { margin: 14px 0 0; padding-inline-start: 1.2em; max-width: 79ch; }
.cv-role li + li { margin-top: 5px; }
.cv-role li::marker { color: var(--accent); }
.cv-source-links { margin-top: 2px; }
.cv-source-links a { color: #872c20; }
.cv-source-links a:hover { color: #481711; }
.cv-projects {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; margin-top: 18px;
}
.cv-project {
  height: 100%; display: flex; flex-direction: column;
  padding: clamp(15px, 2vw, 26px) clamp(16px, 2.1vw, 28px) 10px;
  border: 1px solid #d7cbbd;
  background: #fcfaf5;
}
.cv-project-top { display: flex; justify-content: space-between; align-items: baseline; gap: 9px; }
.cv-project h3,.cv-education h3 { font-size: clamp(1.7rem, 3.1vw, 2.45rem); }
.cv-project h3 { margin-block: 8px 13px; }
.cv-project p:not(.folio-label),.cv-foundations,.cv-skills dd { color: var(--muted); }
.cv-project .cv-proof { margin-top: 13px; padding-top: 11px; border-top: 1px solid #e1d7cc; }
.cv-proof strong { display: block; color: #293746; font-size: .85rem; }
.cv-project .cv-source-links { margin-top: auto; padding-top: 7px; }
.cv-skills > div,.cv-education {
  display: grid; grid-template-columns: minmax(145px, .5fr) minmax(0, 1fr); gap: 10px clamp(16px, 4vw, 55px);
}
.cv-education .cv-period { margin-top: 8px; }
.cv-foundations p + p { margin-top: 9px; }
.cv-skills dt { font-weight: 710; }
.cv-close {
  background: #eee5da; border: 1px solid #d9c9b8; margin-top: clamp(30px, 5vw, 60px);
  padding: clamp(20px, 4vw, 42px);
}
.cv-close h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 9px; }
.cv-close-actions { margin-top: 20px; }
@media (max-width: 760px) {
  .cv-cover-grid { grid-template-columns: minmax(0, 1fr); }
  .cv-cover h1 { font-size: clamp(2.45rem, 9.8vw, 4.5rem); }
  .cv-portrait { max-width: 305px; width: calc(100% - 10px); justify-self: start; }
  .cv-content { grid-template-columns: minmax(0, 1fr); }
  .cv-index { position: static; }
  .cv-index ol { display: flex; flex-wrap: wrap; column-gap: 17px; }
}
@media (max-width: 530px) {
  .cv-projects,.cv-skills > div,.cv-education,.cv-featured ul { grid-template-columns: minmax(0, 1fr); }
  .cv-featured li + li { border-inline-start: 0; border-top: 1px solid #4a5665; }
  .cv-featured li a { min-height: 65px; padding-inline: 2px; }
}
@media (prefers-reduced-motion: no-preference) {
  .cv-cover-copy,.cv-portrait { animation: cv-arrive .45s cubic-bezier(.2,.7,.24,1) both; }
  .cv-portrait { animation-delay: .06s; }
  @keyframes cv-arrive { from { transform: translateY(10px); } to { transform: none; } }
}
