@font-face {
  font-family: Manrope;
  src: url('/assets/manrope.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: optional;
}
:root {
  --paper: #f5f5f7;
  --surface: #fff;
  --ink: #202024;
  --muted: #626269;
  --line: #dedee4;
  --blue: #6656b8;
  --accent: #6656b8;
  --soft: #ededf2;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.9);
  --edge: rgba(32, 32, 40, 0.1);
  --shadow: 0 4px 20px rgba(34, 34, 48, 0.035), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --heat0: #e8e9ed;
  --heat1: #c7e4d4;
  --heat2: #8ac7a6;
  --heat3: #4b9d71;
  --heat4: #286d49;
  --glow:
    radial-gradient(ellipse at 18% 0%, rgba(173, 168, 194, 0.16), transparent 42%),
    radial-gradient(ellipse at 92% 35%, rgba(207, 211, 223, 0.22), transparent 40%);
  color-scheme: light;
  font-family: Manrope, 'Segoe UI', sans-serif;
  font-size: 16px;
  scroll-padding-top: 100px;
}
:root[data-theme='dark'] {
  --paper: #000;
  --surface: #131313;
  --ink: #ededed;
  --muted: #aaa;
  --line: #2d2d2d;
  --blue: #c1b4f4;
  --accent: #c1b4f4;
  --soft: #1c1c1c;
  --glass: rgba(20, 20, 20, 0.78);
  --glass-border: rgba(255, 255, 255, 0.055);
  --edge: rgba(255, 255, 255, 0.1);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --heat0: #222;
  --heat1: #284236;
  --heat2: #396649;
  --heat3: #5c9d75;
  --heat4: #96cfa9;
  --glow:
    radial-gradient(ellipse at 18% 0%, rgba(255, 255, 255, 0.045), transparent 40%),
    radial-gradient(ellipse at 90% 35%, rgba(255, 255, 255, 0.025), transparent 35%);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #000;
    --surface: #131313;
    --ink: #ededed;
    --muted: #aaa;
    --line: #2d2d2d;
    --blue: #c1b4f4;
    --accent: #c1b4f4;
    --soft: #1c1c1c;
    --glass: rgba(20, 20, 20, 0.78);
    --glass-border: rgba(255, 255, 255, 0.055);
    --edge: rgba(255, 255, 255, 0.1);
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --heat0: #222;
    --heat1: #284236;
    --heat2: #396649;
    --heat3: #5c9d75;
    --heat4: #96cfa9;
    --glow:
      radial-gradient(ellipse at 18% 0%, rgba(255, 255, 255, 0.045), transparent 40%),
      radial-gradient(ellipse at 90% 35%, rgba(255, 255, 255, 0.025), transparent 35%);
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
.portfolio-site:has(.site-header) {
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}
.public-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}
.public-page > #main {
  flex: 1 0 auto;
  width: 100%;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--glow);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.3;
  letter-spacing: -0.035em;
  font-weight: 650;
}
h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
}
h2 {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 0.96rem;
  letter-spacing: -0.018em;
}
p {
  max-width: 72ch;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
::selection {
  background: #d8d2f3;
  color: #29233c;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button,
input,
textarea,
select {
  accent-color: var(--accent);
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1000px, calc(100% - 64px));
  margin-inline: auto;
}
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.glass {
  background: var(--surface);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow);
}
@supports (backdrop-filter: blur(20px)) {
  .glass {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(1.15);
    -webkit-backdrop-filter: blur(20px) saturate(1.15);
    border-top-color: var(--glass-border);
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  z-index: 100;
  top: -90px;
  left: 20px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 10px;
}
.skip:focus {
  top: 12px;
}
.muted {
  color: var(--muted);
}
.site-header {
  position: sticky;
  top: 20px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 216px;
  align-items: center;
  gap: 20px;
  width: min(520px, calc(100% - 128px));
  margin: 24px auto 0;
  padding: 9px 12px;
  border-radius: 18px;
  height: 64px;
  min-height: 64px;
}
.header-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}
.header-photo {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: cover;
  border-radius: 11px;
}
.header-name > span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-name:hover {
  text-decoration: none;
}
.back-to-top {
  position: fixed;
  z-index: 30;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 4px 18px #0002;
}
.back-to-top[hidden] {
  display: none;
}
.back-to-top:hover {
  background: var(--soft);
}
.back-to-top .icon {
  width: 18px;
  height: 18px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.78rem;
  font-weight: 650;
}
.wordmark:hover {
  text-decoration: none;
}
.brand-mark {
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.12em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}
.site-header nav {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  padding-left: 0;
  border-left: 0;
  flex: 1 1 auto;
  justify-content: space-between;
}

.site-header nav > a {
  position: relative;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px;
  border-radius: 8px;
  min-height: 44px;
}
.site-header nav > a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  transform: translateX(-50%);
}
.site-header nav > a:hover {
  color: var(--accent);
  text-decoration: none;
}
.site-header nav > a[aria-current] {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.site-header nav > a[aria-current]::after {
  opacity: 1;
}
.header-menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
}
.header-menu-toggle:is(:hover, [aria-expanded='true']) {
  background: var(--soft);
}
.header-menu-toggle .icon {
  width: 20px;
  height: 20px;
}
.header-menu-toggle .icon:last-child,
.header-menu-toggle[aria-expanded='true'] .icon:first-child {
  display: none;
}
.header-menu-toggle[aria-expanded='true'] .icon:last-child {
  display: block;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
}
.icon-button:hover {
  background: var(--soft);
  color: var(--ink);
  text-decoration: none;
}
.theme-toggle {
  margin-left: 6px;
  border: 1px solid var(--edge);
  background: var(--glass);
}
.theme-toggle .icon {
  width: 16px;
  height: 16px;
}
.public-page > .site-theme-toggle {
  position: fixed;
  z-index: 31;
  right: max(16px, env(safe-area-inset-right));
  top: max(16px, env(safe-area-inset-top));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}
.site-theme-toggle::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.65;
  transition: opacity 140ms ease;
}
.site-theme-toggle .theme-glyph {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 8px #0001;
  opacity: 0;
  transform: scale(0.75);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}
.site-theme-toggle:is(:hover, :focus-visible)::before {
  opacity: 0;
}
.site-theme-toggle:is(:hover, :focus-visible) .theme-glyph {
  opacity: 1;
  transform: scale(1);
}
.site-theme-toggle .icon {
  width: 18px;
  height: 18px;
}
.site-theme-toggle span {
  display: flex;
}
.site-theme-toggle .theme-sun {
  display: flex;
}
.site-theme-toggle .theme-moon {
  display: none;
}
:root[data-theme='dark'] .site-theme-toggle .theme-sun {
  display: none;
}
:root[data-theme='dark'] .site-theme-toggle .theme-moon {
  display: flex;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .site-theme-toggle .theme-sun {
    display: none;
  }
  :root:not([data-theme='light']) .site-theme-toggle .theme-moon {
    display: flex;
  }
}
.theme-mark {
  display: block;
  position: relative;
  width: 32px;
  height: 32px;
}
@media (prefers-reduced-motion: no-preference) {
  /* Animate the live content: document snapshots disable link hit-testing. */
  #main {
    animation: page-enter 180ms ease backwards;
  }
}
@keyframes page-enter {
  from {
    opacity: 0;
  }
}
.mark-toggle:hover .theme-mark {
  transform: translateY(-1px);
}
.mark-toggle:active .theme-mark {
  transform: scale(0.94);
}
.theme-mark img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.theme-mark .mark-dark {
  display: none;
}
:root[data-theme='dark'] .mark-light {
  display: none;
}
:root[data-theme='dark'] .mark-dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .mark-light {
    display: none;
  }
  :root:not([data-theme='light']) .mark-dark {
    display: block;
  }
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transition:
    background 0.16s,
    box-shadow 0.16s;
}
.button:hover {
  text-decoration: none;
}
.button .icon {
  width: 16px;
  height: 16px;
}
.primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.primary:hover {
  opacity: 0.85;
}
.secondary {
  background: var(--glass);
  border-color: var(--edge);
  box-shadow: var(--shadow);
}
.secondary:hover {
  background: var(--soft);
}
.plain {
  background: transparent;
}
.plain:hover {
  background: var(--soft);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 550;
}
.text-link .icon {
  width: 15px;
  height: 15px;
}
.profile-hero {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0 26px;
  padding-block: 68px 54px;
}
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 25px;
  background: var(--soft);
  padding: 5px;
  box-shadow:
    0 0 0 1px var(--edge),
    var(--shadow);
  grid-row: 1/3;
  align-self: start;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.profile-avatar > span {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 2.4rem;
  font-weight: 750;
}
.profile-identity h1 {
  margin-top: 0;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
}
.profile-role {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 6px;
}
.profile-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 8px;
}
.location-dot {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  opacity: 0.6;
}
.profile-intro {
  grid-column: 2;
  max-width: 680px;
  margin-top: 23px;
}
.profile-intro > p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.85;
}
.about-details {
  margin-top: 10px;
  font-size: 0.83rem;
  color: var(--muted);
}
.about-details > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
}
.about-details > summary::-webkit-details-marker {
  display: none;
}
.about-details .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.18s;
}
.about-details[open] .icon {
  transform: rotate(180deg);
}
.about-details > p {
  padding: 12px 0 8px;
  line-height: 1.85;
}
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 21px;
}
.availability {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 18px;
}
.availability > span {
  height: 6px;
  width: 6px;
  background: var(--heat3);
  border-radius: 50%;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 19px;
}
.section-heading > .text-link,
.section-heading > div + .text-link {
  margin-left: auto;
}
.section-heading > div > p {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}
.section-count {
  font-size: 0.66rem;
  font-weight: 550;
  min-width: 23px;
  line-height: 23px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  text-align: center;
}
.work-section,
.writing-section,
.activity-section,
.credentials-section {
  padding-bottom: 42px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.project-card {
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  overflow: hidden;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 var(--glass-border);
}
.project-visual {
  flex-shrink: 0;
  height: 136px;
  position: relative;
  background: var(--soft);
  border-bottom: 1px solid var(--edge);
  margin: 7px 7px 0;
  border-radius: 9px;
  overflow: hidden;
}
.project-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.project-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--soft), var(--glass));
  color: var(--muted);
}
.project-glyph {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--glass);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}
.project-glyph .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.4;
}
.project-caption {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 13px 15px 15px;
}
.project-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 9px;
}
.project-title h3 {
  font-size: 0.85rem;
  line-height: 1.5;
  font-weight: 650;
  min-height: 26px;
  padding-top: 2px;
}
.project-title > .icon-button {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}
.project-title .icon {
  width: 14px;
  height: 14px;
}
.project-summary {
  font-size: 0.73rem;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 7px;
  min-height: 58px;
}
.project-detail {
  font-size: 0.73rem;
  color: var(--muted);
  margin-top: 4px;
}
.project-detail summary {
  font-size: 0.65rem;
  cursor: pointer;
  min-height: 26px;
  display: list-item;
  width: fit-content;
}
.project-detail > p {
  padding-block: 8px;
}
.project-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tags > span {
  font-size: 0.58rem;
  line-height: 1.5;
  padding: 3px 6px;
  background: var(--soft);
  color: var(--muted);
  border-radius: 4px;
}
.source-link {
  color: var(--muted);
  display: flex;
  width: 27px;
  height: 27px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 6px;
}
.source-link:hover {
  background: var(--soft);
}
.source-link .icon {
  width: 15px;
  height: 15px;
}
.subsection-title {
  margin-block: 30px 16px;
  font-size: 0.95rem;
}
.preview-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface);
  border: 1px solid var(--edge);
  color: var(--ink);
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 0.68rem;
  border-radius: 8px;
  min-height: 36px;
  padding: 7px 10px;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.preview-button .icon {
  width: 14px;
  height: 14px;
}
.preview-help {
  position: absolute;
  bottom: 5px;
  left: 6px;
  right: 6px;
  font-size: 0.55rem;
  text-align: center;
  line-height: 1.3;
  color: var(--muted);
  background: var(--surface);
  padding: 3px;
  border-radius: 4px;
}
.project-visual iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.writing-panel {
  border-radius: 15px;
  padding: 2px 22px;
}
.article-row {
  display: flex;
  align-items: center;
  gap: 17px;
  padding-block: 22px;
  border-bottom: 1px solid var(--edge);
}
.article-row:last-child {
  border-bottom: 0;
}
.article-symbol {
  width: 39px;
  height: 44px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--muted);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.article-info {
  flex: 1;
  min-width: 0;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.66rem;
  color: var(--muted);
}
.article-meta > span {
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.article-row h3 {
  font-size: 0.9rem;
  margin-top: 4px;
}
.article-thumbnail {
  width: 64px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.article-row p {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 5px;
}
.activity-panel {
  padding: 23px 26px;
  border-radius: 15px;
}
.activity-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.activity-summary p {
  font-size: 0.73rem;
  color: var(--muted);
}
.activity-summary strong {
  font-size: 1.5rem;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.04em;
  margin-right: 7px;
}
.activity-summary strong span {
  font-size: 0.8rem;
  font-weight: 550;
  letter-spacing: 0;
}
.activity-summary > span {
  font-size: 0.69rem;
  color: var(--muted);
}
.heat-scroll {
  overflow: auto;
  padding-block: 7px 9px;
}
.heat-body {
  display: flex;
  gap: 10px;
  min-width: 780px;
}
.heat-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 10px);
  grid-auto-columns: 10px;
  gap: 4px;
  width: max-content;
  min-width: 0;
}
.heat-cell {
  display: block;
  position: relative;
  border-radius: 2px;
  background: var(--heat0);
}
.heat-cell:hover,
.heat-cell:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.heat-days {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 27px;
  font-size: 9px;
  flex-shrink: 0;
  padding-top: 10px;
  color: var(--muted);
}
.heat-months {
  margin-left: 37px;
  display: grid;
  grid-template-columns: repeat(54, 10px);
  gap: 4px;
  min-width: 780px;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 6px;
}
.level-0 {
  background: var(--heat0);
}
.level-1 {
  background: var(--heat1);
}
.level-2 {
  background: var(--heat2);
}
.level-3 {
  background: var(--heat3);
}
.level-4 {
  background: var(--heat4);
}
.heat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 15px;
  font-size: 0.6rem;
  color: var(--muted);
}
.heat-legend {
  display: flex;
  align-items: center;
  gap: 4px;
}
.heat-legend i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
}
.activity-unavailable {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 20px;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--glass);
}
.linkedin-certifications-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border-radius: 15px;
}
.credentials-panel + .linkedin-certifications-card {
  margin-top: 14px;
}
.linkedin-certifications-card:hover {
  text-decoration: none;
  border-color: var(--accent);
}
.linkedin-certifications-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #0a66c2;
  color: #fff;
}
.linkedin-certifications-icon .icon {
  width: 24px;
  height: 24px;
}
.linkedin-certifications-card h3 {
  font-size: 0.92rem;
  font-weight: 650;
}
.linkedin-certifications-card p {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.7;
}
.linkedin-certifications-action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
}
.linkedin-certifications-action .icon {
  width: 16px;
  height: 16px;
}
@media (max-width: 620px) {
  .linkedin-certifications-card {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 20px;
  }
  .linkedin-certifications-icon {
    width: 40px;
    height: 40px;
  }
  .linkedin-certifications-action {
    grid-column: 2;
  }
}
.credentials-panel {
  border-radius: 15px;
  padding: 0 24px;
}
.timeline-row {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  gap: 14px;
  padding-block: 22px;
  border-bottom: 1px solid var(--edge);
}
.timeline-row:last-child {
  border: 0;
}
.timeline-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--soft);
  color: var(--muted);
}
.timeline-icon .icon {
  width: 16px;
  height: 16px;
}
.timeline-row h3 {
  font-size: 0.85rem;
  line-height: 1.55;
}
.timeline-row p {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 3px;
}
.timeline-row .detail {
  font-size: 0.73rem;
  margin-top: 8px;
}
.timeline-date {
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 2px;
}
.timeline-date span {
  display: block;
  white-space: normal;
  margin-top: 5px;
}
.publication {
  padding-block: 22px;
  border-bottom: 1px solid var(--edge);
}
.publication:last-child {
  border: 0;
}
.publication p {
  font-size: 0.78rem;
  color: var(--muted);
  margin-block: 5px;
}
.publication h3 {
  font-size: 0.9rem;
}
.contact-section {
  padding-block: 12px 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.contact-section p {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 7px;
}
.contact-link {
  font-size: 0.75rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
}
.contact-link .icon {
  width: 15px;
  height: 15px;
}
.contact-trigger {
  gap: 14px;
  min-height: 44px;
  padding-inline: 16px;
}
.contact-method-icons {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-left: 13px;
  border-left: 1px solid currentColor;
}
.contact-method-icons .icon {
  width: 14px;
  height: 14px;
}
.contact-dialog {
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 34px;
  border: 1px solid var(--edge);
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 100px rgba(0, 0, 0, 0.22);
  overflow: auto;
  overscroll-behavior: contain;
}
.contact-dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  overflow: hidden;
  overscroll-behavior: contain;
}
.contact-close-form {
  position: absolute;
  top: 14px;
  right: 14px;
}
.contact-close {
  width: 40px;
  height: 40px;
}
.contact-close .icon {
  width: 18px;
  height: 18px;
}
.contact-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 20px;
}
.contact-identity img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--edge);
}
.contact-name {
  font-size: 0.85rem;
  font-weight: 650;
}
.contact-location {
  font-size: 0.73rem;
  color: var(--muted);
  margin-top: 2px;
}
.contact-details > h1,
.contact-details > h2 {
  font-size: 1.8rem;
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1.25;
  margin-top: 28px;
}
.contact-details > h2:focus {
  outline: none;
}
.contact-intro,
.contact-empty {
  color: var(--muted);
  font-size: 0.83rem;
  margin-top: 9px;
}
.contact-methods {
  list-style: none;
  padding: 0;
  margin: 25px 0 0;
}
.contact-methods li + li {
  border-top: 1px solid var(--edge);
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 8px;
  border-radius: 10px;
  color: var(--ink);
}
.contact-method:hover {
  background: var(--soft);
  color: var(--ink);
  text-decoration: none;
}
.contact-method-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--glass);
}
.contact-method-symbol .icon {
  width: 18px;
  height: 18px;
}
.contact-method-copy {
  flex: 1;
  min-width: 0;
}
.contact-method-copy strong,
.contact-method-copy > span {
  display: block;
}
.contact-method-copy strong {
  font-size: 0.83rem;
  font-weight: 650;
}
.contact-method-copy > span {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.contact-method > .icon {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  color: var(--muted);
}
.contact-resume {
  margin-top: 18px;
}
.contact-page {
  display: grid;
  place-items: center;
  width: min(560px, calc(100% - 40px));
  min-height: 100vh;
  min-height: 100dvh;
  padding-block: 48px;
}
.contact-card {
  width: 100%;
  padding: 36px;
  border-radius: 28px;
}
.contact-view {
  --muted: #b6b5c5;
  --edge: rgba(255, 255, 255, 0.12);
  min-height: 100vh;
  min-height: 100dvh;
  background: #080910;
}
.contact-view::before {
  background:
    radial-gradient(ellipse at 15% 18% in oklab, rgba(83, 73, 155, 0.7), transparent 55%),
    radial-gradient(ellipse at 88% 78% in oklab, rgba(106, 54, 104, 0.55), transparent 52%),
    radial-gradient(ellipse at 20% 90% in oklab, rgba(34, 93, 101, 0.4), transparent 48%);
  filter: blur(64px);
}
.contact-view .contact-card {
  background: #15151f;
  border: 1px solid var(--edge);
  box-shadow:
    0 24px 90px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
@supports (backdrop-filter: blur(28px)) {
  .contact-view .contact-card {
    background: rgba(17, 18, 30, 0.66);
    backdrop-filter: blur(28px);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .contact-view .contact-card {
    background: #15151f;
    backdrop-filter: none;
  }
}
@media (forced-colors: active) {
  .contact-view::before {
    display: none;
  }
  .contact-view .contact-card {
    background: Canvas;
    border-color: CanvasText;
  }
}
@media (max-width: 540px) {
  .contact-dialog {
    padding: 28px 20px 22px;
  }
  .contact-card {
    padding: 28px 20px;
  }
  .contact-method {
    gap: 10px;
    padding-inline: 4px;
  }
  .contact-page {
    padding-block: 24px;
  }
}
.site-footer {
  padding-block: 22px 24px;
  border-top: 1px solid var(--edge);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 12px;
  margin-top: auto;
  color: var(--ink);
  color: light-dark(#000, #fff);
  font-size: 0.66rem;
  text-align: right;
}
.site-footer > p {
  white-space: nowrap;
}
.page-heading {
  padding-block: 50px 30px;
}
.page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.page-heading h1 {
  font-size: 2.2rem;
  margin-block: 18px 9px;
}
.page-heading p {
  font-size: 0.85rem;
  color: var(--muted);
}
.page-heading > .button {
  margin-top: 20px;
}
.article-list {
  padding-bottom: 55px;
}
.article-page {
  max-width: 740px;
  padding-block: 45px 60px;
}
.article-page > header {
  margin-top: 28px;
}
.article-page h1 {
  margin-top: 17px;
  line-height: 1.3;
  max-width: 25ch;
}
.article-deck {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 18px;
}
.byline {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 18px;
}
.article-cover {
  width: 100%;
  height: auto;
  margin-top: 25px;
  border-radius: 13px;
}
.prose {
  margin-top: 35px;
  font-size: 0.96rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.prose > * + * {
  margin-top: 1.2em;
}
.prose h2 {
  font-size: 1.5rem;
  margin-top: 1.8em;
}
.prose h3 {
  font-size: 1.2rem;
  margin-top: 1.6em;
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.prose audio,
.prose video {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-block: 1.5em;
}
.prose blockquote {
  border-left: 3px solid var(--line);
  margin-inline: 0;
  padding-left: 20px;
  color: var(--muted);
}
.prose code {
  font-size: 0.85em;
  background: var(--soft);
  padding: 2px 5px;
  border-radius: 4px;
}
.prose pre {
  background: #141414;
  color: #ededed;
  border: 1px solid #303030;
  border-radius: 10px;
  overflow: auto;
  padding: 20px;
  line-height: 1.7;
}
.prose pre code {
  background: transparent;
  padding: 0;
}
.prose table {
  display: block;
  max-width: 100%;
  overflow: auto;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 8px 13px;
}
.prose eqn {
  display: block;
  overflow: auto;
  text-align: center;
}
.prose .katex {
  font-size: 1.1em;
}
.repo-section {
  padding-bottom: 50px;
}
.repo-toolbar {
  margin: 0 auto 32px;
  max-inline-size: 720px;
}
.repo-index {
  padding-block: clamp(28px, 5vh, 52px) 50px;
}
.repo-identity {
  margin-bottom: 26px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.repo-identity a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
}
.repo-identity a:hover {
  color: var(--muted);
  text-decoration: none;
}
.repo-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: center;
  border-radius: 13px;
  padding: 5px;
}
.repo-search-controls > .search-field {
  background: transparent;
  border: 0;
  border-radius: 8px;
  flex: none;
}
.repo-search-controls .language-filter {
  min-inline-size: 0;
  border-inline-start: 1px solid var(--edge);
  padding-inline-start: 5px;
}
.repo-search-controls .language-filter select {
  inline-size: 100%;
  max-inline-size: none;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
}
#repo-language option {
  color: var(--ink);
  background: var(--surface);
}
@supports (appearance: base-select) {
  #repo-language,
  #repo-language::picker(select) {
    appearance: base-select;
  }
  #repo-language {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    white-space: nowrap;
  }
  #repo-language::picker-icon {
    color: var(--muted);
  }
  #repo-language::picker(select) {
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--edge);
    border-radius: 12px;
    padding: 5px;
    margin-block-start: 8px;
    min-inline-size: 200px;
    max-inline-size: calc(100dvi - 32px);
    max-block-size: min(360px, 60dvb);
    overflow: auto;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
    font: inherit;
    font-size: 0.8rem;
  }
  #repo-language option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-block-size: 38px;
    padding: 8px 12px;
    border-radius: 7px;
    cursor: pointer;
  }
  #repo-language option:checked,
  #repo-language option:hover,
  #repo-language option:focus-visible {
    color: var(--ink);
    background: var(--soft);
  }
  #repo-language option:checked {
    font-weight: 650;
  }
  #repo-language option::checkmark {
    order: 1;
    margin-inline-start: auto;
    color: var(--ink);
  }
}
.repo-toolbar .repo-count {
  min-width: 0;
  max-width: none;
  text-align: center;
  margin-top: 13px;
}
.repo-card:hover {
  text-decoration: none;
  border-color: var(--muted);
}
.repo-card:hover h2,
.repo-card:focus-visible h2 {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: 13px;
  flex: 1;
  min-width: 0;
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: 10px;
}
.search-field .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.search-field input {
  min-width: 0;
  width: 100%;
  height: 44px;
  font-size: 0.8rem;
  background: none;
  border: 0;
  outline-offset: 0;
}
.language-filter select {
  min-height: 44px;
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.78rem;
  max-width: 200px;
}
.repo-count {
  font-size: 0.69rem;
  color: var(--muted);
  min-width: 100px;
  text-align: right;
}
.cache-note {
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.repo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.repo-card {
  border-radius: 13px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.repo-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  color: var(--muted);
}
.repo-state {
  font-size: 0.56rem;
  padding: 3px 6px;
  background: var(--soft);
  border-radius: 4px;
  margin-left: 4px;
}
.repo-card h2 {
  font-size: 0.85rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.repo-card p {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 8px;
  flex: 1;
  overflow-wrap: anywhere;
}
.repo-card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.61rem;
  color: var(--muted);
  margin-top: 22px;
}
.repo-card-bottom > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.repo-card-bottom .icon {
  width: 12px;
  height: 12px;
}
.language-dot {
  height: 6px;
  width: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 2px;
}
.empty-state {
  padding: 40px 25px;
  text-align: center;
  border-radius: 13px;
  background: var(--glass);
}
.empty-state h2 {
  font-size: 1.05rem;
}
.empty-state p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 12px auto;
}
.private-page {
  max-width: 650px;
  padding-block: 60px 90px;
}
.private-panel {
  border-radius: 20px;
  padding: 35px;
}
.private-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--edge);
  background: var(--soft);
  border-radius: 13px;
  margin-bottom: 22px;
}
.private-page h1 {
  font-size: 1.9rem;
  margin-bottom: 16px;
}
.private-page p {
  font-size: 0.85rem;
  color: var(--muted);
}
.access-note {
  background: var(--soft);
  padding: 20px;
  border-radius: 12px;
  margin-block: 25px;
}
.access-note h2 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.access-note p {
  margin: 0;
}
.private-page .button {
  margin-top: 15px;
}
@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-visual {
    height: 150px;
  }
  .repo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-section {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 600px) {
  :root {
    scroll-padding-top: 100px;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .site-header {
    top: 12px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 36px 44px;
    width: calc(100% - 84px);
    margin: 12px 68px 0 16px;
    padding: 8px 10px;
    border-radius: 18px;
    gap: 0;
    height: 98px;
    min-height: 98px;
  }
  .site-header .header-name {
    min-height: 36px;
    font-size: 0.8rem;
    gap: 8px;
  }
  .header-photo {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 10px;
  }
  .public-page:has(.site-header[data-navigation-ready]) {
    padding-top: 76px;
  }
  .site-header[data-navigation-ready] {
    position: fixed;
    left: 16px;
    width: calc(100% - 32px);
    margin: 0;
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    grid-template-rows: 44px;
    gap: 4px;
    height: 64px;
    min-height: 64px;
    padding-block: 9px;
    overflow: clip;
  }
  .site-header[data-navigation-open] {
    height: auto;
  }
  @supports (interpolate-size: allow-keywords) {
    .site-header[data-navigation-ready] {
      interpolate-size: allow-keywords;
      transition: height 180ms ease;
    }
  }
  .site-header > .site-theme-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
  }
  .site-header > .site-theme-toggle .theme-glyph {
    display: none;
  }
  .site-header > .site-theme-toggle:is(:hover, :focus-visible)::before {
    opacity: 0.65;
  }
  .site-header[data-navigation-ready] .header-name {
    min-height: 44px;
  }
  .site-header[data-navigation-ready] nav {
    grid-column: 1 / -1;
    width: auto;
    max-height: calc(100dvh - 104px);
    overflow-y: auto;
    overscroll-behavior: contain;
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    margin-top: 4px;
    padding: 8px 0 0;
    border-top: 1px solid var(--edge);
  }
  .site-header[data-navigation-ready] nav > a {
    justify-items: start;
    padding-inline: 14px;
  }
  .site-header[data-navigation-ready] nav > a[aria-current] {
    background: var(--soft);
  }
  .site-header[data-navigation-ready] nav > a::after {
    display: none;
  }
  .wordmark {
    font-size: 0.72rem;
  }
  .brand-mark {
    font-size: 1.4rem;
    width: 23px;
  }
  .site-header nav {
    gap: 4px;
    padding-left: 0;
  }
  .site-header nav > a {
    font-size: 0.82rem;
    padding: 8px;
    min-height: 44px;
  }
  .site-footer {
    padding-inline-end: 64px;
  }
  .profile-hero {
    padding-block: 38px 33px;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 0 18px;
  }
  .profile-avatar {
    width: 68px;
    height: 68px;
    border-radius: 19px;
    padding: 4px;
    grid-row: 1;
  }
  .profile-avatar img {
    border-radius: 15px;
  }
  .profile-identity h1 {
    font-size: 1.4rem;
  }
  .profile-role {
    font-size: 0.78rem;
    margin-top: 4px;
  }
  .profile-location {
    font-size: 0.65rem;
    margin-top: 4px;
  }
  .profile-intro {
    grid-column: 1/-1;
    margin-top: 22px;
  }
  .profile-intro > p {
    font-size: 0.83rem;
  }
  .profile-links {
    gap: 7px;
    margin-top: 17px;
  }
  .profile-links .button {
    font-size: 0.71rem;
    padding: 8px 12px;
  }
  .work-section,
  .writing-section,
  .activity-section,
  .credentials-section {
    padding-bottom: 32px;
  }
  .section-heading {
    margin-bottom: 14px;
  }
  .section-heading h2 {
    font-size: 1.1rem;
  }
  .section-heading > div > p {
    font-size: 0.69rem;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .project-visual {
    height: 103px;
    margin: 5px 5px 0;
    border-radius: 8px;
  }
  .project-card {
    border-radius: 12px;
  }
  .project-caption {
    padding: 10px;
  }
  .project-title h3 {
    font-size: 0.72rem;
    line-height: 1.5;
  }
  .project-title {
    gap: 3px;
  }
  .project-title > .icon-button {
    width: 22px;
    height: 22px;
  }
  .project-title .icon {
    width: 12px;
    height: 12px;
  }
  .project-summary {
    font-size: 0.65rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: clip;
    min-height: 51px;
  }
  .project-detail summary {
    font-size: 0.6rem;
  }
  .project-detail > p {
    font-size: 0.68rem;
  }
  .project-bottom {
    gap: 3px;
    margin-top: 10px;
  }
  .tags {
    gap: 4px;
  }
  .tags > span {
    font-size: 0.52rem;
    padding: 2px 4px;
  }
  .source-link {
    width: 22px;
    height: 22px;
  }
  .source-link .icon {
    width: 13px;
    height: 13px;
  }
  .preview-button {
    font-size: 0.6rem;
    padding: 6px;
    gap: 4px;
  }
  .preview-button .icon {
    display: none;
  }
  .preview-help {
    font-size: 0.48rem;
  }
  .writing-panel {
    padding-inline: 15px;
  }
  .article-row {
    gap: 11px;
    padding-block: 17px;
  }
  .article-symbol {
    width: 30px;
    height: 34px;
    border-radius: 8px;
  }
  .article-symbol .icon {
    width: 14px;
    height: 14px;
  }
  .article-row h3 {
    font-size: 0.79rem;
  }
  .article-row p {
    font-size: 0.69rem;
  }
  .article-meta {
    font-size: 0.59rem;
    gap: 8px;
  }
  .article-meta > span {
    padding-left: 8px;
  }
  .article-row > .icon-button {
    width: 26px;
    height: 26px;
  }
  .activity-panel {
    padding: 18px 16px;
  }
  .activity-summary {
    gap: 10px;
    margin-bottom: 15px;
  }
  .activity-summary p {
    font-size: 0.64rem;
  }
  .activity-summary strong {
    font-size: 1.25rem;
  }
  .activity-summary > span {
    font-size: 0.62rem;
    white-space: nowrap;
  }
  .heat-footer {
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.55rem;
  }
  .credentials-panel {
    padding-inline: 16px;
  }
  .timeline-row {
    grid-template-columns: 29px minmax(0, 1fr);
    gap: 10px;
    padding-block: 17px;
  }
  .timeline-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
  .timeline-icon .icon {
    width: 14px;
    height: 14px;
  }
  .timeline-row h3 {
    font-size: 0.78rem;
  }
  .timeline-row p {
    font-size: 0.69rem;
  }
  .timeline-date {
    grid-column: 2;
    font-size: 0.63rem;
    margin-top: -5px;
  }
  .timeline-date span {
    display: inline;
    margin-left: 8px;
  }
  .contact-section {
    padding-block: 0 30px;
    gap: 10px;
  }
  .contact-section p,
  .contact-link {
    font-size: 0.71rem;
  }
  .site-footer {
    align-items: center;
    flex-direction: row;
    gap: 15px;
    padding-block: 20px;
    font-size: 0.61rem;
  }
  .page-heading {
    padding-block: 30px 24px;
  }
  .page-title-row {
    align-items: start;
    flex-wrap: wrap;
    gap: 15px;
  }
  .page-heading h1 {
    font-size: 1.8rem;
  }
  .page-heading p {
    font-size: 0.79rem;
  }
  .repo-search-controls {
    grid-template-columns: minmax(0, 1fr) 132px;
    padding: 4px;
  }
  .repo-search-controls > .search-field {
    padding-inline: 9px;
    gap: 7px;
  }
  .repo-identity {
    margin-bottom: 21px;
  }
  .search-field {
    flex-basis: 100%;
  }
  .language-filter {
    flex: 1;
  }
  .language-filter select {
    width: 100%;
    max-width: none;
  }
  .repo-grid {
    grid-template-columns: 1fr;
  }
  .repo-card {
    padding: 18px;
  }
  .article-page {
    padding-top: 28px;
  }
  .article-page h1 {
    font-size: 1.8rem;
  }
  .article-deck {
    font-size: 0.9rem;
  }
  .prose {
    font-size: 0.9rem;
  }
  .private-page {
    padding-block: 35px 60px;
  }
  .private-panel {
    padding: 24px;
  }
  .private-page h1 {
    font-size: 1.6rem;
  }
}
@media (max-width: 360px) {
  .site-header {
    justify-content: center;
  }
  .site-header > .wordmark {
    display: none;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-visual {
    height: 130px;
  }
  .project-caption {
    padding: 13px;
  }
  .project-title h3 {
    font-size: 0.85rem;
  }
  .project-summary {
    font-size: 0.73rem;
    min-height: 0;
    display: block;
  }
  .project-bottom .tags > span {
    font-size: 0.59rem;
  }
  .profile-identity h1 {
    font-size: 1.2rem;
  }
  .activity-summary strong {
    display: block;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .glass {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body::before {
    display: none;
  }
}
@media (prefers-contrast: more) {
  .glass {
    background: var(--surface);
    border-color: var(--muted);
    backdrop-filter: none;
  }
  .tags > span {
    border: 1px solid var(--muted);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
