/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
  /* Parchment, iron and saddle leather */
  --bg: #f0e9dc;
  --fg: #231b15;
  --muted: #6b5b4b;
  --line: rgba(35, 27, 21, 0.18);
  --hover: rgba(35, 27, 21, 0.04);

  /* Chief's-blanket crimson, for stripes and the footer band */
  --blanket-red: #8f1d24;

  /* Headline accent colors */
  --twilight-blue: #6f84a6;
  --lush-meadow: #7f9270;
  --rust: #b0654a;

  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 2.2vw, 28px);
  --max: 1600px;
  --header-h: 88px; /* after scrolling; taller at the top of the page */
  --header-h-top: 152px;
  --mark: 128px;
  --mark-scrolled: 60px;

  --step--1: 0.75rem; /* small caps labels */
  --step-0: 1.125rem;
  --step-1: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  --step-hero: clamp(2.75rem, 1.2rem + 6vw, 7.25rem);
  --step-giant: clamp(2.5rem, 0.5rem + 8vw, 9rem);

  color-scheme: light;
  interpolate-size: allow-keywords;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.005em;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: var(--fg);
  color: var(--bg);
}

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

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 100;
  padding: 8px 12px;
  background: var(--fg);
  color: var(--bg);
}

.skip-link:focus {
  top: 12px;
}

/* Text link with an understated underline */
.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.2s;
}

.link:hover {
  text-decoration-color: currentColor;
}

.muted {
  color: var(--muted);
}

/* Spaced small caps, like lettering on a ranch sign */
.label,
.caps {
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Layout
   ========================================================================== */

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

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.section {
  padding-top: clamp(64px, 10vw, 160px);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--blanket-red);
  margin-bottom: clamp(28px, 3.5vw, 48px);
}

/* Spaced serif capitals, heritage-label style */
.section-head h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h-top);
  transition: height 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.site-header.is-scrolled .wrap {
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.brand-mark {
  width: var(--mark);
  height: var(--mark);
  transition: width 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), height 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.site-header.is-scrolled .brand-mark {
  width: var(--mark-scrolled);
  height: var(--mark-scrolled);
}

@media (max-width: 640px) {
  :root {
    --header-h: 76px;
    --header-h-top: 112px;
    --mark: 72px;
    --mark-scrolled: 52px;
  }
}

.brand:hover .brand-mark {
  transform: rotate(-6deg);
}

.nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 36px);
}

.nav a {
  position: relative;
  padding: 4px 0;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-right {
  display: flex;
  align-items: center;
}

@media (max-width: 640px) {
  .nav {
    gap: 12px;
  }
  .nav a {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero-statement {
  grid-column: 1 / -1;
  max-width: 19ch;
  font-size: var(--step-hero);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.015em;
}

/* The second half of the headline cycles through the accent colors,
   holding each for a few seconds. Reduced-motion users get the blue. */
.hero-statement .muted {
  font-style: italic;
  color: var(--twilight-blue);
  animation: headline-colors 12s ease-in-out infinite;
}

@keyframes headline-colors {
  0%,
  25% {
    color: var(--twilight-blue);
  }
  33%,
  58% {
    color: var(--lush-meadow);
  }
  66%,
  91% {
    color: var(--rust);
  }
  100% {
    color: var(--twilight-blue);
  }
}

/* ==========================================================================
   Selected work — 2x4-style cards: image, caption, then project details
   ========================================================================== */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(56px, 6vw, 96px) var(--gutter);
}

.tile-caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
}

.tile-title {
  margin: 0;
  font-size: var(--step-2);
  line-height: 1.05;
}

.tile-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.tile-meta {
  color: var(--muted);
  font-size: 1rem;
}

/* Project details collapse under a "Details" row on each card */

/* The toggle sits at the right end of the subtitle line: it's pulled up
   out of flow, and the caption leaves room for it so text never collides */
.tile-caption {
  padding-right: 5.5rem;
}

.tile-more {
  position: relative;
  display: flow-root; /* keep the details' top margin inside, so the toggle doesn't shift when open */
}

.tile-more summary {
  position: absolute;
  right: 0;
  bottom: 100%;
  line-height: 1.45;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.tile-more summary::-webkit-details-marker {
  display: none;
}

.tile-more summary:hover,
.tile-more[open] summary {
  color: var(--fg);
}

.toggle-icon {
  position: relative;
  width: 8px;
  height: 8px;
}

.toggle-icon::before,
.toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.toggle-icon::after {
  transform: rotate(90deg);
}

.tile-more[open] .toggle-icon::after {
  transform: rotate(0deg);
}

/* Browsers that support it animate the open/close; others just toggle */
.tile-more::details-content {
  height: 0;
  overflow: clip;
  transition: height 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), content-visibility 0.4s allow-discrete;
}

.tile-more[open]::details-content {
  height: auto;
}

.tile-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  padding: 20px 0 8px;
  border-top: 1px solid var(--line);
}

.tile-details > p {
  max-width: 52ch;
}

a.media > * {
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tile:has(a:hover) a.media > * {
  transform: scale(1.04);
}

.project-facts {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 8px var(--gutter);
  font-size: 1rem;
}

.project-facts dt {
  padding-top: 0.2em;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags li {
  padding: 4px 10px 3px;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-links {
  display: flex;
  gap: 24px;
}

.arrow-link::after {
  content: " \2197";
  display: inline-block;
  transition: transform 0.25s;
}

.arrow-link:hover::after {
  transform: translate(2px, -2px);
}

@media (max-width: 700px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

/* Media blocks for the work cards. Colors are
   fixed (not theme tokens) so each project keeps its own identity. */

.media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.media img {
  display: block;
}

.media--wxp {
  background: #9d9cf0;
}

.media--wxp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--game {
  grid-template-rows: 100%;
  background: #07cfae;
}

.media--game img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.media--twine {
  background: #f1dcd0;
}

.media--twine img {
  width: 72%;
  height: auto;
}

.media--blend {
  grid-template-rows: 100%;
  background: #1e2a4a;
}

.media--blend img {
  height: 100%;
  width: auto;
}

.media--paper {
  grid-template-rows: 100%;
  background: #f8f3ea;
  box-shadow: inset 0 0 0 1px var(--line);
}

.media--paper img {
  height: 84%;
  width: auto;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.35);
}

.media--lcs {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.media--lcs img {
  width: 70%;
  height: auto;
  mix-blend-mode: multiply; /* blend any off-white in the logo into the tile */
}

/* ==========================================================================
   About / capabilities / experience
   ========================================================================== */

/* About page: photo and bio side by side at the top, timeline below */

.about-intro {
  padding-top: clamp(32px, 5vw, 72px);
  align-items: start;
  row-gap: 40px;
}

/* The photo stays in view while the bio beside it scrolls */
.portrait {
  grid-column: 1 / span 5;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--hover);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.about-text {
  grid-column: 7 / -1;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 36px);
}

/* On the home page the headline sits in the half-width column beside the photo */
.about-title {
  padding-bottom: clamp(20px, 2.5vw, 32px);
  border-bottom: 3px solid var(--blanket-red);
}

.about-title.hero-statement {
  max-width: none;
  font-size: clamp(2.25rem, 1.2rem + 3vw, 4.5rem);
  line-height: 1.02;
}

.work-page {
  padding-bottom: clamp(64px, 10vw, 160px);
}

.about-lede {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.125rem);
  line-height: 1.2;
  font-weight: 500;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.about-body p {
  max-width: 62ch;
}

/* About page */

.page-head {
  padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 3.5vw, 48px);
  border-bottom: 3px solid var(--blanket-red);
  margin-bottom: clamp(32px, 4vw, 56px);
}

.page-head h1 {
  font-size: var(--step-hero);
  line-height: 1;
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: clamp(56px, 7vw, 104px) 0 clamp(48px, 8vw, 120px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* About timeline: a horizontal line of stops, vertical on narrow screens */

.journey {
  margin-top: clamp(72px, 9vw, 144px);
  padding-top: 8px;
}

.journey ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.journey li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px var(--gutter) 0 0;
  border-top: 1px solid var(--fg);
}

.journey li::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 1px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--fg);
  background: var(--bg);
  transform: rotate(45deg);
}

.journey li:nth-child(2)::before {
  background: var(--twilight-blue);
  border-color: var(--twilight-blue);
}

.journey li:nth-child(3)::before {
  background: var(--lush-meadow);
  border-color: var(--lush-meadow);
}

.journey li:nth-child(4)::before {
  background: var(--rust);
  border-color: var(--rust);
}

.journey li.is-now::before {
  background: var(--fg);
}

.journey-when {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.journey-what {
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 600;
}

.journey p {
  max-width: 28ch;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .journey ol {
    max-width: 640px;
    grid-template-columns: 1fr;
    row-gap: 0;
    margin-left: 5px;
  }
  .journey li {
    padding: 0 0 28px 28px;
    border-top: 0;
    border-left: 1px solid var(--fg);
  }
  .journey li:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
  }
  .journey li::before {
    top: 4px;
    left: -5px;
  }
  .journey p {
    max-width: 44ch;
  }
}

@media (max-width: 700px) {
  .portrait {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    max-width: 440px;
  }
  .about-text {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   Contact / footer
   ========================================================================== */

main > .section:last-child {
  padding-bottom: clamp(64px, 10vw, 160px);
}

.contact {
  padding-bottom: clamp(64px, 10vw, 160px);
}

.contact-lede {
  max-width: 34ch;
  margin-bottom: clamp(24px, 3vw, 40px);
  font-size: var(--step-1);
  font-style: italic;
  color: var(--muted);
}

.contact-big {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.75rem, 0.9rem + 3.4vw, 4.25rem); /* big, but a step below the page title */
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.015em;
  word-break: break-word;
}

.contact-big span {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.contact-big:hover span {
  background-size: 100% 2px;
}

.contact-meta {
  margin-top: clamp(48px, 7vw, 96px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  row-gap: 24px;
}

.contact-meta > div {
  grid-column: span 4;
}

.contact-meta dt {
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .contact-meta > div {
    grid-column: span 6;
  }
}

@media (max-width: 520px) {
  .contact-meta > div {
    grid-column: 1 / -1;
  }
}

/* A crimson band of outlined diamonds, after a Navajo-style chief's blanket */
.site-footer {
  position: relative;
  padding: 54px 0 30px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Crect width='48' height='24' fill='%238f1d24'/%3E%3Cpath d='M0 12L24 1l24 11-24 11z' fill='none' stroke='%23f0e9dc' stroke-width='1'/%3E%3Cpath d='M4 12L24 3.8 44 12 24 20.2z' fill='none' stroke='%231d1814' stroke-width='2.6'/%3E%3C/svg%3E") repeat-x center / 64px 32px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

/* ==========================================================================
   Resume page
   ========================================================================== */

.resume-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 3.5vw, 48px);
  border-bottom: 3px solid var(--blanket-red); /* same stripe as the other page titles */
  margin-bottom: clamp(8px, 1.5vw, 24px);
}

.resume-toolbar h1 {
  font-size: var(--step-hero);
  line-height: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 11px;
  border: 1px solid var(--fg);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.button:hover {
  background: var(--fg);
  color: var(--bg);
}

.resume {
  padding-bottom: clamp(64px, 8vw, 120px);
}

.resume-header {
  row-gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.resume-header .who {
  grid-column: 1 / span 6;
}

.resume-header .who h2 {
  font-size: var(--step-2);
}

.resume-header .reach {
  grid-column: 8 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px var(--gutter);
  align-content: start;
}

.resume-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  row-gap: 20px;
}

.resume-section > h3 {
  grid-column: 1 / span 3;
  padding-top: 0.35em;
  font-family: var(--font);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.resume-section > .content {
  grid-column: 4 / -1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.entry-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 8px;
}

.entry-head h4 {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 600;
}

.entry-link .link-icon {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.3em;
  vertical-align: 0.05em;
  color: var(--muted);
  transition: color 0.2s;
}

.entry-link:hover .link-icon {
  color: currentColor;
}

.entry-head .when {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.entry ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 72ch;
}

.entry li {
  position: relative;
  padding-left: 18px;
}

.entry li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px var(--gutter);
}

.skills-grid dt {
  font-family: var(--display);
  font-size: 1.125em;
  font-weight: 600;
}

.skills-grid dd {
  color: var(--muted);
}

@media screen and (max-width: 900px) {
  .resume-header .who,
  .resume-header .reach,
  .resume-section > h3,
  .resume-section > .content {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 520px) {
  .resume-header .reach,
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   404
   ========================================================================== */

.not-found {
  min-height: calc(100vh - var(--header-h) - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.not-found h1 {
  font-size: var(--step-giant);
  line-height: 1;
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Print (resume)
   ========================================================================== */

@media print {
  :root {
    --bg: #fff;
    --fg: #000;
    --muted: #444;
    --line: #bbb;
  }

  @page {
    size: letter;
    margin: 0.5in 0.55in;
  }

  body {
    font-size: 9pt;
    line-height: 1.26;
    background: #fff;
  }

  .site-header,
  .site-footer,
  .resume-toolbar,
  .skip-link {
    display: none !important;
  }

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

  .resume {
    padding: 0;
  }

  .resume-header {
    padding-top: 0;
    border-top: 0;
  }

  .resume-header .who h2 {
    font-size: 20pt;
  }

  .resume-header {
    padding-bottom: 10pt;
  }

  .resume-header .reach a {
    white-space: nowrap;
  }

  .resume-section {
    padding: 7pt 0;
  }

  /* No letter-spacing in the PDF: tracked capitals extract as "E X P E R I E N C E",
     which trips up applicant tracking systems */
  .resume-section > h3 {
    grid-column: 1 / span 2;
    font-size: 9.5pt;
    font-weight: 600;
    letter-spacing: 0;
  }

  .resume-section > .content {
    grid-column: 3 / -1;
  }

  .entry-head .when {
    font-size: 8.5pt;
  }

  .skills-grid > div {
    display: grid;
    grid-template-columns: 8em 1fr;
    gap: 8pt;
  }

  .resume-section > .content {
    gap: 8pt;
  }

  .entry-head {
    margin-bottom: 3pt;
  }

  .entry ul {
    gap: 2pt;
    max-width: none;
  }

  .skills-grid {
    gap: 3pt;
  }

  .entry-head h4 {
    font-size: 10pt;
  }

  .entry {
    break-inside: avoid;
  }

  a {
    text-decoration: none !important;
  }

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
