/* ============================================================
   Whimsy — a light, readable, playful-minimal Hexo theme.
   Design tokens borrowed from modern craft blogs: vibrant
   indigo primary, raspberry secondary, sky-blue decorative,
   soft blue code surfaces, generous reading measure.
   ============================================================ */

:root {
  /* Surfaces */
  --bg: hsl(0deg 0% 100%);
  --bg-subtle: hsl(225deg 40% 96%);
  --bg-raised: hsl(0deg 0% 100%);
  --code-bg: hsl(213deg 80% 95%);

  /* Text */
  --text: hsl(222deg 22% 5%);
  --text-secondary: hsl(225deg 12% 40%);
  --text-muted: hsl(225deg 15% 50%);

  /* Brand */
  --primary: hsl(240deg 95% 62%);
  --primary-deep: hsl(255deg 85% 30%);
  --secondary: hsl(333deg 100% 45%);
  --decorative: hsl(200deg 75% 65%);

  /* Lines & shadows */
  --hairline: hsl(225deg 25% 92%);
  --shadow-soft: 0 2px 8px hsl(225deg 25% 20% / 0.06);
  --shadow-lift: 0 6px 24px hsl(240deg 95% 62% / 0.12);

  /* Syntax */
  --syntax-txt: hsl(0deg 0% 16%);
  --syntax-comment: hsl(225deg 15% 42%);
  --syntax-keyword: hsl(302deg 100% 37%);
  --syntax-string: hsl(259deg 100% 56%);
  --syntax-number: hsl(200deg 15% 40%);
  --syntax-fn: hsl(231deg 99% 62%);
  --syntax-prop: hsl(327deg 100% 43%);
  --syntax-name: hsl(280deg 100% 50%);

  /* Typography */
  --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont,
    'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    'Noto Sans SC', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo,
    Consolas, monospace;

  /* Rhythm */
  --content-width: 680px;
  --radius: 8px;
  --radius-lg: 14px;

  /* Motion */
  --swap-duration: 350ms;
  --swap-ease: cubic-bezier(0.41, 0.1, 0.13, 1);
}

[data-theme='dark'] {
  --bg: hsl(225deg 30% 7%);
  --bg-subtle: hsl(225deg 25% 11%);
  --bg-raised: hsl(225deg 22% 13%);
  --code-bg: hsl(222deg 30% 14%);

  --text: hsl(225deg 25% 93%);
  --text-secondary: hsl(225deg 12% 72%);
  --text-muted: hsl(225deg 10% 58%);

  --primary: hsl(240deg 95% 76%);
  --primary-deep: hsl(255deg 85% 82%);
  --secondary: hsl(333deg 90% 65%);
  --decorative: hsl(200deg 75% 65%);

  --hairline: hsl(225deg 18% 18%);
  --shadow-soft: 0 2px 8px hsl(0deg 0% 0% / 0.3);
  --shadow-lift: 0 6px 24px hsl(240deg 95% 76% / 0.15);

  --syntax-txt: hsl(225deg 20% 88%);
  --syntax-comment: hsl(225deg 12% 55%);
  --syntax-keyword: hsl(302deg 80% 72%);
  --syntax-string: hsl(259deg 90% 76%);
  --syntax-number: hsl(200deg 40% 70%);
  --syntax-fn: hsl(231deg 99% 75%);
  --syntax-prop: hsl(327deg 85% 68%);
  --syntax-name: hsl(280deg 90% 72%);
}

/* ------------------------------------------------------------
   Base
   ------------------------------------------------------------ */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--swap-duration) var(--swap-ease),
    color var(--swap-duration) var(--swap-ease);
}

::selection {
  background: hsl(240deg 95% 62% / 0.2);
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

img, video {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.site-header {
  padding: 28px 0 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 2px;
  background-image: linear-gradient(90deg, var(--primary), var(--decorative), var(--secondary));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  transition: color 160ms ease, background-size 250ms var(--swap-ease);
}

.nav-link:hover {
  color: var(--text);
  background-size: 100% 2px;
}

.lang-switch {
  color: var(--primary);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.theme-toggle:hover {
  color: var(--text);
  transform: rotate(12deg);
}

.theme-toggle .icon-moon { display: none; }
[data-theme='dark'] .theme-toggle .icon-sun { display: none; }
[data-theme='dark'] .theme-toggle .icon-moon { display: block; }

/* ------------------------------------------------------------
   Hero header (home) — hero art merged into a tall site header
   ------------------------------------------------------------ */

.main {
  min-height: 60vh;
  padding-bottom: 80px;
}

.site-header--hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  background-image: url('../images/hero-bg.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

[data-theme='dark'] .site-header--hero {
  background-image:
    linear-gradient(hsl(225deg 30% 7% / 0.85), hsl(225deg 30% 7% / 0.85)),
    url('../images/hero-bg.png');
}

.site-header--hero .header-hero-text {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 64px;
  text-align: left;
}

.hero-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.hero-logo-link {
  flex: none;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 0;
}

.hero-logo {
  display: block;
  width: auto;
  height: 1.15em;
}

.hero-brand-text {
  min-width: 0;
}

.hero-nav-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: 48px;
  padding-bottom: 26px;
}

.hero-nav {
  position: relative;
  width: fit-content;
  max-width: calc(100% - 32px);
  background: hsl(0 0% 100% / 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid hsl(0 0% 100% / 0.55);
  border-radius: 999px;
  box-shadow:
    0 10px 30px hsl(225deg 40% 22% / 0.20),
    inset 0 1px 0 hsl(0 0% 100% / 0.75);
}

[data-theme='dark'] .hero-nav {
  background: hsl(225deg 28% 12% / 0.52);
  border-color: hsl(225deg 30% 80% / 0.20);
  box-shadow:
    0 10px 30px hsl(225deg 40% 4% / 0.45),
    inset 0 1px 0 hsl(225deg 30% 90% / 0.14);
}

.hero-nav .container {
  max-width: none;
  margin: 0;
  padding: 9px 12px 9px 24px;
}

.hero-nav .header-inner {
  justify-content: flex-start;
}

.hero-nav .site-nav {
  position: relative;
  z-index: 1;
  flex-wrap: nowrap;
}

.hero-nav .nav-link {
  background-image: none;
  padding-bottom: 0;
}

.hero-nav .nav-link:hover {
  background-size: 0% 2px;
}

/* Liquid-glass hover glint — follows the pointer across the pill (desktop only) */
.nav-glint {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 0;
  width: 0;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, hsl(0 0% 100% / 0.82), hsl(0 0% 100% / 0.48));
  box-shadow:
    inset 0 1px 0 hsl(0 0% 100% / 0.9),
    inset 0 -1px 2px hsl(225deg 40% 30% / 0.10),
    0 2px 12px hsl(225deg 40% 22% / 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-9999px, -50%);
  transition:
    transform 380ms cubic-bezier(0.3, 1.35, 0.55, 1),
    width 380ms cubic-bezier(0.3, 1.35, 0.55, 1),
    opacity 220ms ease;
  will-change: transform, width;
}

[data-theme='dark'] .nav-glint {
  background: linear-gradient(180deg, hsl(225deg 30% 92% / 0.26), hsl(225deg 30% 92% / 0.11));
  box-shadow:
    inset 0 1px 0 hsl(225deg 30% 96% / 0.30),
    0 2px 10px hsl(225deg 40% 4% / 0.30);
}

@media (hover: none) {
  .nav-glint { display: none; }
}

.hero-title-link {
  color: inherit;
  text-decoration: none;
}

.hero-title-link:hover {
  color: inherit;
  opacity: 0.75;
}

/* ------------------------------------------------------------
   Falling petals — pixel-drawn to match the valley background
   ------------------------------------------------------------ */

.petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Outer span: fall + sway */
.petals span {
  position: absolute;
  top: -24px;
  left: var(--x);
  opacity: 0;
  animation: petal-fall var(--d) linear var(--delay) infinite;
}

/* Inner i: a 3×3 pixel petal drawn with box-shadow, tumbling in steps.
   Grid:  . A A
          A B A
          . A .                                        */
.petals span i {
  display: block;
  width: var(--u);
  height: var(--u);
  background: transparent;
  box-shadow:
    var(--u) 0 0 0 var(--c1, hsl(338deg 85% 76%)),
    calc(var(--u) * 2) 0 0 0 var(--c1, hsl(338deg 85% 76%)),
    0 var(--u) 0 0 var(--c1, hsl(338deg 85% 76%)),
    var(--u) var(--u) 0 0 var(--c2, hsl(340deg 92% 87%)),
    calc(var(--u) * 2) var(--u) 0 0 var(--c1, hsl(338deg 85% 76%)),
    var(--u) calc(var(--u) * 2) 0 0 var(--c1, hsl(338deg 85% 76%));
  animation: petal-tumble var(--td, 8s) steps(8) infinite;
}

.petals span:nth-child(1) { --x: 9%;  --u: 3px; --d: 17s; --delay: -3s;  --sway: 26px;  --o: 0.7;  --td: 7s; }
.petals span:nth-child(2) { --x: 18%; --u: 4px; --d: 21s; --delay: -11s; --sway: -20px; --o: 0.55; --td: 10s; --c1: hsl(340deg 88% 82%); }
.petals span:nth-child(3) { --x: 30%; --u: 4px; --d: 15s; --delay: -7s;  --sway: 30px;  --o: 0.75; --td: 6s; }
.petals span:nth-child(4) { --x: 44%; --u: 3px; --d: 23s; --delay: -16s; --sway: -26px; --o: 0.5;  --td: 11s; --c1: hsl(340deg 88% 82%); }
.petals span:nth-child(5) { --x: 57%; --u: 3px; --d: 19s; --delay: -1s;  --sway: 22px;  --o: 0.65; --td: 8s; }
.petals span:nth-child(6) { --x: 68%; --u: 3px; --d: 16s; --delay: -9s;  --sway: -30px; --o: 0.7;  --td: 7s;  --c1: hsl(340deg 88% 82%); }
.petals span:nth-child(7) { --x: 80%; --u: 4px; --d: 22s; --delay: -14s; --sway: 24px;  --o: 0.6;  --td: 9s; }
.petals span:nth-child(8) { --x: 91%; --u: 3px; --d: 18s; --delay: -5s;  --sway: -22px; --o: 0.65; --td: 8s;  --c1: hsl(340deg 88% 82%); }

@keyframes petal-fall {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  10%  { opacity: var(--o); }
  30%  { transform: translate3d(var(--sway), 140px, 0); }
  55%  { transform: translate3d(calc(var(--sway) * -0.7), 240px, 0); }
  80%  { transform: translate3d(var(--sway), 340px, 0); opacity: var(--o); }
  100% { transform: translate3d(0, 430px, 0); opacity: 0; }
}

@keyframes petal-tumble {
  to { transform: rotate(360deg); }
}

[data-theme='dark'] .petals {
  opacity: 0.6;
}

.hero-title {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-sub {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ------------------------------------------------------------
   Post list (home / tag / category)
   ------------------------------------------------------------ */

.post-list {
  padding-top: 16px;
}

.post-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
}

.post-item:last-of-type {
  border-bottom: none;
}

.post-item-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.post-item-title {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* The signature playful gradient underline */
.gradient-link {
  color: var(--text);
  background-image: linear-gradient(90deg, var(--primary), var(--decorative), var(--secondary));
  background-repeat: no-repeat;
  background-size: 0% 3px;
  background-position: 0 96%;
  transition: background-size 300ms var(--swap-ease);
  padding-bottom: 2px;
}

.gradient-link:hover {
  background-size: 100% 3px;
}

.post-item-excerpt {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-item-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-pill {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--code-bg);
  color: var(--primary-deep);
  font-size: 0.8rem;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.tag-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}

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

.post {
  padding-top: 48px;
}

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

.post-title {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.meta-dot { opacity: 0.5; }

.page-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0;
}

/* Article typography — the heart of the theme */
.post-content {
  font-size: 1.125rem;
  overflow-wrap: break-word;
}

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

.post-content p,
.post-content ul,
.post-content ol {
  margin: 0 0 1.5em;
}

.post-content li { margin-bottom: 0.35em; }
.post-content li::marker { color: var(--decorative); font-weight: 700; }

.post-content h2,
.post-content h3,
.post-content h4 {
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 2.2em 0 0.8em;
}

.post-content h2 { font-size: 1.65rem; font-weight: 700; }
.post-content h3 { font-size: 1.3rem; font-weight: 700; }
.post-content h4 { font-size: 1.1rem; font-weight: 700; }

.post-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: hsl(240deg 95% 62% / 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color 160ms ease;
}

.post-content a:hover {
  text-decoration-color: var(--primary);
}

/* Inline code */
.post-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--code-bg);
  color: var(--primary-deep);
  padding: 0.15em 0.4em;
  border-radius: 5px;
}

/* Code blocks (Hexo highlight.js wrapper) */
.post-content .highlight {
  background: var(--code-bg);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 1.5em;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.7;
}

.post-content .highlight pre {
  margin: 0;
  background: transparent;
  padding: 0;
}

.post-content .highlight code {
  background: transparent;
  padding: 0;
  color: var(--syntax-txt);
  font-size: inherit;
}

.post-content .highlight .gutter {
  color: var(--text-muted);
  opacity: 0.55;
  padding-right: 16px;
  user-select: none;
  text-align: right;
}

.post-content .highlight td { padding: 0; }
.post-content .highlight table { margin: 0; border: none; width: auto; }
.post-content .highlight tr, .post-content .highlight td { border: none; background: transparent; }

/* Syntax colors */
.post-content .highlight .comment,
.post-content .highlight .quote { color: var(--syntax-comment); font-style: italic; }
.post-content .highlight .keyword,
.post-content .highlight .selector-tag,
.post-content .highlight .built_in,
.post-content .highlight .literal { color: var(--syntax-keyword); }
.post-content .highlight .string,
.post-content .highlight .regexp,
.post-content .highlight .addition { color: var(--syntax-string); }
.post-content .highlight .number { color: var(--syntax-number); }
.post-content .highlight .title,
.post-content .highlight .section,
.post-content .highlight .function .title { color: var(--syntax-fn); }
.post-content .highlight .attr,
.post-content .highlight .attribute,
.post-content .highlight .variable,
.post-content .highlight .template-variable { color: var(--syntax-prop); }
.post-content .highlight .name,
.post-content .highlight .tag,
.post-content .highlight .type { color: var(--syntax-name); }
.post-content .highlight .deletion { color: hsl(0deg 100% 67%); }

/* Blockquote */
.post-content blockquote {
  margin: 0 0 1.5em;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--decorative);
  color: var(--text-secondary);
}

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

/* Tables */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5em;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}

.post-content th,
.post-content td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}

.post-content th {
  font-weight: 700;
  background: var(--bg-subtle);
}

.post-content hr {
  border: none;
  height: 3px;
  width: 64px;
  margin: 3em auto;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--decorative), var(--secondary));
}

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

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 48%;
}

.post-nav-link.next { text-align: right; margin-left: auto; }

.post-nav-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.post-nav-title {
  font-weight: 600;
  color: var(--primary);
}

/* ------------------------------------------------------------
   Archive
   ------------------------------------------------------------ */

.page-heading {
  margin: 48px 0 24px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.archive-year {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--text-muted);
}

.archive-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 7px 0;
}

.archive-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 76px;
}

.archive-title {
  font-weight: 600;
  font-size: 1.05rem;
}

/* ------------------------------------------------------------
   Tag cloud
   ------------------------------------------------------------ */

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0 48px;
}

.tag-cloud-item {
  font-size: 0.95rem;
  padding: 6px 16px;
}

.tag-count {
  opacity: 0.6;
  font-weight: 500;
  margin-left: 2px;
}

/* ------------------------------------------------------------
   Paginator
   ------------------------------------------------------------ */

.paginator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0 8px;
}

.paginator-link {
  font-weight: 600;
  color: var(--primary);
}

.paginator-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0 48px;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

.footer-social a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-social a:hover { color: var(--primary); }

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-copy a { color: var(--text-muted); text-decoration: underline; }

/* ------------------------------------------------------------
   Projects store overrides — keep the markup, restyle the skin
   ------------------------------------------------------------ */

.post-content .ps-fcard { color: var(--text) !important; }
.post-content .ps-fcard:hover .ps-fcard-headline { color: var(--primary) !important; }
.post-content .ps-fcard-kicker,
.post-content .ps-fcard-sub,
.post-content .ps-app-tag,
.post-content .ps-dtag,
.post-content .ps-info-label {
  color: var(--text-muted) !important;
}
.post-content .ps-fcard-headline { font-weight: 700; letter-spacing: -0.01em; }
.post-content .ps-fcard-banner {
  border: none !important;
  box-shadow: var(--shadow-soft) !important;
  border-radius: var(--radius-lg);
  background-color: var(--bg-subtle) !important;
  background-image: none !important;
  transition: box-shadow 200ms ease;
}
.post-content .ps-fcard:hover .ps-fcard-banner { box-shadow: var(--shadow-lift) !important; }
.post-content .ps-fcard-banner img { image-rendering: auto; }
.post-content .ps-section-title {
  border-bottom: 1px solid var(--hairline) !important;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.post-content .ps-app {
  border-bottom: 1px solid var(--hairline) !important;
  color: var(--text) !important;
}
.post-content .ps-app-name { font-weight: 600; }
.post-content .ps-icon {
  border: none !important;
  box-shadow: var(--shadow-soft) !important;
  border-radius: 18px;
  background-color: var(--bg-subtle) !important;
}
.post-content .ps-icon img { image-rendering: auto; }
.post-content .ps-app-get,
.post-content .ps-btn {
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease !important;
}
.post-content .ps-app:hover .ps-app-get,
.post-content .ps-btn:hover {
  background: var(--primary) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}
.post-content .ps-btn-secondary {
  background: transparent !important;
  color: var(--primary) !important;
  border: 1.5px solid var(--primary) !important;
}
.post-content .ps-btn-secondary:hover {
  background: var(--primary) !important;
  color: #fff !important;
}
.post-content .ps-info-bar {
  border: 1px solid var(--hairline) !important;
  background: var(--bg-subtle) !important;
  box-shadow: var(--shadow-soft) !important;
  border-radius: var(--radius-lg);
}
.post-content .ps-info-cell { border-right: 1px solid var(--hairline) !important; }
.post-content .ps-info-cell:last-child { border-right: none !important; }

/* ------------------------------------------------------------
   Revenue dashboard overrides — keep the data, drop the pixel skin
   ------------------------------------------------------------ */

.post-content .rev-project {
  background: var(--bg-subtle) !important;
  border: 1px solid var(--hairline) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-soft) !important;
}

.post-content .rev-bar {
  background: linear-gradient(180deg, var(--decorative), var(--primary)) !important;
  border-radius: 4px 4px 0 0;
}

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

@media (max-width: 560px) {
  body { font-size: 1.05rem; }
  .post-content { font-size: 1.05rem; }
  .site-header { padding: 20px 0 14px; }
  .site-header--hero { min-height: 320px; }
  .site-header--hero .header-hero-text { padding-top: 40px; }
  .hero-brand { gap: 12px; }
  .hero-nav-wrap { margin-top: 32px; padding-bottom: 18px; }
  .hero-nav .container { padding: 8px 10px 8px 16px; }
  .hero-nav .site-nav { flex-wrap: wrap; justify-content: center; row-gap: 6px; }
  .nav-link { font-size: 0.9rem; }
  .site-nav { gap: 12px; }
  .archive-item { flex-direction: column; gap: 2px; }
  .archive-date { min-width: 0; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}
