:root {
  color-scheme: light;
  --background: #fff7fb;
  --surface: #fff7fb;
  --surface-lowest: #ffffff;
  --surface-low: #ffefff;
  --surface-container: #fde7ff;
  --surface-high: #fae0ff;
  --surface-highest: #f8d8ff;
  --surface-dim: #f4cdff;
  --ink: #492159;
  --muted: #794f89;
  --outline: #976aa7;
  --line: #d1a1e2;
  --primary: #b3127b;
  --primary-dark: #a0006e;
  --primary-soft: #ffa6d1;
  --secondary: #754ba3;
  --secondary-soft: #efdbff;
  --tertiary: #00668c;
  --tertiary-soft: #59c6ff;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(73, 33, 89, 0.14);
  --display: Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Avenir Next", Helvetica, sans-serif;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: var(--display);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.site-header {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(300px, 1fr) auto auto;
  gap: 28px;
  align-items: center;
  height: 48px;
  padding: 0 max(16px, calc((100vw - var(--container)) / 2 + 16px));
  background: rgba(255, 247, 251, 0.92);
  border-bottom: 1px solid rgba(209, 161, 226, 0.75);
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--primary);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  justify-content: flex-start;
  gap: 28px;
  margin-left: 8px;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.nav-links a.is-active,
.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.is-active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

.header-search {
  margin: 0;
}

.header-search label {
  position: relative;
  display: block;
}

.header-search label::before {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 12px;
  height: 12px;
  content: "";
  border: 1.5px solid var(--secondary);
  border-radius: 50%;
  transform: translateY(-58%);
}

.header-search label::after {
  position: absolute;
  top: 23px;
  left: 25px;
  width: 6px;
  height: 1.5px;
  content: "";
  background: var(--secondary);
  transform: rotate(45deg);
}

.header-search input {
  width: 158px;
  height: 34px;
  padding: 6px 14px 6px 39px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  transition: width 180ms ease, border-color 180ms ease;
}

.header-search input:focus {
  width: 220px;
  border-color: var(--primary);
}

.contact-button,
.button,
.load-more,
.newsletter-box button,
.project-action,
.project-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 24px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: clamp(8px, 0.95vw, 12px);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-button,
.button.primary,
.newsletter-box button,
.project-action {
  color: var(--white);
  background: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: 0 8px 18px rgba(179, 18, 123, 0.22);
}

.button.secondary,
.load-more,
.project-detail {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.contact-button:hover,
.button:hover,
.load-more:hover,
.newsletter-box button:hover,
.project-action:hover,
.project-detail:hover {
  transform: translateY(-2px);
}

.contact-button {
  min-width: 79px;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  background: var(--surface-lowest);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 4px auto;
  background: var(--ink);
}

#app {
  min-height: 70vh;
  outline: none;
}

.search-results {
  padding-bottom: 64px;
}

.search-results > h2 {
  margin-top: 32px;
}

.archive-hero,
.archive-layout,
.home-hero,
.section-shell,
.post-page,
.project-grid,
.about-hero,
.cta-panel,
.newsletter-cta,
.empty-page,
.loading-state {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.eyebrow,
.pill,
.category-chip,
.archive-sidebar h2,
.sort-panel h2,
.stack-card h3,
.share-box h2,
.newsletter-box h2,
.project-tags,
.mini-post-meta,
.mini-tags,
.note-topic {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  letter-spacing: 0.22em;
}

/* Blog archive */
.archive-hero {
  padding: 66px 0 36px;
}

.archive-hero h1 {
  font-size: 43px;
  font-weight: 500;
}

.archive-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.archive-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 66px;
}

.archive-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 34px;
}

.archive-sidebar h2,
.sort-panel h2 {
  margin: 0 0 18px;
  color: var(--ink);
}

.category-list {
  display: grid;
  gap: 7px;
}

.category-filter {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 38px;
  padding: 9px 16px;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  text-align: left;
}

.category-filter.is-active {
  color: var(--ink);
  background: var(--primary-soft);
  font-weight: 700;
}

.sort-panel {
  padding-top: 28px;
  border-top: 1px solid rgba(209, 161, 226, 0.35);
}

.radio-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 13px 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.radio-row input {
  appearance: none;
  width: 17px;
  height: 17px;
  margin: 0;
  border: 1px solid var(--secondary);
  border-radius: 50%;
}

.radio-row input:checked {
  border: 5px solid var(--primary);
}

.article-list {
  display: grid;
  gap: 32px;
}

.article-card {
  position: relative;
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr) 46px;
  gap: 32px;
  align-items: center;
  min-height: 272px;
  padding: 7px 30px 7px 7px;
  overflow: hidden;
  background: rgba(255, 239, 255, 0.82);
  border: 1px solid rgba(209, 161, 226, 0.7);
  border-top: 4px solid var(--primary);
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.article-card:nth-child(2) {
  border-top-color: var(--secondary);
}

.article-card-highlight {
  border: 1px solid var(--tertiary-soft);
  border-top: 4px solid var(--tertiary-soft);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.article-image {
  width: 256px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-meta,
.post-kicker,
.hero-actions,
.footer-links,
.tag-row,
.share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 14px;
  color: var(--primary);
  background: rgba(255, 166, 209, 0.35);
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.category-chip.react {
  color: var(--secondary);
  background: rgba(239, 219, 255, 0.75);
}

.category-chip.career {
  color: var(--tertiary);
  background: rgba(89, 198, 255, 0.3);
}

.article-meta time,
.read-time,
.author-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.article-card h2 {
  max-width: 680px;
  margin-top: 14px;
  font-size: clamp(22px, 2.3vw, 31px);
  font-weight: 500;
}

.article-card h2 a,
.mini-post a,
.project-card a {
  text-decoration: none;
}

.article-card p {
  max-width: 690px;
  margin: 15px 0 26px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.read-time::before {
  content: "◷ ";
}

.round-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  color: var(--white);
  background: var(--primary);
  border-radius: 50%;
  font-family: var(--sans);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(179, 18, 123, 0.2);
}

.article-card:nth-child(2) .round-arrow {
  background: var(--secondary);
}

.load-more {
  justify-self: center;
  min-width: 165px;
  margin-top: 28px;
  cursor: pointer;
}

.load-more:disabled {
  cursor: default;
  opacity: 1;
}

.load-more:disabled:hover {
  transform: none;
}

.pagination {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: -4px;
  font-family: var(--sans);
}

.pagination span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--muted);
  border: 1.5px solid var(--line);
  border-radius: 50%;
}

.pagination .is-current {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
}

.pagination b {
  font-weight: 500;
}

/* Personal notes */
.notes-hero h1 {
  max-width: 760px;
}

.notes-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.note-card {
  display: grid;
  min-height: 278px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(209, 161, 226, 0.78);
  border-top: 5px solid var(--tertiary-soft);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(73, 33, 89, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.note-card:nth-child(2n) {
  border-top-color: var(--primary-soft);
}

.note-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.note-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.note-topic {
  display: inline-flex;
  padding: 5px 11px;
  color: var(--tertiary);
  background: rgba(89, 198, 255, 0.2);
  border-radius: 999px;
  letter-spacing: 0.08em;
}

.note-card time,
.note-page-hero p {
  color: var(--muted);
}

.note-card time {
  font-family: var(--sans);
  font-size: 11px;
}

.note-card h2 {
  margin: 24px 0 0;
  font-size: clamp(22px, 2vw, 30px);
}

.note-card h2 a {
  text-decoration: none;
}

.note-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.note-tags button,
.note-tags a,
.note-tags span,
.note-tag-filter {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 28px;
  padding: 6px 11px;
  color: var(--primary);
  cursor: pointer;
  background: rgba(255, 166, 209, 0.18);
  border: 1px solid rgba(179, 18, 123, 0.14);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.note-tags span {
  cursor: default;
}

.note-tag-filter {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.45);
}

.note-tag-filter.is-active {
  color: var(--ink);
  background: var(--primary-soft);
}

.note-tag-filter small {
  color: inherit;
  font-size: 10px;
}

.note-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.note-link {
  align-self: end;
  justify-self: start;
  margin-top: 22px;
  color: var(--primary);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.note-page-hero {
  max-width: 900px;
  margin-inline: auto;
}

.note-page-hero p {
  max-width: 720px;
  margin: 0 0 10px;
  font-size: 17px;
}

.note-page-tags {
  margin-top: 18px;
}

.note-reference-box .note-tags {
  margin-top: 14px;
}

.note-reference-list span {
  color: var(--tertiary);
}

/* Home */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 0.78fr);
  gap: 72px;
  align-items: center;
  min-height: 620px;
  padding: 66px 0;
}

.home-copy h1 {
  max-width: 760px;
  font-size: clamp(32px, 4.8vw, 54px);
  font-weight: 700;
}

.home-copy h1 em,
.about-hero h1 em {
  color: var(--primary);
  font-style: italic;
}

.home-copy > p:not(.pill),
.about-hero > div > p:not(.pill) {
  max-width: 650px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: clamp(8px, 1.25vw, 16px);
  line-height: 1.7;
}

.pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  width: fit-content;
  margin: 0 0 26px;
  padding: 6px 14px;
  color: var(--secondary);
  background: var(--secondary-soft);
  border: 1px solid rgba(117, 75, 163, 0.18);
  border-radius: 999px;
}

.pill span {
  width: 7px;
  height: 7px;
  background: var(--secondary);
  border-radius: 50%;
}

.hero-actions {
  margin-top: 30px;
}

.hero-actions .button {
  min-height: 48px;
  padding-inline: 31px;
}

.home-portrait {
  position: relative;
  padding: 12px;
  background: var(--surface-high);
  border: 5px solid var(--surface-highest);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.home-portrait::before {
  position: absolute;
  inset: -20px;
  z-index: -1;
  content: "";
  background: rgba(255, 166, 209, 0.2);
  border-radius: 50%;
  filter: blur(22px);
}

.home-portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

.home-projects-band {
  padding: 72px 0;
  background: var(--surface-lowest);
}

.section-shell {
  padding: 72px 0;
}

.home-projects-band .section-shell {
  padding: 0;
}

.section-heading,
.lined-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 46px;
}

.section-heading {
  justify-content: space-between;
}

.section-heading h2,
.lined-heading h2,
.continue-reading h2,
.cta-panel h2,
.newsletter-cta h2 {
  font-size: clamp(25px, 4vw, 49px);
  font-weight: 700;
}

.soft-link {
  padding: 7px 16px;
  color: var(--primary);
  background: rgba(255, 166, 209, 0.2);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.featured-projects {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.featured-project {
  position: relative;
  min-height: 420px;
  padding: 40px;
  overflow: hidden;
  background: var(--surface-low);
  border: 1px solid var(--line);
  border-radius: 28px;
}

.featured-project-tall {
  border-top: 7px solid var(--secondary);
}

.project-tags {
  display: flex;
  gap: 8px;
  letter-spacing: 0;
  text-transform: none;
}

.project-tags span,
.mini-tags span {
  padding: 5px 12px;
  background: var(--surface-highest);
  border-radius: 999px;
}

.featured-project h3 {
  margin: 22px 0 14px;
  font-size: 28px;
}

.featured-project p {
  position: relative;
  z-index: 2;
  max-width: 500px;
  color: var(--muted);
  font-size: 14px;
}

.featured-project-wide img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  height: 44%;
  object-fit: cover;
  opacity: 0.18;
}

.project-action {
  position: absolute;
  bottom: 40px;
  left: 40px;
}

.featured-project-tall img {
  width: 100%;
  height: 170px;
  margin: 28px 0 20px;
  object-fit: cover;
  border-radius: 14px;
}

.project-detail {
  width: 100%;
}

.insights-section {
  padding: 62px 0 46px;
}

.insights-heading {
  justify-content: flex-start;
}

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

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

.mini-post img {
  width: 100%;
  aspect-ratio: 1.78;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(73, 33, 89, 0.08);
}

.mini-post a {
  display: block;
  height: 100%;
}

.mini-post-meta {
  display: flex;
  gap: 9px;
  margin: 22px 5px 0;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.mini-post h3 {
  min-height: 58px;
  margin: 14px 5px 0;
  font-size: clamp(10px, 1.8vw, 23px);
}

.mini-post p {
  min-height: 44px;
  margin: 12px 5px 0;
  color: var(--muted);
  font-size: clamp(7px, 1vw, 13px);
}

.mini-tags {
  display: flex;
  gap: 8px;
  margin: 14px 5px 0;
  color: var(--primary);
  letter-spacing: 0;
  text-transform: none;
}

.mini-tags span {
  background: rgba(255, 166, 209, 0.2);
}

.newsletter-cta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(360px, 0.9fr);
  gap: 50px;
  align-items: center;
  min-height: 300px;
  padding: 54px 80px;
  margin-bottom: 72px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, #c60d7d, #754ba3);
  border-radius: 130px;
}

.newsletter-cta::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image: radial-gradient(rgba(255,255,255,0.23) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.45;
}

.newsletter-cta > * {
  position: relative;
  z-index: 1;
}

.newsletter-cta p {
  max-width: 500px;
  font-size: 17px;
}

.newsletter-cta form {
  display: flex;
  padding: 7px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 999px;
}

.newsletter-cta label {
  flex: 1;
}

.newsletter-cta input {
  width: 100%;
  height: 44px;
  padding: 0 18px;
  color: var(--white);
  background: transparent;
  border: 0;
  outline: 0;
}

.newsletter-cta input::placeholder {
  color: rgba(255,255,255,0.85);
}

.newsletter-cta button {
  min-width: 102px;
  color: var(--primary);
  background: var(--white);
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
}

.newsletter-cta small {
  position: absolute;
  right: 105px;
  bottom: 58px;
  color: rgba(255,255,255,0.9);
}

/* About */
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 68px;
  align-items: center;
  padding: 56px 0 32px;
}

.about-hero h1 {
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 700;
}

.profile-orbit {
  padding: 9px;
  background: var(--surface-low);
  border: 8px solid var(--surface-high);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.profile-orbit img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

.lined-heading::after {
  flex: 1;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--line), transparent);
}

.stack-section {
  padding-top: 56px;
  padding-bottom: 52px;
}

.stack-section .lined-heading {
  margin-bottom: 28px;
}

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

.stack-card,
.stack-orb,
.philosophy-card,
.project-card {
  padding: 24px 26px;
  background: var(--surface-container);
  border: 1px solid var(--line);
}

.stack-card {
  min-height: 168px;
  border-radius: 34px;
  box-shadow: 0 10px 28px rgba(73, 33, 89, 0.08);
}

.stack-card:nth-child(2) {
  background: var(--secondary-soft);
}

.stack-card h3 {
  margin: 0 0 16px;
  color: var(--primary);
}

.stack-grid .tag-row {
  gap: 10px;
}

.tag-row span {
  padding: 6px 14px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid rgba(209,161,226,0.7);
  border-radius: 999px;
  box-shadow: 0 5px 12px rgba(73, 33, 89, 0.05);
}

.stack-card ul {
  display: grid;
  gap: 8px;
  padding-left: 0;
  margin: 0;
  color: var(--secondary);
  list-style: none;
}

.stack-card li {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(151, 106, 167, 0.18);
  border-radius: 999px;
}

.stack-grid > .stack-card {
  height: 100%;
}

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

.skill-tags li {
  max-width: 100%;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.about-background {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-block: 24px 48px;
}

.about-background h2 {
  font-size: 1.4rem;
  line-height: 1.4;
}

.about-background p,
.language-list dd {
  color: var(--muted);
}

.language-list {
  margin: 16px 0 0;
}

.language-list div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.language-list dd {
  margin: 0;
}

@media (max-width: 760px) {
  .about-background {
    grid-template-columns: minmax(0, 1fr);
  }
}

.stack-orb {
  display: flex;
  min-height: 168px;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  background: linear-gradient(135deg, var(--tertiary-soft), #8fdcff);
  border-color: rgba(0, 102, 140, 0.16);
  border-radius: 34px;
  box-shadow: 0 10px 28px rgba(0, 102, 140, 0.12);
}

.stack-orb strong {
  display: block;
  font-size: 21px;
}

.stack-orb span {
  max-width: 230px;
  margin-top: 14px;
  color: rgba(0,61,86,0.8);
}

.philosophy-card {
  padding: 24px 30px;
  margin-top: 16px;
  background: var(--surface-dim);
  border-radius: 34px;
  box-shadow: 0 12px 32px rgba(73, 33, 89, 0.08);
}

.philosophy-card h3,
.project-card h2 {
  font-size: 27px;
}

.philosophy-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.timeline-section {
  padding-top: 36px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 58px;
  max-width: 1180px;
  margin-inline: auto;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  content: "";
  background: linear-gradient(var(--primary-soft), var(--tertiary-soft));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  align-items: center;
}

.timeline-item::before {
  position: absolute;
  left: 50%;
  width: 28px;
  aspect-ratio: 1;
  content: "";
  background: var(--white);
  border: 5px solid var(--primary);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px var(--white);
  transform: translateX(-50%);
}

.timeline-item:nth-child(2)::before {
  border-color: var(--secondary);
}

.timeline-item:nth-child(3)::before {
  border-color: var(--tertiary);
}

.timeline-item div {
  text-align: right;
}

.timeline-item:nth-child(2n) div {
  order: 2;
  text-align: left;
}

.timeline-item span {
  display: inline-flex;
  padding: 5px 13px;
  color: var(--primary);
  background: rgba(255,166,209,0.25);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
}

.timeline-item h3 {
  margin-top: 10px;
  font-size: 24px;
}

.timeline-item strong {
  color: var(--secondary);
  font-size: 12px;
}

.timeline-item p {
  margin: 0;
  padding: 22px 28px;
  color: var(--muted);
  background: var(--surface-low);
  border: 1px solid var(--line);
  border-radius: 60px;
}

.cta-panel {
  padding: 72px 64px;
  margin-bottom: 72px;
  text-align: center;
  background: rgba(255,255,255,0.5);
  border: 4px solid var(--white);
  border-radius: 180px;
  box-shadow: var(--shadow);
}

.cta-panel p {
  max-width: 720px;
  margin: 22px auto;
  color: var(--muted);
}

.cta-panel .hero-actions {
  justify-content: center;
}

/* Article */
.post-hero {
  padding: 56px 0 32px;
}

.back-to-articles {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 26px;
  color: var(--primary);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.back-to-articles span {
  font-size: 18px;
  line-height: 1;
  transition: transform 180ms ease;
}

.back-to-articles:hover span,
.back-to-articles:focus-visible span {
  transform: translateX(-4px);
}

.post-hero h1 {
  max-width: 940px;
  margin: 12px 0;
  font-size: clamp(30px, 2.8vw, 40px);
  font-weight: 700;
  line-height: 1.08;
}

.post-kicker time {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
}

.author-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.author-row strong {
  color: var(--primary);
}

.avatar {
  display: grid;
  place-items: center;
  width: clamp(28px, 3.4vw, 44px);
  aspect-ratio: 1;
  color: var(--white);
  background: var(--ink);
  border: 2px solid var(--primary);
  border-radius: 50%;
  font-family: var(--sans);
  font-weight: 700;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

.post-hero > img {
  width: min(100%, 860px);
  height: clamp(240px, 30vw, 420px);
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.8fr);
  gap: 48px;
  padding: 18px 0 clamp(40px, 6.25vw, 80px);
}

.post-content {
  max-width: 830px;
  font-size: clamp(8px, 1.17vw, 15px);
  line-height: 1.4;
}

.post-content > p:first-child {
  font-size: clamp(9px, 1.25vw, 16px);
}

.post-content p {
  color: var(--muted);
}

.post-content h2 {
  margin: clamp(24px, 2.8vw, 36px) 0 12px;
  color: var(--primary);
  font-size: clamp(22px, 1.65vw, 26px);
}

.post-content h3 {
  margin: clamp(20px, 2.1vw, 28px) 0 10px;
  color: var(--primary);
  font-size: clamp(18px, 1.3vw, 21px);
}

.post-content blockquote {
  margin: clamp(18px, 2.35vw, 30px) 0;
  padding: clamp(14px, 1.9vw, 24px) clamp(16px, 2.2vw, 28px);
  color: var(--primary);
  background: rgba(255,166,209,0.16);
  border-left: 4px solid var(--primary);
  border-radius: 0 20px 20px 0;
  font-style: italic;
}

.post-content code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(6px, 0.9vw, 12px);
  line-height: 1.45;
}

.post-content p code,
.post-content li code {
  padding: 0.12em 0.34em;
  color: var(--primary);
  background: rgba(255, 166, 209, 0.16);
  border: 1px solid rgba(209, 161, 226, 0.55);
  border-radius: 7px;
}

.post-content pre {
  position: relative;
  overflow-x: auto;
  padding: clamp(18px, 1.8vw, 24px);
  color: #f8eefe;
  background: #21102b;
  border: 1px solid rgba(209, 161, 226, 0.42);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(73, 33, 89, 0.12);
}

.post-content pre[data-language] {
  padding-top: clamp(34px, 3vw, 42px);
}

.post-content pre[data-language]::before {
  position: absolute;
  top: 12px;
  right: 14px;
  content: attr(data-language);
  color: #f7b4d8;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-content pre code {
  display: block;
  min-width: max-content;
  color: inherit;
  white-space: pre;
}

.syntax-keyword {
  color: #ff8ac2;
}

.syntax-annotation {
  color: #8ddcff;
}

.syntax-type {
  color: #ffd36f;
}

.syntax-string {
  color: #b8ef9c;
}

.syntax-comment {
  color: #bba8c6;
  font-style: italic;
}

.syntax-number {
  color: #f0a7ff;
}

.post-content li {
  margin: 9px 0;
  color: var(--muted);
}

.post-aside {
  position: sticky;
  top: 100px;
  align-self: start;
  display: grid;
  gap: 26px;
  padding-left: 36px;
  border-left: 1px solid rgba(209,161,226,0.65);
}

.share-box,
.newsletter-box {
  padding: 24px;
}

.related-list {
  display: grid;
  gap: 8px;
}

.related-list h2 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.related-list a {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
}

.related-list a:hover {
  background: var(--surface-container);
}

.related-list span,
.related-list small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
  text-transform: uppercase;
}

.related-list span {
  color: var(--secondary);
  font-weight: 700;
}

.related-list strong {
  font-size: 13px;
  line-height: 1.25;
}

.share-box h2,
.newsletter-box h2 {
  margin-bottom: 16px;
}

.share-actions button,
.share-actions a {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--surface-container);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

.newsletter-box {
  background: var(--surface-high);
  border: 1px solid var(--line);
  border-left: 6px solid var(--primary);
  border-radius: 22px;
}

.newsletter-box p {
  color: var(--muted);
}

.newsletter-box input {
  width: 100%;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
}

.newsletter-box button {
  width: 100%;
  margin-top: 10px;
}

.continue-reading {
  padding: 42px 0;
  border-top: 1px solid rgba(209,161,226,0.5);
}

.continue-reading h2 {
  margin-bottom: 38px;
  font-size: 32px;
}

/* Projects and utility */
.project-grid {
  padding-bottom: 90px;
}

.project-card {
  border-radius: 30px;
}

.project-card h2 {
  margin-top: 20px;
}

.project-card p {
  color: var(--muted);
}

.project-card a {
  display: inline-flex;
  margin-top: 20px;
  color: var(--primary);
  font-weight: 700;
}

.project-card .project-tagline {
  color: var(--primary);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
}

.project-card .project-website {
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  text-decoration: none;
}

.project-card .project-website:hover {
  background: var(--secondary-soft);
}

.empty-state,
.empty-page,
.loading-state {
  padding: 90px 0;
}

.empty-state {
  padding: 50px;
  background: var(--surface-low);
  border: 1px solid var(--line);
  border-radius: 30px;
}

.empty-page h1,
.loading-state h1 {
  font-size: 56px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  min-height: 166px;
  padding: 42px max(16px, calc((100vw - var(--container)) / 2 + 16px));
  background: var(--surface-lowest);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.site-footer .brand {
  color: var(--ink);
}

.footer-links {
  justify-content: flex-end;
}

.footer-links a {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

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

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: auto minmax(280px, 1fr) auto;
  }

  .header-search {
    display: none;
  }

  .archive-layout {
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 24px;
  }

  .notes-list {
    grid-template-columns: 1fr;
  }

  .article-card {
    grid-template-columns: 205px minmax(0, 1fr) 42px;
    min-height: 222px;
    gap: 22px;
  }

  .article-image {
    width: 205px;
  }

  .home-hero,
  .about-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 38px;
  }

  .post-layout {
    grid-template-columns: minmax(0, 2fr) minmax(150px, 0.8fr);
    gap: 20px;
    padding-bottom: 24px;
  }

  .post-content {
    line-height: 1.25;
  }

  .post-aside {
    gap: 14px;
    padding-left: 16px;
  }

  .share-box,
  .newsletter-box {
    padding: 12px;
  }

  .share-actions {
    gap: 6px;
  }

  .share-actions button,
  .share-actions a {
    min-width: 30px;
    min-height: 28px;
    padding: 5px 7px;
  }

  .related-list a {
    padding: 7px;
  }

  .related-list strong {
    font-size: 10px;
  }

  .newsletter-box p {
    font-size: 8px;
  }

  .newsletter-box input {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 8px;
  }

  .newsletter-box button {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 8px;
  }

  .site-footer {
    min-height: 100px;
    padding-block: 16px;
  }

  .continue-reading {
    padding: 30px 0;
  }

  .continue-reading h2 {
    margin-bottom: 24px;
  }

  .continue-reading .mini-post h3 {
    min-height: 0;
    margin-top: 8px;
  }

  .continue-reading .mini-post p,
  .continue-reading .mini-tags {
    display: none;
  }
}

@media (min-width: 961px) {
  .site-header {
    height: 67px;
  }

  .site-header .brand {
    font-size: 26px;
  }
}

@media (max-width: 520px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 48px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: 22px;
    background: rgba(255,247,251,0.98);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

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

  .contact-button {
    min-width: 72px;
    padding-inline: 16px;
  }

  .archive-hero {
    padding: 48px 0 36px;
  }

  .archive-layout,
  .notes-list,
  .home-hero,
  .about-hero,
  .post-layout,
  .stack-grid,
  .featured-projects,
  .mini-post-grid,
  .project-grid,
  .philosophy-card,
  .timeline-item,
  .newsletter-cta,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .archive-sidebar,
  .post-aside {
    position: static;
  }

  .archive-sidebar {
    grid-template-columns: 1fr;
  }

  .sort-panel {
    display: none;
  }

  .notes-layout .sort-panel {
    display: block;
  }

  .category-list {
    display: flex;
    flex-wrap: wrap;
  }

  .category-filter {
    width: auto;
    gap: 15px;
  }

  .note-card {
    min-height: 0;
    padding: 20px;
  }

  .article-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 12px;
    border-radius: 34px;
  }

  .article-image {
    width: 100%;
    aspect-ratio: 1.55;
    border-radius: 24px;
  }

  .article-card-copy {
    padding: 14px 14px 0;
  }

  .round-arrow {
    justify-self: end;
    margin: 0 12px 12px;
  }

  .home-hero {
    min-height: 0;
    padding: 58px 0 80px;
  }

  .home-portrait {
    max-width: 430px;
    margin-inline: auto;
  }

  .featured-project-wide img {
    width: 60%;
  }

  .mini-post-grid {
    gap: 46px;
  }

  .newsletter-cta {
    gap: 26px;
    padding: 52px 34px 70px;
    border-radius: 56px;
  }

  .newsletter-cta small {
    right: auto;
    bottom: 38px;
    left: 34px;
  }

  .stack-orb {
    aspect-ratio: auto;
    min-height: 150px;
    border-radius: 34px;
  }

  .philosophy-card {
    border-radius: 34px;
  }

  .timeline::before,
  .timeline-item::before {
    display: none;
  }

  .timeline-item {
    gap: 18px;
  }

  .timeline-item div,
  .timeline-item:nth-child(2n) div {
    order: 0;
    text-align: left;
  }

  .post-hero > img {
    height: 220px;
  }

  .post-content {
    font-size: 16px;
    line-height: 1.7;
  }

  .post-content > p:first-child {
    font-size: 17px;
  }

  .post-content h2 {
    font-size: 24px;
  }

  .post-content h3 {
    font-size: 20px;
  }

  .post-aside,
  .post-aside p,
  .post-aside strong,
  .post-aside small,
  .newsletter-box p,
  .newsletter-box input,
  .newsletter-box button {
    font-size: 13px;
  }

  .post-aside {
    padding-left: 0;
    border-left: 0;
  }

  .cta-panel {
    padding: 56px 28px;
    border-radius: 54px;
  }

  .site-footer {
    justify-items: start;
  }

  .site-footer p {
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .home-copy h1,
  .about-hero h1 {
    font-size: 40px;
  }

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

  .hero-actions,
  .hero-actions .button,
  .load-more {
    width: 100%;
  }

  .newsletter-cta form {
    display: grid;
    gap: 8px;
    padding: 8px;
    border-radius: 24px;
  }

  .newsletter-cta button {
    min-height: 44px;
  }
}

/* Keep About content readable at every viewport size. */
.about-hero > div > p:not(.pill),
.timeline-section .timeline-item p,
.about-background p,
.about-background .language-list,
.stack-section .philosophy-card p {
  font-size: 1rem;
}

.about-hero .hero-actions .button,
.about-background + .cta-panel .button,
.timeline-section .timeline-item span,
.timeline-section .timeline-item strong,
.stack-section .stack-card h3 {
  font-size: 0.875rem;
}

/* Keep long code examples inside the article column at every viewport size. */
.post-content,
.post-aside {
  min-width: 0;
}

.post-content {
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.post-content > p:first-child {
  font-size: 1rem;
}

.post-content code {
  font-size: 0.875rem;
  line-height: 1.6;
}

.post-content pre {
  max-width: 100%;
  overflow-wrap: normal;
}

@media (max-width: 960px) {
  .header-search {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }
  .site-header {
    height: auto;
    padding-block: 12px;
  }
  .nav-links.is-open { top: 100%; }
}
