@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #1b1914;
  --muted: #4a453c;
  --paper: #f4efe4;
  --card: #fffdf8;
  --line: #ddd4c4;
  --green: #143d34;
  --green-ink: #f7f4ec;
  --measure: 40rem;
  --serif: "Source Serif 4", Georgia, "Iowan Old Style", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --section-gap: 2rem;
  --page-pad: max(20px, 1.25rem);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  padding-left: max(var(--page-pad), env(safe-area-inset-left));
  padding-right: max(var(--page-pad), env(safe-area-inset-right));
  color: var(--ink);
  background:
    linear-gradient(180deg, #efe6d4 0, transparent 12rem), var(--paper);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--green);
  color: var(--green-ink);
  padding: 0.6rem 0.8rem;
  z-index: 1;
}

.skip:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

main,
footer {
  width: min(var(--measure), 100%);
  margin-inline: auto;
}

main {
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
}

.mast {
  padding-top: max(1.5rem, env(safe-area-inset-top));
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.role {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 1rem;
}

.print-row {
  margin: 0.55rem 0 0;
}

.save-pdf {
  margin: 0;
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

h2.headline {
  margin: 1.35rem 0 1rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-transform: none;
}

h3 {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

main > section {
  margin-top: var(--section-gap);
}

main > section > :last-child {
  margin-bottom: 0;
}

p {
  margin: 0 0 0.85rem;
}

.pitch {
  font-size: 1.15rem;
}

.lede {
  margin-top: 0.7rem;
}

.pitch:last-of-type {
  margin-bottom: 0;
}

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

.proof li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  padding: 0.9rem 1rem;
}

article {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

article + article {
  margin-top: 1rem;
}

.meta {
  margin-top: 0.2rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.95rem;
}

article ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

a {
  color: var(--green);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 2px solid var(--green);
  background: var(--green);
  color: var(--green-ink);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 650;
}

.cta.secondary {
  background: transparent;
  color: var(--green);
}

.email a {
  overflow-wrap: anywhere;
}

.print-only {
  display: none;
}

figure {
  margin: 0;
}

img {
  display: block;
  background: white;
}

figcaption {
  margin-top: 0.4rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.colophon {
  width: min(var(--measure), 100%);
  margin-inline: auto;
}

.colophon a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

body.public .mast {
  padding-top: 1rem;
}

.tagline {
  margin: 0.7rem 0 0;
  max-width: 36rem;
}

.tagline p {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.tagline-role {
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.tagline-creds {
  margin-top: 0.28rem;
  font-size: clamp(0.95rem, 4vw, 1.15rem);
  white-space: nowrap;
}

.seg,
.sep {
  white-space: nowrap;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.6rem;
  margin: 1rem 0 0;
}

.actions .cta {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.nameplate {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--section-gap);
}

.nameplate-copy {
  flex: 1 1 auto;
  min-width: min(100%, max-content);
  max-width: 100%;
}

.identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 100%;
}

.headshot {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  margin: 0;
  line-height: 0;
  border-radius: 50%;
  overflow: hidden;
}

.linkedin-qr {
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  margin-top: 0;
  padding: 8px;
  background: #ffffff;
}

.linkedin-qr a {
  display: block;
  line-height: 0;
  background: #ffffff;
}

.linkedin-qr img {
  display: block;
  width: 140px;
  height: 140px;
  min-width: 140px;
  min-height: 140px;
  background: #ffffff;
  image-rendering: crisp-edges;
}

.headshot img {
  display: block;
  width: 96px;
  height: 96px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

@media (min-width: 800px) {
  .nameplate {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    width: 100%;
  }

  .identity {
    flex-direction: row;
    flex: 1 1 auto;
    gap: 1rem;
  }

  .nameplate-copy {
    flex: 1 1 auto;
    min-width: 22rem;
  }

  .tagline-role {
    font-size: 1.25rem;
    text-wrap: nowrap;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .mast,
  .nameplate {
    width: 100%;
  }

  .linkedin-qr {
    flex: 0 0 156px;
    width: 156px;
    margin-left: auto;
  }

  .linkedin-qr figcaption {
    white-space: nowrap;
  }

  .headshot,
  .linkedin-qr {
    margin-top: calc(0.2167 * clamp(2rem, 4.5vw, 2.6rem));
  }
}

@media (max-width: 640px) {
  .nameplate {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--section-gap);
  }

  .linkedin-qr {
    margin-top: 0;
  }

  .linkedin-qr img {
    width: 120px;
    height: 120px;
    min-width: 112px;
    min-height: 112px;
  }

  .nameplate .headshot,
  .nameplate .headshot img {
    width: 72px;
    height: 72px;
  }
}

body.public h2 {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

body.public h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
  color: var(--ink);
}

.roles article {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 1rem 0;
}

.learning {
  display: grid;
  gap: 0.75rem;
}

.learning article {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 0.9rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
}

.learning article + article {
  margin-top: 0;
}

.learning article h3,
.learning article p {
  margin: 0;
}

.roles article + article {
  margin-top: 0;
}

.roles article h3,
.roles article p {
  margin: 0;
}

.colophon {
  margin-top: 2.5rem;
  padding-top: 1rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.post-list a {
  font-weight: 600;
}

.post-list time {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.post-body :first-child {
  margin-top: 0;
}

.learning article a {
  overflow-wrap: anywhere;
  text-decoration: none;
}

.learning article h3 a::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
}

.learning article .card-title {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.learning article .external {
  display: inline-block;
  margin-left: 0.28em;
  font-size: 0.72em;
  line-height: 1;
  vertical-align: 0.12em;
}

.learning article:focus-within {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.learning article h3 a:focus-visible {
  outline: none;
}

.demo-link {
  margin-top: 1.5rem;
}

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

@page {
  margin: 0.6in;
}

@media print {
  html,
  body {
    background: white;
    color: black;
  }

  body {
    padding: 0;
    font-size: 11pt;
    line-height: 1.4;
    orphans: 3;
    widows: 3;
  }

  .mast {
    padding-top: 0;
  }

  h1 {
    font-size: 20pt;
  }

  .role {
    margin-top: 0.15rem;
  }

  h2.headline {
    margin: 0.55rem 0 0.35rem;
    font-size: 15pt;
  }

  h4 {
    font-size: 13pt;
  }

  main > section {
    margin-top: 0.75rem;
  }

  p,
  .pitch {
    margin-bottom: 0.3rem;
  }

  .proof {
    gap: 0.35rem;
  }

  .proof li {
    padding: 0.4rem 0.65rem;
  }

  article {
    padding-top: 0.35rem;
  }

  main,
  footer {
    width: auto;
  }

  main {
    padding-bottom: 0;
  }

  .skip,
  .print-row,
  .save-pdf {
    display: none;
  }

  .print-only {
    display: block;
  }

  h1,
  h2,
  h3,
  h4,
  .role,
  .meta,
  figcaption,
  a {
    color: black;
  }

  h1,
  h2,
  h3,
  h4 {
    break-after: avoid;
  }

  article,
  .proof li,
  figure,
  .cta {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  article,
  .proof li,
  footer {
    border-color: black;
  }

  .proof li,
  .learning article,
  .cta {
    background: white;
    color: black;
    border-color: black;
  }

  .cta {
    border: 1px solid black;
    text-decoration: none;
  }

  a.posting::after {
    content: " (" attr(href) ")";
    overflow-wrap: anywhere;
  }

  footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid black;
  }

  .print-only img {
    width: 1.4in;
    height: auto;
  }

  .linkedin-qr,
  .linkedin-qr a {
    background: #ffffff;
  }

  .linkedin-qr img {
    width: 180px;
    height: 180px;
    min-width: 160px;
    min-height: 160px;
    background: #ffffff;
  }

  body.public h2,
  body.public h3 {
    color: black;
  }

  body.public h2 {
    font-size: 9pt;
    letter-spacing: 0.08em;
  }

  body.public h3 {
    font-size: 13pt;
  }

  .learning article h3 a::after {
    content: none;
  }
}
