/* Route styles follow the current main, not document classes left behind by Swup. */
:root:has(main.sheet) { color-scheme: light; font-size: min(clamp(16px, 1.27551vw, 20px), 1.5625vw, 3dvh); --paper: #eeeade; --ink: #233e91; --red: #b83c37; --rule: #9d9eaa; }
html:has(main.sheet), html:has(main.sheet) * { box-sizing: border-box; }
body:has(main.sheet) { margin: 0; background: var(--paper); color: var(--ink); font: 375 .8125rem/1.3 'Geist Mono', monospace; }
html:has(main.sheet) { background: var(--paper); }
.sheet a { color: inherit; text-decoration: none; }
.sheet a:hover { text-decoration: underline; text-underline-offset: .1875rem; }
.sheet a:focus-visible, .sheet button:focus-visible { outline: .125rem solid var(--red); outline-offset: .3125rem; }
.sheet { position: relative; isolation: isolate; width: min(100%, 1568px); min-height: 100dvh; margin: 0 auto; padding: 2.95rem min(6vw, 100px) 1.5rem; background: var(--paper); display: flex; flex-direction: column; }
.sheet p, .sheet h1, .sheet h2, .sheet h3 { margin: 0; }
.sheet h2, .sheet h3 { font-size: inherit; }
.sheet h2 { font-family: Inter, sans-serif; font-weight: 700; letter-spacing: -.02em; }
.sheet h3 { font-weight: 400; }
.sheet ol, .sheet ul { margin: 0; padding: 0; list-style: none; }
.sheet .intro { border-bottom: .0625rem solid var(--rule); display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; padding: 1.125rem 0 1.5rem; align-items: center; }
.sheet .identity { position: relative; }
.sheet h1 { font-family: Inter, sans-serif; font-size: 6.25rem; font-weight: 700; line-height: .90; letter-spacing: -.04em; }
.sheet h1 span { display: block; }
.sheet .snoopy, .sheet .snoopy-static { position: absolute; top: .375rem; left: 11.875rem; width: 4.875rem; height: 4.875rem; }
.sheet .snoopy { border: 0; background: none; padding: 0; cursor: pointer; border-radius: .1875rem; transition: transform 120ms ease-out; }
.sheet .snoopy:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) {
  .sheet .snoopy { transition: none; }
  .sheet .snoopy:active { transform: none; }
}
.sheet .snoopy[hidden] { display: none; }
.sheet .snoopy img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sheet .snoopy-static { object-fit: contain; }
.sheet .intro-copy, .sheet .role, .sheet .project-list h3 { font-family: Inter, sans-serif; font-weight: 400; }
.sheet .intro-copy .lead { font: 500 1.1875rem/1.2 Inter, sans-serif; letter-spacing: -.035em; margin-bottom: 1rem; }
.sheet .intro-copy p + p { margin-top: .5625rem; }
.sheet .intro-copy a { text-decoration: underline; text-underline-offset: .125rem; }
.sheet .columns { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(15.625rem, 1fr); gap: 5.488rem; padding: 1.25rem 0 1.625rem; border-bottom: .0625rem solid var(--rule); }
.sheet .section-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.25rem; }
.sheet .experience-list { display: grid; gap: clamp(1.3125rem, calc(1.3125rem + (100dvh - 49.2rem) / 7), 3rem); }
.sheet .experience-list li { display: grid; grid-template-columns: 5.625rem 12.8125rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.sheet .date { font-weight: 500; }
.sheet .role h3, .sheet .project-list h3 { font-weight: 600; }
.sheet .role h3 a, .sheet .project-list h3 a { text-decoration: underline; text-underline-offset: .15em; }
.sheet .date { white-space: nowrap; }
.sheet .role p { opacity: .86; }
.sheet .summary, .sheet .project-list p { font-size: .75rem; line-height: 1.45; }
.sheet .project-list { display: grid; gap: 1.1875rem; margin-top: 1.25rem; }
.sheet .project-list p { margin-top: .1875rem; max-width: 27ch; }
.sheet .all-projects { display: inline-block; margin-top: 1.0625rem; text-decoration: underline; text-underline-offset: .15em; }
.sheet .contact { color: var(--red); display: grid; grid-template-columns: 5.5rem 1fr; gap: .9375rem; margin-top: 2.4375rem; }
.sheet .contact ul { display: grid; gap: .4375rem; }
.sheet .contact a { display: flex; gap: .5625rem; align-items: center; }
.sheet .contact svg { width: 1.125rem; height: 1.125rem; fill: currentColor; flex: none; }
.sheet footer { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin-top: auto; padding-top: 1.968rem; font-size: .6875rem; }
.sheet footer a[href="/resume.pdf"] { text-decoration: underline; text-underline-offset: .15em; }
.sheet .local-clock { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 761px) {
  .sheet footer { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .sheet footer > span { grid-column: 1; }
  .sheet footer > a { grid-column: 2; }
  .sheet footer > .local-clock { grid-column: 3; justify-self: end; }
  /* Reading sizes depend on the viewport, never post-paint text measurements. */
  .sheet { font-size: max(.8125rem, min(1rem, 1.85dvh, 17px)); }
  .sheet .summary, .sheet .project-list p { font-size: calc(12em / 13); }
  .sheet footer { font-size: calc(11em / 13); }
  .sheet .intro-copy .lead { font-size: calc(19em / 13); }
}
/* The compact date column leaves room for the original reading size only. */
@media (min-width: 761px) and (max-width: 1199px) {
  .sheet { font-size: .8125rem; }
}
@media (min-width: 761px) and (max-aspect-ratio: 1/1) {
  :root:has(main.sheet) { font-size: min(1.95122vw, 20px, 1.7dvh); }
  .sheet { width: 100%; padding: 2rem; font-size: .8125rem; }
  .sheet .intro { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .sheet h1 { font-size: 5rem; }
  .sheet .snoopy, .sheet .snoopy-static { top: .3rem; left: 9.5rem; width: 3.9rem; height: 3.9rem; }
  .sheet .columns { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 2.5rem; flex: 1; }
  .sheet .experience { display: flex; flex-direction: column; }
  .sheet .experience-list { flex: 1; align-content: space-between; gap: 1.3125rem; }
  .sheet .right-column { display: flex; flex-direction: column; }
  .sheet .experience-list li { grid-template-columns: 4.5rem minmax(0, 1fr); gap: .35rem .875rem; }
  .sheet .summary { grid-column: 2; }
  .sheet .contact { grid-template-columns: 1fr; gap: .875rem; margin-top: auto; padding-top: 2rem; }
}
.sheet .mobile-about { display: none; }
@media (max-width: 760px) {
  :root:has(main.sheet) { font-size: 16px; }
  body:has(main.sheet) { background: var(--paper); font-size: 15px; }
  .sheet { width: 100%; margin: 0; padding: calc(24px + env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); min-height: 100dvh; }
  .sheet .intro { grid-template-columns: 1fr; gap: 24px; padding-block: 22px 25px; }
  .sheet h1 { font-size: 94px; }
  .sheet .snoopy, .sheet .snoopy-static { top: 6px; left: 179px; width: 73px; height: 73px; }
  .sheet .intro-copy { max-width: 430px; }
  .sheet .intro-copy .lead { font-size: 19px; }
  .sheet .intro-about { display: none; }
  .sheet .mobile-about { display: block; padding-block: 24px; border-bottom: 1px solid var(--rule); color: #a04413; }
  .sheet .mobile-about p { font-size: 14px; line-height: 1.5; margin: 0; }
  .sheet .mobile-about p + p { margin-top: 12px; }
  .sheet .mobile-about a { text-decoration: underline; text-underline-offset: 3px; }
  .sheet .date { font-size: 13px; }
  .sheet .columns { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
  .sheet .experience-list { gap: 24px; }
  .sheet .experience-list li { grid-template-columns: 75px 1fr; gap: 5px 14px; }
  .sheet .summary { grid-column: 2; }
  .sheet .summary, .sheet .project-list p { font-size: 14px; line-height: 1.5; }
  .sheet .right-column { border-top: 1px solid var(--rule); padding-top: 23px; }
  .sheet .project-list p { max-width: none; }
  .sheet .contact { display: none; }
  .sheet .all-projects, .sheet footer a { min-height: 44px; display: inline-flex; align-items: center; }
  .sheet .project-list h3 a { display: inline-flex; align-items: center; min-height: 36px; }
  .sheet footer { padding-top: 28px; }
}
@media (max-width: 360px) {
  .sheet { padding-inline: 18px; }
  .sheet h1 { font-size: 84px; }
  .sheet .snoopy, .sheet .snoopy-static { top: 5px; left: 160px; width: 66px; height: 66px; }
}
.sheet .mobile-section-link { display: none; }
.sheet .work-heading { display: flex; align-items: baseline; justify-content: space-between; }
@media (max-width: 760px) {
  .sheet .mobile-section-link { display: inline-block; padding-block: 12px; margin-block: -12px; font-size: inherit; font-weight: 400; text-decoration: underline; text-underline-offset: .15em; white-space: nowrap; }
  .sheet .all-projects, .sheet footer a[href="/resume.pdf"] { display: none; }
}
/* Interpolate spacing between the compact 34.5rem and roomy 49.2rem height budgets. */
@media (min-width: 761px) and (orientation: landscape) {
  .sheet {
    --layout-space: clamp(0rem, calc((100dvh - 34.5rem) / 14.7), 1rem);
    --name-size: min(calc(5.25rem + var(--layout-space)), calc((100dvh - 25rem) / 1.8));
    padding-block: calc(.6rem + 2.35 * var(--layout-space)) calc(.6rem + .9 * var(--layout-space));
  }
  .sheet .intro { padding-block: calc(.4rem + .725 * var(--layout-space)) calc(.6rem + .9 * var(--layout-space)); }
  .sheet h1 { font-size: var(--name-size); }
  .sheet .snoopy, .sheet .snoopy-static { top: calc(.06 * var(--name-size)); left: calc(1.9 * var(--name-size)); width: calc(.78 * var(--name-size)); height: calc(.78 * var(--name-size)); }
  .sheet .columns { padding-block: calc(.6rem + .65 * var(--layout-space)) calc(.6rem + 1.025 * var(--layout-space)); }
  .sheet .section-heading { margin-bottom: calc(.6rem + .65 * var(--layout-space)); }
  .sheet .experience-list { gap: calc(.5rem + .8125 * var(--layout-space)); }
  .sheet .project-list { margin-top: calc(.6rem + .65 * var(--layout-space)); gap: calc(.6rem + .5875 * var(--layout-space)); }
  .sheet .all-projects { margin-top: calc(.6rem + .4625 * var(--layout-space)); }
  .sheet .contact { margin-top: calc(.8rem + 1.6375 * var(--layout-space)); }
  .sheet footer { padding-top: calc(.4rem + 1.568 * var(--layout-space)); }
}
@media (min-width: 761px) and (max-width: 1199px) and (orientation: landscape) {
  .sheet .columns { gap: 2rem; }
  .sheet .experience-list li { grid-template-columns: 4.5rem 10rem minmax(0, 1fr); gap: .75rem; }
}
.sheet .role-expanded { display: none; }
@media (max-width: 760px) {
  .sheet .role-short { display: none; }
  .sheet .role-expanded { display: inline; }
}
