/* A restrained editorial grid: type and space do the separating. */
:root {
  --bg: #fafaf8;
  --text: #171717;
  --muted: #64645f;
  --meta: #55554f;
  --rule: #d8d8d1;
  --subrule: #e0e0da;
  --nav-hover: #171717;
  --link-hover-underline: #b7b7b2;
}

.page {
  grid-template-columns: minmax(0, 1fr) minmax(0, 860px) minmax(0, 1fr);
  max-width: 1500px;
}
.sidebar { width: min(160px, 100%); padding-top: 5.5rem; }
.sidebar-label { margin-bottom: 1rem; color: var(--muted); font-size: .75rem; font-weight: 500; }
.toc { gap: .2rem; }
.toc a { width: fit-content; border: 0; padding: .45rem 0; color: var(--muted); font-weight: 400; text-decoration: none; }
.toc a[aria-current="location"] { border: 0; color: var(--text); font-weight: 700; }
.toc a:focus-visible { color: var(--text); text-decoration: underline; text-decoration-color: var(--name-accent); }
@media (hover: hover) and (pointer: fine) {
  .toc a:hover { color: var(--text); background: none; border: 0; text-decoration: underline; text-decoration-color: var(--name-accent); }
}

.hero { display: block; margin-top: 5.5rem; padding: 0; border: 0; }
.hero-poster { display: grid; grid-template-columns: minmax(0, 1fr) 215px; align-items: end; gap: 2.75rem; }
.hero-intro { min-width: 0; }
.hero-poster h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(3.5rem, 6vw, 5.4rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .95;
}
.hero-poster h1 span { display: block; }
.hero-photo { width: 100%; height: auto; border: 0; }
.hero-role { display: block; width: fit-content; max-width: none; margin: 1.8rem 0 0; padding: 0; border: 0; font-size: 1.4rem; font-weight: 500; letter-spacing: -.025em; line-height: 1.3; }
.hero-contact { display: flex; align-items: end; gap: 2rem; margin-top: 3rem; }
.contact { display: grid; gap: .3rem; margin: 0; color: var(--meta); font-size: .9375rem; font-weight: 500; line-height: 1.4; }
.contact > * { display: block; padding: 0; border: 0; }
.contact a, .pdf-link { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: .9375rem; font-weight: 500; line-height: 1.4; }
.contact a { position: relative; color: var(--text); text-decoration-color: var(--underline); }
.contact-icon { position: absolute; top: 50%; left: -1.15rem; width: .85rem; height: .85rem; opacity: 0; pointer-events: none; transform: translateY(-50%); }
.contact a:hover, .contact a:focus-visible { color: var(--text); text-decoration-color: var(--link-hover-underline); }
.contact a:hover .contact-icon, .contact a:focus-visible .contact-icon { opacity: 1; }
.pdf-link { display: block; margin: 0 0 0 auto; padding: 0; border: 0; color: var(--text); text-decoration: underline; text-decoration-color: var(--underline); }
.pdf-link:hover, .pdf-link:focus-visible { background: var(--text); box-shadow: 0 0 0 .45rem var(--text); color: var(--bg); text-decoration: none; }

section { margin-top: 5rem; padding: 0; border: 0; }
.section-header { display: block; margin-bottom: 1.5rem; padding: 0; background: none; color: var(--text); }
.section-header::before { display: none; }
.section-header h2 { font-size: clamp(2.1rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -.055em; line-height: 1.08; }
.summary { margin-top: 5.5rem; }
.summary p { max-width: 45ch; margin: 0; padding: 0; border: 0; font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 600; line-height: 1.36; }
.metric {
  padding: .055em .13em;
  background-color: #dcdcd8;
  background-image: url("ink-texture.svg?v=6");
  background-size: 192px 64px;
  color: #171717;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.job, .job:last-child { padding: 0; border: 0; }
.job + .job { margin-top: 4.2rem; padding: 0; border: 0; }
.job + .job.job--new-company { margin-top: 5.8rem; }
.job-header { display: block; }
.job-company { margin: 0 0 .45rem; font-size: .875rem; font-weight: 700; letter-spacing: .035em; line-height: 1.35; text-transform: uppercase; }
.job-title { margin: 0; font-size: clamp(1.55rem, 2.7vw, 1.9rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.15; }
.job-date { display: grid; gap: .08rem; margin: .75rem 0 0; color: var(--text); font-size: 1rem; font-weight: 500; line-height: 1.35; }
.job-period, .job-location, .job-duration { display: inline; white-space: normal; }
.job-duration { color: var(--meta); }
.job-body { margin: .85rem 0 0; padding: 0; }
.job-body > p { line-height: 1.48; }
.job-body > p { margin-bottom: .8rem; }
ul.details li { margin-bottom: .6rem; line-height: 1.48; }
ul.details li:last-child { margin-bottom: 0; }

.expertise-row, .expertise-row:first-of-type { display: block; max-width: 45rem; margin-bottom: 1.7rem; padding: 0; border: 0; }
.expertise-row h3 { margin: 0 0 .45rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; text-transform: none; }
.expertise-row p { font-size: 1.125rem; line-height: 1.48; }
.education-school { max-width: 42rem; margin: 0 0 .8rem; padding: 0; border: 0; font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
#languages { min-height: 0; padding-bottom: 4rem; }
.degree-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; max-width: 53.75rem; }
.language-list { display: flex; flex-wrap: wrap; gap: 1rem 3rem; }
.degree, .language { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .25rem .7rem; max-width: 42rem; margin-left: 0; padding: .28rem 0; border: 0; font-size: 1.125rem; font-weight: 400; line-height: 1.48; }
.degree span:last-child { font-size: inherit; font-variant-numeric: tabular-nums; }
.degree span:last-child::before, .language span:last-child::before { content: "· "; color: var(--muted); }

@media (max-width: 1150px) {
  .page { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
  main { flex: 1; min-height: 0; width: 100%; max-width: 860px; margin: 0 auto; overflow-y: auto; }
  .sidebar { position: relative; flex: none; width: 100vw; height: auto; margin: 0 calc(-1 * clamp(1.25rem, 5vw, 3.5rem)); padding: 0; background: var(--bg); border: 0; }
  .sidebar-label { display: none; }
  .toc { display: flex; width: 100%; min-width: 0; gap: .25rem; overflow-x: auto; padding: .6rem clamp(1.25rem, 5vw, 3.5rem); scroll-padding-inline: clamp(1.25rem, 5vw, 3.5rem); }
  .toc li { flex: none; }
  .toc a { border: 0; border-radius: .4rem; padding: .55rem .75rem; color: var(--muted); white-space: nowrap; text-decoration: none; }
  .toc a[aria-current="location"] { border: 0; background: #e8e8e3; color: var(--text); font-weight: 600; text-decoration: none; }
  .toc a:focus-visible { background: #e8e8e3; text-decoration: none; }
  @media (hover: hover) and (pointer: fine) {
    .toc a:hover { background: #efefeb; text-decoration: none; }
  }
  .hero { margin-top: 3.5rem; }
}

@media (max-width: 700px) {
  .hero-poster { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 1.75rem; }
  .hero-photo { width: 145px; }
  .hero-poster h1 { font-size: clamp(2.7rem, 11vw, 4.2rem); }
  .hero-role { margin-top: 1.25rem; font-size: 1.2rem; }
  .hero-contact { display: flex; flex-direction: column; align-items: stretch; gap: 2rem; margin-top: 2rem; }
  .pdf-link { align-self: flex-start; margin: 0; }
  section { margin-top: 4.25rem; }
  .summary { margin-top: 3rem; }
  .section-header { margin-bottom: 1.2rem; }
  .section-header h2 { font-size: 2.15rem; }
  .summary p { max-width: 100%; margin-left: 0; font-size: 1.25rem; line-height: 1.42; }
  .job + .job { margin-top: 3.4rem; }
  .job + .job.job--new-company { margin-top: 4.8rem; }
  .job-title { font-size: 1.6rem; }
  .job-date { margin-top: .6rem; }
  .job-location::before { content: none; }
  .job-body { margin: .85rem 0 0; }
  .expertise-row, .expertise-row:first-of-type { margin-bottom: 1.5rem; }
  .expertise-row h3 { margin-bottom: .4rem; font-size: 1.35rem; }
  .degree-list { grid-template-columns: 1fr; gap: .1rem; }
  .degree { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .4rem; }
  .degree span:last-child { white-space: nowrap; }
  .language-list { gap: .5rem 1.5rem; }
  .education-school, .degree, .language { margin-left: 0; }
}

@media (max-width: 360px) {
  .toc { gap: .85rem; }
  .hero-poster h1 { font-size: 2.55rem; }
  .hero-role { white-space: normal; }
}

@media print {
  #languages { padding-bottom: 0; }
  section { margin-top: 1.25rem; padding-top: .65rem; border-top: 1px solid var(--rule); }
  :root { --bg: #fff; --text: #202020; }
  .hero { margin: 0; }
  .hero-poster { display: block; }
  .hero-poster h1 { display: block; font-size: 30pt; }
  .hero-poster h1 span { display: inline; }
  .hero-photo { display: none; }
  .hero-role { margin: .4rem 0 0; font-size: 11pt; }
  .hero-contact { margin-top: .6rem; }
  .pdf-link { display: none; }
  .contact-icon { display: none; }
  .pdf-link:hover, .pdf-link:focus-visible { background: none; box-shadow: none; color: var(--text); text-decoration: none; }
  .section-header { display: block; margin-bottom: .85rem; }
  .section-header::before { display: none; }
  .section-header h2 { font-size: 15pt; }
  .summary p { max-width: none; margin: 0; font-size: 10pt; line-height: 1.42; }
  .summary { margin-top: 1.25rem; }
  .metric { padding: 0; background: none; color: #666; }
  .job + .job { margin-top: 0; padding-top: 1rem; border-top: 1px solid #e1e1e1; }
  .job + .job.job--new-company { margin-top: 0; }
  .job-header { display: block; }
  .job-company { margin: 0 0 .25rem; }
  .job-date { margin-top: .3rem; }
  .job-body { margin: .65rem 0 0; }
  ul.details li { margin-bottom: .55rem; line-height: 1.42; }
  .expertise-row, .expertise-row:first-of-type { display: block; margin-bottom: .5rem; }
  .expertise-row h3, .expertise-row p { display: inline; }
  .degree-list, .language-list { display: block; }
  .education-school, .degree, .language { margin-left: 0; }
}
