/* Jessica Redman · contract CV. Brand tokens from github.com/Didgeheads/jmredman-brand */
:root {
  --chalk: #F6F3EE; --paper: #FBFAF7; --ink: #1C1A22; --ink-2: #6B6876; --ink-3: #9A96A3;
  --rule: #E4DFD7; --terra: #C48A72; --terra-2: #B07660; --peach: #F2CDBF; --sand: #E8DCC0;
  --sage: #B7CDBB; --sage-2: #6A8672; --powder: #BFD3E6;
  --display: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --sheet-w: 794px; /* A4 at 96dpi */
  --pad: 34px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { background: var(--chalk); -webkit-font-smoothing: antialiased; }
body {
  margin: 0; background: var(--chalk); color: var(--ink);
  font-family: var(--body); font-size: 10.5px; line-height: 1.45;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--terra-2); }
p, h1, h2, h3, h4, ol, ul, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
strong { font-weight: 600; color: var(--ink); }

/* ---------- top bar (web only) ---------- */
.bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: color-mix(in srgb, var(--chalk) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.bar-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 500; }
.bar-brand img { width: 28px; height: 28px; display: block; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: .01em;
  border-radius: 0; transition: background .2s var(--ease);
}
.btn:hover { background: var(--terra-2); color: var(--paper); }
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateY(2px); }

/* ---------- the sheet ---------- */
.sheet {
  width: var(--sheet-w); margin: 36px auto 60px; padding: var(--pad);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 1px 0 var(--rule), 0 24px 60px -30px rgba(28,26,34,.25);
  position: relative;
}

/* header */
.head {
  display: grid; grid-template-columns: 104px 1fr 186px; gap: 22px; align-items: start;
  padding-bottom: 12px; border-bottom: 1px solid var(--rule);
}
.photo { position: relative; width: 104px; height: 104px; }
.photo img { width: 104px; height: 104px; border-radius: 50%; display: block; object-fit: cover; }
.photo .ring { position: absolute; inset: -4px; width: 112px; height: 112px; }
.photo .ring circle { fill: none; stroke: var(--terra); stroke-width: 1.5; stroke-dasharray: 364.4; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 50% 50%; }

.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pill {
  display: inline-block; white-space: nowrap; font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--terra-2); border: 1px solid var(--terra); padding: 4px 9px 3px;
}
.tag { white-space: nowrap; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
h1 {
  font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: -.035em; line-height: 1;
  margin-bottom: 8px;
}
h1 .w { display: inline-block; }
.lede { font-size: 10.5px; color: var(--ink-2); line-height: 1.45; max-width: 450px; }

.contact { font-size: 10px; color: var(--ink-2); line-height: 1.6; padding-top: 4px; border-left: 1px solid var(--rule); padding-left: 16px; }
.contact li { white-space: nowrap; }
.contact a { color: var(--ink); }
.contact a:hover { color: var(--terra-2); }

/* columns */
.cols { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding-top: 10px; }

h2 {
  font-family: var(--body); font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--terra-2); margin-bottom: 8px;
}
.main > h2 { margin-bottom: 9px; }

.side .blk { padding-bottom: 11px; margin-bottom: 11px; border-bottom: 1px solid var(--rule); }
.side .blk:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.list { counter-reset: n; }
.list li { position: relative; padding-left: 18px; margin-bottom: 3px; font-size: 10px; color: var(--ink); }
.list li::before {
  counter-increment: n; content: counter(n, decimal-leading-zero);
  position: absolute; left: 0; top: 1px; font-size: 8.5px; font-weight: 500; letter-spacing: .04em; color: var(--ink-3);
}
.list.bare li { padding-left: 0; color: var(--ink-2); }
.list.bare li::before { content: none; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chips span { font-size: 9.5px; padding: 3px 7px; border: 1px solid var(--rule); color: var(--ink-2); border-radius: 999px; white-space: nowrap; }
.plain { font-size: 10px; color: var(--ink-2); line-height: 1.45; }
.plain.small { font-size: 9.5px; margin-top: 6px; }
.plain.brands { font-size: 10.5px; line-height: 1.5; }
.plain b { font-weight: 500; color: var(--ink); }
.quote blockquote { border-left: 2px solid var(--terra); padding-left: 10px; }
.quote p { font-family: var(--display); font-size: 11px; line-height: 1.4; color: var(--ink); font-weight: 400; }
.quote footer { margin-top: 6px; font-size: 9.5px; color: var(--ink-3); }

/* timeline */
.tl { position: relative; padding-left: 18px; }
.tl::before {
  content: ""; position: absolute; left: 3px; top: 6px; bottom: 6px; width: 1px; background: var(--rule);
  transform-origin: top;
}
.job { position: relative; display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto; gap: 0 10px; padding-bottom: 4px; margin-bottom: 4px; border-bottom: 1px solid var(--rule); }
.job:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.job::before {
  content: ""; position: absolute; left: -18px; top: 4px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--terra); box-shadow: 0 0 0 3px var(--paper);
}
.when { font-size: 8.5px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; line-height: 1.3; white-space: nowrap; grid-row: 1 / span 2; }
.job > h3 { grid-column: 2; grid-row: 1; }
.job > .desc { grid-column: 2; grid-row: 2; }
h3 { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; margin-bottom: 2px; }
h3 .co { font-family: var(--body); font-size: 10px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; margin-left: 4px; }
h3 .co::before { content: "·"; margin-right: 5px; color: var(--ink-3); }
.desc { font-size: 10px; color: var(--ink-2); line-height: 1.33; }
.desc strong { font-weight: 600; }
.desc .br { font-weight: 600; color: var(--ink); font-size: 10.5px; }

.group .sub { grid-column: 2; grid-row: 3; margin-top: 5px; padding-left: 10px; border-left: 1px solid var(--rule); }
.group .sub li { margin-bottom: 3px; }
.group .sub li:last-child { margin-bottom: 0; }
.group .sub .when { display: inline; padding: 0; margin-left: 6px; font-size: 8px; vertical-align: 1px; }
h4 { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 1px; }
.earlier h3 { color: var(--ink-2); }

.foot {
  display: flex; justify-content: space-between; margin-top: 10px; padding-top: 7px; border-top: 1px solid var(--rule);
  font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
}

/* ---------- motion (web only; final state when .print or reduced motion) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop  { 0% { opacity: 0; transform: scale(.85); } 70% { transform: scale(1.03); } 100% { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 364.4; } to { stroke-dashoffset: 0; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes dot  { from { transform: scale(0); } to { transform: scale(1); } }

body.anim .sheet { animation: rise .9s var(--ease) both; }
body.anim .photo img { animation: pop .7s var(--ease) .25s both; }
body.anim .photo .ring circle { animation: draw 1.1s var(--ease) .45s both; }
body.anim .pill { animation: pop .5s var(--ease) .35s both; }
body.anim .tag { animation: fade .5s var(--ease) .75s both; }
body.anim h1 .w { animation: rise .7s var(--ease) both; }
body.anim h1 .w:nth-child(1) { animation-delay: .45s; }
body.anim h1 .w:nth-child(2) { animation-delay: .58s; }
body.anim .lede { animation: rise .7s var(--ease) .75s both; }
body.anim .contact li { animation: rise .6s var(--ease) both; animation-delay: calc(.7s + var(--i, 0) * .07s); }
body.anim .side .blk { animation: rise .7s var(--ease) both; animation-delay: calc(1s + var(--i, 0) * .09s); }
body.anim .main > h2 { animation: fade .6s var(--ease) 1s both; }
body.anim .tl::before { animation: grow 2.4s var(--ease) 1.1s both; }
body.anim .job { animation: rise .6s var(--ease) both; animation-delay: calc(1.1s + var(--i, 0) * .14s); }
body.anim .job::before { animation: dot .4s var(--ease) both; animation-delay: calc(1.25s + var(--i, 0) * .14s); }
body.anim .foot { animation: fade .8s var(--ease) 2.8s both; }

@media (prefers-reduced-motion: reduce) {
  body.anim * { animation: none !important; }
}

/* ---------- small screens ---------- */
@media screen and (max-width: 860px) {
  :root { --pad: 22px; }
  body { font-size: 12px; }
  .sheet { width: auto; margin: 0; box-shadow: none; }
  .head { grid-template-columns: 1fr; gap: 16px; }
  .photo { width: 96px; height: 96px; }
  .photo img { width: 96px; height: 96px; }
  .photo .ring { width: 104px; height: 104px; }
  h1 { font-size: 34px; }
  .lede { font-size: 13px; max-width: none; }
  .contact { border-left: 0; padding-left: 0; font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .cols { grid-template-columns: 1fr; gap: 24px; }
  .side { order: 2; }
  .main { order: 1; }
  .list li, .plain, .desc, h3 .co { font-size: 12px; }
  h3 { font-size: 15px; }
  h4 { font-size: 13.5px; }
  .quote p { font-size: 13px; }
  .chips span { font-size: 11px; }
  .foot { flex-direction: column; gap: 4px; }
  .job { grid-template-columns: 1fr; }
  .when { grid-row: auto; margin-bottom: 2px; white-space: normal; }
  .job > h3, .job > .desc, .group .sub { grid-column: 1; grid-row: auto; }
  .group .sub .when { display: block; margin: 0 0 2px; }
  .eyebrow { flex-wrap: wrap; }
}

/* ---------- print / PDF ---------- */
@page { size: A4; margin: 0; }
@media print {
  html, body { background: var(--paper); }
  .bar { display: none; }
  .sheet { width: 210mm; height: 297mm; margin: 0; box-shadow: none; padding: 9mm; overflow: hidden; }
  body.anim * { animation: none !important; }
  a { color: inherit; }
}
html.print body.anim * { animation: none !important; }
