@font-face {
  font-family: "Leitura";
  src: url("/assets/fonts/leitura-news-roman-1.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Leitura";
  src: url("/assets/fonts/leitura-news-italic-1.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Leitura";
  src: url("/assets/fonts/leitura-news-italic-3.otf") format("opentype");
  font-weight: 600 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Leitura";
  src: url("/assets/fonts/leitura-news-roman-3.otf") format("opentype");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Leitura News";
  src: url("/assets/fonts/leitura-news-roman-3.otf") format("opentype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Söhne";
  src: url("/assets/fonts/sohne-leicht.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Söhne";
  src: url("/assets/fonts/sohne-buch.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Söhne";
  src: url("/assets/fonts/sohne-kraftig.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Söhne";
  src: url("/assets/fonts/sohne-halbfett.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: light;
  --font-ui: "Söhne", sans-serif;
  --font-body: "Leitura";
  --font-quote: "Leitura News";
  --bg: #fafaf8;
  --surface: #f0f0ed;
  --text: #30302f;
  --muted: #646773;
  --border: rgb(0 0 0 / 13%);
  --code: #efefeb;
  --accent: #3a554c;
  --spotify-green: #1ed760;
  --mark: #cce7cf;
  /* Spacing: a 4px rhythm with 2px steps for compact UI and optical spacing.
     Keep one-off geometry (media dimensions, offsets, breakpoints) local. */
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --space-36: 36px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-72: 72px;
  --space-80: 80px;
  --space-88: 88px;
  --space-96: 96px;

  /* Consolidated type scale and leading on a 4px rhythm; prose stays 18/28. */
  --text-12: 12px;
  --text-13: 13px;
  --text-14: 14px;
  --text-16: 16px;
  --text-18: 18px;
  --text-20: 20px;
  --text-22: 22px;
  --text-24: 24px;
  --text-28: 28px;
  --text-34: 34px;
  --text-36: 36px;
  --text-42: 42px;
  --text-48: 48px;
  --leading-16: 16px;
  --leading-20: 20px;
  --leading-24: 24px;
  --leading-28: 28px;
  --leading-32: 32px;
  --leading-36: 36px;
  --leading-44: 44px;
  --leading-solid: 1;
  --leading-tight: 1.15;
  --leading-snug: 1.2;
  --leading-heading: 1.3;
  --leading-normal: 1.5;
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --tracking-prose: -0.2px;
  --tracking-heading: -0.3px;
  --tracking-title: -0.7px;
  --tracking-display: -1.1px;
  --tracking-wordmark: -1px;
  --tracking-label: 0.02em;
  --tracking-eyebrow: 0.08em;

  /* Semantic roles: tune shared prose and page titles here. */
  --prose-size: var(--text-18);
  --prose-leading: var(--leading-28);
  --prose-indent: 0;
  --prose-paragraph-gap: var(--space-20);
  --prose-block-gap: var(--space-20);
  --title-size: var(--text-42);
  --page-max: 976px;
  --gutter: var(--space-72);
  --grid-gap: var(--space-16);
  --indent: var(--prose-indent);
  --reading-width: 560px;
  --layout-gap: var(--space-32);
  --editorial-columns: minmax(160px, 1fr) minmax(0, 1fr)
    repeat(2, minmax(0, 2fr));
  --editorial-content: 3 / -1;
  --timeline-inset: calc(36px + var(--space-20));
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0c10;
  --surface: #131418;
  --text: #e0e1e5;
  --muted: #a3a7b5;
  --border: rgb(255 255 255 / 17%);
  --code: #171a22;
  --accent: #b5ccbc;
  --mark: #294d38;
}

/* Respect the system appearance even without JavaScript. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0b0c10;
    --surface: #131418;
    --text: #e0e1e5;
    --muted: #a3a7b5;
    --border: rgb(255 255 255 / 17%);
    --code: #171a22;
    --accent: #b5ccbc;
    --mark: #294d38;
  }
}

/* Fixed dark editorial surfaces, independent of the visitor's appearance. */
:root {
  --dark-bg: #0b0c10;
  --dark-surface: #131418;
  --dark-text: #e0e1e5;
  --dark-muted: #a3a7b5;
  --dark-border: rgb(255 255 255 / 17%);
  --dark-accent: #b5ccbc;
  --dark-mark: #294d38;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: var(--space-32);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--text-16);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-color: var(--muted);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
figure,
p,
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
dl,
dd {
  margin: 0;
}
button {
  color: inherit;
}
button:disabled {
  cursor: default;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
::selection {
  background: var(--mark);
  color: var(--text);
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: absolute;
  left: 20px;
  top: -80px;
  padding: var(--space-12) var(--space-20);
  background: var(--text);
  color: var(--bg);
  z-index: 10;
}
.skip-link:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  .site-nav,
  .header-controls,
  .site-footer,
  .skip-link {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
  .article-body {
    display: block;
  }
  .article-body > * {
    max-width: 100%;
  }
  a {
    color: black;
  }
  .page {
    padding: 0;
  }
  pre,
  figure,
  blockquote {
    break-inside: avoid;
  }
}

.page {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--layout-gap);
  padding-block: var(--space-48) var(--space-32);
  align-items: first baseline;
}
.identity a {
  font-weight: var(--weight-semibold);
  text-decoration: none;
}
.identity p {
  color: var(--muted);
  white-space: nowrap;
}
.header-right {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-20);
  grid-column: 2 / -1;
}
/* Native navigation links, grouped as a quiet segmented control. */
.site-nav {
  display: grid;
  grid-template-columns: repeat(3, var(--nav-link-width, 64px)) auto;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  font-size: var(--text-14);
  line-height: var(--leading-24);
}
.site-nav a,
.site-nav summary {
  position: relative;
  isolation: isolate;
  padding: 5px var(--nav-padding, 12px);
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  color: var(--muted);
}
.site-nav a[aria-current],
.site-nav summary[data-active] {
  color: var(--text);
}
.site-nav a[aria-current]::before,
.site-nav summary[data-active]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: color-mix(in srgb, var(--surface) 94%, var(--text));
}
.site-nav a:hover,
.site-nav summary:hover {
  color: var(--text);
}
.site-nav a:focus-visible,
.site-nav summary:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.nav-library {
  position: relative;
}
.nav-library summary {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  cursor: pointer;
}
.nav-library summary::-webkit-details-marker {
  display: none;
}
.nav-chevron {
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.nav-library[open] .nav-chevron {
  transform: translateY(1px) rotate(225deg);
}
.nav-library-links {
  position: absolute;
  z-index: 10;
  top: calc(100% + var(--space-8));
  right: 0;
  min-width: 160px;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 24px #00000014;
}
.nav-library-links a {
  display: block;
  text-align: left;
  padding: var(--space-8) var(--space-12);
}
.page-title {
  font-size: var(--title-size);
  line-height: var(--leading-heading);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-title);
}
.eyebrow {
  font-size: var(--text-13);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-20);
}
.site-footer {
  margin-top: var(--space-96);
}
.footer-inner {
  padding-block: var(--space-40) var(--space-48);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-24);
  font-size: var(--text-14);
  line-height: var(--leading-24);
}
.footer-inner p + p {
  color: var(--muted);
  margin-top: var(--space-4);
}
.footer-inner a {
  color: var(--muted);
}
.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-64) var(--space-16);
}
.project-card {
  min-width: 0;
}
.project-visual {
  aspect-ratio: 560/296;
  background: #0b0c10;
  border-radius: 4px;
  overflow: hidden;
  display: block;
}
.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-visual--codecademy img {
  width: 108%;
  max-width: none;
  height: auto;
  margin: 2% 0 0 1%;
}
.project-visual--mark {
  display: grid;
  place-items: center;
}
.project-visual--mark img {
  width: auto;
  height: auto;
  max-width: 100%;
}
.project-visual--type {
  display: grid;
  place-items: center;
  color: #f4f4ef;
  font-size: var(--text-36);
  letter-spacing: var(--tracking-wordmark);
}
.project-visual--cadre {
  background: #dfded7;
  color: #343b37;
  font-size: var(--text-42);
  font-family: var(--font-body);
}
.project-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: first baseline;
  gap: var(--space-8);
  margin-top: var(--space-24);
}
.project-info > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--space-16);
}
.project-info h3 {
  font-size: var(--text-20);
  font-weight: var(--weight-medium);
  line-height: var(--leading-28);
}
.project-info h3 a {
  text-decoration: none;
}
.project-info h3 a:hover {
  text-decoration: underline;
}
.project-info p {
  color: var(--muted);
  font-size: var(--text-16);
  line-height: var(--leading-24);
}
.project-info .year {
  margin-top: var(--space-2);
  white-space: nowrap;
  text-align: right;
}
.project-card a:hover img {
  opacity: 0.92;
}
.case-summary {
  font-size: var(--text-24);
  line-height: var(--leading-36);
  font-weight: var(--weight-light);
}
.project-meta {
  font-size: var(--text-16);
  line-height: var(--leading-24);
  color: var(--muted);
}
.project-meta > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-16);
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.project-meta > div:last-child {
  border: 0;
}
.project-meta dt {
  font-weight: var(--weight-light);
}
.project-meta dd {
  text-align: right;
}
.hero {
  max-width: 1280px;
  margin: 0 auto var(--space-48);
}
.hero img {
  width: 100%;
  aspect-ratio: 1280/736;
  object-fit: cover;
}
.hero figcaption {
  padding: var(--space-12) var(--gutter) 0;
  font-size: var(--text-13);
  color: var(--muted);
}
.about-page > .article-body {
  display: block;
}
.about-page .article-body > * {
  width: 100%;
}
.recognition {
  list-style: none;
  padding: 0 !important;
  font-family: var(--font-ui);
  font-size: var(--text-18);
}
.recognition li {
  border-top: 1px solid var(--border);
  padding-block: var(--space-20);
}
.recognition small {
  display: block;
  color: var(--muted);
  font-size: var(--text-14);
}
.post-list {
  max-width: var(--reading-width);
  margin-inline: auto;
}
.post-preview {
  padding-block: var(--space-28) var(--space-36);
  border-top: 1px solid var(--border);
}
.post-preview h2 {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: var(--text-28);
  line-height: var(--leading-36);
  margin-bottom: var(--space-16);
}
.post-preview h2 a {
  text-decoration: none;
}
.post-preview h2 a:hover {
  text-decoration: underline;
}
.post-preview p {
  color: var(--muted);
  font-size: var(--text-18);
  line-height: var(--leading-28);
}
.post-preview .eyebrow {
  font-size: var(--text-12);
  margin-bottom: var(--space-12);
}
.post-preview > a {
  display: inline-block;
  margin-top: var(--space-24);
  font-size: var(--text-14);
}
.article-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-16);
  padding-top: var(--space-48);
  margin-bottom: var(--space-48);
}
.article-heading > * {
  grid-column: 1;
  width: min(100%, var(--reading-width));
  justify-self: center;
  margin-inline: auto;
}
.article-heading h1 {
  font-size: var(--text-48);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  font-weight: var(--weight-medium);
  max-width: 744px;
}
.article-heading .deck {
  grid-column: 1;
  font-size: var(--text-24);
  line-height: var(--leading-36);
  font-weight: var(--weight-light);
}
.article-heading .eyebrow {
  margin: 0;
}
.article-heading .article-meta {
  font-size: var(--text-14);
  color: var(--muted);
}
@media (max-width: 1023px) {
  :root {
    --gutter: var(--space-36);
  }
  .project-meta {
    max-width: 560px;
    margin-top: var(--space-16);
  }
}
@media (max-width: 767px) {
  :root {
    --gutter: var(--space-20);
  }
  .site-header {
    position: relative;
    padding-block: var(--space-32);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-8);
    align-items: center;
  }
  .identity {
    font-size: var(--text-14);
    line-height: var(--leading-24);
    white-space: nowrap;
  }
  .header-right {
    position: static;
    align-items: center;
  }
  .site-nav {
    --nav-link-width: auto;
    --nav-padding: 8px;
    font-size: var(--text-14);
  }
  .page-title {
    font-size: var(--text-34);
    line-height: var(--leading-44);
    max-width: none;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: var(--space-40);
  }
  .project-info {
    margin-top: var(--space-20);
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .case-summary {
    font-size: var(--text-20);
    line-height: var(--leading-32);
  }
  .hero {
    margin-bottom: var(--space-36);
  }
  .hero img {
    aspect-ratio: 4/3;
  }
  .article-heading {
    display: block;
    padding-top: var(--space-24);
    margin-bottom: var(--space-32);
  }
  .article-heading > * + * {
    margin-top: var(--space-20);
  }
  .article-heading h1 {
    font-size: var(--text-36);
    line-height: var(--leading-44);
    letter-spacing: var(--tracking-title);
  }
  .article-heading .deck {
    font-size: var(--text-20);
    line-height: var(--leading-32);
  }
  .site-footer {
    margin-top: var(--space-64);
  }
  .footer-inner {
    display: block;
  }
  .footer-inner > .footer-links {
    display: flex;
    margin-top: var(--space-24);
  }
}

/* Project opening: dark navigation, split introduction, image contact sheet. */
.project-page .site-header-shell,
body:has(.project-masthead) .site-header-shell,
.project-masthead {
  background: #0b0c10;
  color: #e0e1e5;
  --surface: var(--dark-surface);
  --text: #e0e1e5;
  --muted: #a3a7b5;
  --border: rgb(255 255 255 / 15%);
  --accent: #b5ccbc;
}
.project-masthead {
  padding: var(--space-48) 0;
}
.project-overview {
  display: grid;
  grid-template-columns: minmax(0, 632fr) minmax(0, 398fr);
  gap: clamp(var(--space-32), 8vw, 106px);
}
.project-overview .project-meta {
  margin-top: 0;
}
.project-overview .project-meta dd {
  color: #e0e1e5;
}
.project-overview .case-summary {
  padding-top: var(--space-10);
}
.project-gallery {
  display: grid;
  grid-template-columns: minmax(0, 846fr) minmax(0, 274fr);
  gap: var(--space-16);
  margin-top: var(--space-64);
}
.project-gallery-main {
  min-width: 0;
}
.project-gallery-main a {
  display: block;
  position: relative;
  height: 440px;
  background: #131418;
}
.project-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-gallery-main figcaption {
  display: flex;
  justify-content: space-between;
  gap: var(--space-16);
  margin-top: var(--space-12);
  color: #a3a7b5;
  font-size: var(--text-13);
}
.enlarge-label {
  position: absolute;
  right: 16px;
  bottom: 16px;
  font-size: var(--text-12);
  background: rgb(0 0 0 / 65%);
  color: white;
  padding: var(--space-6) var(--space-10);
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.15s;
}
.project-gallery-main a:hover .enlarge-label,
.project-gallery-main a:focus-visible .enlarge-label {
  opacity: 1;
}
.project-thumbnails {
  display: grid;
  grid-auto-rows: 130px;
  overflow-y: auto;
  gap: var(--space-16);
  height: 440px;
}
.project-thumbnails a {
  padding: 0;
  border: 1px solid transparent;
  background: #131418;
  overflow: hidden;
  min-height: 0;
  opacity: 0.65;
  transition: opacity 0.15s;
}
.project-thumbnails a:hover,
.project-thumbnails a[aria-current="true"] {
  opacity: 1;
  border-color: #b9c5d0;
}
.project-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-stepper {
  grid-column: 1/-1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-24);
  font-size: var(--text-12);
  color: #a3a7b5;
}
.gallery-stepper button {
  color: #e0e1e5;
  background: transparent;
  border: 1px solid #343844;
  border-radius: 50%;
  width: 36px;
  height: 36px;
}
.project-narrative {
  padding-top: var(--space-80);
}

/* Photo journal: image-led, quiet, and uncropped. */
.lightbox-info dl {
  margin-top: var(--space-20);
}
.lightbox-info dl > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-24);
  border-bottom: 1px solid var(--border);
  padding-block: var(--space-8);
  font-size: var(--text-13);
}
.photo-credit {
  color: var(--muted);
  font-size: var(--text-12);
  line-height: var(--leading-20);
}

/* Native dialog provides modal focus containment and Escape dismissal. */
.lightbox {
  --text: #ededed;
  --muted: #a3a7b5;
  --border: rgb(255 255 255 / 15%);
  background: #0a0a0a;
  color: var(--text);
  border: 0;
  padding: 0;
  margin: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  overflow: hidden;
  color-scheme: dark;
}
.lightbox::backdrop {
  background: #0a0a0a;
}
.lightbox-stage {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  padding: 0;
}
.lightbox-image {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}
.lightbox-close,
.lightbox-navigation button,
.lightbox-details-toggle {
  position: absolute;
  z-index: 2;
  background: transparent;
  border: 0;
  color: #b7b7b7;
  transition: color 0.15s;
}
.lightbox-close:hover,
.lightbox-navigation button:hover,
.lightbox-details-toggle:hover {
  color: white;
}
.lightbox button:focus-visible {
  outline: 1px solid #e0e1e5;
  outline-offset: 2px;
}
.lightbox-close {
  top: 10px;
  right: 14px;
  width: 40px;
  height: 36px;
  padding: 0;
  font-size: var(--text-28);
  font-weight: var(--weight-light);
}
.lightbox-navigation button {
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 56px;
  padding: 0;
  font-size: var(--text-36);
  font-weight: var(--weight-light);
}
.lightbox-navigation [data-lightbox-prev] {
  left: 8px;
}
.lightbox-navigation [data-lightbox-next] {
  right: 8px;
}
.lightbox-counter {
  position: absolute;
  bottom: 16px;
  left: 24px;
  color: #8e8e8e;
  font-size: var(--text-12);
  line-height: var(--leading-20);
  font-variant-numeric: tabular-nums;
}
.lightbox-details-toggle {
  right: 20px;
  bottom: 10px;
  padding: var(--space-6) var(--space-4);
  font-size: var(--text-12);
  line-height: var(--leading-20);
}
.lightbox-info {
  position: absolute;
  right: 24px;
  bottom: 52px;
  z-index: 3;
  width: min(320px, calc(100vw - 48px));
  max-height: calc(100dvh - 120px);
  overflow: auto;
  padding: var(--space-24);
  background: rgb(18 18 18 / 96%);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgb(0 0 0 / 20%);
}
.lightbox-info > p {
  font-size: var(--text-14);
  line-height: var(--leading-24);
}
.lightbox-info > p:empty {
  display: none;
}
.lightbox-info dl {
  margin-top: 0;
}
.lightbox-info .photo-credit {
  color: var(--muted);
  font-size: var(--text-12);
  margin-top: var(--space-16);
}
body:has(.lightbox[open]) {
  overflow: hidden;
}

.keep-reading {
  margin-top: var(--space-80);
}
.keep-reading-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-24);
  border-top: 1px solid var(--border);
  padding-top: var(--space-32);
  margin-bottom: var(--space-32);
}
.keep-reading-header h2 {
  font-size: var(--text-22);
  font-weight: var(--weight-medium);
}
.keep-reading-header a {
  font-size: var(--text-14);
  color: var(--muted);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-32);
}
.related-grid h3 {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: var(--text-22);
  line-height: var(--leading-32);
  margin-bottom: var(--space-4);
}
.related-photo {
  display: block;
  margin-bottom: var(--space-16);
}
.related-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.related-grid h3 a {
  text-decoration: none;
}
.related-grid h3 a:hover {
  text-decoration: underline;
}
.related-grid .eyebrow {
  font-size: var(--text-12);
  margin-bottom: var(--space-16);
}
.related-grid article > p:last-child {
  font-size: var(--text-14);
  line-height: var(--leading-24);
  color: var(--muted);
}
@media (max-width: 1023px) {
  .project-gallery-main a,
  .project-thumbnails {
    height: 360px;
  }
  .project-overview {
    gap: var(--space-40);
  }
  .project-overview .case-summary {
    font-size: var(--text-20);
    line-height: var(--leading-32);
  }
}
@media (max-width: 767px) {
  .project-masthead {
    padding-top: var(--space-24);
  }
  .project-overview {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }
  .project-overview .project-meta {
    width: 100%;
    max-width: none;
    margin-top: 0;
  }
  .project-overview .case-summary {
    padding-top: 0;
  }
  .project-gallery {
    grid-template-columns: 1fr;
    margin-top: var(--space-40);
  }
  .project-gallery-main a {
    height: auto;
    aspect-ratio: 4/3;
  }
  .project-thumbnails {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 104px;
    grid-template-rows: 88px;
    height: 88px;
    gap: var(--space-10);
    overflow-x: auto;
    overflow-y: hidden;
  }
  .enlarge-label {
    opacity: 1;
  }
  .project-narrative {
    padding-top: var(--space-48);
  }
  .lightbox-navigation button {
    font-size: var(--text-28);
    width: 32px;
    background: rgb(0 0 0 / 24%);
    color: white;
    border-radius: 2px;
  }
  .lightbox-navigation [data-lightbox-prev] {
    left: 4px;
  }
  .lightbox-navigation [data-lightbox-next] {
    right: 4px;
  }
  .related-grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }
  .related-grid article + article {
    border-top: 1px solid var(--border);
    padding-top: var(--space-24);
  }
}

/* Subtle contrast for controls over edge-to-edge photography. */
.lightbox-close,
.lightbox-navigation button,
.lightbox-details-toggle,
.lightbox-counter {
  color: white;
  text-shadow: 0 1px 5px rgb(0 0 0 / 90%);
}
.lightbox-close,
.lightbox-details-toggle {
  background: rgb(0 0 0 / 22%);
  border-radius: 3px;
}
.employer-sections {
  display: grid;
  row-gap: var(--space-88);
}
.employer-section {
  display: grid;
  grid-template-columns: var(--editorial-columns);
  column-gap: var(--layout-gap);
  align-items: start;
  border-top: 1px solid var(--border);
  padding-top: var(--space-24);
}
.employer-heading {
  grid-column: 1 / span 2;
  position: sticky;
  top: var(--space-32);
  align-self: start;
}
.employer-heading h2 {
  font: var(--weight-semibold) var(--text-13)/var(--leading-24) var(--font-ui);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.employer-years,
.employer-location {
  color: var(--muted);
  font-size: var(--text-14);
  line-height: var(--leading-24);
}
.employer-years {
  margin-block: var(--space-4) var(--space-12);
  font-variant-numeric: tabular-nums;
}
.employer-role {
  font-size: var(--text-14);
  line-height: var(--leading-24);
}
.employer-section > .project-grid {
  grid-column: var(--editorial-content);
}
@media (max-width: 767px) {
  .employer-sections {
    row-gap: var(--space-56);
  }
  .employer-section {
    padding-top: var(--space-20);
    row-gap: var(--space-24);
  }
  .employer-heading {
    grid-column: 1;
    position: static;
  }
}

/* Shared image and video edge, also used on the dark case-study masthead. */
.media-frame,
.article-body img {
  outline: 1px solid var(--media-border, transparent);
  outline-offset: -1px;
}
[data-theme="dark"],
.project-masthead {
  --media-border: rgb(255 255 255 / 12%);
}
.project-videos {
  display: grid;
  gap: var(--space-32);
  margin-top: var(--space-64);
}
.project-video video {
  display: block;
  width: 100%;
  height: auto;
  background: #131418;
}
.project-video figcaption {
  color: #a3a7b5;
  font-size: var(--text-13);
  margin-top: var(--space-12);
}
.project-gallery:not(:has(.project-thumbnails)) {
  grid-template-columns: 1fr;
}
.profile-portrait {
  width: 160px;
  height: 160px;
  object-fit: cover;
  margin-top: var(--space-32);
  border-radius: 50%;
}
.career-list,
.feature-list {
  display: grid;
  gap: var(--space-40);
}
.article-body .career-entry h3,
.article-body .feature-entry h3 {
  margin: var(--space-8) 0;
}
.career-entry p,
.feature-entry p {
  margin-top: var(--space-12);
}
.career-entry .career-role {
  font-family: var(--font-ui);
  font-size: var(--text-14);
  color: var(--muted);
  margin-top: var(--space-8);
}
.feature-entry img {
  width: 100%;
  height: auto;
  margin-top: var(--space-20);
}
.elsewhere-links {
  list-style: none;
  padding: 0 !important;
  font: var(--text-16)/var(--leading-24) var(--font-ui);
}
.article-body .elsewhere-links > li {
  padding-left: 0;
}
.elsewhere-links a {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: first baseline;
  gap: var(--space-16);
  padding-block: var(--space-6);
  text-decoration: none;
}
.elsewhere-links a:hover {
  text-decoration: underline;
}
.elsewhere-links span {
  color: var(--muted);
  font-size: var(--text-14);
  overflow-wrap: anywhere;
}

.about-page .article-body > .eyebrow + p {
  text-indent: 0;
}
.article-body .career-entry .eyebrow,
.article-body .feature-entry .eyebrow {
  font-family: var(--font-ui);
}

/* CV-style work history: quiet dates and a clear role/content column. */
.employer-section {
  min-width: 0;
  scroll-margin-top: var(--space-32);
}
.article-body .career-list {
  gap: var(--space-36);
}
.career-entry {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: var(--space-20);
}
.article-body .career-entry .career-years {
  margin: var(--space-2) 0 0;
  font-family: var(--font-ui);
  font-size: var(--text-13);
  line-height: var(--leading-24);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.article-body .career-details h3 {
  margin: 0;
  font-size: var(--text-16);
  line-height: var(--leading-24);
  font-weight: var(--weight-medium);
  letter-spacing: 0;
  text-wrap: auto;
}
.employer-link {
  white-space: nowrap;
}
.article-body .career-details .career-location {
  margin: var(--space-4) 0 0;
  font-family: var(--font-ui);
  font-size: var(--text-13);
  line-height: var(--leading-20);
  color: var(--muted);
}
.article-body .career-details .career-description {
  margin: var(--space-12) 0 0;
  font-size: var(--text-16);
  line-height: var(--leading-24);
}
.article-body .career-details .career-description + .career-description {
  margin-top: var(--prose-paragraph-gap);
  text-indent: var(--prose-indent);
}
.career-project-link {
  display: inline-block;
  margin-top: var(--space-12);
  font-family: var(--font-ui);
  font-size: var(--text-13);
  line-height: var(--leading-24);
  text-underline-offset: 4px;
}
@media (max-width: 600px) {
  .career-entry {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .article-body .career-list {
    gap: var(--space-32);
  }
}

.feature-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-top: var(--space-20);
  border: 0;
  background: #131418;
}

.article-body video {
  display: block;
  width: 100%;
  height: auto;
}

/* One label/content grid for page introductions, lists, and the site header. */
.editorial-opening,
.editorial-section,
.blog-page .post-preview {
  display: grid;
  grid-template-columns: var(--editorial-columns);
  column-gap: var(--layout-gap);
  align-items: first baseline;
}
.about-page .editorial-copy .article-body > *,
.about-page .editorial-copy > *,
.style-guide-page .editorial-copy > * {
  width: 100%;
}
.editorial-opening {
  padding-top: var(--space-32);
  margin-bottom: var(--space-48);
}
.editorial-section {
  margin-top: var(--space-56);
}
.editorial-copy,
.post-preview-copy {
  grid-column: var(--editorial-content);
  min-width: 0;
}
.editorial-label,
.editorial-label h1,
.editorial-section > h2 {
  font: var(--weight-semibold) var(--text-13)/var(--leading-24) var(--font-ui);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.editorial-opening > p {
  font: var(--prose-size)/var(--prose-leading) var(--font-body);
}
.editorial-copy .article-meta {
  margin-top: var(--space-20);
  color: var(--muted);
  font-size: var(--text-14);
}
.about-page .career-entry {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}
.about-page .editorial-copy > * {
  margin-bottom: 0;
}
.blog-page .post-list {
  max-width: none;
}
.blog-page .post-preview h2 {
  font-size: var(--text-24);
  line-height: var(--leading-32);
  margin-bottom: var(--space-12);
}
.blog-page .post-preview-copy > p {
  font-size: var(--text-16);
  line-height: var(--leading-24);
}
.post-preview-copy > a {
  display: inline-block;
  margin-top: var(--space-20);
  font-size: var(--text-13);
}
@media (max-width: 767px) {
  :root {
    --editorial-columns: minmax(0, 1fr);
    --editorial-content: 1 / -1;
    --layout-gap: var(--space-16);
  }
  .editorial-opening,
  .editorial-section,
  .blog-page .post-preview {
    row-gap: var(--layout-gap);
  }
  :is(.editorial-opening, .editorial-section, .blog-page .post-preview) > * {
    grid-column: 1;
    width: 100%;
    min-width: 0;
  }
  .editorial-opening {
    padding-top: var(--space-24);
    margin-bottom: var(--space-32);
  }
  .editorial-section {
    margin-top: var(--space-32);
  }
}

@media (min-width: 400px) and (max-width: 767px) {
  .site-nav {
    --nav-padding: 12px;
  }
}
@media (max-width: 359px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr);
  }
  .header-right {
    grid-column: 1;
    justify-self: start;
  }
  .site-nav {
    --nav-padding: 12px;
  }
}

/* Photo posts keep the entire page, including navigation, in the darkroom. */
.photo-post-page,
body:has(.photo-post) {
  color-scheme: dark;
  --bg: var(--dark-bg);
  --surface: var(--dark-surface);
  --text: var(--dark-text);
  --muted: var(--dark-muted);
  --border: var(--dark-border);
  --accent: var(--dark-accent);
  --mark: var(--dark-mark);
  --media-border: rgb(255 255 255 / 12%);
}
.photo-post {
  padding-top: var(--space-48);
}
.photo-post-heading,
.photo-post-caption {
  max-width: var(--reading-width);
  margin-inline: auto;
}
.photo-post-heading {
  margin-bottom: var(--space-20);
}
.photo-post-heading h1 {
  margin-block: var(--space-12) var(--space-16);
  font-family: var(--font-body);
  font-size: var(--title-size);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-title);
}
.photo-post-heading .article-meta,
.photo-post-credit,
.photo-post-end {
  font-size: var(--text-13);
  color: var(--muted);
}
.photo-post-caption {
  margin-bottom: var(--space-32);
}
.photo-series--sequence {
  display: grid;
  gap: var(--space-16);
}
.photo-series--masonry {
  columns: 2;
  column-gap: var(--space-8);
}
.photo-series--masonry .photo-series-item {
  break-inside: avoid;
  margin-bottom: var(--space-8);
}
.photo-series-item a {
  display: block;
}
.photo-series-item img {
  width: 100%;
  height: auto;
}
.photo-series-item figcaption {
  padding-block: var(--space-8) var(--space-4);
  color: var(--muted);
  font-size: var(--text-16);
  line-height: var(--leading-24);
}
.photo-post-credit {
  margin-top: var(--space-20);
}
.photo-post-end {
  margin-top: var(--space-48);
  padding-top: var(--space-20);
  border-top: 1px solid var(--border);
}
@media (max-width: 600px) {
  .photo-post {
    padding-top: var(--space-24);
  }
  .photo-post-heading h1 {
    font-size: var(--text-34);
  }
  .photo-series--masonry {
    columns: 1;
  }
}

/* Masonry captions sit on the photograph so they don't interrupt the grid. */
.photo-series--masonry .photo-series-item {
  position: relative;
}
.photo-series--masonry .photo-series-item figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0;
  padding: var(--space-16);
  color: var(--dark-text);
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--dark-bg) 70%, transparent),
    color-mix(in srgb, var(--dark-bg) 24%, transparent)
  );
  text-shadow: 0 1px 4px rgb(0 0 0 / 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
}
@supports (backdrop-filter: blur(6px)) {
  .photo-series--masonry .photo-series-item figcaption {
    backdrop-filter: blur(6px);
  }
}
.photo-series--masonry .photo-series-item:hover figcaption,
.photo-series--masonry .photo-series-item:focus-within figcaption {
  opacity: 1;
}

/* A short dissolve carries the whole surface between light pages and darkrooms. */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: page-fade-out 240ms ease-in-out both;
}
::view-transition-new(root) {
  animation: page-fade-in 240ms ease-in-out both;
}
@keyframes page-fade-out {
  to {
    opacity: 0;
  }
}
@keyframes page-fade-in {
  from {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

/* Related posts share the photo series width without a second page gutter. */
.photo-post > .keep-reading {
  padding-inline: 0;
}

/* About timelines share markers, connectors, typography, and spacing. */
.article-body .about-timeline {
  gap: 0;
}
.about-page .about-timeline .career-entry {
  position: relative;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: var(--space-20);
  padding-bottom: var(--space-40);
}
.about-timeline .career-entry:last-child {
  padding-bottom: 0;
}
.about-timeline .career-entry:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 4px;
  left: 17px;
  width: 1px;
  background: var(--border);
}
.career-marker {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  box-shadow: 0 0 0 4px var(--bg);
}
.career-marker--empty {
  background: transparent;
  border: 0;
}
.career-marker--life {
  color: var(--muted);
}
.career-marker--empty::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}
.about-timeline .career-details {
  min-width: 0;
  padding-top: var(--space-4);
}

/* Roles share the company text edge; spacing expresses the progression. */
.article-body .career-roles {
  display: grid;
  gap: var(--space-24);
  margin: var(--space-20) 0 0;
  padding: 0;
}
.career-subrole {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.career-subrole::before {
  content: "";
  position: absolute;
  left: calc(-1 * (var(--space-20) + 22px));
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 4px var(--bg);
}
.article-body .career-subrole h4 {
  margin: 0;
  font: var(--weight-medium) var(--text-16)/var(--leading-24) var(--font-ui);
  letter-spacing: 0;
}
.article-body .career-subrole p {
  text-indent: 0;
  overflow-wrap: break-word;
}

/* One page grid: content occupies the right two tracks; the middle gap stays open. */
@media (min-width: 768px) {
  .site-header,
  .footer-inner {
    display: grid;
    grid-template-columns: var(--editorial-columns);
    column-gap: var(--layout-gap);
  }
  .site-header > .identity {
    grid-column: 1 / span 2;
  }
  .footer-inner > div {
    grid-column: var(--editorial-content);
  }
  .header-right,
  .footer-inner > .footer-links {
    grid-column: var(--editorial-content);
    justify-self: end;
  }

  /* Icons sit in the gap; all copy, including Elsewhere, starts on the content rail. */
  .about-page .about-timeline .career-entry,
  .home-lately .moment {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }
  .about-timeline .career-marker,
  .home-lately .moment-icon {
    position: absolute;
    left: calc(-1 * var(--timeline-inset));
    top: 0;
  }
  .about-timeline .career-entry:not(:last-child)::before,
  .home-lately .moment:not(:last-child)::before {
    left: calc(17px - var(--timeline-inset));
  }
}

/* Shared chrome stays mounted while the content keeps its original dissolve. */
.site-header-shell {
  view-transition-name: site-header;
}
.site-footer {
  view-transition-name: site-footer;
}
::view-transition-group(site-header),
::view-transition-group(site-footer) {
  animation: none;
}
::view-transition-old(site-header),
::view-transition-old(site-footer) {
  display: none;
}
::view-transition-new(site-header),
::view-transition-new(site-footer) {
  animation: none;
}
::view-transition {
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(*),
  ::view-transition-new(*),
  ::view-transition-group(*) {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
  }
}

.nav-coming-soon {
  position: relative;
}
.site-nav .nav-soon-button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 5px var(--nav-padding, 12px);
  background: transparent;
  color: var(--muted);
  font: inherit;
  opacity: 0.55;
  cursor: pointer;
}
.site-nav .nav-soon-button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  opacity: 1;
}
.nav-soon-popover {
  position: absolute;
  z-index: 10;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-8) var(--space-12);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  white-space: nowrap;
  box-shadow: 0 8px 24px #00000014;
}

.icon-button {
  border: 0;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #191d1e;
  color: white;
  padding: var(--space-8);
}
.icon-button img {
  width: 24px;
  height: 24px;
}
.article-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--space-16);
  font-family: var(--font-body);
  font-size: var(--prose-size);
  line-height: var(--prose-leading);
  letter-spacing: var(--tracking-prose);
  overflow-wrap: break-word;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums;
}
.article-body > * {
  grid-column: 1;
  width: min(100%, var(--reading-width));
  justify-self: center;
  min-width: 0;
  margin: 0 0 var(--space-24);
}
.article-body .album-embed iframe {
  display: block;
  width: 100%;
  border: 0;
}
.album-embed > a {
  font: var(--text-13)/var(--leading-24) var(--font-ui);
}

.article-body > p {
  margin-bottom: 0;
  hyphens: auto;
}
.article-body > p + p {
  text-indent: var(--prose-indent);
  margin-top: var(--prose-paragraph-gap);
}
.article-body > p + *:not(p) {
  margin-top: var(--prose-block-gap);
}
.article-body > p:last-child {
  margin-bottom: 0;
}
.article-body strong {
  font-weight: var(--weight-bold);
}
.article-body em {
  font-style: italic;
}
.article-body a {
  text-decoration-color: color-mix(in srgb, var(--text) 45%, transparent);
}
.article-body a:hover {
  text-decoration-color: currentColor;
}
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  font-family: var(--font-ui);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-heading);
  margin-top: var(--space-40);
  margin-bottom: var(--space-16);
  text-wrap: balance;
}
.article-body h1 {
  font-size: var(--text-36);
}
.article-body h2 {
  font-size: var(--text-28);
}
.article-body h3 {
  font-size: var(--text-24);
}
.article-body h4 {
  font-size: var(--text-20);
}
.article-body h5 {
  font-size: var(--text-18);
}
.article-body h6 {
  font-size: var(--text-16);
  letter-spacing: var(--tracking-label);
}
.article-body :is(h1, h2, h3, h4, h5, h6) + p {
  text-indent: 0;
}
.article-body > :first-child {
  margin-top: 0;
}
.article-body h1 + .heading-anchor,
.heading-anchor {
  font-size: 0.65em;
  color: var(--muted);
  text-decoration: none;
  margin-left: 0.6em;
  opacity: 0;
}
.article-body :is(h1, h2, h3, h4, h5, h6):hover .heading-anchor,
.heading-anchor:focus-visible {
  opacity: 1;
}
.article-body ul,
.article-body ol {
  padding-left: 1.3em;
}
.article-body li {
  padding-left: 0.25em;
  margin-block: var(--space-8);
}
.article-body li::marker {
  color: var(--muted);
  font-variant-numeric: lining-nums;
}
.article-body li > ul,
.article-body li > ol {
  margin-block: var(--space-8);
}
.article-body li > p + p {
  text-indent: var(--prose-indent);
  margin-top: var(--prose-paragraph-gap);
}
.article-body .task-list-item {
  list-style: none;
  padding-left: 0;
}
.task-list-item input {
  margin-left: -1.2em;
  margin-right: 0.5em;
  accent-color: var(--accent);
  vertical-align: baseline;
  width: 0.75em;
  height: 0.75em;
}
.article-body blockquote {
  border-left: 1px solid var(--border);
  padding: var(--space-4) 0 var(--space-4) var(--space-24);
  color: var(--muted);
  font-style: italic;
}
.article-body blockquote p + p {
  text-indent: var(--prose-indent);
  margin-top: var(--prose-paragraph-gap);
}
.article-body blockquote blockquote {
  margin-top: var(--space-20);
  padding-left: var(--space-20);
}
.article-body blockquote cite {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-14);
  font-style: normal;
  line-height: var(--leading-24);
  margin-top: var(--space-16);
}
.article-body .pullquote {
  grid-column: 1;
  width: min(100%, 848px);
  margin-block: var(--space-40) var(--space-40);
  position: relative;
}
.article-body .pullquote blockquote {
  border: 0;
  padding: 0;
  font-family: var(--font-quote);
  font-size: var(--text-36);
  line-height: var(--leading-44);
  font-style: normal;
  letter-spacing: var(--tracking-prose);
  color: var(--text);
  text-wrap: pretty;
}
.article-body .pullquote blockquote p:first-child::before {
  content: "“";
  position: absolute;
  left: -0.48em;
}
.article-body .pullquote blockquote p:last-child::after {
  content: "”";
}
.article-body .pullquote figcaption {
  margin-top: var(--space-16);
  font-family: var(--font-ui);
  font-size: var(--text-16);
  line-height: var(--leading-24);
  letter-spacing: 0;
  color: var(--muted);
}
.article-body figure img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.article-body figure figcaption {
  font-family: var(--font-ui);
  font-size: var(--text-14);
  line-height: var(--leading-24);
  letter-spacing: 0;
  color: var(--muted);
  margin-top: var(--space-12);
  font-variant-numeric: lining-nums;
}
.article-body .figure-wide {
  grid-column: 1;
  width: 100%;
  margin-block: var(--space-40);
}
.article-body .figure-wide img {
  max-height: none;
  object-fit: contain;
}
.article-body .figure-contained {
  background: var(--surface);
  padding: var(--space-32);
}
.article-body .figure-contained img {
  object-fit: contain;
  max-height: 500px;
}
.article-body .figure-contained figcaption {
  padding: 0;
}
.article-body p > img {
  margin-block: var(--space-24);
}
.article-body figure + p {
  text-indent: 0;
}
.article-body hr {
  grid-column: 1;
  width: min(100%, var(--reading-width));
  height: 1px;
  border: 0;
  background: var(--border);
  margin-block: var(--space-40);
}
.article-body code,
.article-body kbd,
.article-body samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76em;
  font-variant-numeric: lining-nums;
  letter-spacing: 0;
}
.article-body :not(pre) > code {
  background: var(--code);
  border-radius: 3px;
  padding: 0.15em 0.3em;
  overflow-wrap: anywhere;
}
.article-body pre {
  background: #171a22;
  color: #e0e1e5;
  color-scheme: dark;
  border-radius: 4px;
  overflow-x: auto;
  padding: var(--space-24);
  font-size: var(--text-16);
  line-height: var(--leading-28);
  tab-size: 2;
  letter-spacing: 0;
}
.article-body pre code {
  font-size: var(--text-13);
  white-space: pre;
  display: block;
}
.article-body kbd {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  padding: var(--space-2) var(--space-4);
  border-radius: 3px;
}
.hljs-keyword,
.hljs-selector-tag {
  color: #e4a1b6;
}
.hljs-string,
.hljs-attr {
  color: #a1c5a5;
}
.hljs-number,
.hljs-literal {
  color: #dcb18c;
}
.hljs-title,
.hljs-function {
  color: #c3b8e6;
}
.hljs-comment {
  color: #a3a7b5;
  font-style: italic;
}
[data-theme="dark"] .hljs-keyword {
  color: #e4a1b6;
}
[data-theme="dark"] .hljs-string {
  color: #a1c5a5;
}
[data-theme="dark"] .hljs-number {
  color: #dcb18c;
}
[data-theme="dark"] .hljs-title {
  color: #c3b8e6;
}
.table-scroll {
  grid-column: 1;
  width: min(100%, 848px);
  overflow-x: auto;
  margin-block: var(--space-32);
  font-family: var(--font-ui);
  font-size: var(--text-16);
  line-height: var(--leading-24);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.article-body table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
.article-body th {
  font-weight: var(--weight-medium);
  border-bottom: 1px solid var(--text);
}
.article-body td {
  border-bottom: 1px solid var(--border);
}
.article-body th,
.article-body td {
  padding: var(--space-16) var(--space-20) var(--space-16) 0;
  vertical-align: top;
  min-width: 100px;
}
.article-body tr:last-child td {
  border-bottom: 0;
}
.article-body th code,
.article-body td code {
  font-size: 0.85em;
}
.article-body mark {
  background: var(--mark);
  color: inherit;
  padding: 0.05em 0.12em;
}
.article-body del {
  color: var(--muted);
}
.article-body sub,
.article-body sup {
  font-size: 0.7em;
  line-height: 0;
}
.article-body abbr[title] {
  text-decoration: underline dotted;
  text-underline-offset: 0.2em;
  cursor: help;
}
.article-body dt {
  font-family: var(--font-ui);
  font-weight: var(--weight-medium);
  margin-top: var(--space-20);
}
.article-body dd {
  margin: var(--space-6) 0 var(--space-20) var(--space-24);
}
.article-body .footnotes {
  font-size: var(--text-16);
  line-height: var(--leading-28);
  color: var(--muted);
}
.article-body .footnote-ref {
  font-family: var(--font-ui);
  font-variant-numeric: lining-nums;
}
.footnote-backref {
  font-family: var(--font-ui);
  text-decoration: none;
}
.article-body .footnotes-sep {
  margin-bottom: var(--space-20);
}
.article-body .callout {
  padding: var(--space-24);
  border: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: var(--text-18);
  line-height: var(--leading-28);
  border-radius: 4px;
}
.article-body .callout > p + p {
  margin-top: var(--space-12);
}
.article-body details {
  border-block: 1px solid var(--border);
  padding-block: var(--space-20);
  font-size: var(--text-18);
}
.article-body summary {
  font-family: var(--font-ui);
  font-size: var(--text-18);
  cursor: pointer;
}
.article-body details > p {
  margin-top: var(--space-16);
}
.article-end {
  font-family: var(--font-ui);
  font-size: var(--text-14);
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: var(--space-24);
  margin-top: var(--space-40) !important;
}
@media (max-width: 767px) {
  .js .menu-button {
    display: grid;
  }
  .article-body {
    font-size: var(--text-18);
    line-height: var(--leading-28);
    letter-spacing: var(--tracking-prose);
  }
  .article-body > * {
    margin-bottom: var(--space-24);
  }
  .article-body .pullquote {
    margin-block: var(--space-36);
  }
  .article-body .pullquote blockquote {
    font-size: var(--text-28);
    line-height: var(--leading-36);
  }
  .article-body .pullquote figcaption {
    font-size: var(--text-14);
  }
  .article-body h2 {
    font-size: var(--text-28);
  }
  .article-body h3 {
    font-size: var(--text-22);
  }
  .article-body pre {
    padding: var(--space-20);
  }
  .article-body .figure-wide {
    margin-block: var(--space-32);
  }
  .article-body .figure-contained {
    padding: var(--space-20);
  }
  .article-body blockquote {
    padding-left: var(--space-20);
  }
  .table-scroll {
    font-size: var(--text-14);
  }
  .article-body .callout {
    padding: var(--space-20);
  }
  .article-body hr {
    margin-block: var(--space-32);
  }
}

/* Code keeps its own dark palette, independent of the page theme. */
.article-body .code-block {
  background: #13161d;
  color: #e0e1e5;
  color-scheme: dark;
  border: 1px solid #2b303b;
  border-radius: 7px;
  overflow: hidden;
  font-family: var(--font-ui);
  letter-spacing: 0;
}
.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  padding: var(--space-10) var(--space-16);
  border-bottom: 1px solid #2b303b;
  background: #1c2029;
  font-size: var(--text-12);
  line-height: var(--leading-20);
}
.code-language {
  color: #bec5d3;
  font-weight: var(--weight-medium);
}
.code-actions {
  display: none;
  align-items: center;
  gap: var(--space-6);
}
[data-code-ready="true"] .code-actions {
  display: flex;
}
.code-actions button {
  border: 1px solid transparent;
  border-radius: 4px;
  padding: var(--space-4) var(--space-8);
  background: transparent;
  color: #bec5d3;
  font-size: var(--text-12);
  line-height: var(--leading-20);
  transition:
    background 0.15s,
    color 0.15s;
}
.code-actions button:hover,
.code-actions button[aria-pressed="true"] {
  background: #303744;
  color: #fff;
}
.code-actions button:focus-visible,
.code-block pre:focus-visible {
  outline: 2px solid #a9c5dd;
  outline-offset: -2px;
}
.code-actions button[data-copied="true"] {
  color: #b4ddbd;
}
.article-body .code-block pre {
  margin: 0;
  width: 100%;
  background: #13161d;
  color: #e0e1e5;
  border-radius: 0;
  padding: var(--space-20) var(--space-24);
  max-height: 560px;
  overflow: auto;
}
.article-body .code-block code {
  color: #e0e1e5;
  font-size: var(--text-13);
  line-height: var(--leading-24);
}
.code-block[data-wrap="true"] pre code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.code-block .hljs-comment {
  color: #929db0;
}
.code-block .hljs-keyword,
.code-block .hljs-selector-tag {
  color: #e4a1b6;
}
.code-block .hljs-string,
.code-block .hljs-attr {
  color: #a1c5a5;
}
.code-block .hljs-number,
.code-block .hljs-literal {
  color: #dcb18c;
}
.code-block .hljs-title,
.code-block .hljs-function {
  color: #c3b8e6;
}
@media (max-width: 767px) {
  .article-body .code-block pre {
    padding: var(--space-20);
  }
}

/* Opt-in presentation chrome; the source image keeps its natural proportions. */
.mockup {
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 12px 36px rgb(0 0 0 / 8%);
}
.mockup--browser {
  border-radius: 10px;
}
.mockup-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  padding: var(--space-12) var(--space-16);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font: var(--text-12)/var(--leading-20) var(--font-ui);
}
.mockup-dots,
.mockup-toolbar-end {
  display: flex;
  gap: 5px;
  width: 34px;
  flex: 0 0 34px;
}
.mockup-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.45;
}
.mockup-address {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mockup-viewport {
  overflow: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  aspect-ratio: 16 / 10;
  background: var(--bg);
}
.article-body .mockup-viewport img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 0;
  outline: none;
}
.mockup-viewport:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: -4px;
}
.mockup--phone {
  width: min(100%, 340px);
  margin-inline: auto;
  padding: 0 9px;
  border: 1px solid var(--media-border, var(--border));
  border-radius: 36px;
  background: #131418;
}
.mockup--phone .mockup-viewport {
  aspect-ratio: 9 / 16;
  border-radius: 20px;
}
.mockup-speaker {
  width: 42px;
  height: 5px;
  margin: 15px auto;
  border-radius: 5px;
  background: #666;
}
.mockup-home {
  width: 72px;
  height: 4px;
  margin: 12px auto;
  border-radius: 4px;
  background: #666;
}

/* Home: a personal introduction and a small journal of moments. */
.home-page {
  max-width: var(--page-max);
}
.home-intro {
  padding-block: var(--space-24) var(--space-24);
}
.home-portrait {
  display: inline-block;
  margin-bottom: var(--space-24);
}
.home-portrait img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  padding: 4px;
  border: 1px solid var(--border);
}
.moment-label {
  font: var(--text-13)/var(--leading-20) var(--font-ui);
  color: var(--muted);
}
.home-intro h1 {
  font: var(--weight-regular) var(--text-48)/var(--leading-tight)
    var(--font-body);
  letter-spacing: var(--tracking-display);
  margin-block: var(--space-12) var(--space-24);
}
.hello-mark {
  display: inline-block;
  color: var(--accent);
  margin-left: var(--space-12);
  font-family: var(--font-ui);
}
.home-deck,
.home-work > p {
  font: var(--prose-size)/var(--prose-leading) var(--font-body);
}
.home-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-24);
  margin-top: var(--space-24);
  font-size: var(--text-14);
}
.home-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-16);
  padding-bottom: var(--space-24);
  border-bottom: 1px solid var(--border);
}
.home-section-heading h2 {
  font: var(--weight-regular) var(--text-28)/var(--leading-36) var(--font-body);
}
.moments-list {
  list-style: none;
  padding: 0;
  margin: var(--space-32) 0 0;
}
.moment {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: var(--space-20);
  padding-bottom: var(--space-40);
}
.moment:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 36px;
  bottom: 0;
  left: 17px;
  width: 1px;
  background: var(--border);
}
.moment-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: white;
  font: 22px/1 var(--font-ui);
  box-shadow: 0 0 0 4px var(--bg);
}
.moment-icon--sun {
  background: #926420;
}
.moment-icon--music {
  background: transparent;
  color: #081c10;
}
.moment-icon--film {
  background: transparent;
}
.moment-icon--film img {
  display: block;
  width: 36px;
  height: 36px;
}
.moment-icon--photo {
  background: transparent;
}
.moment h3 {
  font: var(--weight-medium) var(--text-18)/var(--leading-28) var(--font-ui);
  margin-block: var(--space-4);
}
.moment-detail {
  font: var(--text-14)/var(--leading-24) var(--font-ui);
  color: var(--muted);
}
.moment figure {
  margin: var(--space-16) 0 var(--space-12);
}
.moment figure img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.moment figcaption {
  margin-top: var(--space-8);
  font-size: var(--text-12);
  color: var(--muted);
}
.moment-more {
  font-size: var(--text-14);
}
.home-work {
  border-top: 1px solid var(--border);
  padding-block: var(--space-32) var(--space-24);
}
.home-work h2 {
  font: var(--weight-regular) var(--text-28)/var(--leading-36) var(--font-body);
  margin-block: var(--space-12) var(--space-20);
}
.home-work > a {
  display: inline-block;
  margin-top: var(--space-20);
  font-size: var(--text-14);
}
@media (max-width: 600px) {
  .home-intro {
    padding-top: var(--space-24);
  }
  .home-intro h1 {
    font-size: var(--text-36);
  }
  .home-section-heading {
    flex-wrap: wrap;
    gap: var(--space-4);
  }
  .moment {
    gap: var(--space-12);
  }
}
.moment-media {
  --moment-art-size: var(--space-72);
  display: flex;
  align-items: flex-start;
  gap: var(--space-16);
}
.moment-media > div {
  min-width: 0;
}
.moment-media h3 a {
  text-decoration: none;
}
.moment-media h3 a:hover {
  text-decoration: underline;
}
.moment-poster,
.moment-cover {
  flex: 0 0 var(--moment-art-size);
  width: var(--moment-art-size);
  height: auto;
  border-radius: 4px;
}
.moment-rating {
  display: inline-block;
  margin-left: var(--space-8);
  color: var(--accent);
}

/* Maybern studies adapt the brand content to the site's editorial layout. */
.maybern-palette,
.maybern-cards,
.maybern-web {
  font-family: var(--font-ui);
  font-size: var(--text-14);
  line-height: var(--leading-normal);
  letter-spacing: 0;
}
.maybern-palette {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-12);
}
.maybern-swatch {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}
.maybern-swatch::before {
  content: "";
  display: block;
  height: 180px;
  margin-bottom: var(--space-8);
  background: var(--swatch);
  outline: 1px solid var(--media-border, var(--border));
  outline-offset: -1px;
}
.maybern-swatch--0 {
  --swatch: #091d13;
}
.maybern-swatch--1 {
  --swatch: #092115;
}
.maybern-swatch--2 {
  --swatch: #17412d;
}
.maybern-swatch--3 {
  --swatch: #ecfff5;
}
.maybern-swatch--4 {
  --swatch: #f6fffa;
}
.maybern-hex {
  color: var(--muted);
  font-size: var(--text-13);
}
.maybern-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-24);
  max-width: 800px;
  margin-inline: auto;
}
.maybern-card-front,
.maybern-card-back {
  aspect-ratio: 1.6;
  border-radius: 2px;
  box-shadow: 0 1px 6px #00000020;
}
.maybern-card-front {
  background: #091d13;
  display: grid;
  place-items: center;
}
.article-body .maybern-card-front img {
  width: 59%;
  height: auto;
  border-radius: 0;
}
.maybern-card-back {
  background: #f6fffa;
  color: #092115;
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
}
.maybern-card-name {
  font-size: var(--text-20);
}
.maybern-card-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: auto;
  padding-top: var(--space-24);
}
.maybern-web {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: var(--space-24);
  align-items: start;
}
.maybern-web-desktop,
.maybern-web-mobile {
  background: #091d13;
  color: #ecfff5;
  padding: var(--space-24);
  border-radius: 2px;
}
.maybern-web-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-20);
}
.article-body .maybern-web-nav img,
.article-body .maybern-mobile-nav img:last-child {
  width: 135px;
  height: auto;
  border-radius: 0;
}
.maybern-web-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
}
.maybern-web-actions {
  display: flex;
  gap: var(--space-8);
}
.maybern-web-actions span {
  border: 1px solid #ecfff5;
  padding: var(--space-6) var(--space-12);
  border-radius: 2px;
}
.maybern-web-actions span:last-child {
  background: #ecfff5;
  color: #092115;
}
.maybern-web-headline,
.maybern-mobile-headline {
  font-family: var(--font-body);
  font-size: var(--text-28);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-heading);
}
.maybern-web-headline {
  margin-block: var(--space-72) var(--space-40);
  max-width: 24ch;
}
.maybern-web-mobile {
  min-height: 380px;
}
.maybern-mobile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
}
.article-body .maybern-mobile-nav img:first-child {
  width: 28px;
  height: auto;
}
.maybern-mobile-headline {
  margin-top: var(--space-48);
}
.article-body .maybern-cards img,
.article-body .maybern-web img {
  outline: none;
}
@media (max-width: 1024px) {
  .maybern-web {
    grid-template-columns: minmax(0, 1fr);
  }
  .maybern-web-mobile {
    width: min(100%, 320px);
    justify-self: center;
  }
}
@media (max-width: 600px) {
  .maybern-palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-24) var(--space-12);
  }
  .maybern-swatch::before {
    height: 120px;
  }
  .maybern-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-16);
  }
  .maybern-card-back {
    min-height: 200px;
  }
  .maybern-web-links {
    font-size: var(--text-13);
  }
}
.maybern-logo {
  padding-block: var(--space-40);
}
.article-body .maybern-logo img {
  width: min(100%, 420px);
  height: auto;
  margin-inline: auto;
  outline: none;
  filter: brightness(0) saturate(100%) invert(9%) sepia(20%) saturate(1300%)
    hue-rotate(100deg);
}
[data-theme="dark"] .article-body .maybern-logo img {
  filter: none;
}
/* Outward sound-wave ripples follow the app icon, never reverse direction. */
.moment-icon--music {
  position: relative;
  isolation: isolate;
}
.moment-icon--music img {
  display: block;
  width: 36px;
  height: 36px;
}
[data-spotify-moment] .moment-icon--music::before,
[data-spotify-moment] .moment-icon--music::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--spotify-green) 88%, black);
  border-radius: 28%;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transform: scale(1);
  box-shadow: 0 0 4px rgb(30 215 96 / 24%);
}
.is-playing .moment-icon--music::before,
.is-playing .moment-icon--music::after {
  animation: spotify-wave 2.4s cubic-bezier(0.16, 0.5, 0.4, 1) infinite;
}
.is-playing .moment-icon--music::after {
  animation-delay: -1.2s;
}
@keyframes spotify-wave {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  12% {
    opacity: 0.7;
  }
  60% {
    opacity: 0.28;
  }
  100% {
    opacity: 0;
    transform: scale(1.65);
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-playing .moment-icon--music::before {
    animation: none;
    opacity: 0.35;
    transform: scale(1.12);
  }
  .is-playing .moment-icon--music::after {
    animation: none;
    opacity: 0;
  }
}

/* A small physical sleeve: glazed surface, fine edge, and a lifted shadow. */
.album-sleeve {
  position: relative;
  display: block;
  flex: 0 0 var(--moment-art-size);
  width: var(--moment-art-size);
  aspect-ratio: 1;
  border-radius: 5px;
  background: var(--surface);
  box-shadow:
    0 1px 2px rgb(0 0 0 / 14%),
    0 3px 7px -3px rgb(0 0 0 / 22%);
  transform-origin: center;
  transition:
    transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 380ms ease;
}
.album-sleeve .moment-cover {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: inherit;
}
:is(.album-sleeve, .movie-cover)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    rgb(255 255 255 / 9%),
    transparent 22%,
    transparent 100%
  );
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 28%),
    inset 1px 0 0 rgb(255 255 255 / 10%);
  transition: opacity 380ms ease;
}
@media (hover: hover) and (pointer: fine) {
  :is(.album-sleeve, .movie-cover):hover {
    transform: translateY(-2px) scale(1.18);
    box-shadow:
      0 2px 4px rgb(0 0 0 / 16%),
      0 10px 18px -5px rgb(0 0 0 / 34%);
  }
  :is(.album-sleeve, .movie-cover):hover::after {
    opacity: 0.7;
  }
}
:is(.album-sleeve, .movie-cover):focus-visible {
  transform: translateY(-2px) scale(1.18);
}
@media (prefers-reduced-motion: reduce) {
  .album-sleeve,
  .album-sleeve::after,
  .movie-cover,
  .movie-cover::after {
    transition: none;
  }
  :is(.album-sleeve, .movie-cover):hover,
  :is(.album-sleeve, .movie-cover):focus-visible {
    transform: none;
  }
}

.moment-icon--photo img {
  display: block;
  width: 36px;
  height: 36px;
}

/* Keep music metadata close, and let the cover yield under a press. */
[data-spotify-moment] .moment-media h3 {
  margin-bottom: 0;
  line-height: var(--leading-24);
}
[data-spotify-moment] .moment-detail {
  line-height: var(--leading-20);
}
[data-spotify-moment] .moment-detail a {
  text-decoration: none;
}
:is(.album-sleeve, .movie-cover):active {
  transform: translateY(1px) scale(0.96);
  box-shadow: 0 1px 2px rgb(0 0 0 / 18%);
  transition-duration: 90ms;
}
@media (prefers-reduced-motion: reduce) {
  :is(.album-sleeve, .movie-cover):active {
    transform: none;
  }
}

.home-deck {
  font-size: var(--text-20);
  line-height: var(--leading-32);
  letter-spacing: var(--tracking-prose);
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums;
}

.movie-cover {
  position: relative;
  box-shadow:
    0 1px 2px rgb(0 0 0 / 14%),
    0 3px 7px -3px rgb(0 0 0 / 22%);
  display: block;
  flex: 0 0 var(--moment-art-size);
  width: var(--moment-art-size);
  align-self: flex-start;
  border-radius: 4px;
  transform-origin: center;
  transition:
    transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 380ms ease;
}
.movie-cover img {
  display: block;
  width: 100%;
  height: auto;
}
@media (prefers-reduced-motion: reduce) {
  .movie-cover {
    transition: none;
  }
}

.home-intro.editorial-opening {
  align-items: start;
  padding-block: var(--space-32) 0;
  margin-bottom: var(--space-32);
}
.home-intro.editorial-opening .home-portrait {
  margin-bottom: 0;
}
.home-lately {
  display: grid;
  grid-template-columns: var(--editorial-columns);
  column-gap: var(--layout-gap);
}
.home-lately .moments-list {
  grid-column: var(--editorial-content);
  width: 100%;
  min-width: 0;
  margin-top: 0;
}
/* The shared content span now supplies the timeline's reading width. */
.home-lately .moments-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--layout-gap);
}
.home-lately .moment {
  grid-column: 1;
  min-width: 0;
}
@media (max-width: 1023px) {
  .home-lately .moment {
    grid-column: 1 / -1;
  }
}
@media (max-width: 767px) {
  .home-lately .moments-list {
    grid-column: 1;
  }
  .home-intro.editorial-opening {
    padding-top: var(--space-24);
  }
}

/* App Store artwork supplies its own shape on both timelines. */
:is(
    .moment-icon--music,
    .moment-icon--film,
    .moment-icon--photo,
    .career-marker
  )
  img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  outline: 0;
}

/* Match the loaded music row without adding loading copy to the timeline. */
.spotify-placeholder-cover {
  display: block;
  flex: 0 0 var(--moment-art-size);
  width: var(--moment-art-size);
  height: var(--moment-art-size);
  border-radius: 5px;
  background: var(--border);
  opacity: 0.45;
}
[data-spotify-moment].is-loading .moment-media > div {
  flex: 1;
  min-height: 68px;
}
.spotify-placeholder-line {
  display: inline-block;
  vertical-align: middle;
  width: min(160px, 85%);
  height: 10px;
  border-radius: 2px;
  background: var(--border);
  opacity: 0.65;
}
.moment-label .spotify-placeholder-line {
  width: min(84px, 60%);
  height: 6px;
  opacity: 0.45;
}
.moment-detail .spotify-placeholder-line {
  width: min(120px, 75%);
  height: 6px;
  opacity: 0.45;
}
@media (scripting: none) {
  [data-spotify-moment].is-loading {
    display: none;
  }
}

.highlights-intro {
  font-family: var(--font-body);
  font-size: var(--prose-size);
  line-height: var(--prose-leading);
}
.highlights-origin {
  margin-top: var(--space-20);
  color: var(--muted);
}
.highlights-meta,
.highlights-back {
  font-family: var(--font-ui);
  font-size: var(--text-13);
  line-height: var(--leading-20);
  color: var(--muted);
}
.highlights-page .editorial-opening .highlights-meta {
  margin-top: var(--space-16);
}
.highlights-index {
  margin-bottom: var(--space-64);
}
.highlights-index ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.highlights-index li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-20);
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--border);
}
.highlights-index li:first-child {
  padding-top: 0;
}
.highlights-index a {
  text-decoration: none;
}
.highlights-index a:hover {
  text-decoration: underline;
}
.highlights-index span {
  font-size: var(--text-13);
  color: var(--muted);
}
.highlight-source {
  padding-top: var(--space-32);
  border-top: 1px solid var(--border);
  margin-bottom: var(--space-64);
}
.highlight-source-heading {
  align-self: start;
  max-width: 240px;
}
@media (min-width: 768px) and (min-height: 480px) {
  .highlight-source-heading {
    position: sticky;
    top: var(--space-32);
  }
}
.highlight-cover {
  position: relative;
  display: block;
  width: 128px;
  max-width: 100%;
  margin-bottom: var(--space-24);
  border-radius: 0;
  box-shadow:
    0 1px 2px rgb(0 0 0 / 18%),
    2px 5px 10px -4px rgb(0 0 0 / 30%),
    5px 12px 22px -10px rgb(0 0 0 / 22%);
  transform-origin: center;
  transition:
    transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 380ms ease;
}
.highlight-cover img {
  width: 100%;
  height: auto;
  border-radius: inherit;
}
.highlight-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgb(0 0 0 / 10%),
      rgb(255 255 255 / 8%) 2%,
      transparent 4%,
      rgb(0 0 0 / 6%) 6%,
      transparent 9%
    ),
    linear-gradient(125deg, rgb(255 255 255 / 12%), transparent 30%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 28%),
    inset -1px 0 0 rgb(0 0 0 / 12%);
}
@media (hover: hover) and (pointer: fine) {
  .highlight-cover:hover {
    transform: translateY(-3px) rotate(-1deg) scale(1.06);
    box-shadow:
      0 2px 4px rgb(0 0 0 / 18%),
      4px 12px 20px -5px rgb(0 0 0 / 30%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .highlight-cover {
    transition: none;
  }
  .highlight-cover:hover {
    transform: none;
  }
}
.highlight-source-heading h2 {
  font-size: var(--text-18);
  line-height: var(--leading-28);
  font-weight: var(--weight-medium);
  margin-block: var(--space-8) var(--space-4);
}
.highlight-author {
  font-size: var(--text-14);
  line-height: var(--leading-24);
  margin-bottom: var(--space-12);
}
.highlight-entry + .highlight-entry {
  margin-top: var(--space-36);
  padding-top: var(--space-36);
  border-top: 1px solid var(--border);
}
.highlight-entry blockquote,
.highlight-note > div {
  font-family: var(--font-body);
  font-size: var(--prose-size);
  line-height: var(--prose-leading);
  letter-spacing: var(--tracking-prose);
  overflow-wrap: anywhere;
}
.highlight-entry blockquote p + p,
.highlight-note > div p + p {
  margin-top: var(--prose-paragraph-gap);
  text-indent: var(--prose-indent);
}
.highlight-entry blockquote {
  position: relative;
}
.highlight-entry blockquote::before {
  content: "“" / "";
  position: absolute;
  right: calc(100% + var(--space-8));
  top: var(--space-12);
  color: var(--muted);
  opacity: 0.35;
  font-family: var(--font-body);
  font-size: var(--text-42);
  line-height: var(--prose-leading);
  pointer-events: none;
}
.highlight-entry figcaption {
  margin-top: var(--space-20);
}
.highlight-permalink {
  text-decoration: none;
}
.highlight-permalink:hover {
  text-decoration: underline;
}
.highlight-note {
  margin-top: var(--space-20);
  padding-left: var(--space-20);
  border-left: 2px solid var(--border);
}
.highlight-note > .highlights-meta {
  margin-bottom: var(--space-8);
}
.highlights-back {
  display: inline-block;
  margin-top: var(--space-32);
}
.highlight-entry:target {
  outline: 1px solid var(--border);
  outline-offset: var(--space-12);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8) var(--space-24);
}
@media (max-width: 767px) {
  .highlight-source {
    row-gap: var(--space-32);
    margin-bottom: var(--space-48);
  }
  .highlights-index + .highlight-source {
    border-top: 0;
  }
  .highlight-source > .highlight-source-heading {
    position: sticky;
    top: 0;
    z-index: 2;
    max-width: none;
    width: calc(100% + 2 * var(--gutter));
    margin-inline: calc(-1 * var(--gutter));
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: var(--space-12);
    row-gap: var(--space-2);
    align-items: center;
    padding-block: var(--space-12);
    padding-inline: var(--gutter);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: blur(var(--space-12));
    backdrop-filter: blur(var(--space-12));
  }
  .highlight-source-heading[data-stuck] {
    box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 10%, transparent);
  }
  .highlight-source-heading:not(:has(.highlight-cover)) {
    grid-template-columns: minmax(0, 1fr);
  }
  .highlight-source-heading > .highlights-meta {
    display: none;
  }
  .highlight-source-heading h2,
  .highlight-source-heading .highlight-author {
    grid-column: -2 / -1;
    margin: 0;
    overflow-wrap: anywhere;
  }
  .highlight-source-heading h2 {
    align-self: end;
    font-size: var(--text-14);
    line-height: var(--leading-20);
  }
  .highlight-source-heading .highlight-author {
    align-self: start;
    font-size: var(--text-12);
    line-height: var(--leading-16);
    color: var(--muted);
  }
  .highlight-cover {
    grid-row: 1 / 3;
    width: 32px;
    margin: 0;
  }
  .highlight-entry {
    scroll-margin-top: calc(var(--space-96) + env(safe-area-inset-top, 0px));
  }
  .highlight-entry blockquote::before {
    right: calc(100% + var(--space-4));
    top: var(--space-8);
    font-size: var(--text-28);
  }
  .footer-links {
    margin-top: var(--space-24);
  }
}

.bookmarks-count {
  margin-top: var(--space-20);
}
.bookmark-entry {
  border-top: 1px solid var(--border);
  padding-top: var(--space-28);
  margin-top: var(--space-36);
}
.bookmark-source {
  font-size: var(--text-14);
  line-height: var(--leading-24);
  overflow-wrap: anywhere;
}
.bookmark-source .highlights-meta {
  margin-top: var(--space-8);
}
.bookmark-copy h2 {
  font-family: var(--font-body);
  font-size: var(--text-24);
  line-height: var(--leading-32);
  font-weight: var(--weight-regular);
  overflow-wrap: anywhere;
}
.bookmark-copy h2 a {
  text-decoration: none;
}
.bookmark-copy h2 a:hover {
  text-decoration: underline;
}
.bookmark-copy h2 span {
  font-family: var(--font-ui);
  font-size: var(--text-16);
  color: var(--muted);
}
.bookmark-excerpt {
  margin-top: var(--space-20);
  font-family: var(--font-body);
  font-size: var(--prose-size);
  line-height: var(--prose-leading);
  overflow-wrap: anywhere;
}
.bookmark-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8) var(--space-16);
  list-style: none;
  padding: 0;
  margin: var(--space-20) 0 0;
  font-size: var(--text-13);
  line-height: var(--leading-20);
  color: var(--muted);
}
