:root {
  color-scheme: light;

  --bg: #f6f8fb;
  --bg-soft: #eef3f8;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-elevated: rgba(255, 255, 255, 0.92);
  --card-bg: rgba(255, 255, 255, 0.86);
  --card-bg-hover: rgba(255, 255, 255, 0.96);
  --code-bg: #101828;
  --code-text: #e5edf7;

  --card-border: rgba(15, 23, 42, 0.08);
  --card-border-hover: rgba(15, 23, 42, 0.16);
  --border-soft: rgba(15, 23, 42, 0.1);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --accent-border: rgba(37, 99, 235, 0.22);
  --link: #2563eb;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 80px rgba(15, 23, 42, 0.16);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 28px;
  --radius-pill: 999px;

  --container-width: 1180px;
  --article-width: 800px;
  --article-font-size: clamp(16px, 1.05vw, 16.5px);
  --article-line-height: 1.82;
  --code-inline-font-size: 0.9em;
  --code-block-font-size: 0.86em;
  --code-block-line-height: 1.7;
  --table-font-size: 0.94em;
  --table-line-height: 1.58;
  --header-height: 72px;
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --motion-fast: 0.25s;
  --motion-base: 0.3s;
  --motion-slow: 0.5s;

  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not(.theme-light) {
    color-scheme: dark;

    --bg: #0b1120;
    --bg-soft: #111827;
    --surface: rgba(15, 23, 42, 0.76);
    --surface-elevated: rgba(15, 23, 42, 0.94);
    --card-bg: rgba(17, 24, 39, 0.78);
    --card-bg-hover: rgba(24, 33, 51, 0.88);
    --code-bg: #090f1d;
    --code-text: #dbeafe;

    --card-border: rgba(148, 163, 184, 0.14);
    --card-border-hover: rgba(148, 163, 184, 0.26);
    --border-soft: rgba(148, 163, 184, 0.16);

    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;

    --accent: #38bdf8;
    --accent-hover: #7dd3fc;
    --accent-soft: rgba(56, 189, 248, 0.12);
    --accent-border: rgba(56, 189, 248, 0.28);
    --link: #7dd3fc;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.18);
    --shadow-sm: 0 12px 32px rgba(0, 0, 0, 0.22);
    --shadow-md: 0 20px 56px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 28px 90px rgba(0, 0, 0, 0.42);
  }
}

:root.theme-dark,
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0b1120;
  --bg-soft: #111827;
  --surface: rgba(15, 23, 42, 0.76);
  --surface-elevated: rgba(15, 23, 42, 0.94);
  --card-bg: rgba(17, 24, 39, 0.78);
  --card-bg-hover: rgba(24, 33, 51, 0.88);
  --code-bg: #090f1d;
  --code-text: #dbeafe;

  --card-border: rgba(148, 163, 184, 0.14);
  --card-border-hover: rgba(148, 163, 184, 0.26);
  --border-soft: rgba(148, 163, 184, 0.16);

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --accent-border: rgba(56, 189, 248, 0.28);
  --link: #7dd3fc;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.18);
  --shadow-sm: 0 12px 32px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 20px 56px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 28px 90px rgba(0, 0, 0, 0.42);
}

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

html {
  min-width: 0;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% -10%, var(--accent-soft), transparent 34rem),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
  color: var(--text-primary);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  transition: background-color 0.36s var(--ease-smooth), color 0.36s var(--ease-smooth);
}

body.menu-open {
  overflow: hidden;
}

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

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--accent-border);
  outline-offset: 3px;
}

::selection {
  background: var(--accent-soft);
  color: var(--text-primary);
}

.wrap {
  width: min(calc(100% - 48px), var(--container-width));
  max-width: var(--container-width);
  margin-inline: auto;
}

.site-main {
  min-height: calc(100dvh - 96px);
  padding-top: 104px;
  animation: pageIn 0.42s var(--ease-out) both;
  transition: opacity var(--motion-base) var(--ease-smooth), transform var(--motion-base) var(--ease-out);
}

body.page-leaving .site-main {
  pointer-events: none;
  animation: pageOut 0.18s var(--ease-out) both;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.header-inner {
  position: relative;
  width: min(calc(100% - 48px), var(--container-width));
  min-height: var(--header-height);
  margin-top: 16px;
  padding: 12px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  pointer-events: auto;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
  transition:
    width var(--motion-slow) var(--ease-out),
    max-width var(--motion-slow) var(--ease-out),
    min-height var(--motion-slow) var(--ease-out),
    margin var(--motion-slow) var(--ease-out),
    padding var(--motion-slow) var(--ease-out),
    background-color var(--motion-base) var(--ease-smooth),
    border-color var(--motion-base) var(--ease-smooth),
    box-shadow var(--motion-base) var(--ease-smooth);
}

:root.is-header-restoring .header-inner,
:root.is-header-restoring .brand-avatar,
:root.is-header-restoring .brand-name,
:root.is-header-restoring .nav-link,
:root.is-header-restoring .icon-button {
  transition-duration: 0s !important;
}

.site-header.is-scrolled .header-inner,
:root.is-scrolled .site-header .header-inner {
  width: min(calc(100% - 48px), 850px);
  min-height: 62px;
  margin-top: 9px;
  padding: 9px 18px;
  box-shadow: var(--shadow-md);
}

.site-brand,
.header-actions {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.site-brand {
  color: var(--text-primary);
  justify-self: start;
  font-weight: 800;
  min-width: 0;
  transition: transform 0.2s var(--ease-smooth), color var(--motion-fast) var(--ease-smooth);
}

.site-brand:hover {
  transform: scale(1.02);
}

.header-actions {
  justify-self: end;
}

.brand-mark {
  display: none;
}

.brand-avatar {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  transition: width var(--motion-slow) var(--ease-out), height var(--motion-slow) var(--ease-out), border-color var(--motion-base) var(--ease-smooth);
}

.brand-name {
  max-width: min(220px, 100%);
  overflow: hidden;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition:
    max-width var(--motion-slow) var(--ease-out),
    width var(--motion-slow) var(--ease-out),
    font-size var(--motion-slow) var(--ease-out),
    opacity var(--motion-base) var(--ease-smooth),
    color var(--motion-base) var(--ease-smooth);
}

.site-header.is-scrolled .brand-avatar,
:root.is-scrolled .site-header .brand-avatar {
  width: 32px;
  height: 32px;
}

.site-header.is-scrolled .brand-name,
:root.is-scrolled .site-header .brand-name {
  max-width: 92px;
  opacity: 0.82;
  font-size: 14px;
}

.desktop-nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  max-width: none;
  overflow: visible;
  grid-column: 2;
  justify-self: center;
}

.nav-link {
  position: relative;
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  transition:
    color var(--motion-fast) var(--ease-smooth),
    background-color var(--motion-fast) var(--ease-smooth),
    border-color var(--motion-fast) var(--ease-smooth),
    box-shadow var(--motion-fast) var(--ease-smooth),
    min-height var(--motion-slow) var(--ease-out),
    padding var(--motion-slow) var(--ease-out),
    font-size var(--motion-slow) var(--ease-out);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.nav-link.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.site-header.is-scrolled .nav-link,
:root.is-scrolled .site-header .nav-link {
  min-height: 36px;
  padding-inline: 9px;
  font-size: 13px;
}

.nav-link.is-active::after {
  display: none;
}

.icon-button,
.drawer-close,
.soft-icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
  transition:
    color var(--motion-fast) var(--ease-smooth),
    background-color var(--motion-fast) var(--ease-smooth),
    border-color var(--motion-fast) var(--ease-smooth),
    box-shadow var(--motion-fast) var(--ease-smooth),
    width var(--motion-slow) var(--ease-out),
    height var(--motion-slow) var(--ease-out),
    border-radius var(--motion-slow) var(--ease-out),
    transform var(--motion-fast) var(--ease-smooth);
}

.site-header.is-scrolled .icon-button,
:root.is-scrolled .site-header .icon-button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.icon-button svg,
.drawer-close svg,
.back-top svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: block;
  max-width: none;
  stroke-width: 2.1;
}

.theme-toggle svg {
  width: 21px;
  height: 21px;
}

.site-header.is-scrolled .icon-button svg,
:root.is-scrolled .site-header .icon-button svg {
  width: 20px;
  height: 20px;
}

.icon-button:hover,
.drawer-close:hover,
.soft-icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
}

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

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

:root.theme-dark .theme-toggle .icon-sun,
:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root.theme-dark .theme-toggle .icon-moon,
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not(.theme-light) .theme-toggle .icon-sun {
    display: block;
  }

  :root:not(.theme-light) .theme-toggle .icon-moon {
    display: none;
  }
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 101;
  background: rgba(2, 6, 23, 0.42);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(4px);
  transition: opacity 0.28s var(--ease-smooth), backdrop-filter 0.28s var(--ease-smooth);
}

body.menu-open .menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 102;
  width: clamp(144px, 36vw, 168px);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 12px calc(env(safe-area-inset-bottom, 0px) + 16px);
  border: 0;
  border-left: 1px solid var(--card-border);
  border-radius: 0;
  background: color-mix(in srgb, var(--surface-elevated) 94%, var(--bg));
  box-shadow: -22px 0 70px rgba(15, 23, 42, 0.18);
  pointer-events: none;
  transform: translateX(104%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s var(--ease-smooth);
  backdrop-filter: blur(20px);
  opacity: 0;
}

body.menu-open .mobile-drawer {
  pointer-events: auto;
  transform: translateX(0);
  opacity: 1;
}

.drawer-head {
  display: flex;
  min-height: 64px;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 2px 4px 16px;
  border-bottom: 1px solid var(--border-soft);
}

.drawer-foot {
  display: grid;
  gap: 10px;
}

.drawer-head > div {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 4px;
}

.drawer-head strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-head span {
  display: none;
}

.drawer-foot {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.6;
}

.mobile-nav {
  display: grid;
  gap: 9px;
  justify-items: center;
  padding-top: 2px;
}

.mobile-nav-item {
  position: relative;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  transition:
    color var(--motion-fast) var(--ease-smooth),
    background-color var(--motion-fast) var(--ease-smooth),
    border-color var(--motion-fast) var(--ease-smooth),
    box-shadow var(--motion-fast) var(--ease-smooth),
    transform var(--motion-fast) var(--ease-smooth);
}

.mobile-nav-item:hover {
  color: var(--text-primary);
  background: color-mix(in srgb, var(--accent-soft) 72%, transparent);
  border-color: var(--border-soft);
}

.mobile-nav-item.is-active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 88%, transparent);
  border-color: var(--accent-border);
}

.mobile-nav-item.is-active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 3px;
  height: 24px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  transform: translateY(-50%);
}

.mobile-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: currentColor;
}

.mobile-nav-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-nav-indicator {
  display: none;
}

.drawer-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  justify-items: center;
}

.drawer-foot-links {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.drawer-foot > span {
  display: none;
}

.drawer-foot a {
  min-width: 0;
  height: 36px;
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.drawer-foot .drawer-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  margin-top: 0;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.drawer-foot a:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}

.home-view,
.tech-home-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 0 76px;
}

.home-mosaic {
  display: grid;
  gap: 24px;
}

.home-mosaic--hero {
  grid-template-columns: 320px minmax(0, 1fr);
}

.home-mosaic--info {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 18px;
}

.home-mosaic--bottom {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.86fr);
}

.soft-panel,
.card-profile,
.card-hero,
.card-articles,
.info-card,
.card-topics,
.card-more,
.article-item,
.list-item,
.link-card,
.tag-pill,
.memo-item,
.timeline-item,
.post-neighbors a,
.error-page,
.empty-state {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.32s var(--ease-soft),
    border-color 0.3s var(--ease-smooth),
    background-color 0.3s var(--ease-smooth),
    box-shadow 0.32s var(--ease-smooth);
}

.card-articles,
.card-topics,
.card-more {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.card-articles:hover,
.card-topics:hover,
.card-more:hover {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.info-card {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  padding: 22px 26px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-elevated) 84%, transparent), color-mix(in srgb, var(--card-bg) 92%, transparent));
  box-shadow: var(--shadow-xs);
}

.info-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 44%);
}

.soft-panel:not(.card-articles):not(.card-topics):not(.card-more):hover,
.article-item:hover,
.list-item:hover,
.link-card:hover,
.tag-pill:hover,
.timeline-item:hover,
.post-neighbors a:hover {
  border-color: var(--card-border-hover);
  background: var(--card-bg-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-profile,
.card-hero {
  min-height: 330px;
}

.card-profile,
.hero-text,
.card-articles,
.card-topics,
.card-more {
  padding: 30px;
}

.card-profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile-avatar {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
}

.profile-name {
  margin: 18px 0 6px;
  color: var(--text-primary);
  font-size: 30px;
  line-height: 1.15;
}

.profile-role,
.card-label,
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-desc,
.hero-desc,
.article-excerpt,
.page-header p,
.card-more p,
.link-card p,
.read-more {
  color: var(--text-secondary);
}

.profile-desc,
.hero-desc,
.card-more p {
  line-height: 1.75;
}

.profile-social,
.hero-tags,
.article-tags,
.mini-tags,
.explore-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-social {
  margin-top: auto;
  padding-top: 22px;
}

.card-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-title {
  max-width: 720px;
  margin: 0 0 18px;
  color: var(--text-primary);
  font-size: clamp(42px, 5.2vw, 62px);
  line-height: 1.05;
  letter-spacing: 0;
}

.dot {
  color: var(--accent);
}

.hero-desc {
  max-width: 620px;
  margin: 0 0 22px;
  font-size: 17px;
}

.hero-tags a,
.mini-tags a,
.article-tags span,
.badge,
.more-link,
.explore-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  transition:
    color 0.28s var(--ease-smooth),
    background-color 0.28s var(--ease-smooth),
    border-color 0.28s var(--ease-smooth),
    transform 0.28s var(--ease-soft);
}

.hero-tags a:hover,
.mini-tags a:hover,
.more-link:hover,
.explore-links a:hover {
  color: var(--accent-hover);
  border-color: var(--accent-border);
  transform: translateY(-1px);
}

.badge {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.hero-visual {
  position: relative;
  min-width: 0;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 42%, var(--accent-soft), transparent 36%),
    radial-gradient(circle at 72% 65%, rgba(34, 197, 94, 0.08), transparent 30%);
}

.hero-orbit {
  position: absolute;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  animation: floatSoft 7s ease-in-out infinite;
}

.hero-orbit--one {
  width: 180px;
  height: 180px;
  top: 56px;
  right: 76px;
}

.hero-orbit--two {
  width: 96px;
  height: 96px;
  right: 170px;
  bottom: 48px;
  animation-delay: -2s;
}

.hero-terminal {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: min(230px, calc(100% - 48px));
  padding: 16px;
  border: 1px solid var(--card-border-hover);
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-sm);
}

.hero-terminal span,
.hero-terminal strong {
  display: block;
  font-family: var(--font-mono);
}

.hero-terminal span {
  color: var(--text-muted);
  font-size: 12px;
}

.hero-terminal strong {
  margin-top: 6px;
  color: var(--text-primary);
}

.now-card,
.stats-grid {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 54px;
}

.now-card {
  justify-content: space-between;
  width: 100%;
}

.now-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.clock-meta {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 7px;
  text-align: left;
}

.now-time,
.stat-item strong {
  color: var(--text-primary);
  font-size: clamp(32px, 2.8vw, 42px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.01em;
}

.now-right {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 5px;
  margin-right: clamp(18px, 3vw, 44px);
  padding-left: 18px;
  text-align: right;
  opacity: 0.92;
}

.traditional-time {
  color: var(--text-primary);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", serif;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
}

.traditional-meridian {
  color: var(--text-muted);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.45;
  white-space: nowrap;
}

.clock-meta span,
.clock-meta time,
.stat-item span,
.article-meta,
.post-meta,
.timeline-item time,
.memo-item time {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
}

.clock-meta span {
  max-width: 210px;
  color: var(--text-secondary);
  font-weight: 750;
  line-height: 1.45;
}

.clock-meta time {
  opacity: 0.72;
}

.stats-grid {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(54px, 0.72fr) minmax(54px, 0.72fr) minmax(100px, 1fr);
  gap: 0;
  width: 100%;
}

.stat-item {
  position: relative;
  display: grid;
  min-width: 0;
  justify-items: start;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.stat-icon {
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--border-soft);
}

.stat-date {
  font-size: clamp(24px, 2.2vw, 34px) !important;
  letter-spacing: 0;
  white-space: nowrap;
}

.stat-date span {
  color: var(--text-muted);
  font-size: 0.58em;
  font-weight: 650;
  letter-spacing: 0;
  opacity: 0.72;
}

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

.articles-header h2,
.card-more h2,
.card-topics h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 28px;
  line-height: 1.2;
}

.article-list,
.articles-list,
.links-grid,
.tag-cloud,
.category-grid,
.memo-list,
.timeline {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-item,
.list-item {
  padding: 26px;
  border-radius: var(--radius-xl);
  animation: cardIn 0.62s var(--ease-out) both;
}

.article-item {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.list-item {
  display: block;
}

.article-item[href],
.list-item.is-clickable {
  cursor: pointer;
}

.list-item.is-clickable:focus-visible {
  outline: 3px solid var(--accent-border);
  outline-offset: 4px;
}

.article-item:nth-child(2),
.list-item:nth-child(2),
.link-card:nth-child(2),
.tag-pill:nth-child(2),
.memo-item:nth-child(2) {
  animation-delay: 0.04s;
}

.article-item:nth-child(3),
.list-item:nth-child(3),
.link-card:nth-child(3),
.tag-pill:nth-child(3),
.memo-item:nth-child(3) {
  animation-delay: 0.08s;
}

.article-item:nth-child(n + 4),
.list-item:nth-child(n + 4),
.link-card:nth-child(n + 4),
.tag-pill:nth-child(n + 4),
.memo-item:nth-child(n + 4) {
  animation-delay: 0.12s;
}

.article-meta,
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.article-title,
.article-title a,
.article-title span,
.list-item h2,
.list-item h2 a {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.18;
  letter-spacing: 0;
}

.article-title,
.list-item h2 {
  margin-bottom: 20px;
}

.article-excerpt,
.list-item p {
  display: -webkit-box;
  margin: 0 0 20px;
  overflow: hidden;
  line-height: 1.78;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.article-item .article-excerpt {
  align-self: start;
}

.article-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.article-footer .read-more {
  justify-self: end;
  white-space: nowrap;
}

.article-footer .read-more:first-child {
  grid-column: 2;
}

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

.topic-grid a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text-primary);
}

.topic-grid span {
  color: var(--text-muted);
  font-size: 13px;
}

.page-wrap {
  width: min(calc(100% - 48px), var(--container-width));
  max-width: var(--container-width);
  margin-inline: auto;
  padding: 58px 0 86px;
  animation: pageIn 0.56s var(--ease-out) both;
}

.page-header {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.page-header h1 {
  margin: 8px 0 12px;
  color: var(--text-primary);
  font-size: clamp(40px, 5.5vw, 60px);
  line-height: 1.08;
  letter-spacing: 0;
}

.text-link {
  color: var(--link);
  font-weight: 700;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-weight: 750;
  box-shadow: var(--shadow-xs);
}

.button:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.button-primary {
  border-color: var(--accent-border);
  background: var(--accent);
  color: #ffffff;
}

.button-ghost {
  color: var(--text-secondary);
}

.post-layout {
  width: min(calc(100% - 48px), var(--article-width));
  max-width: var(--article-width);
  margin-inline: auto;
  padding: 64px 0 92px;
  animation: pageIn 0.56s var(--ease-out) both;
}

.post-layout.post-page {
  width: min(calc(100% - 48px), calc(var(--article-width) + 300px));
  max-width: calc(var(--article-width) + 300px);
}

.post-reading-grid {
  display: grid;
  grid-template-columns: 244px minmax(0, var(--article-width));
  align-items: start;
  gap: 28px;
}

.post-main-column {
  min-width: 0;
  grid-column: 2;
}

.post-main-card {
  position: relative;
  overflow: hidden;
  padding: 28px 36px 40px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}

.post-header {
  position: relative;
  margin-bottom: 26px;
}

.post-title-wrap {
  position: relative;
  padding-left: 18px;
}

.post-title-wrap::before {
  content: "";
  position: absolute;
  top: 0.42em;
  bottom: 0.34em;
  left: 0;
  width: 4px;
  border-radius: var(--radius-md);
  background: var(--accent);
}

.post-header h1 {
  margin: 0 0 14px;
  color: var(--text-primary);
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: 0;
}

.post-header .post-meta {
  margin-bottom: 12px;
  gap: 12px 18px;
  color: var(--text-subtle);
}

.post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.post-meta-item::before {
  content: "";
  width: 22px;
  height: 22px;
  display: inline-block;
  border-radius: var(--radius-sm);
  background-color: color-mix(in srgb, var(--text-primary) 7%, transparent);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.post-meta-date::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}

.post-meta-category::before {
  background-color: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 6.5A2.5 2.5 0 0 1 5.5 4H10l2 2h6.5A2.5 2.5 0 0 1 21 8.5v8A2.5 2.5 0 0 1 18.5 19h-13A2.5 2.5 0 0 1 3 16.5v-10Z'/%3E%3Cpath d='M3 9h18'/%3E%3C/svg%3E");
}

.post-meta-words::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6h16M4 12h12M4 18h8'/%3E%3C/svg%3E");
}

.post-meta-time::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

.post-divider {
  margin-top: 22px;
  border-bottom: 1px dashed var(--border-soft);
}

.feature-image {
  margin: 0 0 32px;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-sm);
}

.feature-image figcaption,
.article-content figcaption {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

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

.toc {
  display: none;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface-elevated) 84%, transparent);
  box-shadow: var(--shadow-xs);
}

.toc.is-visible {
  display: grid;
  gap: 6px;
}

.post-toc {
  position: sticky;
  top: 104px;
  grid-column: 1;
  grid-row: 1;
  max-height: calc(100dvh - 132px);
  overflow: auto;
  scrollbar-width: none;
  backdrop-filter: blur(16px);
}

.post-toc::-webkit-scrollbar {
  display: none;
}

.toc strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc a {
  position: relative;
  display: block;
  padding: 7px 10px 7px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.24s var(--ease-smooth), background-color 0.24s var(--ease-smooth), transform 0.28s var(--ease-out);
}

.toc a::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: var(--radius-pill);
  background: var(--accent);
  transform: translateY(-50%);
  transition: height 0.24s var(--ease-out);
}

.toc a:hover,
.toc a.is-active {
  background: var(--accent-soft);
  color: var(--link);
  transform: translateX(2px);
}

.toc a.is-active::before {
  height: 18px;
}

.toc-h3 {
  margin-left: 10px;
  font-size: 13px;
}

.article-content {
  min-width: 0;
  color: var(--text-primary);
  font-size: var(--article-font-size);
  line-height: var(--article-line-height);
  overflow-wrap: anywhere;
  animation: contentIn 0.64s var(--ease-out) 0.05s both;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content p {
  margin: 1.05em 0;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  scroll-margin-top: 118px;
  color: var(--text-primary);
  line-height: 1.32;
}

.article-content h2 {
  margin: 2.2em 0 0.85em;
  padding-bottom: 0;
  border-bottom: 0;
  font-size: 1.55em;
}

.article-content h3 {
  margin: 1.7em 0 0.7em;
  font-size: 1.28em;
}

.article-content h4 {
  margin: 1.55em 0 0.6em;
  font-size: 1.08em;
}

.article-content a {
  display: inline;
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-decoration-style: dashed;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--motion-fast) var(--ease-smooth), background-color var(--motion-fast) var(--ease-smooth), text-decoration-color var(--motion-fast) var(--ease-smooth);
}

.article-content a:hover {
  color: var(--accent-hover);
  background: var(--accent-soft);
  text-decoration-color: transparent;
}

.article-content strong {
  color: var(--text-primary);
}

.article-content ul,
.article-content ol {
  padding-left: 1.35em;
}

.article-content li::marker {
  color: var(--accent);
}

.article-content li {
  margin: 0.36em 0;
}

.article-content code {
  padding: 0.14em 0.42em;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-family: var(--font-mono);
  font-size: var(--code-inline-font-size);
}

.code-frame {
  position: relative;
  margin: 1.45em 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-lg);
  background: #1e1e1e;
  box-shadow: var(--shadow-sm);
}

.article-content pre {
  position: relative;
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #d4d4d4;
  scrollbar-color: rgba(148, 163, 184, 0) transparent;
  scrollbar-width: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  transition: scrollbar-color 0.28s var(--ease-smooth);
}

.article-content .code-frame:hover pre,
.article-content pre:hover {
  scrollbar-color: rgba(148, 163, 184, 0.46) transparent;
}

.article-content pre code {
  display: block;
  min-width: max-content;
  padding: 0;
  padding-right: 74px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: var(--code-block-font-size);
  line-height: var(--code-block-line-height);
  tab-size: 2;
  white-space: pre;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.article-content pre::-webkit-scrollbar {
  height: 16px;
}

.article-content pre::-webkit-scrollbar-track {
  background: transparent;
}

.article-content pre::-webkit-scrollbar-thumb {
  border: 5px solid transparent;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0);
  background-clip: content-box;
  transition: background-color 0.28s var(--ease-smooth);
}

.code-frame:hover pre::-webkit-scrollbar-thumb,
.article-content pre:hover::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.46);
  background-clip: content-box;
}

.article-content pre code,
.article-content pre code * {
  -webkit-text-fill-color: currentColor;
}

.article-content pre code::selection,
.article-content pre code *::selection {
  background-color: #264f78 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.code-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  min-width: 58px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 9px;
  background: rgba(45, 45, 48, 0.92);
  color: #cccccc;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.24s var(--ease-smooth), color 0.24s var(--ease-smooth), border-color 0.24s var(--ease-smooth), background-color 0.24s var(--ease-smooth);
}

.code-frame:hover .code-copy,
.code-copy:focus-visible,
.code-copy.is-copied {
  opacity: 1;
}

.code-copy:hover,
.code-copy.is-copied {
  border-color: rgba(86, 156, 214, 0.55);
  background: rgba(55, 55, 58, 0.98);
  color: #ffffff;
}

.token-comment {
  color: #6a9955 !important;
  font-style: italic;
}

.article-content pre .token-comment {
  color: #6a9955 !important;
}

.token-keyword {
  color: #569cd6;
}

.token-python-keyword {
  color: #c586c0;
}

.token-string {
  color: #ce9178;
}

.token-docstring {
  color: #6a9955;
  font-style: italic;
}

.token-number,
.token-boolean {
  color: #b5cea8;
}

.token-function {
  color: #dcdcaa;
}

.token-class {
  color: #4ec9b0;
}

.token-builtin {
  color: #4ec9b0;
}

.token-decorator {
  color: #d7ba7d;
}

.token-operator {
  color: #d4d4d4;
}

.token-property,
.token-attr {
  color: #9cdcfe;
}

.token-selector,
.token-variable {
  color: #9cdcfe;
}

.token-tag {
  color: #569cd6;
}

.token-punctuation {
  color: #808080;
}

.article-content blockquote {
  margin: 1.5em 0;
  position: relative;
  padding: 6px 0 6px 20px;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-secondary);
}

.article-content blockquote::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface-elevated);
}

.article-content blockquote p {
  color: inherit;
}

.table-scroll {
  max-width: 100%;
  margin: 1.6em 0;
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--shadow-xs);
}

.article-content table {
  width: 100%;
  min-width: 640px;
  margin: 0;
  border: 0;
  border-spacing: 0;
  border-collapse: collapse;
  background: transparent;
}

.article-content th,
.article-content td {
  padding: 12px 16px;
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  font-size: var(--table-font-size);
  line-height: var(--table-line-height);
  text-align: left;
  white-space: nowrap;
}

.article-content th:first-child,
.article-content td:first-child {
  width: 1%;
  color: var(--text-secondary);
  font-weight: 700;
}

.article-content th {
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-weight: 800;
}

.article-content tr:nth-child(even) td {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.table-scroll::-webkit-scrollbar {
  height: 8px;
}

.table-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.table-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
}

.article-content figure {
  max-width: 100%;
  margin: 1.65em auto;
}

.article-content picture {
  display: block;
  max-width: 100%;
}

.article-content p.image-paragraph,
.article-content p:has(> img:only-child),
.article-content p:has(> a:only-child > img:only-child) {
  margin: 1.65em 0;
  line-height: 0;
}

.article-content a:has(> img) {
  display: block;
  background: transparent;
  text-decoration: none;
}

.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-xs);
}

.article-content img.is-broken {
  min-height: 120px;
  padding: 24px;
  object-fit: contain;
  background:
    linear-gradient(135deg, transparent 0 48%, var(--border-soft) 49% 51%, transparent 52% 100%),
    var(--surface-elevated);
}

.article-content hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--border-soft);
}

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

.post-neighbors a {
  min-width: 0;
  min-height: 96px;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 9px;
  padding: 17px 18px 18px;
}

.post-neighbor-placeholder {
  min-width: 0;
}

.post-neighbors span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.post-neighbors strong {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 15.5px;
  font-weight: 760;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-neighbor-next {
  text-align: right;
  justify-items: end;
}

.timeline {
  max-width: 780px;
  margin: 0 auto;
  gap: 34px;
}

.timeline-year {
  display: grid;
  gap: 16px;
}

.timeline-year h2 {
  margin: 8px 0 2px;
  color: var(--text-primary);
  font-size: 30px;
  line-height: 1.2;
}

.timeline-item {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-width: 0 0 1px;
  border-color: var(--border-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.timeline-item:hover {
  border-color: var(--card-border-hover);
  background: var(--surface);
  box-shadow: none;
  transform: translateX(4px);
}

.timeline-item span {
  min-width: 0;
  overflow: visible;
  color: var(--text-primary);
  text-overflow: clip;
  white-space: normal;
}

.timeline-item em {
  color: var(--accent);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.tag-cloud {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.taxonomy-section {
  display: grid;
  gap: 16px;
  width: 100%;
}

.taxonomy-section + .taxonomy-section {
  margin-top: 36px;
}

.taxonomy-head {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
}

.taxonomy-head > div {
  min-width: 0;
}

.taxonomy-head .eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.taxonomy-head h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.2;
}

.taxonomy-head span {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  margin-bottom: 10px;
}

.category-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.category-card {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 20px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s var(--ease-soft),
    border-color 0.28s var(--ease-smooth),
    background-color 0.28s var(--ease-smooth),
    box-shadow 0.3s var(--ease-smooth);
}

.category-card:hover {
  border-color: var(--card-border-hover);
  background: var(--card-bg-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.category-card span {
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-card strong {
  color: var(--text-muted);
  font-size: inherit;
}

.tag-pill {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 20px;
  color: var(--text-primary);
}

.tag-pill strong {
  color: var(--text-muted);
}

.meta-category,
.post-meta-category {
  color: var(--accent);
  font-weight: 750;
}

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

.link-card {
  min-height: 184px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  color: var(--text-primary);
}

.link-card img,
.link-initial {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
}

.link-card img {
  object-fit: cover;
}

.link-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 850;
}

.memo-dashboard {
  width: min(100%, 860px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 auto 14px;
}

.memo-stat-card,
.memo-heatmap-card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--shadow-xs);
}

.memo-stat-card {
  min-height: 68px;
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 12px 16px;
}

.memo-stat-card span,
.memo-heatmap-head {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
}

.memo-stat-card strong {
  color: var(--text-primary);
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1;
}

.memo-heatmap-card {
  width: min(100%, 860px);
  margin: 0 auto 24px;
  padding: 16px;
  overflow: hidden;
}

.memo-heatmap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.memo-heatmap-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.memo-heatmap-legend i,
.memo-heatmap-cell {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 3px;
  border: 1px solid color-mix(in srgb, var(--text-muted) 18%, transparent);
  background: color-mix(in srgb, var(--surface-elevated) 78%, var(--text-muted) 6%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.16);
}

.memo-heatmap-legend i[data-level="1"],
.memo-heatmap-cell[data-level="1"] {
  background: color-mix(in srgb, var(--accent) 22%, var(--surface-elevated));
  background: rgba(56, 189, 248, 0.26);
}

.memo-heatmap-legend i[data-level="2"],
.memo-heatmap-cell[data-level="2"] {
  background: color-mix(in srgb, var(--accent) 42%, var(--surface-elevated));
  background: rgba(56, 189, 248, 0.44);
}

.memo-heatmap-legend i[data-level="3"],
.memo-heatmap-cell[data-level="3"] {
  background: color-mix(in srgb, var(--accent) 64%, var(--surface-elevated));
  background: rgba(56, 189, 248, 0.66);
}

.memo-heatmap-legend i[data-level="4"],
.memo-heatmap-cell[data-level="4"] {
  background: var(--accent);
}

.memo-heatmap-scroll {
  max-width: 100%;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--text-muted) 5%, transparent) 1px, transparent 1px),
    linear-gradient(180deg, color-mix(in srgb, var(--text-muted) 5%, transparent) 1px, transparent 1px),
    color-mix(in srgb, var(--surface) 70%, transparent);
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    rgba(148, 163, 184, 0.06);
  background-size: 15px 15px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--text-muted) 28%, transparent) transparent;
}

.memo-heatmap-root {
  width: -webkit-max-content;
  width: max-content;
  min-width: 100%;
}

.memo-heatmap-grid {
  display: flex;
  gap: 5px;
  align-items: flex-start;
}

.memo-heatmap-week {
  display: flex;
  flex: 0 0 11px;
  flex-direction: column;
  gap: 5px;
}

.memo-timeline {
  position: relative;
  gap: 18px;
  max-width: 860px;
  margin-inline: auto;
}

.memo-timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 12px;
  width: 2px;
  border-radius: var(--radius-pill);
  background: var(--border-soft);
}

.memo-item {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-secondary);
}

.memo-item:hover {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.memo-marker {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin: 22px 0 0 6px;
  border: 3px solid var(--bg);
  border-radius: var(--radius-pill);
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.memo-card-body {
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  box-shadow: var(--shadow-xs);
  transition:
    transform var(--motion-fast) var(--ease-smooth),
    border-color var(--motion-fast) var(--ease-smooth),
    background-color var(--motion-fast) var(--ease-smooth),
    box-shadow var(--motion-fast) var(--ease-smooth);
}

.memo-item:hover .memo-card-body {
  transform: translateY(-2px);
  border-color: var(--card-border-hover);
  background: var(--card-bg-hover);
  box-shadow: var(--shadow-sm);
}

.memo-content {
  font-size: 15.5px;
  line-height: 1.78;
}

.memo-content.article-content {
  animation: none;
}

.memo-content > *:first-child {
  margin-top: 0;
}

.memo-content > *:last-child {
  margin-bottom: 0;
}

.memo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.memo-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 800;
}

.memo-meta {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.empty-state {
  padding: 24px;
  color: var(--text-secondary);
}

.error-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 58px 34px;
  text-align: center;
}

.error-code {
  margin: 0;
  color: var(--accent);
  font-size: clamp(72px, 12vw, 132px);
  font-weight: 900;
  line-height: 1;
}

.error-page h1 {
  margin: 16px 0 10px;
  color: var(--text-primary);
}

.site-footer {
  padding: 30px 0 42px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
}

.footer-inner a {
  color: var(--link);
  font-weight: 700;
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease-smooth), transform 0.34s var(--ease-soft);
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (min-width: 900px) and (max-width: 1200px) {
  .header-inner {
    gap: 12px;
    padding-inline: 18px;
  }

  .brand-name {
    max-width: 150px;
  }

  .desktop-nav {
    gap: 2px;
  }

  .nav-link {
    min-height: 38px;
    padding-inline: 9px;
    font-size: 13px;
  }

  .header-actions {
    gap: 8px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 899px) {
  :root {
    --mobile-icon-size: clamp(22px, calc(19px + 0.8vw), 25px);
    --mobile-menu-icon-size: clamp(23px, calc(20px + 0.8vw), 26px);
    --mobile-theme-icon-size: clamp(22px, calc(19px + 0.75vw), 25px);
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-brand {
    grid-column: 1;
  }

  .header-actions {
    grid-column: 2;
    justify-self: end;
    gap: 10px;
  }

  .icon-button svg,
  .site-header.is-scrolled .icon-button svg,
  :root.is-scrolled .site-header .icon-button svg {
    width: var(--mobile-icon-size);
    height: var(--mobile-icon-size);
    min-width: var(--mobile-icon-size);
    min-height: var(--mobile-icon-size);
    stroke-width: 2.25;
  }

  .mobile-menu-toggle svg {
    width: var(--mobile-menu-icon-size);
    height: var(--mobile-menu-icon-size);
    min-width: var(--mobile-menu-icon-size);
    min-height: var(--mobile-menu-icon-size);
    stroke-width: 2.35;
  }

  .theme-toggle svg {
    width: var(--mobile-theme-icon-size);
    height: var(--mobile-theme-icon-size);
    min-width: var(--mobile-theme-icon-size);
    min-height: var(--mobile-theme-icon-size);
    stroke-width: 2.35;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 899px) {
    :root {
      --mobile-icon-size: clamp(22px, calc(19px + 0.72vw), 24px);
      --mobile-menu-icon-size: clamp(23px, calc(20px + 0.72vw), 25px);
      --mobile-theme-icon-size: clamp(22px, calc(19px + 0.68vw), 24px);
    }

    .icon-button svg,
    .drawer-close svg,
    .back-top svg {
      display: block;
      max-width: none;
      -webkit-transform: translateZ(0);
      transform: translateZ(0);
    }

    .mobile-menu-toggle svg,
    .theme-toggle svg {
      stroke-width: 2.25;
    }
  }
}

@media (max-width: 860px) {
  .home-mosaic--hero,
  .home-mosaic--info,
  .home-mosaic--bottom,
  .links-grid {
    grid-template-columns: 1fr;
  }

  .home-mosaic--info {
    gap: 16px;
  }

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

@media (max-width: 768px) {
  :root {
    --article-font-size: clamp(16px, 4.1vw, 16.4px);
  }

  .wrap,
  .header-inner,
  .page-wrap,
  .post-layout,
  .home-view,
  .tech-home-shell {
    width: min(calc(100% - 32px), var(--container-width));
  }

  .site-main {
    padding-top: 92px;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 64px;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-xl);
  }

  .site-header.is-scrolled .header-inner,
  :root.is-scrolled .site-header .header-inner {
    width: min(calc(100% - 32px), var(--container-width));
    padding: 10px 14px;
  }

  .site-header.is-scrolled .brand-name,
  :root.is-scrolled .site-header .brand-name {
    max-width: 100%;
    opacity: 1;
    font-size: 15px;
  }

  .site-header.is-scrolled .icon-button,
  :root.is-scrolled .site-header .icon-button {
    width: 42px;
    height: 42px;
  }

  .icon-button svg,
  .drawer-close svg,
  .site-header.is-scrolled .icon-button svg,
  :root.is-scrolled .site-header .icon-button svg {
    width: var(--mobile-icon-size);
    height: var(--mobile-icon-size);
    min-width: var(--mobile-icon-size);
    min-height: var(--mobile-icon-size);
    stroke-width: 2.25;
  }

  .mobile-menu-toggle svg {
    width: var(--mobile-menu-icon-size);
    height: var(--mobile-menu-icon-size);
    min-width: var(--mobile-menu-icon-size);
    min-height: var(--mobile-menu-icon-size);
    stroke-width: 2.35;
  }

  .theme-toggle svg {
    width: var(--mobile-theme-icon-size);
    height: var(--mobile-theme-icon-size);
    min-width: var(--mobile-theme-icon-size);
    min-height: var(--mobile-theme-icon-size);
    stroke-width: 2.35;
  }

  .back-top svg {
    width: 25px;
    height: 25px;
    stroke-width: 2.25;
  }

  .brand-name {
    max-width: 100%;
    font-size: 15px;
  }

  .home-view,
  .tech-home-shell {
    gap: 18px;
    padding: 18px 0 60px;
  }

  .home-mosaic {
    gap: 18px;
  }

  .card-profile,
  .hero-text,
  .card-articles,
  .info-card,
  .card-topics,
  .card-more,
  .link-card,
  .memo-item,
  .empty-state {
    padding: 20px;
  }

  .info-card {
    min-height: 96px;
    padding: 18px 20px;
  }

  .now-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .now-left {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .now-right {
    justify-items: start;
    padding-left: 0;
    text-align: left;
  }

  .clock-meta {
    justify-items: start;
    text-align: left;
  }

  .now-time,
  .stat-item strong {
    font-size: clamp(30px, 8vw, 38px);
  }

  .stats-grid {
    align-items: flex-start;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .stat-item {
    min-width: 54px;
  }

  .stat-item + .stat-item::before {
    display: none;
  }

  .stat-date {
    font-size: clamp(18px, 5vw, 24px) !important;
  }

  .card-profile,
  .card-hero {
    min-height: auto;
  }

  .profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
  }

  .profile-name {
    font-size: 26px;
  }

  .hero-title {
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.1;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-visual {
    min-height: 160px;
  }

  .hero-terminal {
    right: 18px;
    bottom: 18px;
  }

  .page-wrap {
    padding: 44px 0 68px;
  }

  .page-header {
    margin-bottom: 26px;
    text-align: left;
  }

  .page-header h1 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .article-list,
  .articles-list,
  .links-grid,
  .tag-cloud,
  .category-grid,
  .memo-list,
  .timeline {
    gap: 22px;
  }

  .memo-dashboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .memo-stat-card {
    min-height: 62px;
    padding: 10px 12px;
  }

  .memo-stat-card span {
    font-size: 11px;
  }

  .memo-stat-card strong {
    font-size: 20px;
  }

  .memo-heatmap-card {
    padding: 14px;
  }

  .memo-heatmap-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .memo-timeline {
    gap: 16px;
  }

  .memo-timeline::before {
    left: 9px;
  }

  .memo-item {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
  }

  .memo-marker {
    width: 12px;
    height: 12px;
    margin: 21px 0 0 3px;
  }

  .memo-card-body {
    padding: 18px;
    border-radius: var(--radius-lg);
  }

  .article-item,
  .list-item {
    padding: 20px;
    border-radius: var(--radius-lg);
  }

  .article-title,
  .article-title a,
  .article-title span,
  .list-item h2,
  .list-item h2 a {
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.22;
  }

  .articles-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-footer {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .post-layout {
    padding: 46px 0 72px;
  }

  .post-layout.post-page {
    width: min(calc(100% - 32px), var(--container-width));
    max-width: var(--container-width);
  }

  .post-reading-grid {
    display: block;
  }

  .post-main-card {
    padding: 22px 20px 30px;
    border-radius: var(--radius-xl);
  }

  .post-header {
    margin-bottom: 26px;
  }

  .post-title-wrap {
    padding-left: 14px;
  }

  .post-title-wrap::before {
    width: 3px;
  }

  .post-header h1 {
    font-size: clamp(32px, 8vw, 40px);
  }

  .post-toc {
    position: static;
    max-height: none;
    margin: 0 0 18px;
  }

  .toc.is-visible {
    display: none;
  }

  .article-content {
    font-size: var(--article-font-size);
    line-height: var(--article-line-height);
  }

  .article-content h1,
  .article-content h2,
  .article-content h3,
  .article-content h4 {
    scroll-margin-top: 96px;
  }

  .article-content pre {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .code-frame.is-scrollable-code pre {
    padding: 14px;
  }

  .article-content table {
    min-width: 560px;
  }

  .article-content th,
  .article-content td {
    padding: 10px 12px;
  }

  .post-neighbors {
    grid-template-columns: 1fr;
  }

  .post-neighbors a {
    min-height: 84px;
  }

  .post-neighbor-next {
    text-align: right;
    justify-items: end;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 4px;
  }

  .timeline-item span {
    white-space: normal;
  }

  .tag-cloud {
    grid-template-columns: 1fr;
  }

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

  .taxonomy-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .taxonomy-head .eyebrow {
    margin-bottom: 7px;
  }

  .taxonomy-head h2 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .taxonomy-head span {
    margin-bottom: 0;
  }

  .tag-pill {
    min-height: 56px;
    border-radius: var(--radius-lg);
  }

  .mobile-drawer {
    right: 0;
    width: clamp(144px, 36vw, 168px);
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .brand-name {
    max-width: 100%;
  }

  .header-actions {
    gap: 8px;
  }

  .icon-button,
  .drawer-close,
  .soft-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
  }

  .icon-button svg,
  .drawer-close svg {
    width: var(--mobile-icon-size);
    height: var(--mobile-icon-size);
    min-width: var(--mobile-icon-size);
    min-height: var(--mobile-icon-size);
    stroke-width: 2.25;
  }

  .mobile-menu-toggle svg {
    width: var(--mobile-menu-icon-size);
    height: var(--mobile-menu-icon-size);
    min-width: var(--mobile-menu-icon-size);
    min-height: var(--mobile-menu-icon-size);
    stroke-width: 2.35;
  }

  .theme-toggle svg {
    width: var(--mobile-theme-icon-size);
    height: var(--mobile-theme-icon-size);
    min-width: var(--mobile-theme-icon-size);
    min-height: var(--mobile-theme-icon-size);
    stroke-width: 2.35;
  }

  .back-top svg {
    width: 25px;
    height: 25px;
    stroke-width: 2.25;
  }

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

  .memo-dashboard {
    grid-template-columns: 1fr;
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes contentIn {
  from {
    opacity: 0;
    filter: blur(3px);
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@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;
  }
}
