:root {
  --text: #435554;
  --muted: #8f9f9f;
  --teal: #64cfc7;
  --teal-dark: #329f99;
  --sky: #9fcde8;
  --lavender: #d8cbff;
  --honey: #f3df9d;
  --mint: #d8f3e6;
  --rose: #f3b9c8;
  --mist-pink: #d5aaa7;
  --mist-blue: #b9c2d2;
  --mist-cream: #ead4c1;
  --mist-blush: #eedad9;
  /* Tune these values to adjust liquid glass transparency globally. */
  --glass-opacity: 0.28;
  --glass-strong-opacity: 0.5;
  --glass-button-opacity: 0.34;
  --glass-top-opacity: 0.54;
  --glass-bottom-opacity: 0.14;
  --glass: rgba(255, 255, 255, var(--glass-opacity));
  --glass-strong: rgba(255, 255, 255, var(--glass-strong-opacity));
  --glass-button: rgba(255, 255, 255, var(--glass-button-opacity));
  --line: rgba(255, 255, 255, 0.58);
  --shadow: 0 30px 86px rgba(79, 86, 91, 0.11), 0 8px 28px rgba(255, 255, 255, 0.22);
  --inner: inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -26px 48px rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  --liquid-bg:
    linear-gradient(145deg, rgba(255, 255, 255, var(--glass-top-opacity)), rgba(255, 255, 255, var(--glass-bottom-opacity))),
    linear-gradient(320deg, rgba(185, 194, 210, 0.2), rgba(255, 255, 255, 0) 42%, rgba(213, 170, 167, 0.16)),
    var(--glass);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 226, 224, 0.88), transparent 36%),
    radial-gradient(circle at 82% 24%, rgba(204, 219, 248, 0.68), transparent 38%),
    radial-gradient(circle at 28% 82%, rgba(232, 178, 174, 0.56), transparent 42%),
    radial-gradient(circle at 72% 78%, rgba(249, 222, 191, 0.64), transparent 40%),
    linear-gradient(135deg, #f8deda 0%, #f5dfbd 34%, #cfdbf3 70%, #e5b7b4 100%);
  overflow-x: hidden;
}

body:has(.home-shell) {
  min-height: 100svh;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  opacity: 0.5;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 34% 42%, rgba(255, 255, 255, 0.34), transparent 44%),
    radial-gradient(ellipse at 78% 58%, rgba(255, 255, 255, 0.22), transparent 46%);
  background-size: 180px 180px, 110% 110%, 120% 120%;
  mix-blend-mode: soft-light;
}

body::after {
  position: fixed;
  inset: -24% -24%;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 30%, rgba(226, 170, 165, 0.62), transparent 40%),
    radial-gradient(ellipse at 70% 26%, rgba(178, 200, 238, 0.66), transparent 42%),
    radial-gradient(ellipse at 44% 78%, rgba(246, 213, 181, 0.58), transparent 45%),
    radial-gradient(ellipse at 86% 82%, rgba(248, 213, 214, 0.52), transparent 40%);
  filter: blur(26px) saturate(136%) brightness(1.08);
  opacity: 0.92;
  transform: translate3d(0, 0, 0) scale(1.08);
}

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

a:link,
a:visited {
  color: inherit;
  text-decoration: none;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  box-shadow: 0 0 0 4px rgba(88, 197, 189, 0.18);
}

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

.home-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 14px 20px;
  overflow-x: hidden;
}

.home-shell::before {
  position: fixed;
  inset: -12% -10%;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 72%, rgba(255, 255, 255, 0.34), transparent 34%),
    radial-gradient(ellipse at 54% 34%, rgba(238, 218, 217, 0.42), transparent 36%),
    radial-gradient(ellipse at 82% 66%, rgba(185, 194, 210, 0.38), transparent 40%);
  filter: blur(38px);
  opacity: 0.72;
  transform: translate3d(0, 0, 0) scale(1.04);
}

.dashboard {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: min(1280px, calc(100vw - 64px));
  height: min(700px, calc(100svh - 40px));
  min-height: 0;
  display: block;
  transform: translateY(-28px);
}

.dashboard::before {
  position: absolute;
  inset: 15% -4% -7%;
  z-index: -1;
  content: "";
  pointer-events: none;
  border-radius: 44px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(198, 232, 220, 0.24) 60%, rgba(190, 230, 214, 0.32));
  filter: blur(28px);
}

.dashboard::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 46% 16%, rgba(159, 205, 232, 0.14), transparent 22%),
    radial-gradient(circle at 69% 36%, rgba(216, 203, 255, 0.11), transparent 20%),
    radial-gradient(circle at 28% 82%, rgba(100, 207, 199, 0.14), transparent 24%);
  filter: blur(24px);
}

@media (max-height: 720px) and (min-width: 761px) {
  .dashboard {
    transform: scale(0.92);
  }
}

@media (max-height: 640px) and (min-width: 761px) {
  .dashboard {
    transform: scale(0.84);
  }
}

@media (min-width: 761px) {
  body:has(.home-shell) {
    height: 100vh;
    overflow: hidden;
  }

  .home-shell {
    height: 100svh;
    overflow: hidden;
  }
}

.glass-card {
  position: relative;
  isolation: isolate;
  display: block;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--liquid-bg);
  box-shadow: var(--shadow), var(--inner);
  backdrop-filter: blur(38px) saturate(168%) contrast(1.02);
  -webkit-backdrop-filter: blur(38px) saturate(168%) contrast(1.02);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
  transition: transform 135ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 120ms ease;
}

.glass-card::before {
  position: absolute;
  inset: 1px 1px auto;
  height: 48%;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0)),
    linear-gradient(110deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 54%);
  opacity: 0.74;
  z-index: 0;
}

.glass-card::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 16%, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 36%, rgba(185, 194, 210, 0.1) 100%);
  opacity: 0.68;
  transition: opacity 135ms ease;
}

.glass-card > * {
  position: relative;
  z-index: 1;
}

.dashboard a,
.dashboard button,
.quote-card {
  cursor: default;
}

.glass-card:hover,
.message-button:hover,
.grid-button:hover,
.social-button:hover,
.quote-card:hover {
  transform: translate3d(0, -8px, 0) scale(1.018);
  border-color: rgba(255, 255, 255, 0.86);
}

.glass-card:hover::after,
.message-button:hover::before,
.grid-button:hover::before,
.social-button:hover::before {
  opacity: 0.96;
}

.nav-card {
  position: absolute;
  grid-area: nav;
  left: 26px;
  top: 50px;
  width: 318px;
  height: 470px;
  min-height: 0;
  padding: 26px 30px;
  overflow: hidden;
}

.identity {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 26px;
  border-radius: 20px;
  outline: none;
}

.identity:focus-visible {
  box-shadow: 0 0 0 3px rgba(88, 197, 189, 0.24);
}

.avatar-chip,
.portrait {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #fff8b7, #c9f1e5 54%, #f2c9cf);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -16px 26px rgba(137, 197, 184, 0.1),
    0 16px 34px rgba(73, 123, 114, 0.12);
}

.avatar-chip {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.media-slot {
  background-image:
    var(--media),
    linear-gradient(150deg, #fff8b9, #c8f0e4 54%, #f2c7ce),
    repeating-linear-gradient(45deg, rgba(88, 197, 189, 0.1) 0 9px, transparent 9px 18px);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover, cover, 18px 18px;
}

.media-slot > img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.media-slot::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(255, 255, 255, 0), rgba(246, 196, 205, 0.14));
}

.media-slot > span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: calc(100% - 22px);
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  color: rgba(67, 85, 84, 0.62);
  font-size: 11px;
  font-weight: 820;
  line-height: 1;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 8px 18px rgba(84, 128, 121, 0.08);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-name {
  margin: 0;
  font-size: 20px;
  font-weight: 780;
  letter-spacing: 0;
}

.status {
  margin: 3px 0 0;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 740;
}

.section-label,
.muted-title {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

.section-label + .menu-list {
  margin-top: 12px;
}

.menu-list {
  display: grid;
  gap: 14px;
}

.menu-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-radius: 28px;
  color: #879996 !important;
  font-size: 17px;
  font-weight: 720;
  outline: none;
  cursor: default;
  transition: color 180ms ease, text-shadow 180ms ease, transform 180ms ease;
  text-decoration: none !important;
}

.menu-item::before,
.menu-item::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.menu-item::before {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18) 42%, rgba(255, 255, 255, 0.08) 78%),
    linear-gradient(140deg, rgba(248, 222, 218, 0.26), rgba(207, 219, 243, 0.22) 54%, rgba(245, 223, 189, 0.22)),
    rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -16px 28px rgba(255, 255, 255, 0.12),
    0 14px 34px rgba(92, 88, 97, 0.1);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  transform: scale(0.96);
  z-index: 0;
}

.menu-item::after {
  inset: 2px 7px auto;
  height: 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0));
  transform: translateY(-8px);
  z-index: 0;
}

.menu-item > * {
  position: relative;
  z-index: 1;
  color: inherit;
}

.menu-item:link,
.menu-item:visited {
  color: #879996 !important;
}

.menu-item:hover,
.menu-item:focus-visible,
.menu-item.is-hovered {
  color: #415b58 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
  transform: translateX(4px) translateY(-1px);
}

.menu-item:hover::before,
.menu-item:hover::after,
.menu-item:focus-visible::before,
.menu-item:focus-visible::after,
.menu-item.is-hovered::before,
.menu-item.is-hovered::after {
  opacity: 1;
  transform: none;
}

.icon {
  position: relative;
  flex: 0 0 auto;
  display: inline-block;
  width: 23px;
  height: 23px;
  color: currentColor;
  opacity: 0.86;
}

.book-icon {
  border: 2px solid currentColor;
  border-radius: 5px;
}

.book-icon::before,
.book-icon::after {
  position: absolute;
  content: "";
  background: currentColor;
}

.book-icon::before {
  width: 5px;
  height: 100%;
  left: 4px;
  top: 0;
  opacity: 0.22;
}

.book-icon::after {
  width: 7px;
  height: 2px;
  right: 3px;
  top: 6px;
  box-shadow: 0 5px 0 currentColor;
}

.project-icon {
  width: 25px;
  height: 19px;
  margin-top: 3px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.project-icon::before {
  position: absolute;
  left: 2px;
  top: -7px;
  width: 10px;
  height: 7px;
  content: "";
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.project-icon::after {
  position: absolute;
  left: 5px;
  right: 5px;
  top: 7px;
  height: 2px;
  border-radius: 99px;
  content: "";
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
  opacity: 0.46;
}

.face-icon {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.face-icon::before {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 6px;
  height: 4px;
  border-bottom: 2px solid currentColor;
  border-radius: 50%;
  content: "";
}

.star-icon {
  clip-path: polygon(50% 4%, 61% 35%, 94% 35%, 67% 55%, 78% 88%, 50% 68%, 22% 88%, 33% 55%, 6% 35%, 39% 35%);
  background: currentColor;
}

.blogroll-icon::before,
.blogroll-icon::after {
  position: absolute;
  content: "";
}

.blogroll-icon::before {
  left: 1px;
  top: 7px;
  width: 12px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 8px;
  transform: rotate(-35deg);
}

.blogroll-icon::after {
  right: 1px;
  bottom: 7px;
  width: 12px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 8px;
  transform: rotate(-35deg);
}

.blogroll-icon {
  width: 25px;
  height: 22px;
}

.hero-card {
  position: absolute;
  grid-area: hero;
  left: 386px;
  top: 12px;
  width: 438px;
  height: 124px;
  padding: 0;
  overflow: hidden;
  background: var(--liquid-bg);
}

.hero-media {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
}

.image-card img {
  border-radius: inherit;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: inherit;
  color: rgba(61, 86, 86, 0.62);
  font-size: 15px;
  font-weight: 800;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(202, 241, 229, 0.66)),
    repeating-linear-gradient(45deg, rgba(88, 197, 189, 0.1) 0 9px, transparent 9px 18px);
}

.message-button,
.grid-button,
.social-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--liquid-bg);
  box-shadow: 0 16px 34px rgba(74, 111, 105, 0.09), var(--inner);
  backdrop-filter: blur(34px) saturate(158%) contrast(1.02);
  -webkit-backdrop-filter: blur(34px) saturate(158%) contrast(1.02);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
  transition: transform 130ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 120ms ease;
}

.message-button::before,
.grid-button::before,
.social-button::before {
  position: absolute;
  inset: 1px 1px auto;
  height: 48%;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0));
  opacity: 0.74;
  z-index: 0;
  transition: opacity 130ms ease;
}

.message-button > *,
.grid-button > *,
.social-button > * {
  position: relative;
  z-index: 1;
}

.message-button {
  position: absolute;
  left: 883px;
  top: 43px;
  height: 42px;
  min-width: 124px;
  gap: 10px;
  padding: 0 18px;
  border-radius: 16px;
  color: #526b68 !important;
  font-size: 16px;
  font-weight: 820;
  background: var(--liquid-bg);
  box-shadow: 0 16px 34px rgba(74, 111, 105, 0.09), var(--inner);
}

.message-button:link,
.message-button:visited {
  color: #526b68 !important;
}

.message-icon {
  border: 2px solid currentColor;
  border-radius: 8px;
}

.message-icon::before {
  position: absolute;
  width: 8px;
  height: 8px;
  left: 3px;
  bottom: -5px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: skew(-22deg);
  background: transparent;
}

.message-icon::after {
  position: absolute;
  left: 5px;
  right: 5px;
  top: 6px;
  height: 2px;
  border-radius: 99px;
  content: "";
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.grid-button {
  position: absolute;
  left: 1043px;
  top: 42px;
  width: 46px;
  height: 46px;
  display: grid;
  grid-template-columns: repeat(2, 6px);
  grid-template-rows: repeat(2, 6px);
  gap: 7px;
  place-content: center;
  place-items: center;
  padding: 0;
  border-radius: 12px;
  color: #b1c0bd;
  background: var(--liquid-bg);
}

.grid-button span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
}

.clock-card {
  position: absolute;
  grid-area: clock;
  left: 877px;
  top: 100px;
  width: 318px;
  height: 128px;
  display: grid;
  place-items: center;
  justify-self: start;
  align-self: end;
  border-radius: 28px;
  background: var(--liquid-bg);
}

.clock-card time {
  color: #405352;
  font-family: "SFMono-Regular", "Roboto Mono", ui-monospace, monospace;
  font-size: 62px;
  font-weight: 300;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.88), 0 10px 24px rgba(62, 96, 89, 0.08);
}

.intro-card {
  position: absolute;
  grid-area: intro;
  left: 376px;
  top: 156px;
  width: 462px;
  height: 325px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.portrait {
  width: 132px;
  height: 132px;
  margin-bottom: 22px;
  border-radius: 50%;
  box-shadow:
    0 20px 48px rgba(96, 149, 138, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -18px 28px rgba(244, 199, 207, 0.12);
}

.intro-card h1 {
  margin: 0 0 8px;
  font-size: 29px;
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: 0;
}

.intro-card p {
  width: min(305px, 100%);
  margin: 0;
  color: #435554;
  font-size: 22px;
  font-weight: 760;
  line-height: 1.45;
}

.calendar-card {
  position: absolute;
  grid-area: calendar;
  left: 876px;
  top: 242px;
  width: 398px;
  height: 300px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 28px 28px;
}

.calendar-title {
  flex: 0 0 auto;
  margin: 0 0 16px;
  color: rgba(83, 104, 101, 0.68);
  font-size: 15px;
  font-weight: 780;
}

.calendar-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 8px 11px;
  align-items: stretch;
  text-align: center;
  color: rgba(83, 104, 101, 0.58);
  font-size: 16px;
  font-weight: 700;
}

.calendar-grid > span,
.calendar-grid > a {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.calendar-grid .weekday {
  color: rgba(83, 104, 101, 0.62);
  font-weight: 760;
}

.calendar-grid .calendar-empty {
  pointer-events: none;
}

.calendar-day {
  transition: transform 130ms ease, background 130ms ease, box-shadow 130ms ease;
}

.calendar-number {
  position: relative;
  z-index: 1;
  min-width: 28px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 9px;
}

.calendar-day.is-clickable:hover,
.calendar-day.is-clickable:focus-visible {
  transform: translateY(-2px);
  outline: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.12)),
    rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 22px rgba(92, 88, 97, 0.08);
}

.calendar-day.has-posts {
  color: rgba(67, 85, 84, 0.76);
  font-weight: 820;
}

.calendar-post-dot {
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d5aaa7;
  box-shadow: 0 0 0 3px rgba(213, 170, 167, 0.14);
  transform: translateX(-50%);
}

.calendar-day.day-single .calendar-post-dot {
  left: calc(50% + 1px);
  bottom: -4px;
}

.calendar-day.day-double .calendar-post-dot {
  left: 50%;
  bottom: -4px;
}

.calendar-day.post-level-2 .calendar-post-dot {
  background: #b9c2d2;
  box-shadow: 0 0 0 4px rgba(185, 194, 210, 0.16);
}

.calendar-day.post-level-3 .calendar-post-dot {
  background: #ead4c1;
  box-shadow:
    0 0 0 4px rgba(234, 212, 193, 0.18),
    0 0 18px rgba(213, 170, 167, 0.18);
}

.calendar-day.holiday-cn {
  color: rgba(176, 111, 108, 0.74);
}

.calendar-day.holiday-us {
  color: rgba(94, 111, 176, 0.88);
  text-shadow: 0 0 14px rgba(185, 194, 210, 0.28);
}

.calendar-day.holiday-us .calendar-number {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08)),
    rgba(185, 194, 210, 0.16);
}

.calendar-day.holiday-both .calendar-number {
  background:
    linear-gradient(135deg, rgba(213, 170, 167, 0.22), rgba(185, 194, 210, 0.24)),
    rgba(255, 255, 255, 0.18);
}

.calendar-grid .today:not(.holiday-cn):not(.holiday-us) {
  color: #536865;
}

.calendar-grid .today .calendar-number {
  width: 44px;
  height: 26px;
  align-self: center;
  justify-self: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.2)),
    linear-gradient(135deg, rgba(213, 170, 167, 0.26), rgba(185, 194, 210, 0.2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 8px 20px rgba(213, 170, 167, 0.14);
}

.latest-card {
  position: absolute;
  grid-area: latest;
  left: 102px;
  top: 547px;
  width: 238px;
  height: 124px;
  min-height: 0;
  padding: 22px 24px;
}

.latest-row {
  display: block;
  margin-top: 13px;
}

.latest-card h2,
.recommend-card h2 {
  margin: 0;
  color: #1f2524;
  font-size: 17px;
  font-weight: 780;
  line-height: 1.25;
  letter-spacing: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.latest-card p:not(.muted-title),
.recommend-card p:not(.muted-title) {
  margin: 4px 0 0;
  color: #7e918d;
  font-size: 13px;
  font-weight: 680;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.latest-card time,
.recommend-card time {
  display: block;
  margin-top: 7px;
  color: #7f9893;
  font-size: 13px;
  font-weight: 760;
}

.social-row {
  position: absolute;
  grid-area: socials;
  left: 386px;
  top: 500px;
  width: 442px;
  display: grid;
  grid-template-columns: 150px 94px 76px 92px;
  align-items: center;
  gap: 10px;
}

.social-button {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  gap: 10px;
  font-weight: 820;
  box-shadow: 0 14px 30px rgba(74, 111, 105, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.social-button.github {
  min-width: 0;
  color: #526b68;
  background: var(--liquid-bg);
  box-shadow: 0 14px 30px rgba(74, 111, 105, 0.09), var(--inner);
}

.github-svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-button.bilibili {
  color: #7e8f8b;
  background: var(--liquid-bg);
}

.social-button.bilibili span {
  color: #c55d88;
}

.social-button.mail {
  width: 100%;
  min-width: 0;
  padding: 0;
  background: var(--liquid-bg);
}

.gmail-svg {
  width: 31px;
  height: 24px;
  display: block;
}

.social-button.zhihu {
  min-width: 0;
  padding: 0 15px;
  color: #3266d9;
  background: var(--liquid-bg);
}

.recommend-card {
  position: absolute;
  grid-area: recommend;
  left: 374px;
  top: 575px;
  width: 360px;
  height: 124px;
  min-height: 0;
  padding: 22px 24px;
}

.recommend-content {
  display: block;
  margin-top: 13px;
}

.quote-card {
  position: absolute;
  grid-area: quote;
  left: 758px;
  top: 570px;
  width: 438px;
  min-height: 0;
  height: 99px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  align-self: start;
  border-radius: 20px;
  margin-top: 0;
  overflow: hidden;
}

.quote-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(82, 107, 104, 0.74);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.28)),
    rgba(238, 218, 217, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 10px 22px rgba(213, 170, 167, 0.12);
  text-shadow: 0 10px 22px rgba(213, 170, 167, 0.18);
}

.quote-card div {
  min-width: 0;
  flex: 1;
}

.quote-card p {
  margin: 0;
  color: #536865;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.3;
  letter-spacing: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.quote-card span:not(.quote-mark) {
  display: block;
  margin-top: 5px;
  color: rgba(83, 104, 101, 0.58);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.detail-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.detail-card {
  width: min(680px, 100%);
  padding: clamp(28px, 6vw, 52px);
  will-change: auto;
}

.detail-card:hover {
  border-color: var(--line);
  transform: translate3d(0, 0, 0);
}

.detail-card:hover::after {
  opacity: 0.68;
}

.back-link {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--teal-dark);
  font-weight: 850;
}

.detail-card h1 {
  margin: 14px 0 14px;
  font-size: clamp(34px, 7vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.detail-card p:not(.section-label) {
  max-width: 560px;
  margin: 0;
  color: #6d807c;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 650;
}

.detail-card.detail-wide {
  width: min(980px, 100%);
}

.detail-shell.project-template-shell {
  display: block;
  place-items: initial;
  min-height: 100svh;
  padding: 0;
  background: transparent;
  overflow-x: hidden;
}

.project-template-card {
  width: min(1560px, calc(100vw - clamp(36px, 8vw, 160px)));
  min-height: 100svh;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  padding: clamp(72px, 11vh, 132px) 0 clamp(72px, 10vh, 120px);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.project-template-card:hover {
  border-color: transparent;
  transform: none;
}

.project-template-card::before,
.project-template-card::after {
  display: none;
}

.project-template-card .back-link {
  position: relative;
  z-index: 20;
  width: max-content;
  margin: 0 0 clamp(52px, 7vh, 82px);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  padding: 10px 14px;
  color: rgba(17, 17, 17, 0.62);
  background: rgba(248, 245, 239, 0.76);
  box-shadow: 0 12px 30px rgba(40, 34, 27, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: none;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.project-template-card .back-link:hover,
.project-template-card .back-link:focus-visible {
  border-color: rgba(17, 17, 17, 0.16);
  color: rgba(17, 17, 17, 0.82);
  background: rgba(248, 245, 239, 0.92);
  transform: none;
}

.project-template-card h1 {
  margin: 0;
  color: #141414;
  font-size: clamp(46px, 5.6vw, 72px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.project-template-intro {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  margin-top: 22px;
}

.project-template-intro p {
  max-width: none !important;
  color: rgba(20, 20, 20, 0.8) !important;
  font-size: clamp(18px, 1.8vw, 25px) !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
}

.project-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 10px;
  padding: 0 16px;
  color: rgba(20, 20, 20, 0.82);
  font-size: 16px;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.38);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.project-view-all:hover,
.project-view-all:focus-visible {
  border-color: rgba(20, 20, 20, 0.2);
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-2px);
}

.project-template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 44px) clamp(24px, 2.6vw, 36px);
  margin-top: clamp(48px, 7vh, 64px);
}

.project-template-item {
  display: block;
  min-width: 0;
  color: #141414;
}

.project-template-preview {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.6), transparent 30%),
    linear-gradient(135deg, #d8f3e6, #eedad9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.project-template-preview[data-theme="1"] {
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(135deg, #7aa8ff, #ef74cc 48%, #ff7043);
}

.project-template-preview[data-theme="2"] {
  background:
    linear-gradient(rgba(17, 17, 17, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.08) 1px, transparent 1px),
    linear-gradient(145deg, #ede4d6, #fbfaf6);
  background-size: 28px 28px, 28px 28px, auto;
}

.project-template-preview[data-theme="3"] {
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.68), transparent 22%),
    linear-gradient(135deg, #1f2628, #596260);
}

.project-template-preview[data-theme="4"] {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.66) 0 42%, transparent 42%),
    linear-gradient(135deg, #ead4c1, #eedad9);
}

.project-template-preview[data-theme="5"] {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.64) 0 34%, transparent 34%),
    linear-gradient(135deg, #b9c2d2, #d8f3e6);
}

.project-template-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-preview-title {
  position: relative;
  z-index: 1;
  max-width: 80%;
  color: rgba(20, 20, 20, 0.82);
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.project-template-preview[data-theme="3"] .project-preview-title,
.project-template-preview[data-theme="1"] .project-preview-title {
  color: rgba(255, 255, 255, 0.94);
}

.project-preview-meta {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  border-radius: 999px;
  padding: 5px 10px;
  color: rgba(20, 20, 20, 0.62);
  font-size: 11px;
  font-weight: 780;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.project-preview-line {
  position: absolute;
  right: 16px;
  bottom: 18px;
  width: 34%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
}

.project-template-item h2 {
  overflow: hidden;
  margin: 16px 0 0;
  color: #1a1a1a;
  font-size: clamp(20px, 1.7vw, 25px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-template-item p {
  overflow: hidden;
  max-width: none !important;
  margin-top: 6px !important;
  color: rgba(20, 20, 20, 0.56) !important;
  font-size: clamp(17px, 1.45vw, 20px) !important;
  font-weight: 520 !important;
  line-height: 1.35 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-template-count {
  display: inline-flex;
  margin-top: 10px;
  color: rgba(20, 20, 20, 0.4);
  font-size: 13px;
  font-weight: 760;
}

.project-template-item:hover .project-template-preview,
.project-template-item:focus-visible .project-template-preview {
  filter: saturate(1.04) brightness(1.02);
  transform: translateY(-5px);
  box-shadow: 0 18px 46px rgba(40, 34, 27, 0.12);
}

.project-notes-page {
  display: block;
}

.project-notes-intro {
  margin-bottom: clamp(34px, 5vw, 58px);
}

.project-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.all-notes-grid {
  margin-top: clamp(18px, 2.4vw, 28px);
}

.project-note-item {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  padding: 24px;
  color: #1f2524;
  background: var(--liquid-bg);
  box-shadow:
    var(--inner),
    0 20px 54px rgba(79, 86, 91, 0.1);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.project-note-item::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 46%);
  opacity: 0.72;
}

.project-note-item > * {
  position: relative;
  z-index: 1;
}

.project-note-item:hover,
.project-note-item:focus-visible {
  border-color: rgba(255, 255, 255, 0.88);
  outline: none;
  transform: translateY(-6px);
  box-shadow:
    var(--inner),
    0 28px 70px rgba(79, 86, 91, 0.16);
}

.project-note-eyebrow {
  margin: 0 0 18px !important;
  color: #8a9d99 !important;
  font-size: 12px !important;
  font-weight: 860 !important;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

.project-note-item h2 {
  margin: 0;
  color: #1f2524;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 880;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.project-note-item p:not(.project-note-eyebrow) {
  display: -webkit-box;
  overflow: hidden;
  max-width: none !important;
  margin-top: 14px !important;
  color: #6d807c !important;
  font-size: 16px !important;
  font-weight: 650 !important;
  line-height: 1.42 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

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

.project-note-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  color: #4f7772;
  font-size: 11px;
  font-weight: 820;
  background: rgba(255, 255, 255, 0.42);
}

.project-note-section {
  display: grid;
  gap: 20px;
  margin-top: clamp(34px, 5vw, 58px);
}

.project-note-section-heading {
  display: grid;
  gap: 6px;
}

.project-note-section-heading h2 {
  margin: 0;
  color: #1f2524;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 880;
  line-height: 1;
  letter-spacing: -0.04em;
}

.project-note-section-heading p {
  max-width: 760px !important;
  margin: 0 !important;
  color: #6d807c !important;
  font-size: 17px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
}

.detail-shell.gallery-detail-shell {
  display: block;
  place-items: initial;
  min-height: 100svh;
  padding: 0;
  background: #f7f3ec;
  overflow-x: hidden;
}

.gallery-detail-card {
  width: 100%;
  min-height: 100svh;
  border: 0;
  border-radius: 0;
  padding: 36px 0 0;
  overflow: hidden;
  text-align: center;
  background: #f7f3ec;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.gallery-detail-card:hover {
  border-color: transparent;
  transform: none;
}

.gallery-detail-card::before,
.gallery-detail-card::after {
  display: none;
}

.gallery-detail-card .back-link {
  position: fixed;
  left: clamp(18px, 3vw, 42px);
  top: 22px;
  z-index: 20;
  margin: 0;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  padding: 10px 14px;
  color: rgba(17, 17, 17, 0.64);
  background: rgba(247, 243, 236, 0.72);
  box-shadow: 0 12px 30px rgba(40, 34, 27, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.gallery-detail-card h1 {
  max-width: 960px;
  margin: clamp(70px, 10vh, 112px) auto 24px;
  padding: 0 24px;
  color: #141414;
  font-size: clamp(48px, 7.2vw, 94px);
  font-weight: 920;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.gallery-page {
  display: block;
}

.gallery-copy {
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 0 24px;
  color: rgba(20, 20, 20, 0.76) !important;
  font-size: clamp(18px, 2.1vw, 25px) !important;
  font-weight: 760 !important;
  line-height: 1.28 !important;
}

.gallery-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.gallery-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 12px;
  padding: 0 20px;
  color: #191919;
  font-size: 17px;
  font-weight: 680;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.gallery-action:hover,
.gallery-action:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(20, 20, 20, 0.1);
}

.gallery-action.primary {
  color: #ffffff;
  background: #111111;
}

.gallery-action.secondary {
  background: rgba(255, 255, 255, 0.48);
}

.gallery-photo-wall {
  position: relative;
  width: min(1360px, 100%);
  min-height: 1080px;
  margin: 70px auto 0;
  padding-bottom: 160px;
}

.gallery-photo-card {
  --photo-rotate: 0deg;
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 12px solid rgba(255, 255, 255, 0.94);
  border-radius: 22px;
  background: #ffffff;
  cursor: zoom-in;
  box-shadow:
    0 26px 60px rgba(40, 34, 27, 0.16),
    0 2px 0 rgba(255, 255, 255, 0.92);
  transform: rotate(var(--photo-rotate));
  transition:
    transform 170ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 150ms ease,
    box-shadow 150ms ease,
    filter 150ms ease;
}

.gallery-photo-card:hover,
.gallery-photo-card:focus-visible {
  z-index: 12;
  border-color: rgba(255, 255, 255, 1);
  outline: none;
  filter: saturate(1.05) brightness(1.02);
  transform: translate3d(0, -14px, 0) scale(1.035) rotate(var(--photo-rotate));
  box-shadow:
    0 34px 84px rgba(40, 34, 27, 0.26),
    0 0 0 7px rgba(255, 255, 255, 0.36),
    0 2px 0 rgba(255, 255, 255, 0.96);
}

.gallery-photo-card img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.gallery-photo-card figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border-radius: 999px;
  padding: 7px 10px;
  color: rgba(20, 20, 20, 0.72);
  font-size: 12px;
  font-weight: 760;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.gallery-photo-1 {
  left: 3%;
  top: 90px;
  z-index: 1;
  width: 32%;
  height: 350px;
  --photo-rotate: -3.2deg;
}

.gallery-photo-2 {
  left: 40%;
  top: 0;
  z-index: 4;
  width: 31%;
  height: 520px;
  --photo-rotate: -5deg;
}

.gallery-photo-3 {
  right: 1%;
  top: 128px;
  z-index: 2;
  width: 23%;
  height: 430px;
  --photo-rotate: 4.2deg;
}

.gallery-photo-4 {
  left: 15%;
  top: 345px;
  z-index: 6;
  width: 32%;
  height: 330px;
  --photo-rotate: 1.4deg;
}

.gallery-photo-5 {
  right: 5%;
  top: 560px;
  z-index: 5;
  width: 34%;
  height: 340px;
  --photo-rotate: -2.4deg;
}

.gallery-photo-6 {
  left: 47%;
  top: 670px;
  z-index: 3;
  width: 25%;
  height: 330px;
  --photo-rotate: 3.6deg;
}

.gallery-photo-7 {
  left: 3%;
  top: 720px;
  z-index: 2;
  width: 28%;
  height: 330px;
  --photo-rotate: -4.4deg;
}

.gallery-photo-8,
.gallery-photo-9 {
  display: none;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 56px);
  background: rgba(18, 16, 14, 0.58);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
}

.gallery-lightbox-frame {
  position: relative;
  max-width: min(1120px, 92vw);
  max-height: 86vh;
  margin: 0;
  overflow: hidden;
  border: 14px solid rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
}

.gallery-lightbox-frame img {
  width: 100%;
  height: auto;
  max-height: calc(86vh - 28px);
  object-fit: contain;
  background: #f7f3ec;
}

.gallery-lightbox-frame figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 10px 14px;
  color: rgba(20, 20, 20, 0.74);
  font-size: 14px;
  font-weight: 760;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gallery-lightbox-close {
  position: fixed;
  right: clamp(18px, 3vw, 42px);
  top: clamp(18px, 3vw, 42px);
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 0 16px;
  color: #111111;
  font: inherit;
  font-weight: 820;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.gallery-lightbox-close:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.62);
  outline-offset: 3px;
}

.map-group-lightbox {
  align-items: center;
}

.map-group-dialog {
  width: min(1280px, 94vw);
  max-height: 86vh;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 30px;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(247, 243, 236, 0.72)),
    rgba(255, 255, 255, 0.74);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
}

.map-group-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.map-group-title {
  display: grid;
  gap: 7px;
}

.map-group-title h2 {
  margin: 0;
  color: #191919;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 880;
  line-height: 1.02;
  letter-spacing: 0;
}

.map-group-title p {
  margin: 0 !important;
  color: rgba(20, 20, 20, 0.54) !important;
  font-size: 15px !important;
  font-weight: 760 !important;
}

.map-group-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.map-group-photo {
  overflow: hidden;
  margin: 0;
  border: 8px solid rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  cursor: zoom-in;
  box-shadow: 0 16px 34px rgba(40, 34, 27, 0.12);
  transition:
    transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 160ms ease,
    border-color 160ms ease,
    filter 160ms ease;
}

.map-group-photo:hover,
.map-group-photo:focus-visible {
  z-index: 2;
  border-color: rgba(255, 255, 255, 1);
  outline: none;
  filter: saturate(1.04) brightness(1.02);
  transform: translate3d(0, -8px, 0) scale(1.018);
  box-shadow:
    0 24px 58px rgba(40, 34, 27, 0.2),
    0 0 0 6px rgba(255, 255, 255, 0.34);
}

.map-group-photo img {
  width: 100%;
  height: auto;
  max-height: 520px;
  display: block;
  border-radius: 12px;
  object-fit: contain;
  object-position: center;
}

.map-group-photo figcaption {
  padding: 10px 8px 4px;
  color: rgba(20, 20, 20, 0.58);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.28;
}

.detail-shell.gallery-map-shell {
  display: block;
  place-items: initial;
  min-height: 100svh;
  padding: 42px 24px 70px;
  background: #f7f3ec;
  overflow-x: hidden;
}

.gallery-map-card {
  width: min(1320px, 100%);
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.gallery-map-card:hover {
  border-color: transparent;
  transform: none;
}

.gallery-map-card::before,
.gallery-map-card::after {
  display: none;
}

.gallery-map-card .back-link {
  margin-bottom: 28px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  padding: 10px 14px;
  color: rgba(17, 17, 17, 0.64);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 30px rgba(40, 34, 27, 0.08);
}

.gallery-map-card h1 {
  margin: 0 0 34px;
  color: #141414;
  font-size: clamp(46px, 6vw, 86px);
  font-weight: 880;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.gallery-map-page {
  position: relative;
  display: grid;
  gap: 42px;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 30px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 18px 46px rgba(40, 34, 27, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.map-search {
  flex: 1 1 auto;
  min-width: min(520px, 100%);
}

.map-search input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(20, 20, 20, 0.1);
  border-radius: 12px;
  padding: 0 18px;
  color: #252525;
  font: inherit;
  font-size: 17px;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.72);
  outline: none;
}

.map-search input:focus {
  border-color: rgba(20, 20, 20, 0.24);
  box-shadow: 0 0 0 4px rgba(20, 20, 20, 0.05);
}

.map-mode-tabs {
  flex: 0 0 auto;
  display: inline-flex;
  gap: 4px;
  border: 1px solid rgba(20, 20, 20, 0.1);
  border-radius: 14px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.58);
}

.map-mode-tabs span,
.map-mode-tabs a,
.map-mode-tabs button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  color: rgba(20, 20, 20, 0.78);
  font: inherit;
  font-size: 16px;
  font-weight: 760;
  background: transparent;
  cursor: pointer;
}

.map-mode-tabs .is-active {
  color: #ffffff;
  background: #111111;
}

.photo-map-shell {
  height: min(720px, calc(100svh - 270px));
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  overflow: hidden;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 24px 70px rgba(40, 34, 27, 0.12);
}

.photo-map-canvas {
  position: relative;
  min-height: 100%;
  background:
    radial-gradient(circle at 34% 36%, rgba(185, 194, 210, 0.22), transparent 34%),
    #ececec;
}

.photo-map-canvas .empty-copy {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0 !important;
}

.photo-map-list {
  display: grid;
  align-content: start;
  gap: 14px;
  overflow-y: auto;
  border-left: 1px solid rgba(20, 20, 20, 0.08);
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.photo-map-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.photo-map-cards[hidden] {
  display: none;
}

.photo-map-shell[hidden] {
  display: none;
}

.photo-map-cards .map-place-card {
  min-height: 170px;
  grid-template-columns: 150px minmax(0, 1fr);
}

.photo-map-cards .map-place-card img {
  width: 150px;
}

.map-no-results-toast {
  position: absolute;
  left: 50%;
  top: calc(100px + 22px);
  z-index: 60;
  min-width: min(360px, calc(100vw - 48px));
  min-height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 24px;
  padding: 0 28px;
  color: rgba(37, 43, 42, 0.76);
  font-size: 22px;
  font-weight: 820;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 247, 242, 0.62)),
    rgba(255, 255, 255, 0.62);
  box-shadow:
    0 24px 70px rgba(40, 34, 27, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transform: translate3d(-50%, 0, 0);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.map-no-results-toast[hidden] {
  display: none;
}

.map-place-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  min-height: 126px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  color: #1b1b1b;
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 26px rgba(40, 34, 27, 0.06);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.map-place-card[hidden] {
  display: none;
}

.map-place-card:hover,
.map-place-card:focus-visible {
  outline: none;
  border-color: rgba(20, 20, 20, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(40, 34, 27, 0.12);
}

.map-place-card img {
  width: 118px;
  height: 100%;
  object-fit: cover;
}

.map-place-card-body {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 14px 14px 14px 0;
}

.map-place-card strong {
  overflow: hidden;
  color: #202020;
  font-size: 18px;
  font-weight: 820;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.map-place-card span span {
  overflow: hidden;
  color: rgba(20, 20, 20, 0.54);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.photo-map-marker {
  width: 58px !important;
  height: 58px !important;
  border: 0 !important;
  background: transparent !important;
}

.photo-map-marker-shell {
  position: relative;
  width: 54px;
  height: 54px;
  display: block;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  background: #ffffff;
  box-shadow:
    0 12px 28px rgba(24, 30, 36, 0.26),
    0 0 0 5px rgba(255, 255, 255, 0.22);
}

.photo-map-marker-shell img {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  border-radius: 11px;
  object-fit: cover;
  object-position: center;
}

.photo-map-count {
  position: absolute;
  right: -2px;
  top: -2px;
  z-index: 2;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 860;
  background: linear-gradient(135deg, #f08a91, #6975f2);
  box-shadow: 0 8px 18px rgba(105, 117, 242, 0.24);
}

.leaflet-control-attribution {
  display: none !important;
}

.photo-map-popup {
  display: grid;
  gap: 8px;
  min-width: 160px;
}

.photo-map-popup img {
  width: 180px;
  height: 104px;
  border-radius: 12px;
  object-fit: cover;
}

.photo-map-popup strong {
  color: #202020;
  font-size: 15px;
  line-height: 1.2;
}

.photo-map-popup span {
  color: rgba(20, 20, 20, 0.56);
  font-size: 13px;
  font-weight: 680;
}

.leaflet-container {
  font: inherit;
}

.detail-content {
  display: block;
}

.post-list,
.project-list,
.blogroll-list,
.section-grid,
.message-list {
  display: grid;
  gap: 16px;
}

.post-list-item,
.project-folder,
.blogroll-item,
.section-card,
.message-item {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 20px;
  padding: 18px 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2)),
    rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 18px 44px rgba(92, 88, 97, 0.06);
}

.post-list-item {
  transition: transform 130ms ease, border-color 130ms ease;
}

.post-list-item:hover,
.post-list-item:focus-visible,
.blogroll-item:hover,
.blogroll-item:focus-visible,
.section-card:hover,
.section-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.86);
  transform: translateY(-3px);
}

.holiday-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.holiday-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 22px;
  padding: 18px 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 16px 40px rgba(92, 88, 97, 0.06);
}

.holiday-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 4px 10px;
  color: #536865;
  font-size: 12px;
  font-weight: 850;
}

.holiday-badge.cn {
  background: rgba(213, 170, 167, 0.22);
}

.holiday-badge.us {
  background: rgba(185, 194, 210, 0.26);
}

.holiday-item h2 {
  margin: 0;
  color: #1f2524;
  font-size: 24px;
  line-height: 1.2;
}

.holiday-item p {
  max-width: none !important;
  margin-top: 8px !important;
  color: #6d807c !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.site-doc {
  display: grid;
  gap: 18px;
}

.site-doc-section {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 22px;
  padding: 22px 24px;
  background: var(--liquid-bg);
  box-shadow:
    var(--inner),
    0 18px 44px rgba(92, 88, 97, 0.08);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
}

.site-doc-section::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 44%);
  opacity: 0.68;
}

.site-doc-section > * {
  position: relative;
  z-index: 1;
}

.site-doc-section h2 {
  margin: 0;
  color: #1f2524;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.site-doc-section p {
  max-width: none !important;
  margin-top: 10px !important;
  color: #5f7470 !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  font-weight: 650 !important;
}

.site-doc-list {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: #5f7470;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 650;
}

.post-eyebrow,
.post-footer,
.post-detail-meta {
  color: #8a9d99 !important;
  font-size: 12px !important;
  font-weight: 820 !important;
  line-height: 1.4 !important;
  text-transform: uppercase;
  max-width: none !important;
}

.post-list-item h2,
.project-folder h2,
.blogroll-group h2,
.section-card h2 {
  margin: 6px 0 0;
  color: #1f2524;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.post-excerpt,
.project-summary,
.blogroll-item p,
.section-card p,
.empty-copy {
  max-width: none !important;
  margin-top: 8px !important;
  color: #6d807c !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  font-weight: 680 !important;
}

.post-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.post-star,
.tag-row span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  color: #4f7772;
  font-size: 11px;
  font-weight: 820;
  background: rgba(255, 255, 255, 0.36);
}

.project-folder {
  display: grid;
  gap: 14px;
  scroll-margin-top: 24px;
}

.project-heading {
  display: flex;
  gap: 10px;
  align-items: center;
}

.project-heading h2,
.project-subheading h3,
.blogroll-group h2 {
  margin: 0;
}

.folder-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  font-size: 18px;
  font-weight: 850;
  background: linear-gradient(180deg, #78d4cd, #4bbab2);
  box-shadow: 0 8px 18px rgba(70, 184, 176, 0.18);
}

.project-posts {
  display: grid;
  gap: 12px;
}

.project-subfolder {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  border-left: 2px solid rgba(120, 153, 148, 0.2);
  scroll-margin-top: 24px;
}

.project-subheading {
  display: flex;
  gap: 8px;
  align-items: center;
}

.project-subheading h3 {
  color: #1f2524;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.subfolder-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #4f7772;
  font-size: 14px;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.blogroll-group {
  display: grid;
  gap: 12px;
}

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

.blogroll-grid {
  display: grid;
  gap: 12px;
}

.blogroll-item h3 {
  margin: 0;
  color: #1f2524;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
}

.post-detail-excerpt {
  max-width: none !important;
  margin: 0 0 22px !important;
  color: #526865 !important;
  font-size: 20px !important;
  line-height: 1.6 !important;
  font-weight: 760 !important;
}

.post-body {
  width: 100%;
  display: grid;
  gap: 16px;
}

.post-body p {
  max-width: none !important;
  color: #5f7470 !important;
  font-size: 17px !important;
  line-height: 1.8 !important;
  font-weight: 650 !important;
}

.post-body strong {
  color: #1f2524;
  font-weight: 880;
}

.post-body em {
  color: #526865;
  font-style: italic;
  font-weight: 680;
}

.post-body strong em,
.post-body .markdown-bold-italic {
  color: #1f2524;
  font-style: italic;
  font-weight: 900;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
  max-width: none;
  margin: 12px 0 0;
  color: #1f2524;
  line-height: 1.3;
  letter-spacing: 0;
}

.post-body h1 {
  font-size: 30px;
}

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

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

.post-body h4 {
  font-size: 17px;
}

.post-body h5,
.post-body h6 {
  font-size: 15px;
}

.post-body ul {
  max-width: none;
  margin: 0;
  padding-left: 22px;
  color: #5f7470;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 650;
}

.post-body hr {
  width: 100%;
  height: 1px;
  border: 0;
  margin: 10px 0;
  background:
    linear-gradient(90deg, transparent, rgba(83, 104, 101, 0.28) 18%, rgba(83, 104, 101, 0.28) 82%, transparent);
}

.post-body .markdown-link {
  color: #2f827b;
  font-weight: 760;
  text-decoration: underline;
  text-decoration-color: rgba(47, 130, 123, 0.28);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.post-body .markdown-link:hover,
.post-body .markdown-link:focus-visible {
  color: #1f625d;
  text-decoration-color: rgba(31, 98, 93, 0.58);
}

.post-body .markdown-link-card {
  justify-self: center;
  display: grid;
  width: min(620px, 100%);
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 14px;
  padding: 24px 28px;
  color: #1f2524;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 18px 42px rgba(92, 88, 97, 0.06);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.post-body .markdown-link-card:hover,
.post-body .markdown-link-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.32)),
    rgba(255, 255, 255, 0.34);
  outline: none;
  transform: translateY(-2px);
}

.post-body .markdown-link-card strong {
  overflow-wrap: anywhere;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.28;
  font-weight: 850;
}

.post-body .markdown-link-card span {
  overflow-wrap: anywhere;
  color: rgba(83, 104, 101, 0.68);
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.35;
  font-weight: 680;
}

.post-body .math-inline {
  display: inline-block;
  max-width: 100%;
  color: #1f2524;
  vertical-align: -0.08em;
}

.post-body .math-display {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 16px;
  padding: 18px 20px;
  color: #1f2524;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 16px 38px rgba(92, 88, 97, 0.06);
}

.post-body .math-display .katex-display {
  margin: 0;
}

.post-body .math-unrendered {
  font-family: "SFMono-Regular", "Roboto Mono", ui-monospace, monospace;
}

.post-body pre {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 38px 18px 18px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  color: #d4d4d4;
  background:
    linear-gradient(180deg, rgba(45, 45, 45, 0.9), rgba(30, 30, 30, 0.92)),
    rgba(30, 30, 30, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 42px rgba(35, 43, 45, 0.16);
}

.post-body pre::before {
  position: absolute;
  left: 18px;
  top: 12px;
  color: #808080;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  content: attr(data-language);
}

.post-body pre:not([data-language]) {
  padding-top: 18px;
}

.post-body pre:not([data-language])::before {
  content: none;
}

.code-copy-button {
  position: absolute;
  right: 12px;
  top: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  padding: 0;
  color: #d4d4d4;
  background: transparent;
  cursor: default;
}

.code-copy-button:hover,
.code-copy-button:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.code-copy-icon {
  position: absolute;
  inset: 0;
}

.code-copy-back,
.code-copy-front {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 5px;
  background: #252526;
}

.code-copy-back {
  left: 11px;
  top: 5px;
  z-index: 1;
}

.code-copy-front {
  left: 5px;
  top: 11px;
  z-index: 2;
}

.code-copy-button.is-copied {
  color: #4ec9b0;
}

.code-copy-button.is-failed {
  color: #f48771;
}

.post-body code {
  font-family: "SFMono-Regular", "Roboto Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre;
}

.post-body pre > code {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
}

.post-body code.inline-code {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  padding: 0.08em 0.34em 0.12em;
  color: #d4d4d4;
  background:
    linear-gradient(180deg, rgba(45, 45, 45, 0.98), rgba(30, 30, 30, 0.99)),
    #1e1e1e;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 1px 4px rgba(20, 20, 20, 0.14);
  font-size: 0.88em;
  line-height: 1.22;
  white-space: break-spaces;
  vertical-align: 0.04em;
}

.tok-keyword {
  color: #c586c0;
  font-weight: 760;
}

.tok-string,
.tok-value {
  color: #ce9178;
}

.tok-comment {
  color: #6a9955;
  font-style: italic;
}

.tok-number {
  color: #b5cea8;
}

.tok-function {
  color: #dcdcaa;
  font-weight: 720;
}

.tok-builtin {
  color: #4ec9b0;
  font-weight: 720;
}

.tok-type {
  color: #4ec9b0;
  font-weight: 720;
}

.tok-self {
  color: #9cdcfe;
  font-weight: 720;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.post-message-panel {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.post-message-panel h2 {
  margin: 0;
  color: #1f2524;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.message-list {
  margin-top: 4px;
}

.message-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  justify-content: space-between;
}

.message-header strong {
  color: #1f2524;
  font-size: 17px;
  line-height: 1.3;
}

.message-header time,
.message-post {
  color: #8a9d99 !important;
  font-size: 12px !important;
  font-weight: 820 !important;
  line-height: 1.4 !important;
  text-transform: uppercase;
  max-width: none !important;
}

.message-body {
  max-width: none !important;
  margin-top: 10px !important;
  color: #5f7470 !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  font-weight: 650 !important;
  white-space: pre-wrap;
}

.message-post {
  margin-top: 14px !important;
}

.message-post a {
  color: var(--teal-dark);
}

.utterances-mount {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.16)),
    rgba(255, 255, 255, 0.14);
}

.utterances-mount .utterances {
  max-width: 100%;
}

.quote-detail {
  position: relative;
  max-width: 560px;
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding: 30px 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 26px;
  color: #506461;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 18px 48px rgba(92, 88, 97, 0.08);
}

.quote-detail-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(82, 107, 104, 0.64);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  background: rgba(255, 255, 255, 0.42);
}

.quote-detail-original {
  font-family: "Songti SC", "Noto Serif CJK SC", "STSong", serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.08em;
  white-space: pre-line;
}

.quote-detail-source {
  justify-self: end;
  color: rgba(83, 104, 101, 0.64);
  font-size: 18px;
  font-weight: 780;
}

.message-page {
  width: min(720px, 100%);
}

@media (max-width: 1344px) {
  .nav-card,
  .hero-card,
  .message-button,
  .grid-button,
  .clock-card,
  .intro-card,
  .calendar-card,
  .latest-card,
  .social-row,
  .recommend-card,
  .quote-card {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    grid-column: auto;
    grid-row: auto;
    translate: none;
  }

  .dashboard {
    width: min(760px, 100%);
    min-height: auto;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 18px;
    grid-template-areas:
      "hero hero"
      "nav intro"
      "clock calendar"
      "latest calendar"
      "socials quote"
      "recommend recommend";
  }

  .message-button {
    grid-area: hero;
    justify-self: start;
    align-self: start;
    height: 46px;
    min-width: 124px;
    margin: 16px;
  }

  .grid-button {
    grid-area: hero;
    justify-self: end;
    align-self: start;
    width: 46px;
    height: 46px;
    margin: 16px;
  }

  .clock-card {
    width: 100%;
    height: 112px;
  }

  .hero-card,
  .latest-card,
  .recommend-card {
    height: auto;
  }

  .intro-card {
    min-height: 286px;
  }

  .calendar-card {
    min-height: 270px;
  }

  .quote-card {
    min-height: 78px;
  }

  .project-template-card {
    width: min(1040px, calc(100vw - 56px));
  }

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

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

}

@media (max-width: 760px) {
  html {
    min-height: 100%;
    overflow-x: hidden;
  }

  body:has(.home-shell) {
    height: auto;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .home-shell {
    place-items: start center;
    height: auto;
    min-height: 100svh;
    padding: 18px 14px calc(34px + env(safe-area-inset-bottom));
    overflow: visible;
  }

  body::after {
    filter: blur(18px) saturate(124%) brightness(1.05);
  }

  .home-shell::before {
    filter: blur(22px);
  }

  .dashboard {
    width: min(100%, 430px);
    transform: none;
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "intro"
      "socials"
      "nav"
      "clock"
      "calendar"
      "latest"
      "recommend"
      "quote";
    gap: 16px;
  }

  .glass-card {
    border-radius: 22px;
    backdrop-filter: blur(22px) saturate(150%) contrast(1.02);
    -webkit-backdrop-filter: blur(22px) saturate(150%) contrast(1.02);
    will-change: auto;
  }

  .hero-card {
    height: clamp(142px, 42vw, 178px);
  }

  .message-button,
  .grid-button {
    margin: 12px;
    backdrop-filter: blur(22px) saturate(150%) contrast(1.02);
    -webkit-backdrop-filter: blur(22px) saturate(150%) contrast(1.02);
    will-change: auto;
  }

  .nav-card {
    min-height: auto;
    padding: 22px;
  }

  .menu-item {
    height: 48px;
    padding: 0 16px;
    font-size: 15px;
  }

  .intro-card {
    min-height: 278px;
    padding: 26px;
  }

  .portrait {
    width: 108px;
    height: 108px;
  }

  .intro-card p {
    font-size: 20px;
  }

  .clock-card {
    height: 112px;
  }

  .clock-card time {
    font-size: clamp(42px, 15vw, 58px);
  }

  .calendar-card {
    min-height: 288px;
    padding: 24px 20px;
  }

  .calendar-grid {
    gap: 11px 6px;
    font-size: 14px;
  }

  .detail-shell {
    padding: 18px 14px;
  }

  .detail-card {
    padding: 24px 20px;
  }

  .detail-shell.project-template-shell {
    padding: 0;
  }

  .project-template-card {
    width: min(100% - 28px, 720px);
    padding: 86px 0 48px;
  }

  .project-template-card h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .project-template-intro {
    display: grid;
    gap: 18px;
    align-items: start;
  }

  .project-view-all {
    justify-self: start;
  }

  .project-template-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 38px;
  }

  .project-note-grid {
    grid-template-columns: 1fr;
  }

  .project-note-item {
    min-height: 190px;
    border-radius: 20px;
    padding: 20px;
  }

  .blogroll-grid,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .post-list-item,
  .project-folder,
  .blogroll-item,
  .section-card,
  .message-item {
    border-radius: 16px;
    padding: 16px;
  }

  .latest-card,
  .recommend-card {
    padding: 20px 22px;
  }

  .latest-card h2,
  .recommend-card h2,
  .latest-card p:not(.muted-title),
  .recommend-card p:not(.muted-title) {
    white-space: normal;
  }

  .social-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .social-button {
    height: 46px;
    min-width: 0;
    padding: 0 12px;
    font-size: 14px;
  }

  .social-button.github {
    min-width: 0;
  }

  .social-button.mail {
    width: 100%;
    justify-self: stretch;
  }

  .quote-card {
    min-height: 96px;
    padding: 16px 18px;
  }

  .gallery-detail-shell {
    padding: 0;
  }

  .gallery-detail-card {
    padding: 28px 0 0;
  }

  .gallery-detail-card .back-link {
    position: sticky;
    top: 14px;
    margin-left: 14px;
  }

  .gallery-detail-card h1 {
    margin-top: 58px;
    font-size: clamp(44px, 17vw, 72px);
    letter-spacing: -0.045em;
  }

  .gallery-copy {
    font-size: 17px !important;
  }

  .gallery-actions {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .gallery-photo-wall {
    display: grid;
    gap: 18px;
    min-height: auto;
    margin-top: 42px;
    padding: 0 16px 80px;
  }

  .gallery-photo-card,
  .gallery-photo-1,
  .gallery-photo-2,
  .gallery-photo-3,
  .gallery-photo-4,
  .gallery-photo-5,
  .gallery-photo-6,
  .gallery-photo-7 {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    height: clamp(250px, 76vw, 420px);
  }

  .gallery-photo-1,
  .gallery-photo-4,
  .gallery-photo-7 {
    --photo-rotate: -2deg;
  }

  .gallery-photo-2,
  .gallery-photo-5 {
    --photo-rotate: 1.6deg;
  }

  .gallery-photo-3,
  .gallery-photo-6 {
    --photo-rotate: -0.8deg;
  }

  .gallery-map-shell {
    padding: 24px 14px 42px;
  }

  .gallery-map-card h1 {
    font-size: clamp(42px, 14vw, 68px);
  }

  .map-toolbar {
    display: grid;
    border-radius: 22px;
    padding: 12px;
  }

  .map-search {
    min-width: 0;
  }

  .map-mode-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .photo-map-shell {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .photo-map-canvas {
    min-height: 430px;
  }

  .photo-map-list {
    max-height: none;
    border-left: 0;
    border-top: 1px solid rgba(20, 20, 20, 0.08);
  }

  .map-place-card {
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 112px;
  }

  .map-place-card img {
    width: 104px;
  }

  .photo-map-cards {
    grid-template-columns: 1fr;
  }

  .photo-map-cards .map-place-card {
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 112px;
  }

  .photo-map-cards .map-place-card img {
    width: 104px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
