:root {
  --gold-ink: var(--color-accent-700);
  --soft: color-mix(in srgb, var(--color-text) 60%, transparent);
  --faint: color-mix(in srgb, var(--color-text) 40%, transparent);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html, body {
  background: var(--color-bg);
}

html[data-theme="dark"] {
  --color-bg: #1a1918;
  --color-surface: #272421;
  --color-text: #e9e5df;
  --color-accent: #d3a15f;
  --color-divider: color-mix(in srgb, #e9e5df 18%, transparent);
  --gold-ink: #e1ad66;
  --soft: color-mix(in srgb, #e9e5df 60%, transparent);
  --faint: color-mix(in srgb, #e9e5df 40%, transparent);
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --color-accent-100: color-mix(in srgb, #d3a15f 18%, transparent);
  --color-accent-800: #e1ad66;
  --color-neutral-100: #272421;
  --color-neutral-800: #e9e5df;
  color-scheme: dark;
  background: #1a1918;
  color: #e9e5df;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .site {
  background: #1a1918;
  color: #e9e5df;
}

html[data-theme="dark"] .plate {
  filter: sepia(0.18) saturate(0.8) contrast(0.95) brightness(0.9);
}

html[data-theme="dark"] .tag-accent {
  background: color-mix(in srgb, var(--color-accent) 18%, transparent);
  color: #f3d7a8;
}

html[data-theme="dark"] .tag-neutral {
  background: color-mix(in srgb, var(--color-text) 8%, transparent);
  color: var(--color-text);
}

html[data-theme="dark"] .prose :not(pre) > code {
  background: color-mix(in srgb, #e9e5df 12%, transparent);
  color: #e9e5df;
}

.site {
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  transition: background 0.25s ease, color 0.25s ease;
}

.site a {
  color: var(--gold-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.site :focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.site ::selection {
  background: color-mix(in srgb, var(--color-accent) 32%, transparent);
}

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

.skip:focus {
  top: 12px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 30px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-divider);
}

.site-header .wrap {
  padding: 13px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  font-family: var(--font-heading);
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--gold-ink);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  font-family: var(--font-heading);
  font-size: 13.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--soft);
  padding-bottom: 2px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-text);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--color-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-left: 16px;
  border-left: 1px solid var(--color-divider);
}

.icon-btn,
.lang-btn {
  background: none;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  box-sizing: border-box;
  cursor: pointer;
  font-family: var(--font-heading);
  color: var(--color-text);
  width: 40px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lang-btn {
  font-size: 12px;
  letter-spacing: 0.1em;
  font-feature-settings: "tnum";
  text-decoration: none;
}

.icon-btn [hidden] {
  display: none;
}

.nav-toggle {
  display: none;
}

.lang-btn:hover,
.icon-btn:hover {
  border-color: var(--color-accent);
  color: var(--gold-ink);
}

.kicker {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  font-feature-settings: "tnum";
}

.hero {
  padding: 40px 0 0;
}

.hero .kicker {
  margin-bottom: 26px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(44px, 6.6vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 30px;
  max-width: 16ch;
  text-wrap: pretty;
}

.hero-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 380px;
  object-fit: cover;
  object-position: 88% 38%;
  border: 1px solid var(--color-divider);
}

.lede {
  font-size: 17.5px;
  line-height: 1.78;
  text-align: justify;
  hyphens: auto;
  max-width: 64ch;
}

.lede p {
  margin: 0 0 20px;
}

.lede p:last-of-type {
  margin-bottom: 26px;
}

.lede strong {
  font-weight: 600;
}

.hero-contact {
  margin: 0;
  text-align: right;
}

.hero-contact a {
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 0.02em;
}

.section {
  padding: 92px 0 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: 14px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 44px);
  margin: 0;
  letter-spacing: -0.015em;
}

.section-meta {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  font-feature-settings: "tnum";
}

.section-link {
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
  row-gap: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--color-divider);
}

.tl-mile {
  grid-column: 1 / -1;
  text-align: center;
  background: var(--color-bg);
  padding: 26px 0 22px;
  position: relative;
}

.tl-dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-accent);
  margin: 0 auto 16px;
  position: relative;
}

.tl-date {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  font-feature-settings: "tnum";
  margin-bottom: 8px;
}

.tl-mile h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
  max-width: 24ch;
  display: inline-block;
}

.tl-place {
  font-size: 13px;
  color: var(--soft);
  margin-top: 9px;
  font-style: italic;
}

.tl-work,
.tl-quote {
  padding: 14px 0 22px;
}

.tl-left {
  grid-column: 1;
  text-align: right;
}

.tl-right {
  grid-column: 2;
  text-align: left;
}

.tl-quote.tl-left + .tl-work.tl-right:has(+ .tl-quote.tl-left) {
  grid-row: span 2;
}

.tl-label {
  font-family: var(--font-heading);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
  font-feature-settings: "tnum";
}

.tl-work ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 15px;
  line-height: 1.62;
  color: var(--soft);
}

.tl-quote blockquote {
  margin: 0;
  border-left: 1px solid var(--color-accent);
  padding-left: 18px;
  font-size: 15.5px;
  line-height: 1.66;
  font-style: italic;
  color: var(--color-text);
}

.tl-left blockquote {
  border-left: 0;
  border-right: 1px solid var(--color-accent);
  padding-left: 0;
  padding-right: 18px;
}

.tl-who {
  margin-top: 11px;
  font-size: 12.5px;
  color: var(--soft);
}

.tl-who a {
  font-style: normal;
}

.projects-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 44px);
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.project {
  padding: 0;
  overflow: hidden;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-plate {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 28px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
}

.project-plate img {
  display: block;
  max-height: 106px;
  max-width: 78%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.project-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 25px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.project p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.68;
  color: var(--soft);
  flex: 1;
}

.project .project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  flex: 0;
  font-family: var(--font-heading);
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.project-banner {
  display: block;
  margin-top: auto;
  padding: 13px 22px;
  background: #fff;
  color: var(--gold-ink);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-top: 1px solid var(--color-divider);
}

.project-banner:hover {
  color: var(--color-accent);
}

html[data-theme="dark"] .project-banner {
  background: #f4efe6;
  color: #3a2e1f;
}

html[data-theme="dark"] .project-banner:hover {
  color: #1a1918;
}

.quotes-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 44px);
  margin: 0 0 14px;
  letter-spacing: -0.015em;
  max-width: 22ch;
}

.quotes {
  column-count: 2;
  column-gap: 56px;
}

.quote {
  break-inside: avoid;
  margin: 0 0 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--color-divider);
}

.quote-mark {
  font-family: var(--font-heading);
  font-size: 42px;
  line-height: 0.6;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.quote blockquote {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.72;
  text-align: justify;
  hyphens: auto;
}

.quote figcaption {
  font-size: 13px;
  color: var(--soft);
  line-height: 1.5;
}

.quote figcaption a {
  font-family: var(--font-heading);
  font-size: 15px;
}

.notes-preview {
  padding: 60px 0 0;
}

.notes-preview .section-head {
  margin-bottom: 34px;
}

.notes-preview .section-title {
  font-size: clamp(28px, 3.2vw, 38px);
}

.note-row {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-divider);
}

.note-grid {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.note-date {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
  font-feature-settings: "tnum";
  text-decoration: none;
}

.note-date:hover {
  text-decoration: underline;
}

.note-text {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.72;
  max-width: 62ch;
}

.notes-preview .note-text a {
  color: inherit;
  text-decoration: none;
}

.notes-preview .note-text a:hover {
  text-decoration: underline;
}

.note-meta {
  font-size: 15px;
  color: var(--faint);
}

.note-meta > a {
  margin-right: 14px;
}

.note-meta details {
  display: inline;
}

.note-meta summary {
  display: inline;
  cursor: pointer;
  color: var(--gold-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  list-style: none;
}

.note-meta summary::-webkit-details-marker {
  display: none;
}

.note-page .note-meta + .key-meta {
  margin-top: 12px;
}

.sig {
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--soft);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.note-meta details .key-meta {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--faint);
}

.page {
  padding: 40px 0 0;
}

.page-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
  max-width: 28ch;
}

.page-title:has(+ .notes-layout) {
  margin-bottom: 14px;
}

.page-lede {
  max-width: 60ch;
  font-size: 17.5px;
  line-height: 1.78;
  color: var(--soft);
  margin: 0 0 44px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.services-grid > .service:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: 100%;
  max-width: calc((100% - 34px) / 2);
  justify-self: center;
}

.service {
  background: transparent;
  padding: 30px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service:hover {
  border-color: var(--color-accent);
}

.service-num {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--faint);
  font-feature-settings: "tnum";
}

.service h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.22;
  margin: 0;
  letter-spacing: -0.01em;
}

.service p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--soft);
}

.terrain {
  padding: 80px 0 0;
}

.terrain h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 34px;
  margin: 0 0 18px;
  letter-spacing: -0.015em;
}

.terrain p {
  margin: 0;
  font-size: 17px;
  line-height: 1.78;
  max-width: 46ch;
}

.contact {
  padding: 40px 0 0;
  max-width: 760px;
}

.contact-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 30px;
  max-width: none;
}

.contact-body {
  font-size: 19px;
  line-height: 1.8;
  margin: 0 0 44px;
  max-width: 50ch;
}

.contact-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-divider);
}

.contact-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--color-divider);
  text-decoration: none;
  color: var(--color-text);
  flex-wrap: wrap;
  transition: padding-left 0.15s ease, color 0.15s ease;
}

.contact-links a:hover {
  color: var(--gold-ink);
  padding-left: 12px;
}

.contact-links .big {
  font-family: var(--font-heading);
  font-size: 30px;
  letter-spacing: -0.01em;
}

.contact-links .hint {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}

.notes-list article {
  padding: 26px 0;
  border-top: 1px solid var(--color-divider);
}

.notes-list .note-date {
  display: inline-block;
  margin-bottom: 12px;
}

.note-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 36px);
  margin: 0 0 16px;
  letter-spacing: -0.015em;
  line-height: 1.28;
}

.note-title a {
  color: inherit;
  text-decoration: none;
}

.note-title a:hover {
  text-decoration: underline;
}

.notes-list .note-title {
  font-size: 26px;
}

.note-html.prose > p:first-of-type {
  font-size: inherit;
  color: inherit;
  line-height: inherit;
}

.note-html.prose p {
  text-align: left;
  hyphens: manual;
}

.note-html img {
  margin: 6px 0 22px;
  border-radius: var(--radius-md);
}

.key-box {
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: 88px;
}

.key-box h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 21px;
  margin: 0 0 14px;
}

.key-box p {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.66;
  color: var(--soft);
}

.fingerprint {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  word-spacing: 0.18em;
  color: var(--color-text);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  padding: 12px 0;
  margin-bottom: 16px;
}

.key-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.key-box .key-meta {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--faint);
  font-feature-settings: "tnum";
}

.note-page {
  padding: 40px 0 0;
  max-width: 680px;
}

.back {
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 34px;
}

.note-page .note-date {
  display: block;
  margin-bottom: 14px;
}

.note-page .note-title {
  margin-bottom: 28px;
}

.note-page .note-meta {
  margin-top: 28px;
}

.note-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--color-divider);
  font-size: 16px;
}

.post-list article {
  border-top: 1px solid var(--color-divider);
  padding: 28px 0;
}

.post-list h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.22;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.post-list h2 a {
  color: var(--color-text);
  text-decoration: none;
}

.post-list h2 a:hover {
  color: var(--gold-ink);
  text-decoration: underline;
}

.post-list .excerpt {
  margin: 0 0 12px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--soft);
  max-width: 64ch;
}

.post-date {
  font-family: var(--font-heading);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-feature-settings: "tnum";
  padding-top: 7px;
}

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

.tag-neutral {
  font-family: var(--font-heading);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
}

.article {
  padding: 40px 0 0;
  max-width: 700px;
}

.article h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(36px, 4.8vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  text-wrap: pretty;
}

.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 16px;
  color: var(--soft);
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: 22px;
  margin-bottom: 40px;
}

.article-meta a {
  font-family: var(--font-heading);
  font-size: 18px;
}

.prose {
  font-size: 17.5px;
  line-height: 1.8;
}

.prose > p:first-of-type {
  font-size: 20px;
  line-height: 1.7;
  color: var(--soft);
}

.prose p {
  margin: 0 0 22px;
  text-align: justify;
  hyphens: auto;
}

.prose h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 32px;
  margin: 44px 0 16px;
  letter-spacing: -0.015em;
}

.prose h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  margin: 36px 0 12px;
}

.prose pre,
.prose pre code {
  font-family: var(--mono);
}

.prose pre code {
  font-size: inherit;
}

.prose pre {
  margin: 0 0 26px;
  padding: 20px;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: 14.5px;
  line-height: 1.65;
  overflow-x: auto;
}

.prose .highlight {
  margin: 0 0 26px;
}

.prose .highlight pre {
  margin: 0;
}

.prose .highlight .c,
.prose .highlight .c1,
.prose .highlight .cm,
.prose .highlight .ch,
.prose .highlight .cs {
  color: var(--faint);
  font-style: italic;
}

.prose .highlight .k,
.prose .highlight .kd,
.prose .highlight .kn,
.prose .highlight .kp,
.prose .highlight .kr,
.prose .highlight .kt,
.prose .highlight .kc,
.prose .highlight .nb {
  color: var(--gold-ink);
}

.prose .highlight .s,
.prose .highlight .s1,
.prose .highlight .s2,
.prose .highlight .sa,
.prose .highlight .sb,
.prose .highlight .sc,
.prose .highlight .sd,
.prose .highlight .se,
.prose .highlight .si,
.prose .highlight .sr,
.prose .highlight .ss {
  color: #3f6f52;
}

.prose .highlight .m,
.prose .highlight .mi,
.prose .highlight .mf,
.prose .highlight .mh,
.prose .highlight .il {
  color: #8a4b2f;
}

.prose .highlight .nf,
.prose .highlight .nc,
.prose .highlight .na,
.prose .highlight .nx {
  color: #355a7a;
}

.prose .highlight .o,
.prose .highlight .ow,
.prose .highlight .p {
  color: var(--soft);
}

.prose .highlight .bp,
.prose .highlight .nv {
  color: var(--soft);
}

html[data-theme="dark"] .prose .highlight .s,
html[data-theme="dark"] .prose .highlight .s1,
html[data-theme="dark"] .prose .highlight .s2,
html[data-theme="dark"] .prose .highlight .sa,
html[data-theme="dark"] .prose .highlight .sb,
html[data-theme="dark"] .prose .highlight .sc,
html[data-theme="dark"] .prose .highlight .sd,
html[data-theme="dark"] .prose .highlight .se,
html[data-theme="dark"] .prose .highlight .si,
html[data-theme="dark"] .prose .highlight .sr,
html[data-theme="dark"] .prose .highlight .ss {
  color: #8fbf9a;
}

html[data-theme="dark"] .prose .highlight .m,
html[data-theme="dark"] .prose .highlight .mi,
html[data-theme="dark"] .prose .highlight .mf,
html[data-theme="dark"] .prose .highlight .mh,
html[data-theme="dark"] .prose .highlight .il {
  color: #d4a07a;
}

html[data-theme="dark"] .prose .highlight .nf,
html[data-theme="dark"] .prose .highlight .nc,
html[data-theme="dark"] .prose .highlight .na,
html[data-theme="dark"] .prose .highlight .nx {
  color: #8eb4d4;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.92em;
}

.prose :not(pre) > code {
  font-size: 0.9em;
  background: color-mix(in srgb, var(--color-text) 6%, transparent);
  padding: 0.05em 0.28em;
  border-radius: 2px;
}

.prose blockquote {
  margin: 32px 0;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--color-accent);
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1.42;
  font-style: italic;
}

.prose ul, .prose ol {
  margin: 0 0 22px;
  padding-left: 1.2em;
}

.prose li {
  margin: 0 0 8px;
}

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 0 22px;
}

.prose iframe {
  max-width: 100%;
  margin: 0 0 22px;
}

.author {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--color-divider);
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.author-pic {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: 90% 28%;
}

.author-bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--soft);
  max-width: 46ch;
}

.author-bio a {
  font-family: var(--font-heading);
  font-size: 19px;
}

.site-footer {
  margin-top: 110px;
  border-top: 1px solid var(--color-divider);
}

.site-footer .wrap {
  padding: 44px 30px 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 21px;
  margin-bottom: 8px;
}

.footer-role {
  font-size: 13.5px;
  color: var(--soft);
  line-height: 1.7;
}

.site-footer .btn {
  margin-top: 16px;
  font-size: 18px;
  padding: 10px 18px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.footer-pgp-label {
  font-family: var(--font-heading);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}

.footer-fp {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  word-spacing: 0.16em;
  color: var(--soft);
}

.footer-pgp-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--faint);
  font-feature-settings: "tnum";
}

@media (max-width: 900px) {
  .site-header .wrap {
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .header-actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    order: 3;
    flex: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 4px;
    border-top: 1px solid var(--color-divider);
  }

  .site-header.is-nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
  }

  .nav-links a[aria-current="page"]::after {
    bottom: 8px;
    right: auto;
    width: 24px;
  }

  .hero,
  .page,
  .contact,
  .note-page,
  .article {
    padding-top: 28px;
  }

  .hero-grid,
  .projects,
  .note-grid,
  .services-grid,
  .notes-layout,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-grid > .service:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }

  .quotes {
    column-count: 1;
  }

  .timeline {
    grid-template-columns: 1fr;
    padding-left: 30px;
  }

  .timeline::before {
    left: 3px;
  }

  .timeline > * {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
  }

  .tl-dot {
    position: absolute;
    left: -30px;
    margin: 0;
    top: 32px;
  }

  .tl-left blockquote {
    border-right: 0;
    border-left: 1px solid var(--color-accent);
    padding-right: 0;
    padding-left: 18px;
  }

  .lede,
  .quote blockquote,
  .prose p {
    text-align: left;
    hyphens: none;
  }

  .hero-title {
    font-size: clamp(36px, 11vw, 58px);
  }

  .page-title,
  .contact-title {
    max-width: none;
  }

  .contact-links .big {
    font-size: 22px;
  }

  .key-box {
    position: static;
  }
}
