/* =========================================================
   李成坤 · Ckli — static personal site
   ========================================================= */

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

:root {
  color-scheme: light;
  --bg: #f4f1e9;
  --bg-2: #ece7db;
  --surface: #fffdf8;
  --surface-2: #f8f5ed;
  --ink: #12161a;
  --ink-2: #2a323a;
  --muted: #5f6a75;
  --line: #ded7c8;
  --line-strong: #c9c0ad;
  --accent: #0f6b5c;
  --accent-2: #b45309;
  --accent-soft: #dceee9;
  --accent-ink: #0a4f45;
  --accent-contrast: #ffffff;
  --cta-bg: #101619;
  --cta-ink: #f4f1e9;
  --shadow-sm: 0 2px 8px rgba(18, 22, 26, 0.05);
  --shadow: 0 18px 50px rgba(18, 22, 26, 0.1);
  --shadow-lg: 0 30px 80px rgba(18, 22, 26, 0.14);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1120px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 72px;
  --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun",
    serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1113;
  --bg-2: #11181b;
  --surface: #141d20;
  --surface-2: #101719;
  --ink: #f0ece3;
  --ink-2: #d8d2c6;
  --muted: #9aa6ad;
  --line: #263135;
  --line-strong: #38464b;
  --accent: #5eead4;
  --accent-2: #fbbf24;
  --accent-soft: #12332d;
  --accent-ink: #8ff5e2;
  --accent-contrast: #062a24;
  --cta-bg: #16211f;
  --cta-ink: #eaf5f1;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.5);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(
      900px 600px at 88% -8%,
      color-mix(in srgb, var(--accent) 13%, transparent),
      transparent 62%
    ),
    radial-gradient(
      700px 520px at -8% 6%,
      color-mix(in srgb, var(--accent-2) 10%, transparent),
      transparent 58%
    );
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-contrast);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 28%, transparent);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand__text small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
  background: var(--surface);
}

.nav a.is-active {
  color: var(--accent-ink);
  background: var(--accent-soft);
  font-weight: 600;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.icon-sun {
  display: none;
}

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

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

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

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, var(--ink));
  border-color: color-mix(in srgb, var(--accent) 88%, var(--ink));
}

.btn--small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.btn--invert {
  background: var(--cta-ink);
  border-color: var(--cta-ink);
  color: var(--cta-bg);
}

.btn--ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--cta-ink) 32%, transparent);
  color: var(--cta-ink);
}

/* ---------- Shared bits ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}

.link-arrow span {
  transition: transform 0.2s ease;
}

.link-arrow:hover span {
  transform: translateX(4px);
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(44px, 8vw, 96px) 0 clamp(36px, 6vw, 64px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(290px, 0.88fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(46px, 8.2vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero__alias {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.8vw, 17px);
  font-weight: 500;
  letter-spacing: 0.18em;
}

.hero__tagline {
  max-width: 18em;
  margin: 30px 0 18px;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.hero__intro {
  max-width: 39em;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 17px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hero__meta li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.hero__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 420px);
}

.portrait {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.4deg);
}

.portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(8, 12, 14, 0.62));
  pointer-events: none;
}

.portrait figcaption {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.floating-card {
  position: absolute;
  right: -18px;
  bottom: 34px;
  width: min(262px, 82%);
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.floating-card__label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 6px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.floating-card__label .dot {
  width: 6px;
  height: 6px;
}

.floating-card__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.floating-card__text {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

/* ---------- Stats ---------- */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 52%, transparent);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 26px 22px;
  background: var(--bg);
}

.stat__value {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat__unit {
  margin-left: 2px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
}

.stat__label {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(56px, 9vw, 110px) 0;
}

.section--soft {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.section__head h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.section__head p {
  max-width: 32em;
  margin: 0;
  color: var(--muted);
}

.section__head--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 4vw, 42px);
}

.section__note {
  max-width: 22em;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

/* ---------- Facts ---------- */

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

.facts > div {
  padding: 16px 18px;
  background: var(--surface);
}

.facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.facts .fact--wide {
  grid-column: 1 / -1;
}

/* ---------- Skills ---------- */

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.skill {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.skill:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.skill h3 {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.skill ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill li {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 12.5px;
}

/* ---------- Projects ---------- */

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.project {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.project::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(
    420px 220px at 100% 0,
    color-mix(in srgb, var(--accent) 12%, transparent),
    transparent 70%
  );
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.project:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.project:hover::before {
  opacity: 1;
}

.project__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.project__tag {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.015em;
}

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

.project__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project:hover .project__link span {
  transform: translateX(4px);
}

.project__link span {
  transition: transform 0.2s ease;
}

/* ---------- Post list ---------- */

.post-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.post-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.post-item:hover {
  background: var(--surface-2);
}

.post-item__date {
  padding-top: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.post-item__body h3 {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

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

.post-item__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-top: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.post-item__cat {
  color: var(--accent);
}

.year-group {
  margin-bottom: 40px;
}

.year-group:last-child {
  margin-bottom: 0;
}

.year {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.year::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- Page hero ---------- */

.page-hero {
  padding: clamp(54px, 9vw, 104px) 0 clamp(32px, 5vw, 54px);
  border-bottom: 1px solid var(--line);
}

.page-hero--posts {
  padding-bottom: clamp(24px, 4vw, 40px);
}

.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.page-hero .lead {
  max-width: 46em;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.6;
}

.page__body {
  padding: clamp(40px, 7vw, 80px) 0 clamp(64px, 9vw, 110px);
}

.page__layout {
  padding-top: 0;
  padding-bottom: 0;
}

.page .prose {
  max-width: 820px;
}

.posts-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.posts-hero__meta a {
  color: var(--accent);
  text-decoration: none;
}

.posts-hero__meta a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Prose ---------- */

.prose {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.85;
}

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

.prose h2,
.prose h3,
.prose h4 {
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose h2 {
  margin: 2.1em 0 0.6em;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.prose h3 {
  margin: 1.8em 0 0.5em;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.prose h4 {
  margin: 1.6em 0 0.4em;
  font-size: 18px;
}

.prose p {
  margin: 0 0 1.1em;
}

.prose a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.prose a:hover {
  color: var(--accent-2);
}

.prose strong {
  color: var(--ink);
  font-weight: 700;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

.prose li {
  margin: 0.35em 0;
}

.prose li > p {
  margin-bottom: 0.4em;
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-serif);
  font-size: 18px;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose code {
  padding: 0.12em 0.36em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.prose pre {
  position: relative;
  margin: 1.6em 0;
  padding: 20px 22px;
  overflow: auto;
  border: 1px solid #263135;
  border-radius: var(--radius);
  background: #0f1518;
  color: #e6e1d6;
  font-size: 13.5px;
  line-height: 1.65;
  tab-size: 2;
}

.prose pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  white-space: pre;
}

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.6em 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.prose .table-wrap {
  margin: 1.6em 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 14px;
}

.prose th,
.prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--bg-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose hr {
  height: 1px;
  margin: 2.4em 0;
  border: 0;
  background: var(--line);
}

/* ---------- Post ---------- */

.post-hero {
  padding: clamp(30px, 6vw, 64px) 0 clamp(28px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.post-hero h1 {
  max-width: 16em;
  margin: 0 0 18px;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.post-hero .lead {
  max-width: 46em;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 20px);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.post__layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding-top: clamp(40px, 7vw, 72px);
  padding-bottom: clamp(48px, 8vw, 88px);
}

.post__aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.toc {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.toc__title {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.toc ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  text-decoration: none;
}

.toc a:hover,
.toc a.is-active {
  color: var(--accent);
}

.toc a.is-active {
  font-weight: 650;
}

.toc .toc-h3 {
  padding-left: 12px;
  font-size: 12px;
}

/* ---------- Doc nav（同一文档分组的总目录） ---------- */

.doc-nav {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.doc-nav__title {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.doc-nav__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: doc-nav;
}

.doc-nav__list li {
  counter-increment: doc-nav;
}

.doc-nav__list a {
  display: grid;
  grid-template-columns: 1.4em minmax(0, 1fr);
  gap: 2px;
  padding: 5px 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
  text-decoration: none;
}

.doc-nav__list a::before {
  content: counter(doc-nav, decimal-leading-zero);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.55;
}

.doc-nav__list a:hover {
  color: var(--accent);
}

.doc-nav__list a.is-current {
  color: var(--accent);
  font-weight: 650;
}

.doc-nav__list a.is-current::before {
  opacity: 1;
}

@media (max-width: 900px) {
  .doc-nav {
    margin-bottom: 16px;
  }

  .doc-nav__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 14px;
  }
}

/* ---------- Code tabs（多语言示例标签页） ---------- */

.code-tabs {
  position: relative;
  margin: 1.6em 0;
  border: 1px solid #263135;
  border-radius: var(--radius);
  background: #0f1518;
  overflow: hidden;
}

.code-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 6px 8px 0;
  border-bottom: 1px solid #263135;
  background: #131b1f;
}

.code-tabs__tab {
  padding: 7px 12px;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: none;
  color: #9aa6ab;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.code-tabs__tab:hover {
  color: #e6e1d6;
}

.code-tabs__tab.is-active {
  background: #0f1518;
  color: #f4f1e9;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.code-tabs__panel[hidden] {
  display: none;
}

.code-tabs .prose pre,
.code-tabs__panel pre {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.post__body {
  min-width: 0;
}

.post__footer {
  display: grid;
  gap: 22px;
  padding-top: 28px;
  padding-bottom: clamp(56px, 9vw, 100px);
  border-top: 1px solid var(--line);
}

.post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post__tags a,
.post__tags span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
}

.post__tags a {
  color: var(--accent);
  text-decoration: none;
}

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

.post__pager a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.post__pager a:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.post__pager small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post__pager span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.post__pager .pager-next {
  text-align: right;
  align-items: flex-end;
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--cta-bg);
  color: var(--cta-ink);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      620px 320px at 82% 18%,
      color-mix(in srgb, var(--accent) 34%, transparent),
      transparent 62%
    ),
    linear-gradient(
      120deg,
      transparent 20%,
      color-mix(in srgb, var(--cta-ink) 5%, transparent) 50%,
      transparent 80%
    );
}

.cta__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(48px, 8vw, 88px) 0;
}

.cta .eyebrow {
  color: color-mix(in srgb, var(--accent) 85%, var(--cta-ink));
}

.cta h2 {
  max-width: 16em;
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.cta p {
  max-width: 40em;
  margin: 0;
  color: color-mix(in srgb, var(--cta-ink) 68%, transparent);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(48px, 7vw, 80px) 0 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}

.footer__brand p {
  max-width: 25em;
  margin: 12px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer__status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.footer__contact {
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.footer__contact a {
  color: var(--ink-2);
  text-decoration: none;
}

.footer__contact a:hover {
  color: var(--accent);
}

.footer__col h2 {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer__links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links a {
  color: var(--ink-2);
  font-size: 13px;
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer__bottom p {
  margin: 0;
}

.footer__bottom a {
  color: var(--muted);
  text-decoration: none;
}

.footer__bottom a:hover {
  color: var(--accent);
}

/* ---------- 404 ---------- */

.notfound {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding: 72px 0;
  text-align: center;
}

.notfound__inner {
  max-width: 620px;
}

.notfound__code {
  margin: 0;
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: clamp(88px, 18vw, 180px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.notfound h1 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.03em;
}

.notfound p {
  margin: 0 0 26px;
  color: var(--muted);
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero__grid,
  .section__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    justify-self: start;
    width: min(100%, 520px);
  }

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

  .post__aside {
    display: none;
  }

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

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

@media (max-width: 820px) {
  .header__inner {
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 10px 0;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-bottom: 2px;
  }

  .header__actions {
    margin-left: auto;
  }

  .header__cta {
    display: none;
  }
}

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

  .section__head--row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section__note {
    text-align: left;
  }

  .post-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }

  .post-item__date {
    padding-top: 0;
  }

  .post-item__meta {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0;
  }

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

  .post__pager .pager-next {
    text-align: left;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  .hero__tagline {
    font-size: 21px;
  }

  .floating-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 14px;
    transform: none;
  }

  .portrait {
    transform: none;
  }

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

  .facts .fact--wide {
    grid-column: auto;
  }

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

  .footer__bottom {
    flex-direction: column;
  }

  .prose {
    font-size: 16px;
  }

  .prose pre {
    margin-inline: calc(var(--gutter) * -0.5);
    border-radius: var(--radius-sm);
    padding: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cta,
  .post__aside,
  .post__pager,
  .hero__actions,
  .hero__meta,
  .theme-toggle {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  body::before,
  body::after {
    display: none;
  }

  .prose {
    max-width: none;
    font-size: 12pt;
  }

  .prose a {
    color: #000;
    text-decoration: underline;
  }
}

/* ---------- Reading progress & code copy ---------- */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: 3px;
  pointer-events: none;
  background: transparent;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: transform 0.08s linear;
}

.prose pre {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(18, 22, 26, 0.55);
  color: #f4f1e9;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.prose pre:hover .copy-btn,
.copy-btn:focus-visible {
  opacity: 1;
}

.copy-btn:hover {
  background: rgba(18, 22, 26, 0.82);
}

@media (hover: none) {
  .copy-btn {
    opacity: 1;
  }
}

/* ---------- Ecosystem ---------- */

.eco-hero {
  padding: clamp(64px, 9vw, 116px) 0 clamp(42px, 6vw, 68px);
}

.eco-hero__inner {
  max-width: 920px;
}

.eco-hero h1 {
  margin: 10px 0 20px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.eco-hero .lead {
  max-width: 38em;
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.7;
}

.eco-hero__summary {
  max-width: 42em;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

.eco-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.eco-stats {
  margin-top: 8px;
}

.arch {
  display: grid;
  gap: 10px;
}

.arch__layer {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.arch__layer--accent {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  background:
    linear-gradient(
      120deg,
      color-mix(in srgb, var(--accent-soft) 72%, var(--surface)),
      var(--surface) 66%
    );
}

.arch__label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.arch__label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}

.arch__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arch__item {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.45;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 12px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  box-shadow: var(--shadow);
}

.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.service-card__name {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-card__tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 10.5px;
  line-height: 1.4;
}

.service-card h3 {
  margin: 2px 0 0;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

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

.client-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.client-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.client-card__tag {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.client-card h3 {
  margin: 2px 0 0;
  font-size: 19px;
}

.client-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.client-card__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  color: var(--accent-ink);
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none;
}

.client-card__action span {
  transition: transform 0.2s ease;
}

.client-card__action:hover span {
  transform: translateX(3px);
}

.client-card__qr {
  width: 84px;
  height: 84px;
  margin-top: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.download-panel h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.download-panel p {
  max-width: 46em;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.download-panel__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.eco-open {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  overflow: hidden;
  padding: clamp(26px, 4vw, 46px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(
      600px 320px at 100% 0%,
      color-mix(in srgb, var(--accent) 28%, transparent),
      transparent 70%
    ),
    var(--cta-bg);
  color: var(--cta-ink);
  box-shadow: var(--shadow-lg);
}

.eco-open .eyebrow {
  color: var(--accent);
}

.eco-open h2 {
  margin: 8px 0 12px;
  color: var(--cta-ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.eco-open p {
  max-width: 40em;
  margin: 0;
  color: color-mix(in srgb, var(--cta-ink) 72%, transparent);
  font-size: 14.5px;
}

.eco-open__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: color-mix(in srgb, var(--cta-ink) 82%, transparent);
  font-size: 13px;
}

.eco-open__list li {
  position: relative;
  padding-left: 14px;
}

.eco-open__list li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.eco-open__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eco-open__actions .btn {
  justify-content: center;
}

@media (max-width: 980px) {
  .arch__layer {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .eco-open {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .eco-open__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .client-grid {
    grid-template-columns: 1fr;
  }

  .download-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .eco-open__list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Download page ---------- */

.page-download .prose {
  max-width: 980px;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 8px;
}

.dl-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.dl-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dl-card__tag {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dl-card__badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}

.dl-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.02em;
}

.dl-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.dl-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.dl-meta div {
  margin: 0;
}

.dl-meta dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dl-meta dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 14px;
}

.dl-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.dl-card__hint {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

@media (max-width: 720px) {
  .dl-grid {
    grid-template-columns: 1fr;
  }
}
