/*
 * burchx.com styles. No build step: this file is served from /assets/ under a
 * content-hashed name (site.<hash>.css) with a one-year immutable cache.
 * After editing, rename it to the new hash and update the <link> in every page
 * (see README.md).
 */

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  --amber: #ffb224;
  --ink: #17130b;

  --bg: #fbf8f2;
  --surface: #ffffff;
  --surface-2: #f5efe3;
  --text: #17130b;
  --muted: #5e5545;
  --border: #e8e0d0;
  --link: #8a5800;
  --link-hover: #17130b;
  --focus: #17130b;
  --highlight: rgb(255 178 36 / 0.55);
  --mark-opacity: 0.18;
  --shadow: 0 1px 2px rgb(23 19 11 / 0.05), 0 12px 32px -12px rgb(23 19 11 / 0.12);

  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 14px;
  --wrap: 72rem;
  --gutter: 1.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17130b;
    --surface: #1f1a11;
    --surface-2: #272015;
    --text: #f4eee2;
    --muted: #b8ad99;
    --border: #3a3123;
    --link: #ffb224;
    --link-hover: #ffd27a;
    --focus: #ffb224;
    --highlight: rgb(255 178 36 / 0.34);
    --mark-opacity: 0.09;
    --shadow: none;
  }
}

@media (min-width: 40rem) {
  :root {
    --gutter: 2rem;
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
blockquote,
figure {
  margin: 0;
}

p {
  text-wrap: pretty;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

address {
  font-style: normal;
}

strong {
  font-weight: 650;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nowrap {
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Skip link ---------- */

.skip {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
  color: var(--ink);
}

.skip:focus-visible {
  outline-color: var(--ink);
}

/* ---------- Header ---------- */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 750;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-icon {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

/* Contact keeps the outlined pill. */
.site-nav .nav-cta {
  margin-left: 0.25rem;
  padding-inline: 0.9rem;
  border-color: var(--border);
}

.site-nav .nav-cta:hover {
  border-color: var(--amber);
  background: none;
}

/* Phones: the icon alone stands for the brand, so the three links fit. */
@media (max-width: 24.99rem) {
  .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .site-nav {
    gap: 0.125rem;
  }

  .site-nav a {
    padding: 0.4rem 0.55rem;
    font-size: 0.875rem;
  }

  .site-nav .nav-cta {
    margin-left: 0.125rem;
    padding-inline: 0.8rem;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.75rem 2.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding-block: 0.25rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
}

/* ---------- Shared pieces ---------- */

.eyebrow {
  margin-bottom: 1rem;
  color: var(--link);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 1px 0 rgb(23 19 11 / 0.08);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.button:hover {
  background: #ffc14f;
  color: var(--ink);
  transform: translateY(-1px);
}

.button span {
  transition: transform 0.15s ease;
}

.button:hover span {
  transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .button span {
    transition: none;
  }

  .button:hover,
  .button:hover span {
    transform: none;
  }
}

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -3rem;
  bottom: -2.5rem;
  width: 11rem;
  height: 11rem;
  background: url("/brand/bx-mark.svg") center / contain no-repeat;
  opacity: var(--mark-opacity);
  pointer-events: none;
}

.hero .wrap {
  padding-block: 3.5rem 5rem;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 1.6rem + 5vw, 5rem);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hl {
  background: linear-gradient(transparent 60%, var(--highlight) 60%, var(--highlight) 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lede {
  max-width: 38rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  line-height: 1.55;
}

.hero .button {
  margin-top: 2.25rem;
}

@media (min-width: 48rem) {
  .hero::before {
    bottom: -3rem;
    width: 14rem;
    height: 14rem;
  }

  .hero .wrap {
    padding-block: 6.5rem 7.5rem;
  }
}

/* Wide screens have room beside the headline for the full-size mark. */
@media (min-width: 75rem) {
  .hero::before {
    top: 50%;
    bottom: auto;
    right: max(-4rem, calc((100vw - 72rem) / 2 - 6rem));
    width: 30rem;
    height: 30rem;
    transform: translateY(-50%);
  }
}

/* ---------- Home: pillars ---------- */

.pillars .wrap {
  padding-block: 1rem 4rem;
}

.section-label {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pillar-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.pillar-list li {
  padding: 1.5rem 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pillar-num {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--link);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
}

.pillar-list h3 {
  font-size: 1.375rem;
  font-weight: 720;
}

.pillar-list p {
  margin-top: 0.5rem;
  color: var(--muted);
}

@media (min-width: 48rem) {
  .pillar-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* ---------- Home: projects ---------- */

.projects {
  scroll-margin-top: 1.5rem;
}

.projects .wrap {
  padding-block: 0 4rem;
}

.section-intro {
  max-width: 38rem;
  margin: -0.75rem 0 1.5rem;
  color: var(--muted);
}

.project-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

/* The whole card is the link: the name's link is stretched over it. */
.project-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 1.1rem;
  align-content: start;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.project-card:hover,
.project-card:focus-within {
  border-color: var(--amber);
}

.project-card:hover {
  transform: translateY(-2px);
}

.project-icon {
  grid-row: span 3;
  width: 3rem;
  height: 3rem;
}

.project-card h3 {
  font-size: 1.375rem;
  font-weight: 720;
}

.project-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.project-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.project-card p {
  color: var(--muted);
}

.project-url {
  margin-top: 0.4rem;
  color: var(--link) !important;
  font-size: 0.9375rem;
  font-weight: 650;
}

.project-url span {
  display: inline-block;
  transition: transform 0.15s ease;
}

.project-card:hover .project-url span {
  transform: translateX(2px);
}

@media (min-width: 48rem) {
  .project-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .project-card {
    padding: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card,
  .project-url span {
    transition: none;
  }

  .project-card:hover,
  .project-card:hover .project-url span {
    transform: none;
  }
}

/* ---------- Home: contact ---------- */

.contact {
  scroll-margin-top: 1.5rem;
}

.contact-card {
  display: grid;
  gap: 2rem;
  padding: 2rem 1.5rem;
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.contact-card h2 {
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.625rem);
  font-weight: 760;
  letter-spacing: -0.03em;
}

.contact-card > div > p {
  margin-top: 0.75rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.contact-details {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.contact-details dt {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 0;
  font-size: 1.125rem;
}

.contact-email {
  font-weight: 650;
  overflow-wrap: anywhere;
}

@media (min-width: 48rem) {
  .contact-card {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    padding: 3rem;
  }
}

/* ---------- Document pages (privacy, terms, sms) ---------- */

.page-head {
  padding-block: 3rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.page-head h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
  font-weight: 780;
  letter-spacing: -0.03em;
}

.page-head .lede {
  margin-top: 1rem;
}

.updated {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.doc {
  display: grid;
  gap: 2.5rem;
  padding-top: 2.5rem;
}

.toc {
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.9375rem;
}

.toc h2 {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 0.15rem;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding-block: 0.2rem;
  color: var(--text);
  text-decoration: none;
}

.toc a:hover {
  color: var(--link);
  text-decoration: underline;
}

@media (min-width: 60rem) {
  .doc {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 4rem;
    padding-top: 3rem;
  }

  .toc {
    position: sticky;
    top: 1.5rem;
    align-self: start;
    padding: 0;
    border: 0;
    background: none;
  }

  .toc ol {
    border-left: 1px solid var(--border);
  }

  .toc a {
    margin-left: -1px;
    padding: 0.3rem 0 0.3rem 1rem;
    border-left: 2px solid transparent;
    color: var(--muted);
  }

  .toc a:hover {
    border-left-color: var(--amber);
    color: var(--text);
    text-decoration: none;
  }
}

/* Long-form text */

.prose {
  max-width: 44rem;
  min-width: 0;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h2 {
  margin-top: 3rem;
  padding-top: 0.25rem;
  font-size: 1.5rem;
  font-weight: 720;
  scroll-margin-top: 1.5rem;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.75rem;
  font-size: 1.125rem;
  font-weight: 680;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 0.75rem;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 0.6rem;
  padding-left: 1.25rem;
}

.prose li::marker {
  color: var(--link);
}

.prose code {
  font-family: var(--mono);
  font-size: 0.92em;
}

.callout {
  padding: 1.25rem 1.25rem 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: 10px;
  background: var(--surface-2);
}

.callout > * + * {
  margin-top: 0.75rem;
}

.contact-block {
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.contact-block > * + * {
  margin-top: 0.4rem;
}

/* ---------- SMS program page ---------- */

.facts {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.facts > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border);
}

.facts > div:first-child {
  border-top: 0;
}

.facts dt {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (min-width: 36rem) {
  .facts > div {
    grid-template-columns: 9rem 1fr;
    gap: 1rem;
    align-items: baseline;
  }
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 0.75rem;
  padding: 0 !important;
  list-style: none;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.75rem;
  min-height: 1.9rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 750;
}

.shot {
  margin-top: 1.5rem !important;
}

.shot img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.shot figcaption,
.sample figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.consent {
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 1.0625rem;
}

.sample-screen {
  max-width: 26rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}

.sample-from {
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}

.sample-bubble {
  max-width: 85%;
  padding: 0.7rem 0.95rem;
  border-radius: 18px 18px 18px 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.9875rem;
  line-height: 1.45;
}

/* ---------- Résumé ---------- */

/* The same page prints to site/resume.pdf (scripts/resume-pdf.sh); the print
   layout is under "Print" below. */

.resume-head {
  display: grid;
  gap: 2rem;
  padding-block: 3rem 2.5rem;
}

.resume-head h1 {
  font-size: clamp(2.6rem, 1.8rem + 4vw, 4.25rem);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.resume-title {
  max-width: 42rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  font-weight: 550;
  line-height: 1.45;
}

.resume-title .sep {
  margin-inline: 0.35em;
  color: var(--link);
}

.resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.resume-contact li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.resume-contact svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  color: var(--muted);
}

.resume-contact a {
  overflow-wrap: anywhere;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.resume-actions .button svg {
  width: 1.125rem;
  height: 1.125rem;
}

.resume-actions p {
  color: var(--muted);
  font-size: 0.875rem;
}

@media (min-width: 48rem) {
  .resume-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    padding-block: 4.5rem 3rem;
  }

  .resume-actions {
    flex-direction: column;
    align-items: flex-end;
  }
}

/* At-a-glance numbers. The cells sit on a border-coloured grid, so the gaps
   draw the dividing lines. */
.resume-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.resume-stats > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 1.25rem 1.25rem 1.4rem;
  background: var(--surface);
}

.resume-stats dt {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.35;
}

.resume-stats dd {
  margin: 0;
  color: var(--link);
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  font-weight: 760;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 48rem) {
  .resume-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .resume-stats > div {
    padding: 1.5rem 1.5rem 1.6rem;
  }
}

.resume-body {
  display: grid;
  gap: 3.5rem;
  padding-top: 3.5rem;
}

.resume-main,
.resume-side {
  display: grid;
  gap: 3rem;
  align-content: start;
  min-width: 0;
}

.resume-side {
  gap: 2.5rem;
}

@media (min-width: 60rem) {
  .resume-body {
    grid-template-columns: minmax(0, 1fr) 19rem;
    gap: 4.5rem;
  }
}

.resume-section h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resume-section h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.resume-profile {
  max-width: 44rem;
  font-size: 1.1875rem;
  line-height: 1.6;
}

.impact {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.impact li {
  position: relative;
  padding-left: 1.5rem;
}

.impact li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.6em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1px;
  background: var(--amber);
  transform: rotate(45deg);
}

/* Experience: one employer, its roles on a timeline, newest first. */
.org {
  margin-bottom: 1.75rem;
}

.org h3 {
  font-size: 1.25rem;
  font-weight: 720;
}

.org p {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 2.25rem;
  padding: 0 0 0 1.75rem;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.3125rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  border-radius: 2px;
  background: var(--border);
}

.role {
  position: relative;
}

.role::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.4rem;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid var(--muted);
  border-radius: 50%;
  background: var(--bg);
}

.role-current::before {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--highlight);
}

.role-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.1rem 1rem;
}

.role h4 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.role-dates,
.role-also {
  color: var(--muted);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.role-also {
  margin-top: 0.1rem;
}

.role ul {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-left: 1.1rem;
  list-style-type: disc;
}

.role li::marker {
  color: var(--link);
}

.role-summary {
  margin-top: 0.75rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 550;
  line-height: 1.3;
}

.tags abbr {
  text-decoration: none;
}

.credential strong {
  display: block;
  font-weight: 680;
}

.credential p + p {
  margin-top: 0.15rem;
}

.credential .muted {
  color: var(--muted);
  font-size: 0.9375rem;
}

.side-projects {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.side-project {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.1rem 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.15s ease;
}

.side-project:hover,
.side-project:focus-within {
  border-color: var(--amber);
}

.side-project img {
  grid-row: span 2;
  width: 2.25rem;
  height: 2.25rem;
}

.side-project a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.side-project a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.side-project .side-project-name {
  color: var(--text);
  font-size: 1rem;
}

.side-project .host {
  color: var(--link);
  font-size: 0.8125rem;
  font-weight: 600;
}

.side-project p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

/* ---------- 404 ---------- */

.notfound .wrap {
  padding-block: 5rem 3rem;
}

.notfound h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
  font-weight: 780;
  letter-spacing: -0.03em;
}

.notfound .button {
  margin-top: 2rem;
}

/* ---------- Print ---------- */

@media print {
  .skip,
  .site-nav,
  .toc,
  .hero::before {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: inherit;
  }

  .doc {
    display: block;
  }
}

/* Résumé, printed. This is what scripts/resume-pdf.sh turns into
   site/resume.pdf, so a visitor's own Print gives the same two pages. */

@page resume {
  size: letter;
  margin: 0.5in 0.6in 0.55in;

  @bottom-right {
    content: "Bradley Burch \00B7  R\00E9sum\00E9  \00B7  " counter(page) " of " counter(pages);
    color: #7a705e;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 7pt;
    letter-spacing: 0.04em;
  }
}

@media print {
  /* Light colours whatever the viewer's theme. */
  :root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f7f3ea;
    --text: #17130b;
    --muted: #5e5545;
    --border: #e3dccd;
    --link: #8a5800;
    --highlight: rgb(255 178 36 / 0.45);
    --shadow: none;
  }

  /* Helvetica Neue rather than the system UI font: Chrome can only embed the
     variable system font as Type 3 glyphs, which bloats the PDF and trips up
     some applicant-tracking parsers. */
  .page-resume {
    display: block;
    min-height: 0;
    page: resume;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 10pt;
    line-height: 1.45;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .page-resume .site-header,
  .page-resume .site-footer,
  .page-resume .skip,
  .resume-actions,
  .resume-head .eyebrow {
    display: none;
  }

  .page-resume .wrap {
    max-width: none;
    padding-inline: 0;
  }

  .page-resume a {
    color: inherit;
    text-decoration: none;
  }

  .resume-head {
    display: block;
    padding: 0 0 12pt;
  }

  .resume-head h1 {
    font-size: 25pt;
    letter-spacing: -0.025em;
  }

  .resume-title {
    max-width: none;
    margin-top: 4pt;
    font-size: 10.5pt;
  }

  .resume-contact {
    gap: 2pt 14pt;
    margin-top: 7pt;
    font-size: 8.8pt;
  }

  .resume-contact li {
    gap: 4pt;
  }

  .resume-contact svg {
    width: 8pt;
    height: 8pt;
  }

  .resume-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-radius: 6pt;
    break-inside: avoid;
  }

  .resume-stats > div {
    gap: 3pt;
    padding: 7pt 9pt 8pt;
  }

  .resume-stats dt {
    font-size: 7.6pt;
  }

  .resume-stats dd {
    font-size: 16pt;
  }

  .resume-body {
    display: block;
    padding-top: 0;
  }

  .resume-main,
  .resume-side {
    gap: 16pt;
    padding-top: 16pt;
  }

  /* Below the experience, the sidebar becomes a band: expertise across the
     page, then education, certifications and projects side by side. */
  .resume-side {
    grid-template-columns: 1fr 0.8fr 1.4fr;
    column-gap: 18pt;
  }

  .resume-expertise {
    grid-column: 1 / -1;
  }

  .resume-section {
    break-inside: avoid-page;
  }

  .resume-experience {
    break-inside: auto;
  }

  .resume-section h2 {
    gap: 6pt;
    margin-bottom: 6pt;
    color: var(--link);
    font-size: 7.8pt;
    break-after: avoid;
  }

  .resume-profile {
    max-width: none;
    font-size: 10.4pt;
    line-height: 1.5;
  }

  .impact {
    gap: 4.5pt;
  }

  .impact li {
    padding-left: 12pt;
    break-inside: avoid;
  }

  .impact li::before {
    left: 1pt;
    width: 4pt;
    height: 4pt;
  }

  .org {
    margin-bottom: 8pt;
    break-after: avoid;
  }

  .org h3 {
    font-size: 10.5pt;
  }

  .org p {
    margin-top: 0;
    font-size: 8.6pt;
  }

  .timeline {
    gap: 12pt;
    padding-left: 15pt;
  }

  .timeline::before {
    left: 3.25pt;
    top: 5pt;
    bottom: 5pt;
    width: 1pt;
  }

  .role {
    break-inside: avoid;
  }

  .role::before {
    left: -15pt;
    top: 3pt;
    width: 7.5pt;
    height: 7.5pt;
    border-width: 1.2pt;
  }

  .role-current::before {
    box-shadow: 0 0 0 2pt var(--highlight);
  }

  .role h4 {
    font-size: 10.6pt;
  }

  .role-dates,
  .role-also {
    font-size: 8.6pt;
  }

  .role-also {
    margin-top: 0;
  }

  .role ul {
    gap: 2.5pt;
    margin-top: 3pt;
    padding-left: 10pt;
  }

  .role-summary {
    margin-top: 3pt;
  }

  .tags {
    gap: 3pt;
  }

  .tags li {
    padding: 1.5pt 6pt;
    font-size: 8pt;
  }

  .credential .muted {
    font-size: 8.6pt;
  }

  .side-projects {
    gap: 5pt;
  }

  .side-project {
    grid-template-columns: 15pt minmax(0, 1fr);
    gap: 0 7pt;
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .side-project img {
    width: 15pt;
    height: 15pt;
  }

  .side-project p,
  .side-project .host {
    font-size: 8pt;
  }

  .side-project .side-project-name {
    font-size: 9pt;
  }
}
