:root {
  --bg: #fafafa;
  --text: #111111;
  --muted: #717171;
  --muted-strong: #5e5e5e;
  --chip: #ebebf2;
  --avatar-bg: #a5a5b81a;
  --icon: #808080;
  --line: rgba(17, 17, 17, 0.1);
  --toggle-track: #ebebf2;
  --toggle-thumb: #ffffff;
}

body.theme-dark {
  --bg: #111111;
  --text: #ffffff;
  --muted: #a1a1a1;
  --muted-strong: #717171;
  --chip: #1f1f1f;
  --avatar-bg: #ffffff1a;
  --icon: #717171;
  --line: rgba(255, 255, 255, 0.1);
  --toggle-track: #2a2a2f;
  --toggle-thumb: #ffffff;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 160px 0;
}

.shell {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-top {
  display: flex;
  align-items: center;
}

.hero-spacer {
  flex: 1;
  min-width: 16px;
}

.avatar-card {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  background: var(--avatar-bg);
}

.avatar-card img {
  position: absolute;
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  border-radius: 6px;
  object-fit: cover;
}

.avatar-glow {
  position: absolute;
  width: 32px;
  height: 32px;
  top: -32px;
  right: 24px;
  border-radius: 5px;
  opacity: 0.5;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  transition:
    top 0.3s ease,
    right 0.3s ease;
}

.avatar-card:hover .avatar-glow {
  top: 34px;
  right: -32px;
}

.text-nav {
  display: flex;
  gap: 6px;
}

.text-nav a {
  font-size: 13px;
  line-height: 24px;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.text-nav a:hover {
  color: var(--text);
}

.text-nav a.active {
  color: var(--text);
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-copy h1 {
  margin: 0;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  color: var(--text);
}

.lead-copy {
  margin: 0;
  font-size: 13px;
  line-height: 24px;
  color: var(--muted);
}

.role-shimmer {
  margin-top: -2px;
  height: 24px;
  font-size: 13px;
  line-height: 24px;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: -0.01em;
}

.shimmer-text {
  display: inline-block;
  color: var(--muted);
  background: linear-gradient(
    90deg,
    var(--muted) 40%,
    var(--text) 50%,
    var(--muted) 60%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-sweep 4s ease-in-out infinite;
  transition: opacity 0.5s ease;
}

.shimmer-text.shimmer-fade {
  opacity: 0;
}

@keyframes shimmer-sweep {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0% 0;
  }
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.intro p {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--muted);
}

.content-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-label {
  margin: 0;
  font-size: 11px;
  line-height: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-strong);
  font-weight: 400;
}

.year-group {
  display: flex;
  width: 100%;
}

.year {
  width: 80px;
  flex-shrink: 0;
  padding-right: 16px;
  position: sticky;
  top: 24px;
  font-size: 12px;
  line-height: 24px;
  letter-spacing: 0.12em;
  color: var(--muted-strong);
  text-align: right;
}

.items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.item-title {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-color: var(--icon);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

.item-title:hover {
  text-underline-offset: 5px;
}

.article-title {
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--icon);
}

.item-meta {
  margin: 0;
  font-size: 13px;
  line-height: 24px;
  font-weight: 400;
  color: var(--muted-strong);
  text-align: right;
}

.year-group ~ .inline-link {
  margin-left: 80px;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.thought-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.thought-item:first-child {
  padding-top: 0;
}

.thought-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.thought-excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 22px;
  color: var(--muted);
}

.note-card {
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.feed-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
}

.feed-title {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.feed-title:hover {
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--icon);
}

.feed-excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 24px;
  color: var(--muted);
}

.empty-copy {
  margin: 0;
  font-size: 13px;
  line-height: 24px;
  color: var(--muted);
}

.writing-filters {
  display: flex;
  gap: 4px;
}

.filter-tab {
  background: none;
  border: none;
  padding: 4px 10px;
  font: inherit;
  font-size: 13px;
  line-height: 24px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.filter-tab:hover {
  color: var(--text);
}

.filter-tab.active {
  color: var(--text);
  background: var(--chip);
}

.writing-list {
  display: flex;
  flex-direction: column;
}

.writing-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.writing-item:first-child {
  padding-top: 0;
}

.writing-item:last-child {
  border-bottom: none;
}

.writing-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.writing-item-title {
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.writing-item-title:hover {
  color: var(--muted-strong);
}

.writing-item-date {
  font-size: 12px;
  line-height: 24px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.writing-item-excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 22px;
  color: var(--muted);
}

.writing-thumbnails {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.writing-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.writing-thumb:hover {
  opacity: 1;
}

.command-card {
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.command-card p {
  margin: 0;
  font-size: 13px;
  line-height: 24px;
  color: var(--muted);
}

.command-card code {
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-weight: 600;
}

.studio-dropzone {
  border: 1px dashed color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 12px;
  min-height: 132px;
  padding: 20px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.studio-dropzone.drag-active,
.studio-dropzone:hover {
  border-color: color-mix(in srgb, var(--text) 30%, var(--line));
  background: color-mix(in srgb, var(--chip) 40%, transparent);
}

.studio-drop-copy {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--text);
}

.studio-drop-copy code {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.studio-drop-copy-muted {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}

.studio-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.studio-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.studio-label {
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.studio-input,
.studio-textarea {
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 24px;
}

.studio-textarea {
  resize: vertical;
  min-height: 260px;
}

.studio-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.studio-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 12px;
  padding: 14px;
  background: color-mix(in srgb, var(--chip) 35%, transparent);
}

.studio-status p {
  margin: 0;
  font-size: 13px;
  line-height: 22px;
  color: var(--muted);
}

.studio-status strong {
  color: var(--text);
}

.studio-status-success {
  border-color: color-mix(in srgb, #2e8f4f 40%, var(--line));
}

.studio-status-warning {
  border-color: color-mix(in srgb, #9f7d2f 40%, var(--line));
}

.studio-status-error {
  border-color: color-mix(in srgb, #a14646 40%, var(--line));
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack p {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--muted);
}

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

.info-card {
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 12px;
  padding: 14px;
}

.info-card h3 {
  margin: 0 0 6px 0;
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  color: var(--text);
}

.info-card p {
  margin: 0;
  font-size: 13px;
  line-height: 22px;
  color: var(--muted);
}

.project-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card {
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.project-top h3 {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  color: var(--text);
}

.project-top span {
  font-size: 11px;
  line-height: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.project-card p {
  margin: 0;
  font-size: 13px;
  line-height: 24px;
  color: var(--muted);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.button {
  align-self: flex-start;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 8px;
  background: var(--chip);
  color: var(--text);
  padding: 8px 14px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.post-shell {
  gap: 56px;
}

.post-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.post-badge {
  font-size: 11px;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-strong);
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: 999px;
  padding: 2px 8px;
}

.post-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.post-content h1 {
  font-size: 24px;
  line-height: 32px;
}

.post-content h2 {
  font-size: 18px;
  line-height: 26px;
  margin-top: 8px;
}

.post-content p,
.post-content li {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--muted);
}

.post-content ul,
.post-content ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-content code {
  background: color-mix(in srgb, var(--chip) 65%, transparent);
  border-radius: 6px;
  padding: 2px 6px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: var(--text);
}

.inline-link {
  width: fit-content;
  font-size: 13px;
  line-height: 24px;
  color: var(--text);
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-color: var(--icon);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition:
    color 0.3s cubic-bezier(0.44, 0, 0.56, 1),
    text-decoration-color 0.3s cubic-bezier(0.44, 0, 0.56, 1),
    text-decoration-thickness 0.3s cubic-bezier(0.44, 0, 0.56, 1),
    text-underline-offset 0.3s cubic-bezier(0.44, 0, 0.56, 1);
}

.inline-link:hover {
  text-underline-offset: 5px;
}

.inline-link.strong {
  font-weight: 600;
}

.link-arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.3s cubic-bezier(0.44, 0, 0.56, 1);
}

.inline-link:hover .link-arrow {
  transform: translateX(2px);
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.footer-line {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.footer-grid {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  overflow: hidden;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.copyright {
  margin: 0;
  font-size: 13px;
  line-height: 24px;
  color: var(--muted);
}

.footer-right {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.socials {
  padding-top: 4px;
  display: flex;
  gap: 16px;
}

.socials a {
  width: 16px;
  height: 16px;
  color: var(--text);
  opacity: 0.4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.socials a:hover {
  opacity: 0.8;
}

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

.theme-toggle {
  width: 43.2px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--toggle-track);
  cursor: pointer;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: background-color 0.2s ease;
}

.toggle-thumb {
  position: absolute;
  top: 2.4px;
  left: 2.4px;
  width: 19.2px;
  height: 19.2px;
  border-radius: 50%;
  background: var(--toggle-thumb);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.2s cubic-bezier(0.4, 1.2, 0.6, 1);
}

.theme-toggle[aria-pressed="true"] .toggle-thumb {
  left: 21.6px;
}

.toggle-thumb svg {
  width: 11.52px;
  height: 11.52px;
}

.icon-sun {
  fill: none;
  stroke: var(--icon);
  stroke-width: 2;
  stroke-linecap: round;
}

.icon-moon {
  fill: var(--icon);
  display: none;
}

.theme-dark .icon-sun {
  display: none;
}

.theme-dark .icon-moon {
  display: block;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  border-radius: 8px;
  overflow: hidden;
}

.image-grid-item {
  padding: 0;
  margin: 0;
  border: 0;
  background: var(--chip);
  cursor: zoom-in;
  display: block;
  overflow: hidden;
  position: relative;
}

.image-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 4px;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.image-prompt-block {
  margin-top: 24px;
  padding: 16px;
  background: var(--chip);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.image-prompt-block strong {
  color: var(--text);
}

.image-grid-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.image-grid-item:hover img {
  opacity: 0.85;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(17, 17, 17, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: rgba(255, 255, 255, 0.7);
}

.lightbox-img-wrap {
  position: relative;
  display: inline-flex;
}

.lightbox-image {
  max-width: min(90vw, 800px);
  max-height: 70vh;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 5px;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lightbox-caption {
  margin-top: 20px;
  max-width: 560px;
  text-align: center;
}

.lightbox-prompt {
  margin: 0;
  font-size: 13px;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

.lightbox-counter {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.2);
}

/* Projects page — Stack grid */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg);
  transition: background-color 0.15s ease;
}

.stack-item:hover {
  background: color-mix(in srgb, var(--chip) 50%, var(--bg));
}

.stack-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--chip);
}

.stack-icon svg {
  width: 14px;
  height: 14px;
  color: var(--muted-strong);
}

.stack-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.stack-name {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--text);
}

.stack-role {
  font-size: 11px;
  line-height: 15px;
  color: var(--muted);
}

/* Projects page — Experiment cards */

.exp-list {
  display: flex;
  flex-direction: column;
}

.exp-card {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease;
}

.exp-card:first-child {
  padding-top: 0;
}

.exp-card:last-child {
  border-bottom: none;
}

.exp-card:hover {
  opacity: 0.7;
}

.exp-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.exp-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.exp-status-live {
  background: #2e8f4f;
}

.exp-status-wip {
  background: #c89b3c;
}

.exp-status-shelf {
  background: var(--muted);
  opacity: 0.4;
}

.exp-date {
  font-size: 11px;
  line-height: 16px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.exp-title {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
  color: var(--text);
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: -0.01em;
}

.exp-desc {
  margin: 0;
  font-size: 13px;
  line-height: 22px;
  color: var(--muted);
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.exp-tag {
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.03em;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--chip);
  color: var(--muted-strong);
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* Projects page — Stats */

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px 8px;
  background: var(--bg);
}

.stat-value {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 10px;
  line-height: 14px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.skill-chip {
  font-size: 11px;
  line-height: 14px;
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--muted-strong);
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: -0.01em;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.skill-chip:hover {
  color: var(--text);
  border-color: var(--muted);
}

/* Projects page — Build note */

.build-note {
  border-left: 2px solid var(--line);
  padding-left: 20px;
}

.build-note p {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--muted);
}

/* Homepage projects */

.hp-projects {
  display: flex;
  flex-direction: column;
}

.hp-project {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease;
}

.hp-project:first-child {
  padding-top: 0;
}

.hp-project:last-child {
  border-bottom: none;
}

a.hp-project:hover {
  opacity: 0.7;
}

.hp-project-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.hp-project-name {
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  color: var(--text);
}

.hp-project-role {
  font-size: 12px;
  line-height: 24px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.hp-project-desc {
  margin: 0;
  font-size: 13px;
  line-height: 22px;
  color: var(--muted);
}

/* Contact page */

.contact-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-intro p {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--muted);
}

.contact-x-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 24px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  width: fit-content;
  transition: color 0.15s ease;
}

.contact-x-link:hover {
  color: var(--muted-strong);
}

.contact-x-link svg {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.contact-x-link:hover svg {
  opacity: 0.8;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 24px;
  transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--muted);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit {
  align-self: flex-start;
  border: none;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  padding: 10px 20px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.contact-submit:hover {
  opacity: 0.8;
}

.contact-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 12px;
  padding: 14px;
  background: color-mix(in srgb, var(--chip) 35%, transparent);
}

.contact-status[hidden] {
  display: none;
}

.contact-status p {
  margin: 0;
  font-size: 13px;
  line-height: 22px;
  color: var(--muted);
}

.contact-status-success {
  border-color: color-mix(in srgb, #2e8f4f 40%, var(--line));
}

.contact-status-error {
  border-color: color-mix(in srgb, #a14646 40%, var(--line));
}

/* About page */

.about-bio {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-bio p {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--muted);
}

.about-timeline {
  display: flex;
  flex-direction: column;
}

.tl-item {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.tl-item:first-child {
  padding-top: 0;
}

.tl-item:last-child {
  border-bottom: none;
}

.tl-year {
  width: 48px;
  flex-shrink: 0;
  font-size: 12px;
  line-height: 22px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}

.tl-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tl-role {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
  color: var(--text);
}

.tl-desc {
  margin: 0;
  font-size: 13px;
  line-height: 22px;
  color: var(--muted);
}

.about-interests {
  display: flex;
  flex-direction: column;
}

.about-interest {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 22px;
}

.about-interest:first-child {
  padding-top: 0;
}

.about-interest:last-child {
  border-bottom: none;
}

.interest-label {
  font-weight: 600;
  color: var(--text);
}

.interest-desc {
  color: var(--muted);
}

.interest-label::after {
  content: " — ";
  font-weight: 400;
  color: var(--muted);
}

.about-now {
  border-left: 2px solid var(--line);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-now p {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--muted);
}

/* Homepage unified feed */

.home-feed-entry {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.home-feed-entry:first-child {
  padding-top: 0;
}

.home-feed-entry:last-child {
  border-bottom: none;
}

.feed-entry-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.feed-entry-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.feed-entry-date {
  font-size: 12px;
  color: var(--muted);
}

.feed-entry-title {
  display: block;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg);
  text-decoration: none;
}

.feed-entry-title:hover {
  text-decoration: underline;
  text-decoration-style: dashed;
}

.feed-entry-excerpt {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-strong, var(--muted));
}

/* Inline thought style */

.note-inline-body {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted-strong, var(--muted));
}

.note-inline-body p {
  margin: 0 0 6px;
}

.note-inline-body p:last-child {
  margin-bottom: 0;
}

/* Note replies */

.home-feed-note {
  position: relative;
}

.note-replies-area {
  margin-top: 10px;
}

.note-reply-toggle {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.home-feed-note:hover .note-reply-toggle,
.note-replies-area.open .note-reply-toggle {
  opacity: 1;
}

.note-reply-toggle:hover {
  color: var(--text);
}

.reply-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

.note-reply-thread {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease 0.05s;
}

.note-replies-area.open .note-reply-thread {
  max-height: 140px;
  opacity: 1;
}

.note-reply-list {
  margin-top: 4px;
}

.note-reply {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted-strong, var(--muted));
  padding: 1px 0;
}

.note-reply-name {
  font-weight: 600;
  color: var(--text);
  opacity: 0.5;
}

.note-reply-form {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.note-reply-form .reply-name-input {
  width: 100%;
  background: none;
  border: none;
  padding: 2px 0;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  opacity: 0.5;
  outline: none;
}

.note-reply-form .reply-text-input {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 2px 0 4px;
  font: inherit;
  font-size: 11px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
}

.note-reply-form input::placeholder {
  color: var(--muted);
  opacity: 0.45;
}

.note-reply-form .reply-text-input:focus {
  border-color: var(--muted);
}

/* Margin layout on wide screens */
@media (min-width: 960px) {
  .note-replies-area {
    position: absolute;
    right: -200px;
    top: 0;
    width: 160px;
    margin-top: 0;
  }

  .note-reply-toggle {
    opacity: 0.45;
    font-size: 10px;
  }

  .home-feed-note:hover .note-reply-toggle {
    opacity: 1;
  }
}

.image-grid-sm {
  margin-top: 10px;
}

.image-grid-sm .image-grid-item img {
  aspect-ratio: 4 / 3;
}

.feed-thumbnail-row {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}

.feed-thumbnail {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  opacity: 0.85;
}

.reveal {
  opacity: 0.001;
  transform: translateY(20px);
  animation: reveal-up 1s cubic-bezier(0.5, 0, 0.5, 1.2) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-shell .reveal {
  opacity: 1;
  transform: none;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .shimmer-text {
    animation: none;
    background: none;
    -webkit-text-fill-color: var(--muted);
  }

  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 810px) and (max-width: 1199.98px) {
  .page {
    padding: 120px 0;
  }
}

@media (max-width: 809.98px) {
  .page {
    padding: 80px 16px;
  }

  .shell {
    gap: 64px;
  }

  .year-group {
    flex-direction: column;
  }

  .year {
    width: auto;
    position: relative;
    top: auto;
    padding: 0 0 8px;
    text-align: left;
  }

  .year-group ~ .inline-link {
    margin-left: 0;
  }

  .item-meta {
    max-width: 180px;
    font-size: 13px;
  }

  .article-list .item-row {
    align-items: center;
  }

  .writing-filters {
    flex-wrap: wrap;
  }

  .writing-item-head {
    flex-direction: column;
    gap: 2px;
  }

  .studio-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .post-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
