/* Jacob Sager resume. One file serves the site and the printed PDF (Letter, two pages). Fraunces + Inter, navy ink, blue and yellow stripe. */
:root{--ink:#10263b;--muted:#53687a;--blue:#1f5f99;--blue2:#e8f2fa;--yellow:#ffd54a;--line:#c9d7e3;--sky:#719fc4;--dark:#0b1c2d;--darker:#071522;--paper:#fffdf7;--band-body:#c6d6e3}
*{box-sizing:border-box}
html{-webkit-print-color-adjust:exact;print-color-adjust:exact;background:var(--paper)}
body{margin:0;color:var(--ink);font:15px/1.55 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;padding:0 16px 48px}
a{color:inherit;text-decoration:none}
a:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}

.bar{position:sticky;top:0;z-index:5;background:var(--dark);color:var(--band-body);margin:0 -16px 28px;padding:12px 16px}
.bar::before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:linear-gradient(90deg,var(--blue) 0 78%,var(--yellow) 78%)}
.bar .in{max-width:880px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:4px}
.wm{font:600 14px/1 Inter,sans-serif;color:var(--band-body)}
.wm:hover{color:#fff}
.btn{display:inline-flex;align-items:center;gap:8px;background:var(--yellow);color:var(--ink);border:2px solid var(--ink);border-radius:5px;box-shadow:4px 4px 0 #000;padding:9px 14px;font:700 14px/1 Inter,sans-serif;white-space:nowrap;transition:transform .12s,box-shadow .12s}
.btn:hover{transform:translate(-1px,-1px);box-shadow:6px 6px 0 #000}

.sheet{max-width:880px;margin:0 auto;background:#fff;border:1.5px solid var(--ink);box-shadow:6px 6px 0 var(--ink)}
.band{background:var(--dark);color:#fff;padding:36px 44px 32px}
.top{display:flex;justify-content:space-between;align-items:flex-end;gap:24px}
h1{font:800 46px/1 Fraunces,Georgia,serif;margin:0;letter-spacing:-.01em}
.role{font:800 11px/1.4 Inter,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:var(--yellow);margin-top:10px}
.contact{text-align:right;font:500 14px/1.6 Inter,sans-serif;color:var(--band-body)}
.contact b{color:#fff;font-weight:600}
.contact a:hover{color:#fff}
.lead{font:700 23px/1.3 Fraunces,Georgia,serif;margin:26px 0 10px;max-width:30em;text-wrap:balance}
.lead em{font-style:normal;color:var(--yellow)}
.band p{margin:0;max-width:62ch;color:var(--band-body);font-size:15.5px;line-height:1.55}
.band p strong{color:#fff;font-weight:600}

.proof{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1.5px solid var(--ink)}
.proof div{padding:16px 18px 14px;border-right:1px solid var(--line)}
.proof div:first-child{padding-left:44px}
.proof div:last-child{border-right:0;padding-right:44px}
.proof b{display:block;font:800 30px/1 Fraunces,Georgia,serif;color:var(--blue);margin-bottom:6px;font-variant-numeric:tabular-nums}
.proof span{display:block;font-size:13px;line-height:1.4}

.body{padding:8px 44px 40px}
section{margin-top:26px}
h2{font:800 11px/1 Inter,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:var(--blue);margin:0 0 14px;display:flex;align-items:center;gap:10px;break-after:avoid}
h2::before{content:"";width:18px;height:3px;background:var(--yellow)}
h2::after{content:"";flex:1;height:1px;background:var(--line)}
.row{display:grid;grid-template-columns:128px minmax(0,1fr);gap:20px;margin:0 0 18px;break-inside:avoid}
/* The title comes first in the markup so text readers get title, employer, then dates. The grid puts the dates back on the left. */
.row>.when{grid-column:1;grid-row:1}
.row>.what{grid-column:2;grid-row:1;min-width:0}
.when{font:600 13px/1.4 Inter,sans-serif;color:var(--muted);font-variant-numeric:tabular-nums;padding-top:3px}
.when small{display:block;font:500 12.5px/1.4 Inter,sans-serif;color:var(--muted);margin-top:2px}
.jt{font:700 19px/1.25 Fraunces,Georgia,serif}
.jt span{font:600 14.5px Inter,sans-serif;color:var(--blue)}
.jm{font-size:13.5px;color:var(--muted);margin:3px 0 6px}
ul{margin:6px 0 0;padding:0;list-style:none}
li{margin:0 0 6px;padding-left:14px;position:relative}
li::before{content:"";position:absolute;left:0;top:.62em;width:5px;height:5px;background:var(--blue)}
li b{font-weight:600}
p,li{text-wrap:pretty}
.row p{margin:4px 0 0}
.compact .row{margin-bottom:12px}
.note{font-size:13.5px;color:var(--muted);margin:2px 0 0 148px}
.grid{display:grid;grid-template-columns:128px minmax(0,1fr);gap:8px 20px;margin:0}
.grid dt{font:600 13px/1.5 Inter,sans-serif;color:var(--muted)}
.grid dd{margin:0}
.foot{max-width:880px;margin:22px auto 0;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font:500 13px Inter,sans-serif;color:var(--muted)}
.foot a{color:var(--blue);font-weight:600}

@media screen and (max-width:720px){
 .sheet{box-shadow:4px 4px 0 var(--ink)}
 .band{padding:26px 20px 24px}
 .top{flex-direction:column;align-items:flex-start;gap:14px}
 .contact{text-align:left}
 h1{font-size:38px}
 .lead{font-size:20px}
 .proof{grid-template-columns:1fr}
 .proof div,.proof div:first-child,.proof div:last-child{padding:12px 20px;border-right:0;border-bottom:1px solid var(--line)}
 .proof div:last-child{border-bottom:0}
 .body{padding:4px 20px 28px}
 .row,.grid{grid-template-columns:1fr;gap:2px}
 .row>.when,.row>.what{grid-column:1;grid-row:auto}
 .row>.when{order:-1}
 .when{padding-top:0}.when small{display:inline;margin-left:8px}
 .grid dd{margin-bottom:8px}
 .note{margin-left:0}
}
@media (prefers-reduced-motion:reduce){.btn{transition:none}}

@page{size:Letter;margin:0.42in 0.5in 0.45in}
@media print{
 html{background:#fff}
 body{padding:0;font:9.5pt/1.42 Inter,system-ui,sans-serif}
 .bar,.foot{display:none}
 .sheet{max-width:none;border:0;box-shadow:none}
 /* One left edge: the header text and the body text both start 0.28in in. */
 .band{padding:0.24in 0.28in 0.2in;position:relative}
 .band::before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:linear-gradient(90deg,var(--blue) 0 78%,var(--yellow) 78%)}
 h1{font-size:27pt}
 .role{font-size:8pt;margin-top:7px}
 .contact{font-size:8.6pt;line-height:1.5}
 .lead{font-size:12.5pt;margin:10px 0 4px}
 .band p{font-size:9.5pt;line-height:1.45;max-width:6.5in}
 .proof div,.proof div:first-child,.proof div:last-child{padding:8px 10px 7px}
 .proof{border:1.5px solid var(--ink);border-top:0}
 .proof b{font-size:17pt;margin-bottom:3px}
 .proof span{font-size:8.3pt;line-height:1.3}
 .body{padding:0 0.28in}
 section{margin-top:12px}
 h2{font-size:8pt;margin-bottom:7px}
 /* A long entry may continue on the next page, but never between a title and its first line, and never inside a bullet. */
 .row{grid-template-columns:1.0in minmax(0,1fr);gap:12px;margin-bottom:8px;break-inside:auto}
 .jt,.jm{break-after:avoid}
 li,.row p{break-inside:avoid}
 .when{font-size:8.3pt;padding-top:2px}.when small{font-size:8.3pt}
 .jt{font-size:11pt}.jt span{font-size:9.5pt}
 .jm{font-size:8.3pt;margin:1px 0 3px}
 ul{margin-top:3px}
 li{margin-bottom:2.5px;padding-left:11px}
 li::before{width:4px;height:4px}
 .compact .row{margin-bottom:5px}
 .note{font-size:8.3pt;margin-left:calc(1.0in + 12px)}
 .grid{grid-template-columns:1.0in minmax(0,1fr);gap:3px 12px}
 .grid dt{font-size:8.3pt}
 .pb{break-before:page}
}
