:root {
  color-scheme: light;
  --background: #f8f5ef;
  --alternate: #f3efe8;
  --text: #1d1b19;
  --hero-name: #1b1b1b;
  --subtitle: #333333;
  --body: #5f5c57;
  --secondary: #68645e;
  --metadata: #8d877f;
  --border: #ddd6ca;
  --divider: #e4ded4;
  --accent: #556b4e;
  --accent-hover: #435641;
  --link-hover: #39493a;
  --light-olive: #eef2eb;
  --olive-circle: rgba(220, 230, 215, 0.85);
  --tag-background: #f2f0ea;
  --tag-border: #e2dbd0;
  --tag-text: #4c514b;
  --footer-background: #191816;
  --footer-text: #e8e4dd;
  --font-sans: Inter, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bodoni 72", Didot, "Iowan Old Style", Georgia, serif;
  --site-width: 1160px;
  --home-section-gap: 64px;
  --timeline-axis: 14px;
}

.dark {
  color-scheme: dark;
  --background: #171715;
  --alternate: #1f1e1c;
  --text: #f3efe8;
  --hero-name: #f3efe8;
  --subtitle: #f3efe8;
  --body: #bdb7ae;
  --secondary: #bdb7ae;
  --metadata: #958f86;
  --border: #393733;
  --divider: #393733;
  --accent: #a5c39d;
  --accent-hover: #b8d2b0;
  --link-hover: #c7dfc0;
  --light-olive: #263020;
  --olive-circle: rgba(74, 92, 68, 0.85);
  --tag-background: #262520;
  --tag-border: #393733;
  --tag-text: #d2cdc4;
  --footer-background: #11100f;
  --footer-text: #e8e4dd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-header {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 32px 32px 0;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 52px;
  min-height: 34px;
  color: var(--text);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: color 160ms ease;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link.active::after {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 24px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.theme-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--text);
  padding: 0;
  cursor: pointer;
}

.theme-icon {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  color: var(--background);
  transform: translateY(-50%);
}

.theme-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.theme-sun {
  left: 6px;
  color: var(--text);
}

.theme-moon {
  right: 6px;
}

.theme-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--background);
  transition: transform 180ms ease;
}

.dark .theme-knob {
  transform: translateX(22px);
}

.dark .theme-sun {
  color: var(--background);
}

.dark .theme-moon {
  color: var(--text);
}

.page-band {
  max-width: var(--site-width);
  margin: 0 auto;
  padding-right: 32px;
  padding-left: 32px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: 96px;
  min-height: max(780px, calc(100svh - 88px));
  padding-top: 56px;
  padding-bottom: 82px;
  border-bottom: 1px solid var(--divider);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--hero-name);
  font-family: var(--font-display);
  font-size: 116px;
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: 0;
  transform: translateX(-0.025em);
}

.hero h1 span {
  color: var(--accent);
}

.hero-text {
  max-width: 454px;
  margin: 28px 0 0;
  color: var(--subtitle);
  font-size: 18px;
  line-height: 1.56;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 150px;
  min-height: 48px;
  border-radius: 6px;
  padding: 0 24px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.btn.primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.btn.secondary {
  border: 1px solid #d7d1c5;
  background: transparent;
  color: var(--text);
}

.btn.secondary:hover {
  background: var(--alternate);
}

.btn.compact {
  min-width: 132px;
  min-height: 40px;
  padding: 0 18px;
}

.availability {
  display: inline-flex;
  margin: 32px 0 0;
  border-radius: 7px;
  background: var(--alternate);
  color: var(--accent);
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.currently {
  margin-top: 26px;
}

.currently p {
  margin: 0 0 14px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.currently ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.currently li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  font-size: 14px;
}

.currently li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.portrait-wrap {
  position: relative;
  width: min(100%, clamp(316px, 36.45vw, 494px));
  aspect-ratio: 1;
  justify-self: center;
  isolation: isolate;
  transform: translateY(-28px);
}

.portrait-circle {
  position: absolute;
  top: 42%;
  left: 52%;
  z-index: 0;
  width: 79.2%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--olive-circle);
  transform: translate(-50%, -50%);
}

.portrait-dots,
.dot-field {
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 18px 18px;
}

.portrait-dots {
  position: absolute;
  z-index: 1;
  top: 26px;
  right: 18px;
  width: 156px;
  height: 164px;
  opacity: 0.72;
}

.portrait-wrap img {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  filter: none;
  transform: translateY(20px);
}

.scroll-cue {
  position: absolute;
  right: 50%;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent);
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  transform: translateX(50%);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.scroll-cue:hover {
  border-color: var(--accent);
  background: var(--light-olive);
  transform: translate(50%, 2px);
}

.section-with-rule {
  margin-top: var(--home-section-gap);
  padding-top: var(--home-section-gap);
  border-top: 1px solid var(--divider);
}

#experience.section-with-rule {
  margin-top: 0;
  border-top: 0;
}

#experience .experience-item:last-child {
  padding-bottom: 0;
}

#selected-work .project-item:last-child {
  min-height: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 36px;
}

.section-title span {
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}

.section-title h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color 160ms ease;
}

.section-link:hover {
  color: var(--link-hover);
}

.experience-list {
  position: relative;
}

.experience-list::before {
  position: absolute;
  top: 3px;
  bottom: 23px;
  left: var(--timeline-axis);
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
  content: "";
}

#experience .experience-list::before {
  bottom: 27px;
}

.experience-item {
  display: grid;
  grid-template-columns: 44px 110px minmax(0, 1fr);
  gap: 0;
  padding: 0 0 30px;
}

.experience-item + .experience-item {
  padding-top: 20px;
  border-top: 1px solid var(--divider);
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 6px;
  margin-left: calc(var(--timeline-axis) - 5.5px);
  border-radius: 50%;
  background: var(--accent);
}

.timeline-more-cue {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 22px 0 0 calc(var(--timeline-axis) - 22px);
  color: var(--accent);
  text-decoration: none;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.timeline-more-cue:hover {
  color: var(--accent-hover);
  transform: translateY(2px);
}

.timeline-more-cue:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.timeline-more-cue span {
  width: 18px;
  height: 18px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  font-size: 0;
  transform: translateY(-5px) rotate(45deg);
}

.date {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.date span {
  display: block;
}

.experience-copy h3,
.project-copy h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
}

.experience-copy h3 {
  font-size: 21px;
  line-height: 1.14;
}

.organization {
  margin: 4px 0 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.body-copy,
.project-copy p {
  color: var(--body);
  font-size: 14px;
  line-height: 1.56;
}

.body-copy {
  max-width: 610px;
  margin: 0;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 12px;
}

.skills span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid var(--tag-border);
  border-radius: 4px;
  background: var(--tag-background);
  color: var(--tag-text);
  padding: 3px 8px 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.project-list {
  margin-top: 2px;
}

.project-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 24px;
  min-height: 120px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--divider);
}

.project-item + .project-item {
  padding-top: 24px;
}

.project-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--tag-background);
  color: var(--accent);
}

.project-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-icon.glyph {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}

.project-copy h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.12;
}

.project-copy p {
  max-width: 570px;
  margin: 6px 0 0;
}

.project-icon-link,
.project-copy-link {
  color: inherit;
  text-decoration: none;
}

.project-copy-link {
  display: block;
}

.project-copy-link:hover h3,
.project-copy-link:focus-visible h3,
.project-icon-link:hover,
.project-icon-link:focus-visible {
  color: var(--accent);
}

.project-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  justify-self: end;
  color: var(--text);
  text-decoration: none;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.project-arrow:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 560px) 1fr;
  align-items: center;
  gap: 32px;
  margin-top: var(--home-section-gap);
  padding: 42px 32px;
  border-top: 1px solid var(--divider);
  background: var(--alternate);
  text-align: center;
}

.cta-copy h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}

.cta-copy p {
  max-width: 460px;
  margin: 12px auto 18px;
  color: var(--body);
  font-size: 15px;
  line-height: 1.45;
}

.dot-field {
  width: 148px;
  height: 96px;
  opacity: 0.72;
}

.dot-field.left {
  justify-self: end;
}

.dot-field.right {
  justify-self: start;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 52px;
  min-height: 72px;
  padding: 22px 32px;
  background: var(--footer-background);
  color: var(--footer-text);
}

.site-footer a,
.site-footer p {
  margin: 0;
  color: var(--footer-text);
  font-size: 13px;
  text-decoration: none;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 160ms ease;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-footer a:nth-of-type(2) svg,
.site-footer a:nth-of-type(3) svg,
.site-footer a:nth-of-type(4) svg {
  fill: currentColor;
  stroke: none;
}

.archive-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  align-items: end;
  gap: 80px;
  padding-top: 78px;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--divider);
}

.archive-hero-copy {
  display: grid;
  justify-items: start;
}

.archive-hero .article-back {
  margin-bottom: 40px;
}

.archive-hero h1 {
  margin: 0;
  color: var(--hero-name);
  font-family: var(--font-display);
  font-size: 132px;
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: 0;
}

.archive-hero h1 span {
  color: var(--accent);
}

.archive-hero-copy > p:not(.article-kicker) {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--body);
  font-size: 18px;
  line-height: 1.55;
}

.archive-stats {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--divider);
}

.archive-stats div {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--divider);
  padding: 14px 0;
}

.archive-stats dt,
.archive-stats dd {
  margin: 0;
}

.archive-stats dt {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}

.archive-stats dd,
.archive-label {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.archive-section {
  padding-top: 46px;
  padding-bottom: 88px;
}

.archive-label {
  max-width: none;
  margin: 0 0 8px;
}

.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  align-items: end;
  gap: 80px;
  padding-top: 78px;
  padding-bottom: 46px;
}

.blog-hero h1 {
  margin: 0;
  color: var(--hero-name);
  font-family: var(--font-display);
  font-size: 132px;
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: 0;
}

.blog-hero h1 span {
  color: var(--accent);
}

.blog-hero p {
  max-width: 430px;
  margin: 28px 0 0;
  color: var(--body);
  font-size: 18px;
  line-height: 1.55;
}

.blog-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin: 28px 0 0;
  color: var(--accent);
}

.blog-stats div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.blog-stats div + div::before {
  color: var(--metadata);
  content: ".";
}

.blog-stats dt,
.blog-stats dd {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.blog-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.blog-search svg {
  position: absolute;
  left: 18px;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--metadata);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  pointer-events: none;
}

.blog-search-input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  padding: 0 18px 0 50px;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.blog-search-input::placeholder {
  color: var(--metadata);
}

.blog-search-input:focus {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--alternate) 42%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.blog-index {
  padding-bottom: 78px;
}

.blog-list {
  border-top: 1px solid var(--divider);
}

.blog-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 124px 34px;
  align-items: center;
  gap: 48px;
  min-height: 136px;
  border-bottom: 1px solid var(--divider);
  padding: 28px 0;
}

.blog-row[hidden] {
  display: none;
}

.blog-date {
  align-self: start;
  color: var(--text);
}

.blog-date time,
.featured-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.featured-label {
  margin-bottom: 14px;
  color: var(--accent);
}

.blog-date span:not(.featured-label) {
  display: block;
  margin-top: 4px;
  color: var(--metadata);
  font-size: 18px;
  line-height: 1;
}

.blog-post-link {
  display: block;
  max-width: 650px;
  color: inherit;
  text-decoration: none;
}

.blog-post-link h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0;
}

.blog-post-link p {
  max-width: 520px;
  margin: 8px 0 12px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.48;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  border-radius: 5px;
  background: var(--light-olive);
  color: var(--accent);
  padding: 4px 8px 3px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.read-time {
  justify-self: end;
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.blog-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  justify-self: end;
  color: var(--text);
  text-decoration: none;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.blog-row:hover .blog-post-link h2,
.blog-row:hover .blog-arrow {
  color: var(--accent);
}

.blog-row:hover .blog-arrow {
  transform: translateX(3px);
}

.blog-empty {
  margin: 34px 0 0;
  color: var(--body);
  font-size: 15px;
  text-align: center;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.blog-pagination[hidden] {
  display: none;
}

.page-button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.page-button:hover,
.page-button[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.end-marker {
  margin: 34px 0 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.article-page {
  max-width: 880px;
  padding-top: 54px;
  padding-bottom: 88px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color 160ms ease;
}

.article-back:hover {
  color: var(--link-hover);
}

.article-header {
  margin-top: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--divider);
}

.article-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-header h1 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: 0;
}

.article-dek {
  max-width: 660px;
  margin: 26px 0 0;
  color: var(--body);
  font-size: 19px;
  line-height: 1.58;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 28px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-meta span + span::before {
  color: var(--metadata);
  content: ".";
}

.article-body {
  max-width: 720px;
  padding-top: 34px;
}

.article-body p,
.article-body blockquote,
.article-list {
  margin: 0 0 22px;
  color: var(--body);
  font-size: 18px;
  line-height: 1.84;
}

.article-body h2 {
  margin: 44px 0 16px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 35px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
}

.article-body blockquote {
  margin: 34px 0;
  border-left: 2px solid var(--accent);
  color: var(--text);
  padding-left: 22px;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.3;
}

.article-list {
  padding-left: 24px;
}

.article-list li + li {
  margin-top: 8px;
}

.article-callout {
  margin: 34px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--alternate);
  padding: 18px 20px;
}

.article-callout-label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-callout p {
  margin: 0;
}

.article-code {
  overflow-x: auto;
  margin: 34px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--alternate);
  color: var(--text);
  padding: 18px 20px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.7;
}

.article-figure {
  margin: 36px 0;
}

.article-figure img {
  width: min(100%, 520px);
  border: 1px solid var(--divider);
  border-radius: 8px;
  background: var(--alternate);
}

.article-figure figcaption {
  max-width: 520px;
  margin-top: 10px;
  color: var(--metadata);
  font-size: 13px;
  line-height: 1.5;
}

.article-post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 54px;
  border-top: 1px solid var(--divider);
  padding-top: 28px;
}

.article-nav-card {
  min-height: 112px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  color: var(--text);
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.article-nav-card:nth-child(1) {
  text-align: left;
}

.article-nav-card:nth-child(2) {
  text-align: right;
}

.article-nav-card:hover {
  border-color: var(--accent);
  background: var(--alternate);
  color: var(--accent);
}

.article-nav-card[aria-disabled="true"] {
  color: var(--metadata);
  pointer-events: none;
}

.article-nav-card strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.12;
}

.article-footer-label {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .site-nav {
    gap: clamp(24px, 4vw, 36px);
  }

  .hero {
    --hero-portrait-size: clamp(112px, 36.45vw, 494px);
    grid-template-columns: minmax(0, 1fr) var(--hero-portrait-size);
    align-items: center;
    gap: 22px clamp(22px, 3vw, 32px);
    min-height: max(760px, calc(100svh - 86px));
    padding-top: 58px;
    padding-bottom: 92px;
  }

  .hero-copy {
    display: block;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .eyebrow {
    grid-column: auto;
  }

  .hero h1 {
    grid-column: auto;
    font-size: clamp(88px, calc(5vw + 52px), 116px);
  }

  .hero-text {
    max-width: 620px;
    margin-top: 4px;
  }

  .hero-actions {
    gap: 14px;
    margin-top: 12px;
  }

  .btn {
    min-width: 140px;
    padding: 0 18px;
  }

  .portrait-wrap {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    width: var(--hero-portrait-size);
    transform: translateY(-28px);
  }

  .portrait-dots {
    top: 8px;
    right: 0;
    width: 122px;
    height: 132px;
  }

  .portrait-wrap img {
    width: 100%;
    height: 100%;
  }

  .experience-item {
    grid-template-columns: 34px 92px minmax(0, 1fr);
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 18px 34px;
  }

  .blog-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 64px;
  }

  .archive-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 64px;
  }

  .archive-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    border-top: 0;
  }

  .archive-stats div {
    border-top: 1px solid var(--divider);
  }

  .blog-search {
    max-width: 520px;
  }

  .blog-row {
    grid-template-columns: 140px minmax(0, 1fr) 92px 28px;
    gap: 28px;
  }

  .article-header h1 {
    font-size: 48px;
  }
}

@media (max-width: 720px) {
  .site-header,
  .page-band {
    padding-right: 22px;
    padding-left: 22px;
  }

  .site-header {
    padding-top: 22px;
  }

  .site-nav {
    justify-content: flex-start;
    gap: clamp(10px, 3vw, 18px);
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    font-size: 13px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) var(--hero-portrait-size);
    align-items: center;
    gap: 14px clamp(22px, 4vw, 32px);
    min-height: max(620px, calc(100svh - 72px));
    padding-top: 42px;
    padding-bottom: 82px;
  }

  .eyebrow {
    font-size: 12px;
    letter-spacing: 0.32em;
  }

  .hero h1 {
    font-size: clamp(68px, calc(3.5vw + 52px), 82px);
  }

  .hero-text {
    grid-column: 1 / -1;
    max-width: 36rem;
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.52;
  }

  .hero-actions {
    grid-column: 1 / -1;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 14px;
  }

  .btn {
    flex: 1 1 0;
    min-width: 136px;
    padding: 0 18px;
  }

  .availability {
    grid-column: 1 / -1;
    margin-top: 18px;
    font-size: 11px;
    letter-spacing: 0.12em;
    white-space: normal;
  }

  .currently {
    grid-column: 1 / -1;
    margin-top: 20px;
  }

  .currently ul {
    gap: 12px 18px;
  }

  .portrait-wrap {
    justify-self: end;
    width: var(--hero-portrait-size);
    transform: translateY(-24px);
  }

  .portrait-dots {
    display: none;
  }

  .portrait-wrap img {
    width: 100%;
    height: 100%;
  }

  .scroll-cue {
    bottom: 20px;
  }

  .section-with-rule,
  .cta-band {
    margin-top: var(--home-section-gap);
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .section-title {
    gap: 22px;
  }

  .section-title h2 {
    font-size: 32px;
  }

  :root {
    --timeline-axis: 6px;
  }

  .experience-item {
    grid-template-columns: 28px minmax(0, 1fr);
    padding-bottom: 28px;
  }

  .date {
    display: flex;
    grid-column: 2;
    gap: 6px;
    margin-bottom: 6px;
  }

  .experience-copy {
    grid-column: 2;
  }

  .experience-copy h3 {
    font-size: 20px;
  }

  .project-item {
    grid-template-columns: 56px minmax(0, 1fr) 24px;
    gap: 16px;
  }

  .project-icon {
    width: 56px;
    height: 56px;
  }

  .project-icon svg {
    width: 34px;
    height: 34px;
  }

  .project-icon.glyph {
    font-size: 34px;
  }

  .project-copy h3 {
    font-size: 21px;
  }

  .project-arrow {
    font-size: 24px;
  }

  .cta-band {
    grid-template-columns: 1fr;
    padding: 42px 22px;
  }

  .dot-field {
    display: none;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 28px 22px;
  }

  .blog-hero {
    padding-top: 52px;
    padding-bottom: 36px;
  }

  .archive-hero {
    padding-top: 52px;
    padding-bottom: 36px;
  }

  .blog-hero h1 {
    font-size: 78px;
  }

  .archive-hero h1 {
    font-size: 78px;
  }

  .blog-hero p {
    font-size: 17px;
  }

  .archive-hero-copy > p:not(.article-kicker) {
    font-size: 17px;
  }

  .blog-stats {
    gap: 10px 16px;
  }

  .archive-stats {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--divider);
  }

  .archive-stats div {
    border-top: 0;
  }

  .blog-row {
    grid-template-columns: 1fr 28px;
    gap: 16px;
    min-height: 0;
    padding: 26px 0;
  }

  .blog-date,
  .blog-post-link,
  .read-time {
    grid-column: 1;
  }

  .blog-date {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
  }

  .featured-label {
    width: 100%;
    margin-bottom: 0;
  }

  .blog-date span:not(.featured-label) {
    margin-top: 0;
  }

  .blog-post-link h2 {
    font-size: 23px;
  }

  .read-time {
    justify-self: start;
  }

  .blog-arrow {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: center;
    font-size: 24px;
  }

  .article-page {
    padding-top: 42px;
    padding-bottom: 72px;
  }

  .article-header {
    margin-top: 28px;
  }

  .article-header h1 {
    font-size: 42px;
  }

  .article-dek {
    font-size: 17px;
  }

  .article-body p,
  .article-body blockquote {
    font-size: 17px;
  }

  .article-body h2 {
    font-size: 30px;
  }

  .article-body blockquote {
    font-size: 24px;
    padding-left: 18px;
  }

  .article-post-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .site-header {
    padding-top: 16px;
  }

  .site-nav {
    justify-content: space-between;
    gap: 8px;
    overflow-x: visible;
    min-height: 30px;
    padding-bottom: 0;
  }

  .nav-link {
    gap: 4px;
    min-height: 30px;
    font-size: 12px;
  }

  .nav-link.external span {
    font-size: 15px;
  }

  .nav-link.active::after {
    width: 20px;
    bottom: -2px;
  }

  .theme-toggle {
    flex: 0 0 auto;
    width: 42px;
    height: 24px;
  }

  .theme-icon,
  .theme-icon svg {
    width: 12px;
    height: 12px;
  }

  .theme-sun {
    left: 5px;
  }

  .theme-moon {
    right: 5px;
  }

  .theme-knob {
    width: 18px;
    height: 18px;
  }

  .dark .theme-knob {
    transform: translateX(18px);
  }

  .hero h1 {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    font-size: 50px;
    transform: translateX(-0.025em);
  }

  .hero {
    align-content: center;
    --hero-portrait-size: clamp(84px, 25vw, 128px);
    grid-template-columns: minmax(0, 1fr) var(--hero-portrait-size);
    gap: 14px 10px;
    min-height: max(610px, calc(100svh - 58px));
  }

  .hero-copy {
    display: contents;
  }

  .eyebrow {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .hero-text {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 12px;
    font-size: 14px;
  }

  .hero-actions {
    grid-column: 1 / -1;
    grid-row: 4;
    width: 100%;
  }

  .availability {
    grid-column: 1 / -1;
    grid-row: 5;
  }

  .currently {
    grid-column: 1 / -1;
    grid-row: 6;
  }

  .portrait-wrap {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    transform: translateY(0);
  }

  .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 12px;
    font-size: 13px;
  }

  .portrait-wrap img {
    width: 100%;
    height: 100%;
  }

  .project-item {
    align-items: start;
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .project-arrow {
    grid-column: 2;
    justify-self: start;
    margin-top: -8px;
  }

  .blog-hero h1 {
    font-size: 64px;
  }

  .archive-hero h1 {
    font-size: 64px;
  }

  .blog-stats div {
    width: 100%;
  }

  .blog-stats div + div::before {
    content: none;
  }

  .article-header h1 {
    font-size: 36px;
  }

  .article-body h2 {
    font-size: 27px;
  }
}
