/* Ashlee Jackson resume site
   Brand: "Every agreement, accounted for."
   See brand/BRAND.md for the token rationale. */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --ink: #16233a;        /* blue-black document ink */
  --ink-soft: #2a3a55;
  --signature: #2747b0;  /* ballpoint signing blue */
  --signature-lt: #9fb4f2;
  --seal: #a8864e;       /* brass notary seal, carried from the 2018 site */
  --seal-text: #7e6233;
  --paper: #eef1f5;      /* cool desk paper */
  --sheet: #ffffff;
  --muted: #536077;
  --rule: #d3d9e3;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.25rem;
  --step-4: clamp(2.75rem, 7vw, 4.75rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
}
img { max-width: 100%; display: block; }
a { color: var(--signature); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signature); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--sheet); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Top bar ---------- */
.bar {
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: var(--step--1);
}
.bar__inner {
  max-width: 72rem; margin: 0 auto; padding: .85rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.bar__mark { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 600; letter-spacing: .01em; }
.bar__mark svg { width: 30px; height: 30px; flex: none; }
.bar nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.bar nav a { color: #dfe5ef; text-decoration: none; }
.bar nav a:hover { color: #fff; text-decoration: underline; }
.bar .btn-call { color: var(--ink); background: var(--seal); padding: .45rem .9rem; border-radius: 3px; font-weight: 600; text-decoration: none; }
.bar .btn-call:hover { background: #c09e63; text-decoration: none; }

/* ---------- Sheet ---------- */
main { padding: clamp(1rem, 4vw, 3rem) var(--gutter) 4rem; }
.sheet {
  max-width: 72rem; margin: 0 auto;
  background: var(--sheet);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -28px rgba(22, 35, 58, .45);
}

/* ---------- Hero: the signature block ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 17rem);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
}
.hero__lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 34ch; margin: 0 0 2.5rem; }
.sig { max-width: 40rem; }
.sig__by { display: flex; align-items: flex-end; gap: .9rem; }
.sig__by > span { font-family: var(--sans); font-size: var(--step--1); color: var(--muted); padding-bottom: .55rem; }
.sig__name {
  flex: 1;
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--signature);
  padding: 0 .2rem .35rem;
  border-bottom: 1.5px solid var(--ink);
}
.sig__fields {
  display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; row-gap: .15rem;
  margin: .9rem 0 0 0; padding-left: 2.15rem;
  font-family: var(--sans); font-size: var(--step--1);
}
.sig__fields dt { color: var(--muted); }
.sig__fields dd { margin: 0; color: var(--ink); font-weight: 600; }

.hero__photo { margin: 0; }
.hero__photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--rule); }
.hero__photo figcaption { font-family: var(--sans); font-size: .78rem; color: var(--muted); margin-top: .5rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; padding-left: 2.15rem; font-family: var(--sans); font-size: var(--step--1); }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.1rem; border-radius: 3px; text-decoration: none; font-weight: 600;
  border: 1.5px solid var(--ink);
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-soft); }
.btn--ghost { color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--paper); }

/* ---------- Sections ---------- */
.section {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--rule);
}
.section:last-of-type { border-bottom: 0; }
.section__head { margin: 0; font-family: var(--sans); font-size: var(--step-0); font-weight: 600; color: var(--ink); line-height: 1.3; }
.section__head::before { content: "§"; display: block; font-family: var(--serif); font-size: 2.25rem; line-height: 1; color: var(--seal); margin-bottom: .35rem; font-weight: 400; }
.section__body > :first-child { margin-top: 0; }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1em; }

/* Key terms: the defined-terms schedule */
.terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 2rem 0 0; border-top: 1.5px solid var(--ink); }
.terms div { padding: 1rem 1.25rem 1.1rem 0; border-bottom: 1px solid var(--rule); }
.terms dt { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.1; font-weight: 600; color: var(--ink); }
.terms dd { margin: .3rem 0 0; font-family: var(--sans); font-size: var(--step--1); color: var(--muted); max-width: 26ch; line-height: 1.45; }

/* Experience */
.roles { list-style: none; margin: 0; padding: 0; }
.role { position: relative; padding: 0 0 2.25rem 1.75rem; border-left: 1.5px solid var(--rule); }
.role:last-child { padding-bottom: 0; }
.role::before { content: ""; position: absolute; left: -6px; top: .55rem; width: 10px; height: 10px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--signature); }
.role:first-child::before { background: var(--signature); }
.role__title { margin: 0; font-size: var(--step-2); line-height: 1.2; font-weight: 600; }
.role__org { font-weight: 400; color: var(--ink-soft); }
.role__meta { font-family: var(--sans); font-size: var(--step--1); color: var(--muted); margin: .3rem 0 .9rem; }
.role ul { margin: 0; padding-left: 1.1rem; max-width: var(--measure); }
.role li { margin-bottom: .45rem; }
.role li::marker { color: var(--seal); }

/* Competencies */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem 3rem; }
.cols h3 { font-family: var(--sans); font-size: var(--step--1); font-weight: 600; color: var(--muted); margin: 0 0 .75rem; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; font-family: var(--sans); font-size: .9rem; }
.tags li { border: 1px solid var(--rule); padding: .35rem .7rem; border-radius: 2px; background: #fbfcfd; }
.tags--tools li { border-color: #c5d0ee; color: var(--signature); background: #f5f7fe; }

.edu { margin: 0; font-size: var(--step-1); }
.edu span { display: block; font-family: var(--sans); font-size: var(--step--1); color: var(--muted); margin-top: .2rem; }

/* Footer */
.foot { max-width: 72rem; margin: 1.5rem auto 0; font-family: var(--sans); font-size: .8rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.foot p { margin: 0; }

/* Contact band: same structure as the companion site (label, heading, intro, tile grid, download row) */
.contact-band { background: var(--ink); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 6vw, 4.5rem); }
.contact-band__head { display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); gap: .9rem 3rem; align-items: end; margin-bottom: 2.75rem; }
.contact-band__head .contact-band__label { max-width: none; line-height: 1.3; display: flex; align-items: baseline; gap: .4rem; margin: 0 0 .6rem; font-family: var(--sans); font-size: var(--step--1); font-weight: 600; color: #c9ad7c; }
.contact-band__label::before { content: "§"; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1; color: var(--seal); }
.contact-band__head h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.875rem, 4vw, 2.625rem); line-height: 1.1; color: #fff; }
.contact-band__head p { margin: 0; color: rgba(255,255,255,.8); max-width: 40ch; font-size: var(--step-1); line-height: 1.55; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.contact-item { background: var(--ink); color: #fff; padding: 1.6rem 1.5rem; text-decoration: none; display: block; transition: background .15s; }
.contact-item:hover { background: var(--ink-soft); text-decoration: none; }
.contact-item:focus-visible { outline-color: var(--signature-lt); outline-offset: -3px; }
.contact-item .k { font-family: var(--sans); font-size: var(--step--1); font-weight: 600; color: #c9ad7c; }
.contact-item .v { display: block; font-family: var(--sans); font-size: 1.125rem; margin-top: .6rem; color: #fff; overflow-wrap: anywhere; }
.contact-item .v .nb { white-space: nowrap; }
.contact-item:hover .v { text-decoration: underline; text-underline-offset: .2em; }
.downloads { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; font-family: var(--sans); font-size: var(--step--1); }
.btn--brass { background: var(--seal); border-color: var(--seal); color: var(--ink); }
.btn--brass:hover { background: #c09e63; border-color: #c09e63; }
.btn--ghost-dark { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
.btn--ghost-dark:hover { border-color: #fff; }
.downloads .btn:focus-visible { outline-color: var(--signature-lt); }
@media (max-width: 52rem) {
  /* Phones and small tablets: the page card goes edge to edge so the contact band is full-bleed */
  main { padding: 0 0 2.5rem; }
  .sheet { border: 0; box-shadow: none; }
  .foot { padding: 0 1rem; }
  .contact-band__head { grid-template-columns: 1fr; gap: .9rem; margin-bottom: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-item { padding: 1.5rem 1.5rem; }
  .contact-item .v { font-size: 1.0625rem; }
}

/* One orchestrated moment: the signature line draws in on load */
@media (prefers-reduced-motion: no-preference) {
  .sig__name { background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 1.5px no-repeat; border-bottom-color: transparent; animation: sign 1.1s .25s cubic-bezier(.6,.05,.25,1) forwards; }
  @keyframes sign { to { background-size: 100% 1.5px; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 64rem) { .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; }
  .hero__photo { order: -1; max-width: 9.5rem; }
  .hero__photo figcaption { display: none; }
  .section { grid-template-columns: 1fr; }
  .section__head::before { display: inline; font-size: 1.6rem; margin-right: .4rem; vertical-align: -.15rem; }
}
@media (max-width: 30rem) {
  .bar nav { display: none; }
  .sig__by > span { display: none; }
  .sig__fields, .hero__actions { padding-left: 0; }
}

@media print {
  .bar, .hero__actions, .skip, .foot, .downloads { display: none; }
  .contact-band, .contact-item { background: #fff; color: #000; }
  .contact-band *, .contact-item .v { color: #000; }
  body { background: #fff; }
  main { padding: 0; }
  .sheet { border: 0; box-shadow: none; }
}
