@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: optional;
  font-weight: 100 900;
  src: url("assets/onest-latin-variable.woff2") format("woff2-variations");
}

:root {
  --base: #fafaf7;
  --base-soft: #f3f5f0;
  --ink: #151713;
  --ink-soft: #62665f;
  --primary: #111111;
  --primary-strong: #000000;
  --primary-soft: #ebebea;
  --primary-content: #ffffff;
  --link: #0645ad;
  --link-strong: #002f78;
  --celebration: #f3d66d;
  --timeline-current: #2f644c;
  --line: rgba(21, 23, 19, 0.11);
  --radius: 16px;
  --sidebar-width: 304px;
  --content-width: 960px;
  --reading-width: var(--content-width);
  --heading-weight: 600;
  --code-background: #1c201e;
  --code-toolbar: #292e2b;
  --code-text: #edf2ee;
  --code-line: rgba(237, 242, 238, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: "Onest", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scrollbar-color: rgba(21, 23, 19, 0.3) transparent;
}

::selection {
  background: var(--primary);
  color: var(--primary-content);
}

a {
  color: var(--link);
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-skip-ink: auto;
  transition: color 160ms ease-out, text-decoration-color 160ms ease-out;
}

a:where(:hover, :focus-visible) {
  color: var(--link-strong);
  text-decoration-color: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 8px 16px;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--primary-content);
  border-radius: 8px;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 40px;
  padding: 56px 24px 56px 40px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.34);
  border-right: 1px solid var(--line);
}

.profile-photo {
  display: block;
  width: 100px;
  height: 100px;
  margin-bottom: 12px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(23, 23, 23, 0.1);
}

.wordmark {
  display: block;
  color: var(--ink);
  font-size: 27.5px;
  font-weight: 650;
  letter-spacing: -0.7px;
  line-height: 1.1;
  text-decoration: none;
}

.profile-line {
  max-width: 210px;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.location {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}

.location svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.sidebar-navigation {
  display: grid;
  gap: 16px;
}

.site-nav {
  display: flex;
  width: min(100%, 208px);
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  margin-left: 0;
  padding: 0;
}

.site-nav-link {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  color: var(--ink-soft);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.site-nav-link:hover {
  color: var(--ink);
  background: rgba(21, 23, 19, 0.045);
  transform: translateX(2px);
}

.site-nav-link.is-current {
  color: var(--primary-strong);
  background: var(--primary-soft);
  transform: none;
}

.sidebar-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-icon-link {
  display: grid;
  width: 36px;
  height: 36px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  place-items: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.sidebar-icon-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-content);
  transform: translateY(-1px);
}

.sidebar-icon-link[aria-current="page"] {
  background: var(--primary-soft);
  border-color: transparent;
  color: var(--primary-strong);
}

.sidebar-footer {
  display: grid;
  justify-items: start;
  gap: 16px;
  margin-top: auto;
}

.mission-promo {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.mission-promo h2 {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.4;
}

.mission-rail {
  position: relative;
  padding-left: 20px;
}

.mission-rail::before {
  position: absolute;
  top: 10px;
  bottom: 0;
  left: 5px;
  width: 1px;
  background: var(--line);
  content: "";
}

.mission-rail::after {
  position: absolute;
  top: 4px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--timeline-current);
  content: "";
}

.mission-now {
  color: var(--timeline-current);
  font-size: 12px;
  font-weight: 750;
}

.mission-title {
  margin: 6px 0 12px;
  font-size: 16px;
  font-weight: var(--heading-weight);
  line-height: 1.4;
}

.mission-promo a {
  font-size: 12px;
  line-height: 1.5;
}

.mobile-mission {
  display: none;
}

.sidebar-mission {
  margin-inline: -40px -24px;
  padding: 0;
  border: 0;
}

.sidebar-mission h2 {
  margin: 0 0 10px;
  padding-inline: 40px 24px;
  color: var(--ink-soft);
  font-size: 13px;
}

.sidebar-mission .mission-rail {
  --mission-side: 20px;
  display: grid;
  grid-template-columns: 30px 12px minmax(0, 1fr);
  column-gap: 6px;
  padding: 24px 16px 26px var(--mission-side);
  border-radius: 0;
  background: var(--celebration);
}

.sidebar-mission .mission-rail::before {
  content: none;
}

.sidebar-mission .mission-rail::after {
  content: none;
}

.sidebar-mission .mission-marker {
  position: relative;
  grid-column: 2;
  grid-row: 3;
}

.sidebar-mission .mission-marker::before {
  position: absolute;
  top: 11px;
  bottom: -26px;
  left: 6px;
  width: 1px;
  background: color-mix(in srgb, var(--ink) 28%, transparent);
  content: "";
}

.sidebar-mission .mission-marker::after {
  position: absolute;
  top: 5px;
  left: 0;
  width: 12px;
  height: 12px;
  border: 2px solid var(--base);
  border-radius: 50%;
  outline: 1px solid color-mix(in srgb, var(--ink) 55%, transparent);
  background: var(--celebration);
  content: "";
}

.sidebar-mission .mission-now {
  grid-column: 1;
  grid-row: 3;
  padding-top: 2px;
  color: var(--ink);
  text-align: right;
}

.sidebar-mission .mission-title {
  grid-column: 3;
  grid-row: 3;
  margin: 0 0 0 6px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.sidebar-mission .mission-offer-link {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0 0 24px 34px;
}

.mission-gift {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.mission-gift > span {
  display: block;
}

.mission-gift-icon {
  font-family: system-ui, sans-serif;
  font-size: 22px;
  line-height: 1;
}

.sidebar-mission a,
.sidebar-mission a:hover,
.sidebar-mission a:focus-visible {
  color: var(--ink);
}

.mission-close {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 12px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
}

.mission-close:hover {
  color: var(--ink);
  background: var(--base-soft);
}

.mission-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

@media (min-width: 761px) and (max-height: 900px) {
  .sidebar {
    gap: 16px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .sidebar-identity {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .sidebar .profile-photo {
    width: 40px;
    height: 40px;
    margin: 0;
  }

  .sidebar .wordmark { font-size: 20px; }
  .sidebar .profile-line { font-size: 12px; }
  .sidebar .location { font-size: 12px; margin-top: 8px; }
  .sidebar-navigation { gap: 12px; }
  .site-nav-link { min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
}

@media (max-width: 760px) {
  .sidebar-mission { display: none; }

  .mobile-mission:not([hidden]) {
    display: block;
    position: fixed;
    z-index: 10;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    max-height: 40svh;
    overflow-y: auto;
    padding: 18px 44px 20px 18px;
    border-color: color-mix(in srgb, var(--ink) 18%, transparent);
    background: var(--celebration);
  }

  .mobile-mission h2 { margin-bottom: 18px; }

  .mobile-mission .mission-rail {
    display: grid;
    grid-template-columns: 32px 12px minmax(0, 1fr);
    column-gap: 8px;
    padding-left: 0;
  }

  .mobile-mission .mission-rail::before,
  .mobile-mission .mission-rail::after {
    content: none;
  }

  .mobile-mission .mission-offer-link {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    margin: 0 0 24px 34px;
  }

  .mobile-mission .mission-marker {
    position: relative;
    grid-column: 2;
    grid-row: 3;
  }

  .mobile-mission .mission-marker::before {
    position: absolute;
    top: 11px;
    bottom: -20px;
    left: 6px;
    width: 1px;
    background: color-mix(in srgb, var(--ink) 28%, transparent);
    content: "";
  }

  .mobile-mission .mission-marker::after {
    position: absolute;
    top: 5px;
    left: 0;
    width: 12px;
    height: 12px;
    border: 2px solid var(--base);
    border-radius: 50%;
    outline: 1px solid color-mix(in srgb, var(--ink) 55%, transparent);
    background: var(--celebration);
    content: "";
  }

  .mobile-mission .mission-now {
    grid-column: 1;
    grid-row: 3;
    padding-top: 2px;
    color: var(--ink);
    text-align: right;
  }

  .mobile-mission .mission-title {
    grid-column: 3;
    grid-row: 3;
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.02em;
  }

  .mobile-mission a {
    display: inline-block;
    padding-block: 8px;
    color: var(--ink);
    font-size: 13px;
  }
}

.sidebar-privacy-link {
  font-size: 12px;
  font-weight: 700;
}

.sidebar-privacy-link[aria-current="page"] {
  color: var(--primary-strong);
  text-decoration-color: currentColor;
}

.sidebar-icon-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.sidebar-icon-link svg.is-filled {
  fill: currentColor;
  stroke: none;
}

.content {
  min-width: 0;
  padding-block: 80px;
}

.content-shell {
  width: min(calc(100% - 48px), var(--content-width));
  margin-inline: auto;
}

h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-weight: var(--heading-weight);
  text-wrap: balance;
}

/* Page titles use all available space instead of balancing into shorter lines. */
h1 {
  text-wrap: wrap;
}

h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 28px;
  line-height: 1.05;
}

a:focus-visible {
  outline: 3px solid rgba(17, 17, 17, 0.42);
  outline-offset: 3px;
}

.home-intro,
.page-hero {
  padding: 0 0 88px;
}

.home-intro h1,
.page-hero h1,
.about-intro h1,
.notes-hero h1,
.prompts-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

.home-intro > p,
.page-hero > p {
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.62;
}

.intro-actions {
  margin-top: 32px;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}

.contact-cta svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.contact-cta:hover,
.contact-cta:active {
  background: var(--primary-strong);
  color: var(--primary-content);
}

.home-current {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: start;
  gap: 44px;
  padding: 32px;
  background: #f0f0ee;
  border-radius: var(--radius);
}

.home-current img {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 22%;
  box-shadow: 0 12px 28px rgba(23, 23, 20, 0.12);
}

.home-current h2 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(25px, 3vw, 32px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.home-current p {
  max-width: 620px;
  margin: 20px 0 0;
  color: #41413f;
  font-size: 17px;
  line-height: 1.7;
  text-align: justify;
}

.home-timeline {
  padding: 104px 0 16px;
}

.home-timeline-intro {
  max-width: var(--reading-width);
}

.home-timeline-intro h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 32px);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.home-timeline-intro p {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.personal-timeline {
  position: relative;
  max-width: 820px;
  margin: 36px -24px 0;
  padding: 0;
  list-style: none;
}

.personal-timeline::before {
  position: absolute;
  top: 40px;
  bottom: 30px;
  left: 158px;
  width: 1px;
  background: var(--line);
  content: "";
}

.personal-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  scroll-margin-top: 40px;
}

.personal-timeline li:target::before {
  outline: 1px solid var(--timeline-current);
  outline-offset: 4px;
}

.personal-timeline li::before {
  position: absolute;
  z-index: 1;
  top: 30px;
  left: 151px;
  width: 11px;
  height: 11px;
  background: var(--base);
  border: 2px solid #a7aaa4;
  border-radius: 50%;
  content: "";
}

.personal-timeline li.is-current::before {
  top: 30px;
  background: var(--timeline-current);
  border-color: var(--timeline-current);
}

.personal-timeline-when {
  padding-top: 4px;
  color: var(--ink-soft);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  line-height: 1.4;
  text-align: right;
}

.personal-timeline-live {
  color: var(--timeline-current);
}

.personal-timeline li > div:last-child {
  padding-left: 10px;
}

.personal-timeline h3 {
  font-size: clamp(20px, 2.3vw, 24px);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.personal-timeline p {
  max-width: 630px;
  margin: 11px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.68;
}

.milestone-highlight,
.notes-highlight {
  padding: 0 0.12em;
  background: var(--celebration);
  color: var(--ink);
  border-radius: 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.work-shell > .page-hero {
  padding-bottom: 48px;
}

.work-collection {
  border-top: 1px solid var(--line);
}

.work-entry {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px 24px;
  padding: 28px 164px 28px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 400;
  text-decoration: none;
  transition: background-color 180ms ease-out;
}

.work-entry-heading {
  display: contents;
}

.work-entry-heading img {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 72px;
  height: 72px;
  border-radius: 22%;
  object-fit: cover;
}

.work-entry-heading > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  grid-column: 2;
}

.work-entry h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.work-team-size {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.work-entry-story {
  grid-column: 2;
  min-width: 0;
}

.work-entry-description {
  margin: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
}

.work-entry-note {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.work-entry-action {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--link);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.work-entry-action svg {
  width: 20px;
  height: 20px;
  transition: transform 180ms ease-out;
}

.work-entry:hover,
.work-entry:focus-visible {
  background: var(--base-soft);
}

.work-entry:hover .work-entry-action,
.work-entry:focus-visible .work-entry-action {
  color: var(--link-strong);
  text-decoration-color: currentColor;
}

.work-entry:hover .work-entry-action svg,
.work-entry:focus-visible .work-entry-action svg {
  transform: translateX(4px);
}

@media (max-width: 1180px) {
  .work-entry {
    padding-right: 16px;
  }

  .work-entry-action {
    position: static;
    transform: none;
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .work-entry {
    padding: 24px 0;
    gap: 16px;
  }

  .work-entry-heading img {
    grid-row: 1;
  }

  .work-entry-heading > div {
    align-content: center;
    align-items: center;
    gap: 6px;
  }

  .work-entry-story {
    grid-column: 1 / -1;
  }
}

/* Open product stories */

.project-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 20px 24px;
}

.project-header img {
  width: 72px;
  height: 72px;
  border-radius: 22%;
}

.project-header h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.project-header > p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: clamp(21px, 2.5vw, 28px);
  line-height: 1.4;
}

.project-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  padding: 56px 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-opening blockquote,
.project-opening .project-premise {
  margin: 0;
  max-width: 18ch;
  color: var(--primary-strong);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.project-opening blockquote {
  font-style: italic;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.app-store-badge {
  display: inline-block;
  flex: none;
  margin-block: 12px;
  text-decoration: none;
}

.app-store-badge img {
  display: block;
  width: auto;
  height: 48px;
}

.project-opening-copy p,
.project-engineering p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

.project-opening-copy p:first-child {
  color: var(--ink);
}

.project-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr);
  gap: 72px;
  padding-top: 56px;
}

.project-body h2 {
  margin: 0 0 28px;
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.project-progress .case-timeline {
  margin-top: 0;
}

.project-progress .case-timeline p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.project-progress .case-timeline li {
  padding-bottom: 36px;
}

.project-progress .case-timeline li:last-child {
  padding-bottom: 0;
}

.project-engineering h2 {
  font-size: 24px;
}

.project-engineering p {
  font-size: 16px;
}

.project-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1180px) {
  .project-opening,
  .project-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .project-opening blockquote,
  .project-opening .project-premise {
    max-width: 25ch;
  }

  .project-engineering {
    padding-top: 32px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 480px) {
  .project-header {
    gap: 20px 16px;
  }

  .project-header .case-study-heading {
    display: block;
  }

  .project-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
  }

  .project-opening {
    margin-top: 32px;
    padding: 32px 0;
  }

  .project-body {
    padding-top: 40px;
  }
}

/* Work detail */

.case-study-header {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  min-height: 360px;
  padding: 64px;
  background: #e8eee8;
  border-radius: var(--radius);
}

.case-study-header.is-warm { background: #eee9e2; }
.case-study-header.is-cool { background: #ece9ee; }
.case-study-header.is-blue { background: #e7ebef; }
.case-study-header.is-dark { background: #e7e8e7; }

.case-study-header img {
  display: block;
  border-radius: 22%;
  box-shadow: 0 18px 42px rgba(23, 23, 20, 0.15);
}

.case-study-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}

.case-study-header h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.case-study-heading .work-team-size {
  font-size: 13px;
}

.case-study-header p {
  margin: 18px 0 0;
  color: #4f504e;
  font-size: 18px;
  line-height: 1.6;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.case-facts div {
  padding: 0 28px;
  border-right: 1px solid var(--line);
}

.case-facts div:first-child { padding-left: 0; }
.case-facts div:last-child { border-right: 0; }
.case-facts dt { color: var(--ink-soft); font-size: 12px; font-weight: 750; }
.case-facts dd { margin: 7px 0 0; font-size: 15px; font-weight: 700; line-height: 1.45; }

.case-study-body {
  padding: 40px 0 0;
}

.case-study-body section {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.case-study-body h2 {
  max-width: var(--reading-width);
  margin: 0;
  font-size: clamp(25px, 3vw, 32px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.case-study-body p {
  max-width: var(--reading-width);
  margin: 18px 0 0;
  color: #41413f;
  font-size: 17px;
  line-height: 1.78;
}

.case-study-body blockquote {
  max-width: var(--reading-width);
  margin: 34px 0 0;
  padding: 0;
  color: var(--primary);
  font-size: clamp(25px, 3.5vw, 34px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.case-numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
}

.case-numbers div {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
}

.case-numbers div:first-child {
  padding-left: 0;
}

.case-numbers div:last-child {
  border-right: 0;
}

.case-numbers strong,
.case-numbers span {
  display: block;
}

.case-numbers strong {
  font-size: 23px;
  letter-spacing: -0.03em;
}

.case-numbers span {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.needs-input {
  color: #805d14;
  text-decoration: underline dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.case-system-list {
  max-width: var(--reading-width);
  margin: 24px 0 0;
}

.case-system-list div {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.case-system-list dt {
  font-weight: 780;
  line-height: 1.5;
}

.case-system-list dd {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.case-timeline {
  position: relative;
  max-width: var(--reading-width);
  margin: 28px 0 0;
  padding: 0 0 0 30px;
  list-style: none;
}

.case-timeline::before {
  position: absolute;
  top: 8px;
  bottom: 10px;
  left: 6px;
  width: 1px;
  background: var(--line);
  content: "";
}

.case-timeline li {
  position: relative;
  padding: 0 0 28px;
}

.case-timeline li:last-child {
  padding-bottom: 0;
}

.case-timeline li::before {
  position: absolute;
  top: 7px;
  left: -30px;
  width: 11px;
  height: 11px;
  background: var(--base);
  border: 2px solid #a7aaa4;
  border-radius: 50%;
  content: "";
}

.case-timeline li.is-current::before {
  background: var(--primary);
  border-color: var(--primary);
}

.case-timeline span {
  font-size: 14px;
  font-weight: 800;
}

.case-timeline p {
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.65;
}

.case-study-footer,
.article-next {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 36px 0 0;
}

.case-study-footer .text-link,
.article-next .text-link {
  margin-top: 0;
}

/* About */

.about-shell p {
  text-align: justify;
}

.about-intro {
  padding: 0 0 64px;
  border-bottom: 1px solid var(--line);
}

.about-intro p {
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.65;
}

.about-story {
  max-width: var(--reading-width);
  padding: 48px 0 0;
}

.about-story p {
  margin: 0 0 26px;
  color: #41413f;
  font-size: 17px;
  line-height: 1.78;
}

.about-story p:last-child {
  margin-bottom: 0;
}

.about-story p:first-child {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.68;
}

.text-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 13px;
  font-weight: 700;
}

/* Blog */

.notes-hero {
  max-width: var(--reading-width);
  padding: 0 0 64px;
}

.notes-shell > .notes-hero:last-child {
  padding-bottom: 0;
}

.notes-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.notes-hero p {
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.55;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 72px;
}

.notes-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--primary-content);
  transition: border-color 180ms ease, transform 180ms ease;
}

.notes-card:has(a:hover),
.notes-card:has(a:focus-visible) {
  border-color: var(--ink-soft);
  transform: translateY(-2px);
}

.notes-card-link {
  display: grid;
  grid-template-rows: minmax(60px, 1fr) minmax(142px, auto);
  aspect-ratio: 1;
  color: var(--ink);
  text-decoration: none;
}

.notes-card-link:focus-visible {
  outline-offset: -4px;
}

.notes-card-media {
  min-height: 0;
  overflow: hidden;
  background: var(--base);
}

.notes-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notes-card-body {
  padding: 18px 20px 20px;
}

.notes-card h2,
.notes-card h3 {
  margin: 0;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

.notes-card p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.notes-post {
  background: transparent;
}

.notes-post-header {
  padding: 0 0 32px;
}

.notes-post-header h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.notes-post-cover,
.notes-post-illustration {
  width: min(100%, 560px);
  margin: 0 auto 36px;
}

.notes-post-illustration {
  width: min(100%, 480px);
  margin: 36px auto;
}

.notes-post-cover img,
.notes-post-illustration img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.notes-post-body {
  padding: 0 clamp(0px, 3vw, 48px);
}

.notes-post-body p,
.notes-post-body ul {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.8;
}

.notes-post-body ul {
  padding-left: 1.3em;
}

.notes-post-body li + li {
  margin-top: 10px;
}

.notes-post-body .notes-closing {
  margin-top: 28px;
  font-weight: var(--heading-weight);
}

.notes-related {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.notes-related > h2 {
  margin: 0 0 24px;
  font-size: 28px;
  line-height: 1.2;
}

.notes-related .notes-grid {
  padding-bottom: 0;
}

/* Prompts */

.prompts-shell {
  min-width: 0;
}

.privacy-shell > * {
  max-width: var(--reading-width);
}

.privacy-shell > :last-child {
  margin-bottom: 0;
}

.prompts-hero {
  padding: 0 0 44px;
}

.prompts-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.prompts-hero > p:last-child {
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.55;
}

/* Shared hierarchy navigation on detail pages. */
.breadcrumbs {
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.5;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.breadcrumbs li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-top: 1px solid var(--ink-soft);
  border-right: 1px solid var(--ink-soft);
  transform: rotate(45deg);
}

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

.breadcrumbs [aria-current] {
  color: var(--ink-soft);
}

.prompt-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.prompt-list li {
  border-bottom: 1px solid var(--line);
}

.prompt-list-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 12px 24px;
  padding: 28px 8px;
  text-decoration: none;
}

.prompt-list-link:hover {
  background: var(--primary-soft);
}

.prompt-list-link h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.25;
}

.prompt-list-link p {
  grid-column: 1;
  margin: 0;
  color: var(--ink-soft);
  font-weight: 400;
}

.prompt-list-link svg {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prompt-post {
  min-width: 0;
}

.prompt-post-header {
  margin-bottom: 32px;
}

.prompt-post h1 {
  margin: 0;
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.prompt-post-header > p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
}

.prompt-post > p {
  margin: 26px 0;
  color: #41413f;
  font-size: 16px;
  line-height: 1.75;
}



.prompt-variant {
  margin-top: 40px;
}

.prompt-variant + .prompt-variant {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.prompt-variant-header h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.prompt-variant-header p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.prompt-variant .prompt-block {
  margin-top: 24px;
}

.prompt-figure {
  margin: 32px 0 28px;
}

.prompt-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.prompt-figure figcaption {
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 11px;
}

.prompt-block {
  overflow: hidden;
  margin-top: 32px;
  background: var(--code-background);
  border: 1px solid var(--code-line);
  border-radius: 12px;
  color: var(--code-text);
}

.prompt-block-label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 16px;
  background: var(--code-toolbar);
  border-bottom: 1px solid var(--code-line);
  color: var(--code-text);
  font-size: 13px;
  font-weight: 750;
}

.copy-prompt {
  min-width: 116px;
  min-height: 44px;
  padding: 9px 14px;
  background: transparent;
  color: var(--code-text);
  border: 1px solid var(--code-line);
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.copy-prompt:hover {
  background: #3a433d;
  color: var(--code-text);
}

.copy-prompt:focus-visible {
  outline: 3px solid #c5c5c5;
  outline-offset: 2px;
}

.copy-prompt.is-copied {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.prompt-block pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  margin: 0;
  padding: 26px;
  overflow-x: auto;
  white-space: pre-wrap;
}

.prompt-block code {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.prompt-note {
  margin-top: 20px;
  padding: 18px 20px;
  background: #f0f0ee;
  border-radius: 12px;
}

.prompt-note strong {
  color: var(--primary);
  font-size: 11px;
}

.prompt-note p {
  margin: 4px 0 0;
  color: #41413f;
  font-size: 13px;
}

.prompts-end {
  display: flex;
  width: min(100%, 820px);
  align-items: center;
  justify-content: space-between;
  padding: 32px 4px 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.prompts-end p {
  margin: 0;
}

@media (max-width: 1080px) {
  :root {
    --sidebar-width: 280px;
  }

  .sidebar {
    padding-inline: 24px 28px;
  }

  .sidebar-mission {
    margin-inline: -24px -28px;
  }

  .sidebar-mission h2 {
    padding-inline: 24px 28px;
  }

  .sidebar-mission .mission-rail {
    --mission-side: 16px;
    padding-right: 16px;
  }

  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .prompts-end {
    width: 100%;
  }

}

@media (max-width: 760px) {
  .page-layout {
    display: block;
  }

  .sidebar {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    gap: 14px;
    padding: 16px 24px 14px;
    background: var(--base);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }

  .sidebar-footer {
    display: none;
  }

  .sidebar-identity {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .profile-photo {
    width: 50px;
    height: 50px;
    margin: 0;
    box-shadow: 0 4px 12px rgba(23, 23, 23, 0.08);
  }

  .site-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    margin: 0;
  }

  .site-nav-link {
    min-height: 48px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 5px 3px;
    font-size: 10.5px;
  }

  .site-nav-link:hover {
    transform: none;
  }

  .site-nav-link svg {
    width: 17px;
    height: 17px;
  }

  .wordmark {
    font-size: 27.5px;
  }

  .location {
    margin-top: 5px;
    font-size: 12px;
  }

  .content-shell {
    width: min(calc(100% - 32px), var(--content-width));
  }

  .home-intro,
  .page-hero {
    padding: 0 0 64px;
  }

  .home-current {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 28px;
    padding: 28px 24px;
  }

  .home-current img {
    width: 80px;
    height: 80px;
  }

  .case-numbers {
    grid-template-columns: 1fr;
  }

  .case-numbers div,
  .case-numbers div:first-child {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-numbers div:last-child {
    border-bottom: 0;
  }

  .home-timeline {
    padding-top: 80px;
  }

  .personal-timeline li {
    grid-template-columns: 15px minmax(0, 1fr);
    gap: 6px 8px;
    padding: 20px 0;
  }

  .personal-timeline {
    margin-inline: 0;
  }

  .personal-timeline::before {
    top: 30px;
    bottom: 26px;
    left: 7px;
  }

  .personal-timeline li::before,
  .personal-timeline li.is-current::before {
    top: 51px;
    left: 0;
  }

  .personal-timeline-when {
    grid-column: 2;
    padding-top: 3px;
    text-align: left;
  }

  .personal-timeline li > div:last-child {
    grid-column: 2;
    padding-left: 0;
  }

  .case-study-header {
    min-height: 0;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 26px;
    padding: 42px 28px;
  }

  .case-study-header img {
    width: 80px;
    height: 80px;
  }

  .case-study-header h1 {
    font-size: 34px;
  }

  .case-study-header p {
    font-size: 16px;
  }

  .case-facts {
    grid-template-columns: 1fr;
    padding: 16px 0;
  }

  .case-facts div,
  .case-facts div:first-child {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-facts div:last-child {
    border-bottom: 0;
  }

  .case-system-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .notes-hero {
    padding: 0 0 44px;
  }

  .notes-hero h1 {
    font-size: 32px;
  }

  .notes-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 48px;
  }

  .notes-card h2,
  .notes-card h3 {
    font-size: 22px;
  }

  .notes-post-header {
    padding-bottom: 24px;
  }

  .notes-post-header h1 {
    font-size: 32px;
  }

  .notes-post-body {
    padding: 0;
  }

  .notes-post-body p,
  .notes-post-body ul {
    font-size: 17px;
  }

  .notes-related {
    margin-top: 48px;
    padding-top: 28px;
  }

  .content {
    padding-block: 40px 64px;
  }

}

@media (max-width: 500px) {
  .profile-line {
    max-width: 150px;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.3;
  }

  .wordmark {
    font-size: 18.75px;
  }

  .sidebar {
    gap: 12px;
    padding: 14px 16px 12px;
  }

  .sidebar-identity {
    min-width: 0;
    gap: 10px;
  }

  .profile-photo {
    width: 44px;
    height: 44px;
  }

  .location {
    display: none;
  }

  .site-nav-link {
    min-height: 44px;
    gap: 2px;
    padding: 5px 2px;
    font-size: 10px;
  }

  .site-nav-link svg {
    width: 15px;
    height: 15px;
  }

  .home-intro > p,
  .page-hero > p {
    font-size: 17px;
  }

  .case-study-header {
    grid-template-columns: 1fr;
  }

  .case-study-header h1 {
    font-size: 32px;
  }

  .home-current {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 20px 16px;
  }

  .home-current h2 {
    font-size: 25px;
  }

  .prompts-hero {
    padding-bottom: 44px;
  }

  .prompts-hero h1 {
    font-size: 32px;
  }

  .prompt-post h1 {
    font-size: 28px;
  }

  .prompt-variant-header h2 {
    font-size: 23px;
  }

  .prompt-post-meta {
    flex-wrap: wrap;
  }



  .prompt-block pre {
    padding: 22px 20px;
  }

}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .personal-timeline-live::before {
    animation: none;
  }
}
