@font-face {
  font-family: "System CJK";
  src: local("PingFang SC"), local("Microsoft YaHei UI"), local("Noto Sans CJK SC");
}

:root {
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --text: #17171a;
  --muted: #71717a;
  --line: rgba(23, 23, 26, 0.09);
  --accent: #7457e8;
  --accent-soft: #e5e0ff;
  --blue: #4297ff;
  --shadow: 0 30px 80px rgba(35, 30, 65, 0.1);
  --radius-lg: 36px;
  --radius-md: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0e0e10;
  --surface: rgba(30, 30, 33, 0.76);
  --surface-solid: #1a1a1e;
  --text: #f4f4f5;
  --muted: #9b9ba4;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #a58dff;
  --accent-soft: #332d51;
  --blue: #69adff;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 13%, rgba(116, 87, 232, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: "System CJK", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color 400ms ease, color 400ms ease;
}

body.dialog-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

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

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

button {
  color: inherit;
}

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

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 2px;
}

.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 16px;
  width: 100%;
  pointer-events: none;
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  padding: 0 18px 0 20px;
  border: 1px solid transparent;
  border-radius: 20px;
  transition:
    width 500ms var(--ease),
    background-color 300ms ease,
    border-color 300ms ease,
    box-shadow 300ms ease;
  pointer-events: auto;
}

.site-header.scrolled .nav {
  width: min(920px, calc(100% - 48px));
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 12px 45px rgba(20, 20, 30, 0.08);
  backdrop-filter: blur(24px) saturate(160%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
}

.nav-links a {
  padding: 8px 15px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  transition: color 200ms ease, background-color 200ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(128, 128, 128, 0.09);
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.icon-button,
.mobile-menu {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.icon-button:hover {
  background: rgba(128, 128, 128, 0.1);
}

.icon-button:active {
  transform: scale(0.92);
}

.search-icon {
  display: inline-block;
  position: relative;
  width: 16px;
  height: 16px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 7px;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(48deg);
}

.theme-icon {
  width: 16px;
  height: 16px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
  box-shadow: inset -5px -4px 0 0 currentColor;
  transform: rotate(-25deg);
}

.mobile-menu {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  align-items: center;
  min-height: 760px;
  padding-top: 116px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.eyebrow > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.hero h1 {
  margin: 0;
  font-size: clamp(64px, 7.2vw, 104px);
  font-weight: 740;
  letter-spacing: -0.075em;
  line-height: 0.96;
}

.hero h1 span {
  color: var(--muted);
  font-weight: 640;
}

.hero-copy > p {
  max-width: 580px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition:
    transform 250ms var(--ease),
    box-shadow 250ms ease,
    background-color 250ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button:active {
  transform: translateY(0) scale(0.97);
}

.button.primary {
  color: #fff;
  background: var(--text);
  box-shadow: 0 12px 28px rgba(20, 20, 24, 0.14);
}

html[data-theme="dark"] .button.primary {
  color: #151517;
}

.button.primary:hover {
  box-shadow: 0 16px 38px rgba(20, 20, 24, 0.2);
}

.button.quiet {
  background: var(--surface-solid);
  border: 1px solid var(--line);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 48px;
  color: var(--muted);
  font-size: 12px;
}

.hero-meta strong {
  color: var(--text);
  font-size: 15px;
}

.hero-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
}

.hero-visual {
  position: relative;
  height: 560px;
  perspective: 1200px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  animation: breathe 7s ease-in-out infinite;
}

.orb-one {
  top: 50px;
  right: 10px;
  width: 380px;
  height: 380px;
  background: linear-gradient(135deg, #dcd5ff, #a9caff 72%, #eaf0ff);
}

.orb-two {
  right: 260px;
  bottom: 20px;
  width: 160px;
  height: 160px;
  background: #efc8ff;
  opacity: 0.6;
  animation-delay: -2s;
}

html[data-theme="dark"] .orb {
  opacity: 0.58;
}

.profile-card {
  position: absolute;
  top: 82px;
  right: 62px;
  width: 325px;
  height: 405px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 32px 80px rgba(55, 39, 120, 0.22);
  backdrop-filter: blur(25px);
  transform: rotate(3deg);
  transition: transform 350ms var(--ease);
  will-change: transform;
}

html[data-theme="dark"] .profile-card {
  background: rgba(30, 30, 35, 0.65);
  border-color: rgba(255, 255, 255, 0.15);
}

.profile-top,
.profile-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-top {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #43c27d;
  box-shadow: 0 0 0 5px rgba(67, 194, 125, 0.14);
}

.avatar {
  width: 238px;
  height: 238px;
  margin: 20px auto 17px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff url("stick.jpg") center / 205% no-repeat;
  box-shadow: inset 0 0 0 1px rgba(20, 20, 30, 0.06);
}

.profile-bottom strong,
.profile-bottom span {
  display: block;
}

.profile-bottom strong {
  margin-bottom: 3px;
  font-size: 19px;
  letter-spacing: -0.04em;
}

.profile-bottom div span {
  color: var(--muted);
  font-size: 11px;
}

.profile-bottom .profile-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
}

.float-tag {
  position: absolute;
  z-index: 2;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 32px rgba(30, 30, 50, 0.1);
  color: #303038;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  backdrop-filter: blur(12px);
  animation: float 5s ease-in-out infinite;
}

.tag-code {
  top: 115px;
  left: 55px;
}

.tag-note {
  top: 260px;
  right: -4px;
  animation-delay: -1.7s;
}

.tag-life {
  left: 100px;
  bottom: 75px;
  animation-delay: -3.4s;
}

.section-space {
  padding-top: 105px;
  padding-bottom: 105px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 42px;
}

.section-heading > div {
  display: flex;
  align-items: baseline;
  gap: 22px;
}

.section-index {
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.section-heading h2,
.about-title h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.055em;
}

.section-heading > a,
.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.section-heading > a {
  display: flex;
  gap: 16px;
  transition: color 180ms ease;
}

.section-heading > a:hover {
  color: var(--text);
}

.feature-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: 0 16px 70px rgba(20, 20, 40, 0.05);
  cursor: pointer;
  transition: transform 450ms var(--ease), box-shadow 450ms ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.feature-art {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  background:
    radial-gradient(circle at 74% 28%, #e3d6ff, transparent 26%),
    linear-gradient(145deg, #ddd8ff, #bdccff 50%, #dff4ff);
}

.art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom right, black, transparent 80%);
}

.art-window {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(430px, 75%);
  height: 270px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 28px 70px rgba(61, 58, 120, 0.18);
  backdrop-filter: blur(22px);
  transform: translate(-50%, -50%) rotate(-3deg);
  transition: transform 600ms var(--ease);
}

.feature-card:hover .art-window {
  transform: translate(-50%, -52%) rotate(-1deg) scale(1.025);
}

.window-dots {
  display: flex;
  gap: 5px;
  padding: 15px 17px;
  border-bottom: 1px solid rgba(70, 70, 100, 0.08);
}

.window-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(60, 60, 90, 0.18);
}

.window-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100% - 37px);
  color: #22222a;
}

.window-content > span {
  width: 26px;
  height: 4px;
  margin-bottom: 23px;
  border-radius: 8px;
  background: #7457e8;
}

.window-content strong {
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: -0.06em;
}

.window-content i {
  width: 55%;
  height: 7px;
  margin-top: 20px;
  border-radius: 8px;
  background: rgba(40, 40, 65, 0.08);
  box-shadow:
    0 14px 0 rgba(40, 40, 65, 0.06),
    0 28px 0 rgba(40, 40, 65, 0.04);
}

.art-pill {
  position: absolute;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 30px rgba(60, 50, 110, 0.1);
  color: #33333b;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(14px);
}

.pill-one {
  top: 72px;
  left: 52px;
}

.pill-two {
  right: 42px;
  bottom: 58px;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  padding: clamp(38px, 5vw, 68px);
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.post-meta span {
  color: var(--accent);
  font-weight: 700;
}

.feature-copy h3 {
  margin: auto 0 20px;
  font-size: clamp(29px, 3.3vw, 46px);
  line-height: 1.22;
  letter-spacing: -0.055em;
}

.feature-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.read-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 38px;
  color: var(--muted);
  font-size: 11px;
}

.read-row button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 250ms var(--ease);
}

.feature-card:hover .read-row button,
.post-card:hover .read-row button {
  background: var(--text);
  color: var(--bg);
  transform: rotate(45deg);
}

.filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter {
  flex: 0 0 auto;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 220ms ease;
}

.filter:hover,
.filter.active {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.post-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  cursor: pointer;
  transition:
    opacity 350ms ease,
    transform 400ms var(--ease),
    box-shadow 400ms ease;
}

.post-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 60px rgba(25, 25, 40, 0.09);
}

.post-card.is-entering {
  opacity: 0;
  transform: translateY(15px);
}

.post-card .post-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 36px 0 42px;
  border-radius: 16px;
  background: var(--card-tint, var(--accent-soft));
  color: var(--card-ink, var(--accent));
  font-size: 12px;
  font-weight: 800;
}

.post-card h3 {
  margin: 0 0 14px;
  font-size: 23px;
  line-height: 1.34;
  letter-spacing: -0.045em;
}

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

.post-card .read-row {
  margin-top: auto;
}

.post-card .read-row button {
  width: 38px;
  height: 38px;
}

.empty-state {
  padding: 80px 0;
  color: var(--muted);
  text-align: center;
}

.load-wrap {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}

.load-more {
  min-width: 190px;
}

.quote-section {
  overflow: hidden;
  background: #101012;
  color: #fff;
}

html[data-theme="dark"] .quote-section {
  background: #050506;
}

.quote-section blockquote {
  position: relative;
  margin: 0;
  padding: 70px 0 76px 190px;
}

.quote-mark {
  position: absolute;
  top: 12px;
  left: 20px;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 220px;
  line-height: 1;
  opacity: 0.8;
}

.quote-section p {
  position: relative;
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 630;
  line-height: 1.35;
  letter-spacing: -0.055em;
}

.quote-section footer {
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 60px;
}

.about-title {
  display: flex;
  align-items: baseline;
  gap: 22px;
}

.about-copy .lead {
  margin: 0 0 30px;
  font-size: clamp(26px, 3.3vw, 44px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.045em;
}

.about-copy > p:not(.lead) {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.about-links a {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 13px;
  transition: transform 250ms var(--ease), background-color 200ms ease;
}

.about-links a:hover {
  background: var(--surface-solid);
  transform: translateY(-3px);
}

.newsletter {
  padding-top: 30px;
  padding-bottom: 80px;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  align-items: end;
  gap: 70px;
  padding: clamp(36px, 6vw, 75px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.6), transparent 30%),
    linear-gradient(135deg, #dcd7ff, #bbd5ff);
  color: #1c1b23;
}

.newsletter .eyebrow {
  color: rgba(28, 27, 35, 0.58);
}

.newsletter h2 {
  margin: 0;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.06em;
}

.subscribe-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.subscribe-form input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(20, 20, 30, 0.1);
  border-radius: 15px;
  outline: none;
  background: rgba(255, 255, 255, 0.6);
  color: #1c1b23;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.subscribe-form input:focus {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(116, 87, 232, 0.14);
}

.subscribe-form button {
  height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 15px;
  background: #18181b;
  color: #fff;
  cursor: pointer;
}

.subscribe-form p {
  grid-column: 1 / -1;
  margin: 8px 2px 0;
  color: rgba(28, 27, 35, 0.5);
  font-size: 10px;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 120px;
  border-top: 1px solid var(--line);
}

.footer p {
  color: var(--muted);
  font-size: 11px;
}

.footer button {
  justify-self: end;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.footer button span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.search-dialog,
.article-dialog {
  color: var(--text);
}

.search-dialog {
  width: min(650px, calc(100% - 32px));
  max-height: min(600px, calc(100dvh - 80px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(160%);
}

dialog::backdrop {
  background: rgba(10, 10, 14, 0.38);
  backdrop-filter: blur(7px);
}

dialog[open] {
  animation: dialog-in 350ms var(--ease);
}

.dialog-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.dialog-bar .search-icon {
  flex: 0 0 auto;
  color: var(--muted);
}

.dialog-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 17px;
}

.dialog-bar kbd {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-family: inherit;
  font-size: 9px;
}

.dialog-bar button {
  display: none;
  border: 0;
  background: transparent;
  font-size: 26px;
}

.search-results {
  max-height: 450px;
  padding: 12px;
  overflow-y: auto;
}

.search-hint {
  padding: 55px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.search-result {
  display: block;
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.search-result:hover,
.search-result:focus-visible {
  background: rgba(128, 128, 128, 0.1);
  outline: 0;
}

.search-result span {
  color: var(--accent);
  font-size: 10px;
}

.search-result strong {
  display: block;
  margin: 5px 0;
  font-size: 15px;
}

.search-result p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-dialog {
  width: min(860px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.article-close {
  position: sticky;
  z-index: 2;
  top: 20px;
  float: right;
  width: 42px;
  height: 42px;
  margin: 20px 20px -62px 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.article-dialog article {
  padding: clamp(58px, 10vw, 105px) clamp(28px, 9vw, 100px);
}

.article-dialog .article-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.article-dialog h1 {
  margin: 18px 0 25px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.13;
  letter-spacing: -0.065em;
}

.article-dialog .article-subtitle {
  margin: 0 0 42px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.article-dialog .article-info {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.article-body {
  padding-top: 38px;
  font-family: "System CJK", sans-serif;
}

.article-body h2 {
  margin: 46px 0 18px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.article-body p {
  margin: 0 0 24px;
  color: color-mix(in srgb, var(--text) 84%, var(--muted));
  font-size: 16px;
  line-height: 2;
}

.article-body blockquote {
  margin: 35px 0;
  padding: 22px 26px;
  border-left: 3px solid var(--accent);
  border-radius: 0 16px 16px 0;
  background: var(--accent-soft);
}

.article-body blockquote p {
  margin: 0;
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 28px;
  padding: 12px 18px;
  border-radius: 100px;
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 250ms ease, transform 350ms var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 800ms var(--ease) var(--delay, 0ms),
    transform 800ms var(--ease) var(--delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 170px;
  }

  .hero-copy {
    text-align: center;
  }

  .eyebrow,
  .hero-actions,
  .hero-meta {
    justify-content: center;
  }

  .hero-copy > p {
    margin-inline: auto;
  }

  .hero-visual {
    width: min(560px, 100%);
    margin: 35px auto 0;
  }

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

  .feature-copy {
    min-height: 370px;
  }

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

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

  .newsletter-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell,
  .site-header.scrolled .nav {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    top: 8px;
  }

  .nav {
    grid-template-columns: 1fr auto auto;
    width: min(100% - 28px, 1180px);
    background: var(--surface);
    border-color: var(--line);
    backdrop-filter: blur(20px);
  }

  .mobile-menu {
    display: grid;
    position: relative;
    grid-column: 3;
    grid-row: 1;
  }

  .mobile-menu i {
    position: absolute;
    width: 16px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 250ms ease;
  }

  .mobile-menu i:first-child {
    transform: translateY(-3px);
  }

  .mobile-menu i:last-child {
    transform: translateY(3px);
  }

  .mobile-menu[aria-expanded="true"] i:first-child {
    transform: rotate(45deg);
  }

  .mobile-menu[aria-expanded="true"] i:last-child {
    transform: rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: grid;
    padding: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 200ms ease, transform 250ms var(--ease);
    backdrop-filter: blur(24px);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 13px 15px;
  }

  .nav-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .nav-actions .icon-button:last-child {
    display: none;
  }

  .hero {
    padding-top: 145px;
  }

  .hero h1 {
    font-size: clamp(54px, 16vw, 78px);
  }

  .hero-copy > p {
    font-size: 15px;
    line-height: 1.85;
  }

  .hero-meta {
    gap: 10px;
  }

  .hero-visual {
    height: 470px;
  }

  .orb-one {
    top: 35px;
    right: 2%;
    width: 330px;
    height: 330px;
  }

  .profile-card {
    top: 60px;
    right: 50%;
    width: 275px;
    height: 350px;
    transform: translateX(50%) rotate(3deg);
  }

  .avatar {
    width: 195px;
    height: 195px;
    margin-top: 18px;
  }

  .tag-code {
    left: 3px;
  }

  .tag-life {
    left: 30px;
    bottom: 40px;
  }

  .tag-note {
    right: 0;
  }

  .section-space {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading > div {
    display: block;
  }

  .section-heading h2 {
    margin-top: 8px;
  }

  .section-heading > p {
    display: none;
  }

  .feature-art {
    min-height: 330px;
  }

  .feature-copy {
    min-height: 360px;
  }

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

  .post-card {
    min-height: 330px;
  }

  .quote-section blockquote {
    padding: 130px 0 65px;
  }

  .quote-mark {
    top: 26px;
    left: 0;
    font-size: 160px;
  }

  .about-title {
    display: block;
  }

  .about-title h2 {
    margin-top: 8px;
  }

  .newsletter-inner {
    gap: 42px;
    padding: 38px 24px;
  }

  .subscribe-form {
    grid-template-columns: 1fr;
  }

  .subscribe-form button {
    width: 100%;
  }

  .footer {
    grid-template-columns: 1fr auto;
    padding: 28px 0;
  }

  .footer p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .dialog-bar kbd {
    display: none;
  }

  .dialog-bar button {
    display: block;
  }
}

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

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