/*
Theme Name: Aureline
Theme URI: https://www.mancs.cn
Author: Manchuan / 汤圆
Author URI: https://www.mancs.cn
Description: A simple two-column WordPress theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: Aureline
*/

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--tm-font-sans);
  color: #0f172a;
  background: #ffffff;
  line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.85;
}

html {
  scroll-behavior: smooth;
  touch-action: manipulation;
}

body {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.articles-grid,
.trinkets-grid,
.projects-grid,
.writing-grid,
.writing-featured-slider,
.friends-grid,
.trinkets-page-grid {
  contain: paint;
}

.article-image img,
.trinket-image-wrap img,
.writing-featured-image img,
.writing-card-image img,
.trinket-page-image img,
.project-image-wrap .wp-post-image,
.project-detail-body img {
  backface-visibility: hidden;
  will-change: transform;
}

body.motion-ready .reveal-item {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 400ms cubic-bezier(0.25, 0.1, 0.25, 1), transform 400ms cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: opacity, transform;
}

body.motion-ready .reveal-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body.motion-ready .reveal-item,
  body.motion-ready .reveal-item.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

}

.page-transition-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--tm-loader-bg, #ffffff);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 300ms ease-out;
}

html[data-first-visit-loader="1"] .page-transition-loader {
  display: flex;
}

.page-transition-loader.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.page-transition-loader .loader-text {
  font-size: 12px;
  color: var(--tm-text-muted, #64748b);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.page-transition-loader .loader-bar {
  width: 100px;
  height: 1px;
  background: var(--tm-loader-track, #e2e8f0);
  overflow: hidden;
  position: relative;
}

.page-transition-loader .loader-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30%;
  background: var(--tm-accent, #0f172a);
  animation: loader-slide 1000ms ease-in-out infinite;
}

@keyframes loader-slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(300%);
  }
}

.comment-toast-root {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100100;
  pointer-events: none;
  max-width: min(92vw, 360px);
}

.comment-toast-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translate3d(0, -8px, 0);
  transition: opacity 320ms ease-out, transform 320ms ease-out;
}

.comment-toast-card.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.comment-toast-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.25);
  color: #86efac;
}

.comment-toast-content {
  min-width: 0;
}

.comment-toast-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.25;
}

.comment-toast-desc {
  margin: 3px 0 0;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
}

.main-content {
  transition: opacity 460ms ease, filter 560ms ease;
  filter: blur(0);
}

.main-content.is-page-switching {
  opacity: 0.08;
  filter: blur(6px);
}

.section-meta.is-page-switching {
  opacity: 0.08;
  filter: blur(6px);
}

.layout-shell {
  display: block;
  padding-left: 17rem;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), filter 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.left-sidebar {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 40;
  border: 1px solid #edf0f3;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 14rem !important;
  height: calc(100vh - 2rem);
  max-height: calc(100vh - 2rem);
  margin: 0;
  padding: 18px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: none !important;
  will-change: auto;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf0f3;
  margin-bottom: 20px;
}

.avatar-wrap img {
  width: 38px;
  height: 38px;
  border-radius: 5px;
  object-fit: cover;
}

.profile-name {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.profile-role {
  margin: 1px 0 0;
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: 0.18em;
  font-weight: 600;
}

.side-group {
  margin-bottom: 13px;
}

.group-title {
  margin: 0 0 6px;
  padding-left: 8px;
  font-size: 12px;
  letter-spacing: 0.13em;
  color: #94a3b8;
  font-weight: 600;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@keyframes side-nav-active-in {
  0% {
    opacity: 0.72;
    transform: translateX(-6px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes side-nav-active-bar-in {
  0% {
    opacity: 0;
    transform: scaleY(0.35);
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.side-nav a {
  position: relative;
  font-size: 14px;
  color: #475569;
  border-radius: 6px;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.side-nav a span {
  width: 16px;
  height: 16px;
  color: currentColor;
  opacity: 0.7;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.side-nav a span svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-nav a span img {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
  filter: grayscale(1) brightness(0.42);
  transition: filter 200ms ease, opacity 200ms ease;
}

.side-nav a:hover span {
  opacity: 1;
}

.side-nav a:hover span img {
  filter: grayscale(1) brightness(0.2);
}

.side-nav a.active,
.side-nav a[aria-current="page"] {
  background: rgba(15, 23, 42, 0.04);
  color: #334155;
  font-weight: 500;
}

.sidebar-footer {
  border-top: 1px solid #edf0f3;
  padding-top: 12px;
  margin-top: auto;
}

.theme-mode-toggle {
  width: auto;
  height: auto;
  margin: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: default;
  position: relative;
  transition: none;
  box-shadow: none;
}

.theme-mode-toggle::before {
  display: none;
}

.theme-mode-toggle.toggle-switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 28px;
  border-radius: 14px;
  background-color: #ffffff;
  box-shadow: inset 5px 5px 10px #c1c1c1, inset -5px -5px 10px #ffffff;
  cursor: default;
  transition: none;
}

.theme-mode-toggle.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-mode-toggle .slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 2px 2px 5px #c1c1c1, -2px -2px 5px #ffffff;
  transition: none;
}

.theme-mode-toggle .slider:before {
  display: none;
}

.theme-mode-toggle input:checked + .slider:before {
  display: none;
}

.theme-mode-toggle input:checked + .slider {
  transform: translateX(28px);
}

.timezone {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #94a3b8;
}

.time-value {
  margin: 5px 0 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #0f172a;
}

.social-row {
  display: flex;
  gap: 9px;
}

.social-row span {
  width: 28px;
  height: 28px;
  border: 1px solid #e7ebf0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
}

.social-row span svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-content {
  max-width: 45.5rem !important;
  margin: 0 auto;
  padding: 30px 0 70px;
  padding-top: 4rem !important;
}

.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 16px 16px;
  background: #fff;
  border-bottom: 1px solid #edf0f3;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), filter 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.desktop-theme-toggle-floating {
  display: block;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.mobile-theme-toggle-floating {
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 56;
}

.mobile-theme-toggle-floating .theme-mode-toggle {
  margin: 0;
}

.mobile-header.is-scrolled {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.3);
}

.mobile-menu-toggle {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.top-actions {
  display: flex;
  gap: 6px;
  position: fixed;
  top: 9px;
  right: 10px;
}

.top-actions button {
  width: 20px;
  height: 20px;
  border: 1px solid #e7ebf0;
  background: #fff;
  border-radius: 999px;
  color: #94a3b8;
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  padding: 0;
}

.hero-title {
  margin: 0 0 6px;
  font-size: 2.25rem !important;
  font-family: var(--tm-font-sans);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin: 0 0 24px;
  font-size: 2.25rem !important;
  font-family: var(--tm-font-sans);
  font-weight: 400;
  line-height: 1.2;
  color: #9aa0ab;
  letter-spacing: -0.03em;
}

.hero-text {
  max-width: 620px;
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  color: #475569;
}

.hero-buttons {
  margin-top: 36px;
  display: flex;
  gap: 16px;
}

.btn-dark,
.btn-light {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  height: 34px;
}

.btn-dark {
  background: #111827;
  color: #fff;
}

.btn-light {
  border: 1px solid #e7ebf0;
  color: #0f172a;
}

.btn-light i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  display: inline-block;
  margin-right: 6px;
  animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.section-title {
  margin: 40px 0 0;
  margin-left: 0 !important;
  padding: 0;
  font-size: 18px;
  font-family: var(--tm-font-sans);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 1rem !important;
}

.status-card {
  border: 1px solid #e8edf2;
  border-radius: 2px;
  min-height: 108px;
  padding: 12px 14px;
  position: relative;
}

.status-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 0.2s ease;
  z-index: 1;
}

.status-card:hover::after {
  background: rgba(0, 0, 0, 0.02);
}

.status-card .card-click-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: transparent;
}

.status-card:hover .card-click-layer {
  background: transparent;
}

.status-label {
  margin: 0;
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.16em;
}

.status-listens {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.status-text span {
  font-size: 12px;
  line-height: 1.1;
  color: #334155;
}

.status-logo {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-thumb {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid #e8edf3;
}

.articles-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem !important;
}

.articles-head .section-title {
  margin-bottom: 0;
}

.articles-head a {
  color: #94a3b8;
  font-size: 13px;
}

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

.article-card {
  border: 1px solid #eef1f4;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  position: relative;
}

.article-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 0.25s ease;
  z-index: 1;
}

.article-card:hover::after {
  background: rgba(0, 0, 0, 0.03);
}

.article-card .card-click-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: transparent;
}

.article-card:hover .card-click-layer {
  background: transparent;
}

.article-image {
  height: 190px;
  background: linear-gradient(130deg, #fafafa 10%, #f3f4f6 42%, #e5e7eb 100%);
  overflow: hidden;
}

.article-image-link {
  display: block;
}

.article-image-link:hover {
  opacity: 1;
}

.article-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.article-image img.card-image-pending,
.writing-featured-image img.card-image-pending,
.writing-card-image img.card-image-pending,
.trinket-image-wrap img.card-image-pending,
.trinket-page-image img.card-image-pending,
.project-image-wrap .wp-post-image.card-image-pending,
.project-image-wrap img.card-image-pending,
.project-detail-body img.card-image-pending {
  opacity: 0.15;
  filter: blur(10px);
  transform: scale(1.03);
}

.article-image img.card-image-ready,
.writing-featured-image img.card-image-ready,
.writing-card-image img.card-image-ready,
.trinket-image-wrap img.card-image-ready,
.trinket-page-image img.card-image-ready,
.project-image-wrap .wp-post-image.card-image-ready,
.project-image-wrap img.card-image-ready,
.project-detail-body img.card-image-ready {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  transition: opacity 420ms ease, filter 520ms ease, transform 520ms ease;
}

.article-card:hover .article-image img {
  transform: scale(1.06);
}

.article-body {
  padding: 12px;
  position: relative;
  z-index: 2;
}

.article-body::after {
  content: "→";
  position: absolute;
  right: 12px;
  bottom: 10px;
  opacity: 0;
  transform: translateX(-6px);
  font-size: 18px;
  line-height: 1;
  color: #334155;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.article-card:hover .article-body::after {
  opacity: 1;
  transform: translateX(0);
}

.article-body h4 {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.article-body p {
  margin: 0 0 9px;
  color: #64748b;
  font-size: 14px;
}

.home-project-card .article-body p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-tags {
  display: flex;
  gap: 12px;
}

.article-tags span {
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: 0.13em;
  font-weight: 400;
}

.trinkets-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem !important;
}

.trinkets-head a {
  color: #94a3b8;
  font-size: 13px;
}

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

.trinket-card {
  border: 1px solid #e9edf2;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.home-trinket-card {
  cursor: pointer;
}

.trinket-image-wrap {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.trinket-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.trinket-body {
  border-top: 1px solid #edf0f3;
  padding: 12px;
}

.trinket-body-link {
  display: block;
  position: relative;
}

.trinket-body-link:hover {
  opacity: 1;
}

.trinket-body-link::after {
  content: "→";
  position: absolute;
  right: 10px;
  bottom: 10px;
  opacity: 0;
  transform: translateX(-6px);
  font-size: 18px;
  line-height: 1;
  color: #64748b;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.trinket-card:hover .trinket-body-link::after {
  opacity: 1;
  transform: translateX(0);
}

.trinket-body h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.trinket-body p {
  margin: 0;
  font-size: 13px;
  color: #475569;
  transition: color 0.2s ease;
}

.trinket-card:hover .trinket-body-link h4,
.trinket-card:hover .trinket-body-link p {
  color: #64748b;
}

.footer-meta-wrap {
  padding-left: 17rem;
}

.section-meta {
  max-width: 45.5rem;
  margin: 0 auto 42px;
  padding-top: 10px;
  border-top: 1px solid #edf0f3;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  transition: opacity 460ms ease, filter 560ms ease;
  filter: blur(0);
}

.section-meta p {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
}

.projects-content {
  padding-top: 4rem !important;
}

.projects-title {
  margin: 0;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.projects-intro {
  margin: 18px 0 0;
  max-width: 760px;
  font-size: 13px;
  color: #475569;
  line-height: 1.35;
}

.projects-filter {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.projects-filter a {
  margin-bottom: -1px;
  padding-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
  border-bottom: 1px solid transparent;
  font-weight: 400;
}

.projects-filter a.active {
  color: #0f172a;
  border-bottom-color: #0f172a;
}

.projects-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-card {
  border: 1px solid #e9edf2;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s ease;
}

.project-card-link {
  display: block;
  color: inherit;
}

.project-card-link:hover {
  opacity: 1;
}

.project-image-wrap {
  height: 192px;
  overflow: hidden;
}

.project-image-wrap .wp-post-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card-link:hover .project-image-wrap .wp-post-image,
.project-card-link:hover .project-image-wrap img {
  transform: scale(1.06);
}

.project-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(130deg, #f8fafc 10%, #e2e8f0 45%, #cbd5e1 100%);
}

.project-body {
  padding: 1rem !important;
  padding-right: 2.8rem !important;
  position: relative;
  background: #fff;
  transition: background-color 0.2s ease;
}

.project-body::after {
  content: "→";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  opacity: 0;
  font-size: 22px;
  line-height: 1;
  color: #334155;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-card:hover .project-body {
  background: #f3f4f6;
}

.project-card:hover .project-body::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.project-body h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.15;
}

.project-body p {
  margin: 3px 0 0;
  font-size: 15px;
  color: #64748b;
}

.projects-empty {
  margin: 20px 0 0;
  font-size: 14px;
  color: #64748b;
}

.resume-content {
  padding-top: 4rem !important;
}

.resume-title {
  margin: 0;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.resume-intro {
  margin: 24px 0 0;
  max-width: 780px;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}

.resume-table {
  margin-top: 0;
  max-width: 860px;
}

.resume-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr auto;
  gap: 18px;
  align-items: center;
  border-top: 1px solid #edf0f3;
  padding: 12px 0;
}

.resume-row-link {
  color: inherit;
  opacity: 1;
}

.resume-table .resume-row:first-child {
  border-top: none;
}

.resume-row p {
  margin: 0;
  font-size: 14px;
  color: #0f172a;
}

.resume-row p:last-child {
  color: #475569;
}

.resume-row-recommended p:first-child {
  font-weight: 700;
}

.resume-head {
  padding-top: 10px;
  padding-bottom: 10px;
  border-top: none;
}

.resume-head p {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #94a3b8;
  font-weight: 600;
}

.writing-content {
  padding-top: 4rem !important;
}

.writing-title {
  margin: 0;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.writing-intro {
  margin: 24px 0 0;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.5;
  color: #334155;
}

.writing-featured-card {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #eceff3;
  background: #fff;
}

.writing-featured-slider {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  max-height: 100%;
  opacity: 1;
  filter: blur(0);
  transition: opacity 460ms ease, filter 560ms ease;
}

.writing-featured-slider.is-fading {
  opacity: 0.08;
  filter: blur(6px);
}

.writing-featured-slider-wrap {
  position: relative;
}

.writing-featured-nav {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.writing-featured-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--tm-border);
  background: var(--tm-panel);
  color: var(--tm-text-secondary);
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.writing-featured-nav-btn:hover {
  color: var(--tm-text);
  border-color: var(--tm-border-strong);
  background: var(--tm-panel-soft);
}

.writing-featured-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.writing-featured-slide {
  margin-top: 0;
  flex: 0 0 100%;
  scroll-snap-align: start;
  overflow-y: hidden;
  position: relative;
}

.writing-featured-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 0.25s ease;
  z-index: 1;
}

.writing-featured-slide:hover::after {
  background: rgba(0, 0, 0, 0.03);
}

.writing-featured-slide .card-click-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: transparent;
}

.writing-featured-slide:hover .card-click-layer {
  background: transparent;
}

.writing-featured-image-link,
.writing-card-image-link {
  display: block;
}

.writing-featured-image-link:hover,
.writing-card-image-link:hover {
  opacity: 1;
}

.writing-featured-slide:hover .writing-featured-image img {
  transform: scale(1.06);
}

.writing-featured-image,
.writing-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.writing-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(130deg, #efefef 5%, #f7f7f7 45%, #f0f0f0 100%);
}

.writing-featured-image img,
.writing-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.writing-featured-image-link:hover .writing-featured-image img,
.writing-card-image-link:hover .writing-card-image img {
  transform: scale(1.06);
}

.writing-featured-body {
  padding: 26px 20px;
  padding-bottom: 58px;
  position: relative;
}

.writing-featured-body-link,
.writing-card-body-link {
  display: block;
}

.writing-featured-body-link:hover,
.writing-card-body-link:hover {
  opacity: 1;
}

.writing-featured-body-link::after,
.writing-card-body-link::after {
  content: "→";
  position: absolute;
  right: 16px;
  bottom: 14px;
  opacity: 0;
  transform: translateX(-6px);
  font-size: 18px;
  line-height: 1;
  color: #334155;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.writing-featured-body-link::after {
  right: 20px;
  bottom: 20px;
}

.writing-featured-body-link:hover::after,
.writing-card-body-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.writing-featured-body h3 {
  margin: 0;
  font-size: 1.25rem !important;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.writing-featured-body p {
  margin: 14px 0 0;
  font-size: 15px;
  color: #475569;
  line-height: 1.45;
}

.writing-filter {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.writing-filter a {
  margin-bottom: -1px;
  padding-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #94a3b8;
  border-bottom: 1px solid transparent;
  font-weight: 400;
  text-transform: uppercase;
}

.writing-filter a.active {
  color: #0f172a;
  border-bottom-color: #0f172a;
}

.writing-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.writing-load-more-wrap {
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
}

.writing-load-more-btn {
  border: 1px solid #dbe3eb;
  background: #fff;
  color: #334155;
  font-size: 13px;
  line-height: 1;
  padding: 11px 14px;
  border-radius: 5px;
  cursor: pointer;
}

.writing-load-more-btn:hover {
  opacity: 1;
  background: #f8fafc;
}

.writing-load-more-btn.is-loading {
  opacity: 0.6;
  cursor: wait;
}

.writing-card {
  border: 1px solid #eceff3;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.writing-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 0.25s ease;
  z-index: 1;
}

.writing-card:hover::after {
  background: rgba(0, 0, 0, 0.03);
}

.writing-card .card-click-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: transparent;
}

.writing-card:hover .card-click-layer {
  background: transparent;
}

.writing-card-image-link {
  display: block;
  position: relative;
  z-index: 2;
}

.writing-card-image-link:hover {
  opacity: 1;
}

.writing-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.writing-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.writing-card:hover .writing-card-image img {
  transform: scale(1.06);
}

.writing-card:hover .writing-card-body-link::after {
  opacity: 1;
  transform: translateX(0);
}

.writing-card-body {
  padding: 1rem !important;
  padding-bottom: 52px !important;
  position: relative;
  z-index: 2;
  height: 115px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.writing-card-body h4 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.writing-card-body p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  flex: 1;
}

.writing-tags {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: absolute;
  left: 1rem;
  bottom: 1rem;
}

.writing-featured-body .writing-tags {
  left: 20px;
  bottom: 22px;
}

.writing-tags span {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #64748b;
}

.friends-content {
  padding-top: 4rem !important;
}

.friends-title {
  margin: 0;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.friends-intro {
  margin: 20px 0 0;
  max-width: 780px;
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
}

.friends-filter {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.friends-filter a {
  margin-bottom: -1px;
  padding-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #94a3b8;
  border-bottom: 1px solid transparent;
  font-weight: 400;
  text-transform: uppercase;
}

.friends-filter a.active {
  color: #0f172a;
  border-bottom-color: #0f172a;
}

.friends-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.friend-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #eceff3;
  border-radius: 6px;
  padding: 14px 12px;
  background: #fff;
}

.friend-avatar {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.friend-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.friend-avatar span {
  font-size: 13px;
  color: #0f172a;
  font-weight: 600;
}

.friend-meta h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: #0f172a;
}

.friend-meta p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.3;
}

.trinkets-content {
  padding-top: 4rem !important;
}

.trinkets-title {
  margin: 0;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.trinkets-intro {
  margin: 24px 0 0;
  max-width: 760px;
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
}

.trinkets-filter {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.trinkets-filter a {
  margin-bottom: -1px;
  padding-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #94a3b8;
  border-bottom: 1px solid transparent;
  font-weight: 400;
  text-transform: uppercase;
}

.trinkets-filter a.active {
  color: #0f172a;
  border-bottom-color: #0f172a;
}

.projects-filter,
.writing-filter,
.friends-filter,
.trinkets-filter {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.projects-filter::-webkit-scrollbar,
.writing-filter::-webkit-scrollbar,
.friends-filter::-webkit-scrollbar,
.trinkets-filter::-webkit-scrollbar {
  display: none;
}

.projects-filter a,
.writing-filter a,
.friends-filter a,
.trinkets-filter a {
  flex: 0 0 auto;
  white-space: nowrap;
}

.trinkets-page-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  grid-auto-rows: 1fr;
}

.trinket-page-card {
  width: 100%;
  text-align: left;
  appearance: none;
  cursor: default;
  border: 1px solid var(--tm-border-soft, #eceff3);
  background: var(--tm-panel, #fff);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  height: 100%;
}

.trinket-page-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tm-panel, #fff);
  padding: 0;
}

.trinket-page-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trinket-page-body {
  border-top: 1px solid var(--tm-border-soft, #eef2f6);
  padding: 16px !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-height: 0;
}

.trinket-page-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trinket-page-title {
  margin: 0;
  color: var(--tm-text, #0f172a);
  font-size: clamp(18px, 1.2vw, 24px) !important;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.trinket-page-brand {
  margin: 0;
  color: var(--tm-text-muted, #64748b);
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 1.3;
}

.trinket-page-desc {
  margin: 0;
  color: var(--tm-text-secondary, #334155);
  font-size: clamp(13px, 0.9vw, 16px);
  line-height: 1.35;
  min-height: 1.35em;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  display: none;
}

.trinket-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.trinket-modal.is-open {
  display: flex;
}

.trinket-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
}

.trinket-modal-card {
  position: relative;
  width: min(360px, 100%);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.35);
}

.trinket-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.trinket-modal-head {
  padding: 16px 16px 12px;
}

.trinket-modal-brand {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #64748b;
}

.trinket-modal-title {
  margin: 6px 0 0;
  font-size: 40px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.trinket-modal-image-wrap {
  background: #f8fafc;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
}

.trinket-modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trinket-modal-foot {
  padding: 14px 16px 18px;
}

.trinket-modal-desc {
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}

.trinket-modal-link {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 7px;
  background: #1f2937;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 600;
}

body.trinket-modal-open {
  overflow: hidden;
}

.project-detail-content {
  padding-top: 4rem !important;
}

.mobile-post-dock {
  position: fixed;
  left: 50%;
  bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  transform: translate3d(-50%, 0, 0);
  z-index: 995;
  pointer-events: none;
  opacity: 0;
  transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 220ms ease;
}

.mobile-post-dock.is-hidden {
  opacity: 0;
  transform: translate3d(-50%, 22px, 0);
}

.mobile-post-dock-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 202px;
  height: 44px;
  padding: 0 7px;
  border-radius: 50px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.36), inset 0 1px 0 rgba(148, 163, 184, 0.12);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  pointer-events: auto;
  -webkit-overflow-scrolling: touch;
  overflow: hidden;
}

html[data-theme="dark"] .mobile-post-dock-inner,
body.dark-mode .mobile-post-dock-inner {
  border-color: rgba(148, 163, 184, 0.46);
  background: rgba(226, 232, 240, 0.75);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.mobile-post-dock-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--tm-text-strong, #0f172a);
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  transform-origin: center;
}

.mobile-post-dock-btn img {
  width: 23px;
  height: 23px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.95);
}

html[data-theme="dark"] .mobile-post-dock-btn img,
body.dark-mode .mobile-post-dock-btn img {
  filter: brightness(0) opacity(0.85);
}

.mobile-post-dock-btn:active {
  transform: scale(0.95);
}

.mobile-post-dock.is-ready .mobile-post-dock-inner {
  transition: width 360ms ease-in-out, background-color 360ms ease-in-out, border-color 360ms ease-in-out, box-shadow 360ms ease-in-out;
}

.mobile-post-dock.is-ready .mobile-post-dock-btn {
  transition: color 180ms ease, transform 360ms ease-in-out, opacity 360ms ease-in-out, width 360ms ease-in-out;
}

.mobile-post-dock.is-top-hidden .mobile-post-dock-inner {
  width: 154px;
}

.mobile-post-dock.is-top-hidden .mobile-post-dock-btn[data-dock-action="top"] {
  width: 0;
  opacity: 0;
  transform: scale(0.68);
  pointer-events: none;
}

.post-toc-sheet {
  position: fixed;
  inset: 0;
  z-index: 996;
  pointer-events: none;
}

.post-toc-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 360ms ease-in-out;
}

.post-toc-sheet-panel {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 38px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  transform: translate3d(0, 110%, 0);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  overflow: hidden;
}

.post-toc-sheet.is-open {
  pointer-events: auto;
}

.post-toc-sheet.is-open .post-toc-sheet-backdrop {
  opacity: 1;
}

.post-toc-sheet.is-open .post-toc-sheet-panel {
  transform: translate3d(0, 0, 0);
}

.post-toc-sheet[data-dragging="true"] .post-toc-sheet-panel {
  transition: none;
}

.post-toc-sheet-handle {
  width: 40px;
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.6);
  margin: 10px auto 8px;
}

.post-toc-sheet-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 14px 10px;
}

.post-toc-sheet-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.post-toc-sheet-body {
  max-height: min(62vh, 460px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 8px calc(12px + env(safe-area-inset-bottom, 0px));
}

.post-toc-sheet-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-toc-item {
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  border-radius: 10px;
  padding: 7px 10px;
  display: flex;
  gap: 4px;
  align-items: flex-start;
  color: #334155;
}

.post-toc-item-number {
  min-width: 26px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

.post-toc-item-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.35;
  color: #0f172a;
  word-break: break-word;
}

.post-toc-item.level-3 {
  padding-left: 22px;
}

.post-toc-item.level-4 {
  padding-left: 34px;
}

.post-toc-sheet-empty {
  margin: 8px 6px 0;
  padding: 10px 10px 2px;
  font-size: 13px;
  color: #94a3b8;
  display: none;
}

body.post-toc-open {
  overflow: hidden;
}

html[data-theme="dark"] .post-toc-sheet-panel,
body.dark-mode .post-toc-sheet-panel {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 22px 38px rgba(2, 6, 23, 0.48), inset 0 1px 0 rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .post-toc-sheet-title,
html[data-theme="dark"] .post-toc-item-text,
body.dark-mode .post-toc-sheet-title,
body.dark-mode .post-toc-item-text {
  color: #f8fafc;
}

html[data-theme="dark"] .post-toc-item,
body.dark-mode .post-toc-item {
  color: #cbd5e1;
}

@media (min-width: 901px) {
  .post-toc-sheet {
    display: none !important;
  }
}

.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 13px;
}

.project-detail-title {
  margin: 18px 0 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
}

.project-detail-intro {
  margin: 16px 0 16px;
  max-width: 780px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  word-spacing: 0.12em;
  color: #334155;
}

.project-detail-summary {
  margin: 16px 0 0;
  max-width: 780px;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}

.project-detail-meta {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-detail-meta-label {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #94a3b8;
  font-weight: 600;
}

.project-detail-meta-value {
  margin: 8px 0 0;
  font-size: 14px;
  color: #0f172a;
  line-height: 1.35;
}

.project-detail-body {
  margin-top: 20px;
  --detail-image-scale: 1.18;
  letter-spacing: 0.06em;
}

.post-detail-content .project-detail-body {
  margin-top: 16px !important;
}

.post-article-tags {
  margin: 8px 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.post-article-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  font-size: 12px;
  line-height: 1;
}

.post-article-tag:hover {
  color: #334155;
  border-color: #cbd5e1;
}

.project-detail-body p {
  margin: 0 0 18px;
  font-size: 15px;
  color: #252525;
  line-height: 1.9;
  letter-spacing: 0.06em;
}

.project-detail-body ul,
.project-detail-body ol,
.project-detail-body [data-lark-html-role="root"] ul,
.project-detail-body [data-lark-html-role="root"] ol {
  margin: 12px 0 20px;
  padding-left: 1.5rem;
  color: #252525;
}

.project-detail-body ul,
.project-detail-body [data-lark-html-role="root"] ul {
  list-style: disc;
}

.project-detail-body ol,
.project-detail-body [data-lark-html-role="root"] ol {
  list-style: decimal;
}

.project-detail-body li,
.project-detail-body [data-lark-html-role="root"] li {
  margin-bottom: 8px;
  padding-left: 4px;
  font-size: 15px;
  line-height: 1.9;
  color: #252525;
  letter-spacing: 0.06em;
}

.project-detail-body li:last-child,
.project-detail-body [data-lark-html-role="root"] li:last-child {
  margin-bottom: 0;
}

.project-detail-body li::marker,
.project-detail-body [data-lark-html-role="root"] li::marker {
  color: #64748b;
}

.project-detail-body ol li::marker,
.project-detail-body [data-lark-html-role="root"] ol li::marker {
  color: #475569;
  font-weight: 600;
}

.project-detail-body ul ul,
.project-detail-body ul ol,
.project-detail-body ol ul,
.project-detail-body ol ol,
.project-detail-body [data-lark-html-role="root"] ul ul,
.project-detail-body [data-lark-html-role="root"] ul ol,
.project-detail-body [data-lark-html-role="root"] ol ul,
.project-detail-body [data-lark-html-role="root"] ol ol {
  margin: 8px 0 0;
}

.project-detail-body blockquote,
.project-detail-body .wp-block-quote,
.project-detail-body [data-lark-html-role="root"] blockquote {
  position: relative;
  margin: 18px 0;
  padding: 14px 18px 14px 20px;
  border: 1px solid #e8edf4;
  border-left: 3px solid #94a3b8;
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  color: #475569;
}

.project-detail-body blockquote p,
.project-detail-body .wp-block-quote p,
.project-detail-body [data-lark-html-role="root"] blockquote p,
.project-detail-body [data-lark-html-role="root"] blockquote .ace-line {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: #252525;
  letter-spacing: 0.06em;
}

.project-detail-body blockquote::before,
.project-detail-body .wp-block-quote::before,
.project-detail-body [data-lark-html-role="root"] blockquote::before {
  content: "“";
  position: absolute;
  top: -2px;
  left: 10px;
  font-size: 30px;
  line-height: 1;
  color: #cbd5e1;
  font-weight: 600;
}

.project-detail-body [data-lark-html-role="root"] blockquote .ace-line + .ace-line {
  margin-top: 10px;
}

.project-detail-body blockquote cite,
.project-detail-body .wp-block-quote cite,
.project-detail-body [data-lark-html-role="root"] blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: 0.04em;
  font-style: normal;
}

.project-detail-body [data-lark-html-role="root"] .ace-line {
  font-size: 15px;
  color: #252525;
  line-height: 1.9;
  letter-spacing: 0.06em;
}

.project-detail-body [data-lark-html-role="root"] .heading-1,
.project-detail-body [data-lark-html-role="root"] .heading-2,
.project-detail-body [data-lark-html-role="root"] .heading-3,
.project-detail-body [data-lark-html-role="root"] .heading-4,
.project-detail-body [data-lark-html-role="root"] .heading-5 {
  margin: 12px 0;
  font-weight: 500;
  line-height: 1.4;
  color: #0f172a;
}

.post-detail-content .project-detail-body h1,
.post-detail-content .project-detail-body h2,
.post-detail-content .project-detail-body h3,
.post-detail-content .project-detail-body h4,
.post-detail-content .project-detail-body h5,
.post-detail-content .project-detail-body [data-lark-html-role="root"] .heading-1,
.post-detail-content .project-detail-body [data-lark-html-role="root"] .heading-2,
.post-detail-content .project-detail-body [data-lark-html-role="root"] .heading-3,
.post-detail-content .project-detail-body [data-lark-html-role="root"] .heading-4,
.post-detail-content .project-detail-body [data-lark-html-role="root"] .heading-5 {
  font-weight: 600;
}

.project-detail-body h1,
.project-detail-body h2,
.project-detail-body h3,
.project-detail-body h4,
.project-detail-body h5,
.project-detail-body h6 {
  font-weight: 500;
}

.project-detail-body strong,
.project-detail-body b,
.project-detail-body [data-lark-html-role="root"] strong,
.project-detail-body [data-lark-html-role="root"] b {
  font-weight: 500;
}

html[data-theme="dark"] .post-detail-content .project-detail-body strong,
html[data-theme="dark"] .post-detail-content .project-detail-body b,
html[data-theme="dark"] .post-detail-content .project-detail-body [data-lark-html-role="root"] strong,
html[data-theme="dark"] .post-detail-content .project-detail-body [data-lark-html-role="root"] b,
body.dark-mode .post-detail-content .project-detail-body strong,
body.dark-mode .post-detail-content .project-detail-body b,
body.dark-mode .post-detail-content .project-detail-body [data-lark-html-role="root"] strong,
body.dark-mode .post-detail-content .project-detail-body [data-lark-html-role="root"] b {
  color: #f8fafc;
}

html[data-theme="dark"] .post-detail-content .project-detail-body [data-lark-html-role="root"] .ace-line,
body.dark-mode .post-detail-content .project-detail-body [data-lark-html-role="root"] .ace-line {
  color: #cbd5e1;
}

html[data-theme="dark"] .post-detail-content .project-detail-body ul,
html[data-theme="dark"] .post-detail-content .project-detail-body ol,
html[data-theme="dark"] .post-detail-content .project-detail-body li,
html[data-theme="dark"] .post-detail-content .project-detail-body [data-lark-html-role="root"] ul,
html[data-theme="dark"] .post-detail-content .project-detail-body [data-lark-html-role="root"] ol,
html[data-theme="dark"] .post-detail-content .project-detail-body [data-lark-html-role="root"] li,
body.dark-mode .post-detail-content .project-detail-body ul,
body.dark-mode .post-detail-content .project-detail-body ol,
body.dark-mode .post-detail-content .project-detail-body li,
body.dark-mode .post-detail-content .project-detail-body [data-lark-html-role="root"] ul,
body.dark-mode .post-detail-content .project-detail-body [data-lark-html-role="root"] ol,
body.dark-mode .post-detail-content .project-detail-body [data-lark-html-role="root"] li {
  color: #cbd5e1;
}

html[data-theme="dark"] .post-detail-content .project-detail-body li::marker,
html[data-theme="dark"] .post-detail-content .project-detail-body [data-lark-html-role="root"] li::marker,
body.dark-mode .post-detail-content .project-detail-body li::marker,
body.dark-mode .post-detail-content .project-detail-body [data-lark-html-role="root"] li::marker {
  color: #94a3b8;
}

html[data-theme="dark"] .post-detail-content .project-detail-body ol li::marker,
html[data-theme="dark"] .post-detail-content .project-detail-body [data-lark-html-role="root"] ol li::marker,
body.dark-mode .post-detail-content .project-detail-body ol li::marker,
body.dark-mode .post-detail-content .project-detail-body [data-lark-html-role="root"] ol li::marker {
  color: #cbd5e1;
}

.project-detail-body [data-lark-html-role="root"] .heading-1 {
  font-size: 24px;
}

.project-detail-body [data-lark-html-role="root"] .heading-2 {
  font-size: 20px;
}

.project-detail-body [data-lark-html-role="root"] .heading-3 {
  font-size: 18px;
}

.project-detail-body [data-lark-html-role="root"] .heading-4 {
  font-size: 16px;
}

.project-detail-body [data-lark-html-role="root"] .heading-5 {
  font-size: 15px;
}

.project-detail-body img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
  margin: 18px 0;
  transform: none;
  transition: opacity 0.25s ease;
}

.project-detail-body .theme-man-audio-source {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.project-detail-body .theme-man-audio-original-hidden,
.project-detail-body .theme-man-audio-original-hidden.mejs-container,
.project-detail-body .theme-man-audio-original-hidden.wp-block-audio {
  display: none !important;
}

.project-detail-body .music-card.main-music-card {
  position: relative;
  width: min(90%, 420px);
  max-width: 420px;
  margin: 18px auto;
  padding: 18px;
  border-radius: 35px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: -apple-system, system-ui, sans-serif;
  color: #111827;
  transition: all 0.3s ease;
  overflow: hidden;
}

.project-detail-body .main-music-card .track-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-detail-body .main-music-card .album-art {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: none;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.project-detail-body .main-music-card .album-art:hover {
  transform: scale(1.05);
}

.project-detail-body .main-music-card .track-details {
  flex-grow: 1;
  min-width: 0;
  overflow: hidden;
}

.project-detail-body .main-music-card .track-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.project-detail-body .main-music-card .artist-name,
.project-detail-body .main-music-card .track-artist {
  font-size: 0.9em;
  color: #d1d1d6;
  margin-top: 2px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.project-detail-body .main-music-card .volume-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 38px;
  height: 32px;
  flex-shrink: 0;
}

.project-detail-body .main-music-card .volume-bars .bar {
  width: 3px;
  height: 6px;
  background: linear-gradient(180deg, #00c6ff, #0072ff);
  border-radius: 2px;
  animation: tm-audio-bounce 0.8s infinite ease-in-out;
  animation-delay: var(--delay);
  animation-play-state: paused;
}

.project-detail-body .music-card.main-music-card.is-playing .volume-bars .bar {
  animation-play-state: running;
}

@keyframes tm-audio-bounce {
  0%,
  100% {
    height: 6px;
  }
  50% {
    height: 26px;
  }
}

.project-detail-body .main-music-card .playback-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-detail-body .main-music-card .time-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8em;
  color: #6b7280;
}

.project-detail-body .main-music-card .progress-container {
  position: relative;
  width: 100%;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(17, 24, 39, 0.1);
  overflow: visible;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.project-detail-body .main-music-card .progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  border-radius: 2px;
}

.project-detail-body .main-music-card .progress-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.project-detail-body .main-music-card .button-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.project-detail-body .main-music-card .main-control-btns {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding-left: 32px;
}

.project-detail-body .main-music-card .play-pause-btns {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-detail-body .main-music-card .control-button {
  margin-top: 2%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  color: #111827;
  appearance: none;
  -webkit-appearance: none;
}

.project-detail-body .main-music-card .control-button.back,
.project-detail-body .main-music-card .control-button.next {
  opacity: 0.92;
}

.project-detail-body .main-music-card .control-button.play-pause-button:hover,
.project-detail-body .main-music-card .control-button.d:hover {
  background: rgba(15, 23, 42, 0.07);
  transform: scale(1.05);
}

.project-detail-body .main-music-card .control-button:active:not(:disabled) {
  transform: scale(0.97);
}

.project-detail-body .main-music-card .audio-step:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.project-detail-body .main-music-card .audio-step__icon,
.project-detail-body .main-music-card .audio-utility__icon,
.project-detail-body .main-music-card .icon-play,
.project-detail-body .main-music-card .icon-pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.project-detail-body .main-music-card .control-button svg {
  display: block;
}

.project-detail-body .main-music-card .play-pause-button .icon-pause {
  display: none;
}

.project-detail-body .music-card.main-music-card.is-playing .play-pause-button .icon-play {
  display: none;
}

.project-detail-body .music-card.main-music-card.is-playing .play-pause-button .icon-pause {
  display: inline-flex;
}

.project-detail-body .main-music-card .audio-utility svg {
  width: 20px;
  height: 20px;
}

.project-detail-body .main-music-card .audio-step:focus-visible,
.project-detail-body .main-music-card .play-pause-button:focus-visible,
.project-detail-body .main-music-card .audio-utility:focus-visible,
.project-detail-body .main-music-card .progress-container:focus-visible {
  outline: 2px solid rgba(0, 198, 255, 0.5);
  outline-offset: 3px;
}

html[data-theme="dark"] .post-detail-content .project-detail-body .music-card.main-music-card,
body.dark-mode .post-detail-content .project-detail-body .music-card.main-music-card {
  background: #000;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  color: #fff;
}

html[data-theme="dark"] .post-detail-content .project-detail-body .main-music-card .track-title,
body.dark-mode .post-detail-content .project-detail-body .main-music-card .track-title {
  color: #fff;
}

html[data-theme="dark"] .post-detail-content .project-detail-body .main-music-card .artist-name,
html[data-theme="dark"] .post-detail-content .project-detail-body .main-music-card .track-artist,
body.dark-mode .post-detail-content .project-detail-body .main-music-card .artist-name,
body.dark-mode .post-detail-content .project-detail-body .main-music-card .track-artist {
  color: #d1d1d6;
}

html[data-theme="dark"] .post-detail-content .project-detail-body .main-music-card .time-info,
body.dark-mode .post-detail-content .project-detail-body .main-music-card .time-info {
  color: #8e8e93;
}

html[data-theme="dark"] .post-detail-content .project-detail-body .main-music-card .progress-container,
body.dark-mode .post-detail-content .project-detail-body .main-music-card .progress-container {
  background: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .post-detail-content .project-detail-body .main-music-card .control-button,
body.dark-mode .post-detail-content .project-detail-body .main-music-card .control-button {
  color: #fff;
}

html[data-theme="dark"] .post-detail-content .project-detail-body .main-music-card .control-button.play-pause-button:hover,
html[data-theme="dark"] .post-detail-content .project-detail-body .main-music-card .control-button.d:hover,
body.dark-mode .post-detail-content .project-detail-body .main-music-card .control-button.play-pause-button:hover,
body.dark-mode .post-detail-content .project-detail-body .main-music-card .control-button.d:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 760px) {
  .project-detail-body .music-card.main-music-card {
    width: min(100%, 420px);
    padding: 16px;
    border-radius: 30px;
  }

  .project-detail-body .main-music-card .main-control-btns {
    gap: 12px;
    padding-left: 12px;
  }

  .project-detail-body .main-music-card .control-button {
    width: 48px;
    height: 48px;
  }
}

.project-detail-body a:hover {
  opacity: 1;
}

.project-detail-body a:hover img {
  transform: none;
}

.project-detail-body figure {
  width: calc(100% + 168px);
  max-width: none;
  margin: 30px -84px;
  overflow: hidden;
  border-radius: 5px;
}

.project-detail-body figure img {
  margin: 0;
  border-radius: 0;
}

@media (max-width: 900px) {
  .project-detail-body figure {
    width: 100%;
    margin: 26px 0;
  }

  .mobile-header {
    display: block;
  }

  .mobile-theme-toggle-floating {
    display: block;
  }

  .desktop-theme-toggle-floating {
    display: none;
  }

  .layout-shell {
    padding-left: 0;
    padding-bottom: 20px;
  }

  .main-content {
    padding: 20px 16px 20px;
    padding-top: 5rem !important;
  }

  .footer-meta-wrap {
    padding-left: 0;
    padding: 0 16px;
    margin-bottom: 30px;
  }

  .left-sidebar {
    display: none;
  }

  .top-actions {
    position: static;
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 32px;
  }

  .status-grid,
  .articles-grid,
  .trinkets-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .section-meta {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .section-meta p {
    font-size: 12px;
  }

  .projects-title {
    font-size: 32px;
  }

  .resume-title {
    font-size: 32px;
  }

  .resume-row {
    grid-template-columns: 1.15fr 1fr auto;
    gap: 10px;
    padding: 14px 0;
  }

  .resume-row p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .resume-head p:not(:first-child) {
    display: none;
  }

  .writing-title {
    font-size: 32px;
  }

  .friends-title {
    font-size: 32px;
  }

  .trinkets-title {
    font-size: 32px;
  }

  .writing-featured-card {
    grid-template-columns: 1fr;
  }

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

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

  .trinkets-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trinket-page-image {
    aspect-ratio: 0.9 / 1;
  }

  .project-image-wrap {
    height: 320px;
  }

  .project-detail-title {
    font-size: 20px;
  }

  .project-detail-meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-detail-body {
    --detail-image-scale: 1.15;
  }

  .mobile-post-dock {
    opacity: 1;
  }

}

@media (min-width: 901px) and (max-width: 1120px) {
  .layout-shell {
    padding-right: 1rem;
  }

  .main-content,
  .section-meta {
    width: min(45.5rem, calc(100vw - 17rem - 2rem));
    max-width: none !important;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-meta-wrap {
    padding-right: 1rem;
  }
}

@media (max-width: 560px) {
  .trinkets-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trinket-page-image {
    aspect-ratio: 0.85 / 1;
  }

  .project-image-wrap {
    height: 230px;
  }

  .article-image {
    height: 230px;
  }

  .trinket-modal-title {
    font-size: 30px;
  }

  .mobile-post-dock {
    bottom: calc(36px + env(safe-area-inset-bottom, 0px));
  }

}

@media (min-width: 901px) {
  .mobile-post-dock {
    display: none;
  }
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.mobile-menu-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: auto;
  max-height: 65vh;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-menu.is-open {
  transform: translateY(0);
}

.mobile-menu-handle {
  display: flex;
  justify-content: center;
  padding: 12px 0;
  flex-shrink: 0;
}

.mobile-menu-handle-bar {
  width: 40px;
  height: 5px;
  background: #cbd5e1;
  border-radius: 999px;
}

.mobile-menu-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mobile-menu-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf0f3;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.mobile-menu-avatar {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.mobile-menu-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-menu-info {
  flex: 1;
}

.mobile-menu-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mobile-menu-role {
  margin: 4px 0 0;
  font-size: 13px;
  color: #94a3b8;
  letter-spacing: 0.15em;
  font-weight: 600;
  text-transform: uppercase;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
}

.mobile-menu-nav a {
  padding: 4px 0;
  font-size: 18px;
  font-weight: 500;
  color: #475569;
  transition: color 0.2s ease;
}

.mobile-menu-nav a.active {
  color: #475569;
}

html[data-theme="dark"] .mobile-menu-nav a,
html[data-theme="dark"] .mobile-menu-nav a.active,
body.dark-mode .mobile-menu-nav a,
body.dark-mode .mobile-menu-nav a.active {
  color: #cbd5e1;
}

.mobile-menu-footer {
  padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0));
  border-top: 1px solid #edf0f3;
  flex-shrink: 0;
}

.mobile-menu-timezone {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #94a3b8;
  text-transform: uppercase;
}

.mobile-menu-time-value {
  margin: 8px 0 16px;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #0f172a;
}

.mobile-menu-social {
  display: flex;
  gap: 10px;
}

.mobile-menu-social a {
  width: 32px;
  height: 32px;
  border: 1px solid #e7ebf0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #475569;
}

.mobile-menu-social a svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-menu-social a svg rect,
.mobile-menu-social a svg circle,
.mobile-menu-social a svg polygon {
  fill: currentColor;
  stroke: none;
}

body.mobile-menu-open .layout-shell {
  transform: scale(0.98);
  filter: blur(3px);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), filter 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform, filter;
}

body.mobile-menu-open .mobile-header {
  transform: scale(0.98);
  filter: blur(3px);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), filter 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform, filter;
}

body.mobile-menu-open .mobile-theme-toggle-floating,
body.mobile-menu-open .desktop-theme-toggle-floating {
  transform: scale(0.98);
  filter: blur(3px);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), filter 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform, filter;
}

@media (max-width: 900px) {
  .mobile-menu-backdrop,
  .mobile-menu {
    display: block;
  }
}

@media (min-width: 901px) {
  .mobile-menu-backdrop,
  .mobile-menu {
    display: none !important;
  }

  .trinket-page-title {
    font-size: 18px !important;
    line-height: 1.15;
  }

  .trinket-page-brand {
    font-size: 13px;
    line-height: 1.3;
  }

  .trinket-page-desc {
    font-size: 12px;
    line-height: 1.45;
  }

}

html,
body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

pre.wp-block-code,
pre[class*="wp-block-"],
.entry-content pre,
.post-content pre {
  position: relative;
  margin: 8px 0 14px;
  height: 168px;
  padding: 0;
  border: 1px solid #f2bc88;
  border-radius: 10px;
  background: linear-gradient(180deg, #fffdf9 0%, #fffaf2 100%);
  box-shadow: none;
  overflow: hidden;
  color: #334155;
  font-family: var(--tm-font-sans);
  font-size: 15px;
  line-height: 1.9;
  font-weight: 400;
  transition: border-color 220ms ease, height 300ms ease;
}

pre.wp-block-code:hover,
pre[class*="wp-block-"]:hover,
.entry-content pre:hover,
.post-content pre:hover {
  border-color: #e8ab72;
}

pre.wp-block-code:focus,
pre[class*="wp-block-"]:focus,
.entry-content pre:focus,
.post-content pre:focus,
pre.wp-block-code:focus-within,
pre[class*="wp-block-"]:focus-within,
.entry-content pre:focus-within,
.post-content pre:focus-within {
  outline: none;
  border-color: #de9555;
  box-shadow: none;
}

pre.wp-block-code .code-header,
pre[class*="wp-block-"] .code-header,
.entry-content pre .code-header,
.post-content pre .code-header {
  display: none;
}

pre.wp-block-code .code-copy,
pre[class*="wp-block-"] .code-copy,
.entry-content pre .code-copy,
.post-content pre .code-copy {
  display: none;
}

.code-topbar {
  height: 32px;
  padding: 0 10px 0 12px;
  border-bottom: 1px solid #eceff3;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-topbar-lang {
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #a6adb8;
  text-transform: uppercase;
}

.code-topbar-copy {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9fa6b2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 160ms ease;
}

.code-topbar-copy svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.code-topbar-copy:hover {
  color: #6f7886;
}

.code-topbar-copy:focus-visible {
  outline: 0;
  color: #5e6878;
}

.code-topbar-copy.is-copied {
  color: #4b9f5c;
}

.code-toggle-btn {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  padding: 0;
  border: 0;
  background: transparent;
  color: #a3a8b2;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  z-index: 2;
  transition: color 180ms ease;
}

.code-toggle-btn:hover {
  color: #7a828f;
}

.code-toggle-btn:focus-visible {
  outline: 0;
  color: #6b7280;
}

.code-toggle-icon {
  font-size: 11px;
}

pre.wp-block-code .wp-block-code__content,
pre.wp-block-code code,
pre[class*="wp-block-"] .wp-block-code__content,
pre[class*="wp-block-"] code,
.entry-content pre code,
.post-content pre code {
  display: block;
  margin: 0;
  padding: 8px 14px 38px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

pre.wp-block-code code mark,
pre[class*="wp-block-"] code mark,
.entry-content pre code mark,
.post-content pre code mark {
  background: linear-gradient(transparent 42%, #a5f3a6 42%, #a5f3a6 88%, transparent 88%);
  color: inherit;
  padding: 0 3px;
}

pre.wp-block-code::-webkit-scrollbar,
pre[class*="wp-block-"]::-webkit-scrollbar,
.entry-content pre::-webkit-scrollbar,
.post-content pre::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

pre.wp-block-code::-webkit-scrollbar-thumb,
pre[class*="wp-block-"]::-webkit-scrollbar-thumb,
.entry-content pre::-webkit-scrollbar-thumb,
.post-content pre::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(166, 117, 71, 0.36);
}

pre.wp-block-code::-webkit-scrollbar-thumb:hover,
pre[class*="wp-block-"]::-webkit-scrollbar-thumb:hover,
.entry-content pre::-webkit-scrollbar-thumb:hover,
.post-content pre::-webkit-scrollbar-thumb:hover {
  background: rgba(166, 117, 71, 0.52);
}

@media (max-width: 900px) {
  pre.wp-block-code,
  pre[class*="wp-block-"],
  .entry-content pre,
  .post-content pre {
    margin: 7px 0 12px;
    border-radius: 9px;
  }

  .code-toggle-btn {
    bottom: 7px;
    font-size: 13px;
  }

  .code-topbar {
    height: 30px;
  }

  pre.wp-block-code .wp-block-code__content,
  pre.wp-block-code code,
  pre[class*="wp-block-"] .wp-block-code__content,
  pre[class*="wp-block-"] code,
  .entry-content pre code,
  .post-content pre code {
    padding: 8px 12px 36px;
  }
}

@media (max-width: 640px) {
  pre.wp-block-code,
  pre[class*="wp-block-"],
  .entry-content pre,
  .post-content pre {
    margin: 6px 0 10px;
    border-radius: 8px;
  }

  .code-toggle-btn {
    bottom: 6px;
    font-size: 12px;
  }

  .code-topbar {
    height: 28px;
    padding: 0 9px 0 10px;
  }

  .code-topbar-lang {
    font-size: 10px;
  }

  pre.wp-block-code .wp-block-code__content,
  pre.wp-block-code code,
  pre[class*="wp-block-"] .wp-block-code__content,
  pre[class*="wp-block-"] code,
  .entry-content pre code,
  .post-content pre code {
    padding: 7px 11px 34px;
  }
}

@media (max-width: 480px) {
  pre.wp-block-code .wp-block-code__content,
  pre.wp-block-code code,
  pre[class*="wp-block-"] .wp-block-code__content,
  pre[class*="wp-block-"] code,
  .entry-content pre code,
  .post-content pre code {
    padding: 8px 10px 32px;
  }
}

code:not(pre code),
.entry-content code,
.post-content code {
  font-family: "SF Mono", "Monaco", "Menlo", "Fira Code", "Consolas", "Liberation Mono", monospace;
  font-size: 0.875em;
  background: rgba(0, 0, 0, 0.06);
  color: #e83e8c;
  padding: 0.25em;
  border-radius: 4px;
  white-space: nowrap;
}

@media (prefers-color-scheme: light) {
  code:not(pre code),
  .entry-content code,
  .post-content code {
    background: rgba(0, 0, 0, 0.06);
    color: #d63384;
  }
}

.password-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.password-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.password-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.password-modal.is-open .password-modal-backdrop {
  opacity: 1;
}

.password-modal-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
}

.password-modal.is-open .password-modal-card {
  transform: scale(1);
  opacity: 1;
}

.password-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
  padding: 0;
}

.password-modal-close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.password-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.password-modal-head {
  text-align: center;
  margin-bottom: 24px;
}

.password-modal-lock {
  width: 32px;
  height: 32px;
  color: #0f172a;
  margin-bottom: 16px;
}

.password-modal-title {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}

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

.password-input-wrap {
  position: relative;
}

.password-input {
  width: 100%;
  padding: 12px 48px 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.password-input:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: #0f172a;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.password-error {
  color: #dc2626;
  font-size: 13px;
  margin: 0;
  text-align: center;
}

.password-submit-btn {
  width: 100%;
  padding: 12px 24px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.password-submit-btn:hover {
  background: #1e293b;
}

.password-submit-btn:active {
  transform: scale(0.98);
}

.password-note {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  margin: 16px 0 0;
}

html.password-modal-open {
  overflow: hidden;
}

body.password-modal-open {
  overflow: hidden;
}

body.password-modal-open .layout-shell,
body.password-modal-open .mobile-header,
body.password-modal-open .mobile-theme-toggle-floating {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

:root {
  --tm-bg: #ffffff;
  --tm-panel: #ffffff;
  --tm-panel-soft: #f8fafc;
  --tm-panel-elevated: rgba(255, 255, 255, 0.85);
  --tm-text: #0f172a;
  --tm-text-secondary: #334155;
  --tm-text-muted: #64748b;
  --tm-text-faint: #94a3b8;
  --tm-border: #e5e7eb;
  --tm-border-soft: #edf0f3;
  --tm-border-strong: #cbd5e1;
  --tm-overlay-hover: rgba(15, 23, 42, 0.04);
  --tm-accent: #0f172a;
  --tm-accent-contrast: #ffffff;
  --tm-loader-bg: #ffffff;
  --tm-loader-track: #e2e8f0;
  --tm-shadow-lg: 0 24px 70px rgba(2, 6, 23, 0.35);
  --tm-input-focus-ring: 0 0 0 3px rgba(15, 23, 42, 0.1);
  --tm-code-bg-start: #fffdf9;
  --tm-code-bg-end: #fffaf2;
  --tm-code-border: #f2bc88;
  --tm-code-text: #334155;
  --tm-code-topbar-border: #eceff3;
  --tm-code-icon-hover: #6f7886;
  --tm-inline-code-bg: rgba(0, 0, 0, 0.06);
  --tm-inline-code-text: #e83e8c;
}

html {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --tm-bg: #0b1120;
    --tm-panel: #111827;
    --tm-panel-soft: #1f2937;
    --tm-panel-elevated: rgba(17, 24, 39, 0.88);
    --tm-text: #f1f5f9;
    --tm-text-secondary: #cbd5e1;
    --tm-text-muted: #94a3b8;
    --tm-text-faint: #64748b;
    --tm-border: #334155;
    --tm-border-soft: #263246;
    --tm-border-strong: #475569;
    --tm-overlay-hover: rgba(255, 255, 255, 0.06);
    --tm-accent: #e2e8f0;
    --tm-accent-contrast: #0b1120;
    --tm-loader-bg: #0b1120;
    --tm-loader-track: #1e293b;
    --tm-shadow-lg: 0 24px 70px rgba(2, 6, 23, 0.6);
    --tm-input-focus-ring: 0 0 0 3px rgba(148, 163, 184, 0.2);
    --tm-code-bg-start: #0f172a;
    --tm-code-bg-end: #111827;
    --tm-code-border: #334155;
    --tm-code-text: #e2e8f0;
    --tm-code-topbar-border: #334155;
    --tm-code-icon-hover: #cbd5e1;
    --tm-inline-code-bg: rgba(148, 163, 184, 0.18);
    --tm-inline-code-text: #f472b6;
  }

  html {
    color-scheme: dark;
  }
}

html[data-theme="dark"],
body.dark-mode {
  color-scheme: dark;
  --tm-bg: #0b1120;
  --tm-panel: #111827;
  --tm-panel-soft: #1f2937;
  --tm-panel-elevated: rgba(17, 24, 39, 0.88);
  --tm-text: #f1f5f9;
  --tm-text-secondary: #cbd5e1;
  --tm-text-muted: #94a3b8;
  --tm-text-faint: #64748b;
  --tm-border: #334155;
  --tm-border-soft: #263246;
  --tm-border-strong: #475569;
  --tm-overlay-hover: rgba(255, 255, 255, 0.06);
  --tm-accent: #e2e8f0;
  --tm-accent-contrast: #0b1120;
  --tm-loader-bg: #0b1120;
  --tm-loader-track: #1e293b;
  --tm-shadow-lg: 0 24px 70px rgba(2, 6, 23, 0.6);
  --tm-input-focus-ring: 0 0 0 3px rgba(148, 163, 184, 0.2);
  --tm-code-bg-start: #0f172a;
  --tm-code-bg-end: #111827;
  --tm-code-border: #334155;
  --tm-code-text: #e2e8f0;
  --tm-code-topbar-border: #334155;
  --tm-code-icon-hover: #cbd5e1;
  --tm-inline-code-bg: rgba(148, 163, 184, 0.18);
  --tm-inline-code-text: #f472b6;
}

body {
  color: var(--tm-text);
  background: var(--tm-bg);
}

.theme-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  background: var(--theme-transition-overlay-color, #ffffff);
  contain: paint;
  will-change: opacity;
}

.theme-transition-overlay.is-ready {
  visibility: visible;
}

.theme-transition-overlay.is-holding {
  opacity: 1;
  transition: none;
}

.theme-transition-overlay.is-ready.is-fading {
  opacity: 0;
  transition: opacity 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .theme-transition-overlay,
  .theme-mode-toggle .slider {
    transition: none !important;
  }
}

.left-sidebar,
.mobile-header,
.mobile-menu,
.article-card,
.trinket-card,
.project-card,
.project-body,
.writing-featured-card,
.writing-card,
.friend-card,
.trinket-page-card,
.trinket-page-image,
.trinket-modal-card,
.password-modal-card,
.writing-load-more-btn,
.post-article-tag {
  background: var(--tm-panel);
}

.left-sidebar,
.profile-card,
.sidebar-footer,
.mobile-header,
.mobile-menu-profile,
.mobile-menu-footer,
.social-row span,
.top-actions button,
.status-card,
.article-card,
.trinket-card,
.trinket-body,
.section-meta,
.projects-filter,
.writing-filter,
.friends-filter,
.trinkets-filter,
.project-card,
.resume-row,
.writing-featured-card,
.writing-card,
.friend-card,
.trinket-page-card,
.trinket-page-body,
.post-article-tag,
.password-input,
.code-topbar,
.mobile-menu-social a {
  border-color: var(--tm-border-soft);
}

.profile-role,
.group-title,
.timezone,
.articles-head a,
.trinkets-head a,
.section-meta p,
.status-label,
.article-tags span,
.projects-filter a,
.writing-filter a,
.friends-filter a,
.trinkets-filter a,
.resume-head p,
.project-back-link,
.project-detail-meta-label,
.password-note,
.mobile-menu-role,
.mobile-menu-timezone {
  color: var(--tm-text-faint);
}

.hero-subtitle,
.hero-text,
.projects-intro,
.resume-intro,
.writing-intro,
.friends-intro,
.trinkets-intro,
.project-body p,
.project-detail-intro,
.project-detail-summary,
.article-body p,
.trinket-body p,
.writing-featured-body p,
.writing-card-body p,
.friend-meta p,
.trinket-page-brand,
.trinket-modal-brand,
.trinket-modal-desc,
.password-modal-title,
.code-topbar-lang,
.code-toggle-btn,
.code-topbar-copy {
  color: var(--tm-text-muted);
}

.project-detail-body p,
.project-detail-body li,
.project-detail-body [data-lark-html-role="root"] .ace-line {
  color: #303030;
}

.side-nav a,
.social-row span,
.resume-row p:last-child,
.writing-load-more-btn,
.project-detail-body blockquote {
  color: var(--tm-text-secondary);
}

.mobile-menu-social a {
  color: var(--tm-text);
  background: color-mix(in srgb, var(--tm-panel) 86%, var(--tm-panel-soft) 14%);
}

html[data-theme="dark"] .side-nav a span img,
body.dark-mode .side-nav a span img {
  filter: grayscale(1) brightness(0) invert(0.86);
}

html[data-theme="dark"] .side-nav a:hover span img,
body.dark-mode .side-nav a:hover span img {
  filter: grayscale(1) brightness(0) invert(0.95);
}

html[data-theme="dark"] .side-nav a.active,
html[data-theme="dark"] .side-nav a[aria-current="page"],
body.dark-mode .side-nav a.active,
body.dark-mode .side-nav a[aria-current="page"] {
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
}

.theme-mode-toggle {
  border: none;
  background: transparent;
  color: var(--tm-text);
}

.theme-mode-toggle::before {
  display: none;
}

.theme-mode-icon-wrapper {
  display: none;
}

.theme-mode-icon-dark,
.theme-mode-icon-light {
  color: var(--tm-text);
}

.theme-mode-toggle[aria-pressed="true"] {
  background: transparent;
  border: none;
}

.theme-mode-toggle:hover {
  opacity: 0.8;
}

.mobile-menu-toggle,
.mobile-menu-toggle svg,
.time-value,
.mobile-menu-time-value,
.projects-filter a.active,
.writing-filter a.active,
.friends-filter a.active,
.trinkets-filter a.active,
.friend-avatar span,
.friend-meta h3,
.trinket-page-title,
.trinket-modal-title,
.project-detail-meta-value,
.project-detail-body [data-lark-html-role="root"] .heading-1,
.project-detail-body [data-lark-html-role="root"] .heading-2,
.project-detail-body [data-lark-html-role="root"] .heading-3,
.project-detail-body [data-lark-html-role="root"] .heading-4,
.project-detail-body [data-lark-html-role="root"] .heading-5,
.password-modal-lock {
  color: var(--tm-text);
}

.project-card:hover .project-body,
.writing-load-more-btn:hover,
.password-modal-close:hover,
.mobile-header.is-scrolled {
  background: var(--tm-panel-soft);
}

.status-card:hover::after,
.article-card:hover::after,
.writing-featured-slide:hover::after,
.writing-card:hover::after {
  background: var(--tm-overlay-hover);
}

.project-image-placeholder {
  background: linear-gradient(130deg, #1f2937 10%, #334155 45%, #475569 100%);
}

.writing-image-placeholder {
  background: linear-gradient(130deg, #111827 5%, #1f2937 45%, #334155 100%);
}

.trinket-modal-image-wrap,
.friend-avatar {
  background: var(--tm-panel-soft);
}

.trinket-modal-link,
.password-submit-btn {
  background: var(--tm-accent);
  color: var(--tm-accent-contrast);
}

.btn-light {
  background: var(--tm-panel);
  color: var(--tm-text);
  border-color: var(--tm-border);
}

.btn-dark {
  background: var(--tm-accent);
  color: var(--tm-accent-contrast);
}

.password-input {
  background: var(--tm-panel);
  color: var(--tm-text);
}

.password-input:focus {
  border-color: var(--tm-accent);
  box-shadow: var(--tm-input-focus-ring);
}

.password-toggle,
.password-modal-close,
.trinket-modal-close {
  color: var(--tm-text-faint);
}

.password-toggle:hover,
.trinket-modal-close:hover {
  color: var(--tm-text);
}

.project-detail-body blockquote,
.project-detail-body .wp-block-quote,
.project-detail-body [data-lark-html-role="root"] blockquote {
  background: var(--tm-panel-soft);
  border-color: var(--tm-border);
  border-left-color: var(--tm-border-strong);
  color: var(--tm-text-muted);
}

.project-detail-body blockquote p,
.project-detail-body .wp-block-quote p,
.project-detail-body [data-lark-html-role="root"] blockquote p,
.project-detail-body [data-lark-html-role="root"] blockquote .ace-line {
  color: #303030;
}

.project-detail-body blockquote cite,
.project-detail-body .wp-block-quote cite,
.project-detail-body [data-lark-html-role="root"] blockquote cite {
  color: var(--tm-text-faint);
}

.project-detail-body blockquote::before,
.project-detail-body .wp-block-quote::before,
.project-detail-body [data-lark-html-role="root"] blockquote::before {
  color: var(--tm-border-strong);
}

pre.wp-block-code,
pre[class*="wp-block-"],
.entry-content pre,
.post-content pre {
  background: linear-gradient(180deg, var(--tm-code-bg-start) 0%, var(--tm-code-bg-end) 100%);
  border-color: var(--tm-code-border);
  color: var(--tm-code-text);
}

.code-topbar {
  border-bottom-color: var(--tm-code-topbar-border);
}

.code-topbar-copy:hover,
.code-toggle-btn:hover {
  color: var(--tm-code-icon-hover);
}

code:not(pre code),
.entry-content code,
.post-content code {
  background: var(--tm-inline-code-bg);
  color: var(--tm-inline-code-text);
}

.mobile-menu {
  background: var(--tm-panel-elevated);
}

.trinket-modal-card,
.password-modal-card {
  box-shadow: var(--tm-shadow-lg);
}

.theme-man-context-menu {
  position: fixed;
  inset: 0;
  z-index: 100120;
  display: none;
}

.theme-man-context-menu.is-visible {
  display: block;
}

.theme-man-context-menu__panel {
  position: fixed;
  width: 190px;
  height: 364px;
  padding: 8px 0 0;
  border: 1px solid var(--tm-border-soft, #d8dbe1);
  border-radius: 12px;
  background: color-mix(in srgb, var(--tm-panel, #ffffff) 92%, transparent);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  user-select: none;
}

.theme-man-context-menu__item {
  width: 100%;
  height: 36px;
  padding: 0 15px;
  border: 0;
  background: transparent;
  color: var(--tm-text-muted, #6b7280);
  font-family: var(--tm-font-sans);
  font-size: .875rem;
  line-height: 1;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.theme-man-context-menu__item:hover,
.theme-man-context-menu__item:focus-visible {
  background: var(--tm-overlay-hover, rgba(15, 23, 42, 0.04));
  color: var(--tm-text-secondary, #4b5563);
  opacity: 1;
  outline: none;
}

.theme-man-context-menu__icon {
  width: 14px;
  height: 14px;
  color: currentColor;
  flex: 0 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.theme-man-context-menu__icon svg {
  width: 14px;
  height: 14px;
  display: block;
  color: currentColor;
}

.theme-man-context-menu__icon--hint {
  width: 13px;
  height: 13px;
  flex-basis: 13px;
}

.theme-man-context-menu__icon--hint svg {
  width: 13px;
  height: 13px;
}

.theme-man-context-menu__label {
  flex: 1 1 auto;
  white-space: nowrap;
}

.theme-man-context-menu__separator {
  height: 1px;
  margin: 6px 0;
  background: var(--tm-border, #e5e7eb);
}

.theme-man-context-menu__footer {
  height: 42px;
  padding: 0;
  border-top: 1px solid var(--tm-border, #e5e7eb);
  display: grid;
  grid-auto-flow: column;
  place-content: center;
  align-items: center;
  gap: 6px;
  color: var(--tm-text-faint, #9ca3af);
  text-align: center;
  line-height: 1;
}

.theme-man-context-menu__footer .theme-man-context-menu__icon,
.theme-man-context-menu__footer .theme-man-context-menu__hint {
  transform: none;
}

.theme-man-context-menu__hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  line-height: 1;
  white-space: nowrap;
}

html[data-theme="dark"] .theme-man-context-menu__panel,
body.dark-mode .theme-man-context-menu__panel {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.5), inset 0 1px 0 rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .theme-man-context-menu__item,
body.dark-mode .theme-man-context-menu__item {
  color: #cbd5e1;
}

html[data-theme="dark"] .theme-man-context-menu__item:hover,
html[data-theme="dark"] .theme-man-context-menu__item:focus-visible,
body.dark-mode .theme-man-context-menu__item:hover,
body.dark-mode .theme-man-context-menu__item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

html[data-theme="dark"] .theme-man-context-menu__separator,
body.dark-mode .theme-man-context-menu__separator,
html[data-theme="dark"] .theme-man-context-menu__footer,
body.dark-mode .theme-man-context-menu__footer {
  border-color: rgba(148, 163, 184, 0.16);
  background-image: none;
}
