/* ==========================================================================
   Zhao 的博客 — Apple-inspired Minimalist Design System
   Pure static CSS, offline-ready, responsive
   ========================================================================== */

:root {
  /* Color Palette — Monochrome + Apple Blue */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-tertiary: #fbfbfd;
  --bg-dark: #000000;
  --bg-dark-elevated: #0d0d0f;
  --bg-dark-card: #161618;

  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --text-on-dark: #f5f5f7;
  --text-on-dark-secondary: #a1a1a6;

  --accent-blue: #0071e3;
  --accent-blue-hover: #0077ed;
  --link-blue: #0066cc;
  --link-blue-dark: #2997ff;

  --border-light: rgba(0, 0, 0, 0.08);
  --border-subtle: rgba(0, 0, 0, 0.05);
  --border-dark: rgba(255, 255, 255, 0.14);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Microsoft YaHei",
    "Noto Sans CJK SC", sans-serif;
  --font-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;

  /* Spacing & Layout */
  --nav-height: 48px;
  --container-wide: 1120px;
  --container-narrow: 980px;
  --container-article: 680px;

  /* Radii */
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-pill: 980px;

  /* Motion */
  --ease-apple: cubic-bezier(0.28, 0.11, 0.32, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 20px 48px rgba(0, 0, 0, 0.09);
  --shadow-visual: 0 24px 64px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

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

/* ==========================================================================
   Layout Containers
   ========================================================================== */

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

.container--narrow {
  max-width: var(--container-narrow);
}

.container--article {
  max-width: var(--container-article);
}

/* ==========================================================================
   Sticky Frosted-Glass Navigation (Apple Style)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background-color: rgba(251, 251, 253, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.3s var(--ease-apple),
    border-color 0.3s var(--ease-apple);
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.86);
}

.nav-inner {
  height: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  transition: opacity 0.2s var(--ease-apple);
}

.nav-brand:hover {
  opacity: 0.72;
}

.nav-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-primary);
  display: inline-block;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s var(--ease-apple);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
}

.nav-link.is-active {
  font-weight: 500;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s var(--ease-apple);
}

.nav-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.nav-toggle-bars {
  width: 18px;
  height: 12px;
  position: relative;
  display: block;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.28s var(--ease-apple), opacity 0.2s var(--ease-apple);
}

.nav-toggle-bars span:first-child {
  top: 2px;
}

.nav-toggle-bars span:last-child {
  bottom: 2px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* Reading Progress Bar (Article Pages) */
.reading-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0%;
  height: 2px;
  background: var(--accent-blue);
  transition: width 0.08s linear;
  pointer-events: none;
}

/* Mobile Full-Width Frosted Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: rgba(251, 251, 253, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 24px 28px;
  z-index: 999;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.28s var(--ease-apple), transform 0.28s var(--ease-apple);
}

.mobile-drawer.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-drawer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer-link {
  display: block;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-link.is-active {
  color: var(--accent-blue);
}

/* ==========================================================================
   Buttons & Apple Blue Links
   ========================================================================== */

.actions-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  transition: background-color 0.22s var(--ease-apple),
    color 0.22s var(--ease-apple),
    border-color 0.22s var(--ease-apple),
    transform 0.22s var(--ease-apple);
}

.btn-pill:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--accent-blue);
  color: #ffffff;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background-color: var(--accent-blue-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}

.btn-outline:hover {
  background-color: var(--accent-blue);
  color: #ffffff;
}

.btn-outline-dark {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-outline-dark:hover {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  font-weight: 400;
  color: var(--link-blue);
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease-apple);
}

.link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-arrow svg,
.link-arrow .chevron {
  width: 14px;
  height: 14px;
  display: inline-block;
  transition: transform 0.22s var(--ease-apple);
}

.link-arrow:hover svg,
.link-arrow:hover .chevron {
  transform: translateX(4px);
}

.section-dark .link-arrow,
.link-arrow--dark {
  color: var(--link-blue-dark);
}

/* Category Badge / Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.section-dark .eyebrow {
  color: var(--text-on-dark-secondary);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background-color: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
}

.section-dark .tag-pill {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--text-on-dark);
}

/* ==========================================================================
   Homepage — Product-Page-Style Full-Screen Hero & Alternating Showcases
   ========================================================================== */

.hero-section {
  min-height: calc(100vh - var(--nav-height));
  padding: clamp(64px, 10vh, 112px) 0 clamp(64px, 8vh, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(
      ellipse 80% 55% at 50% 0%,
      rgba(0, 113, 227, 0.06) 0%,
      rgba(255, 255, 255, 0) 70%
    ),
    var(--bg-primary);
}

.hero-title {
  font-size: clamp(2.75rem, 6.8vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--text-primary);
  max-width: 14ch;
  margin: 0 auto 20px;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.48;
  color: var(--text-secondary);
  max-width: 34ch;
  margin: 0 auto 32px;
}

.hero-stage {
  width: 100%;
  max-width: 960px;
  margin: clamp(36px, 6vh, 60px) auto 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-visual);
  background: var(--bg-secondary);
  aspect-ratio: 16 / 9;
  position: relative;
}

/* Full-Screen Alternating Article Showcases */
.showcase-section {
  min-height: 92vh;
  padding: clamp(72px, 10vh, 120px) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.showcase-section--light {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.showcase-section--white {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.showcase-section--dark {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}

.showcase-header {
  max-width: 760px;
  margin: 0 auto 44px;
}

.showcase-title {
  font-size: clamp(2.125rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.showcase-lead {
  font-size: clamp(1.0625rem, 1.9vw, 1.3125rem);
  line-height: 1.52;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.section-dark .showcase-lead {
  color: var(--text-on-dark-secondary);
}

.showcase-visual-link {
  display: block;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.6s var(--ease-out-expo),
    box-shadow 0.6s var(--ease-out-expo);
}

.showcase-visual-link:hover {
  transform: translateY(-6px) scale(1.006);
}

.showcase-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-visual);
}

.section-dark .showcase-visual {
  border-color: var(--border-dark);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
}

.showcase-visual svg,
.hero-stage svg,
.card-media svg,
.article-hero-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Bottom Home Summary Strip */
.home-outro {
  padding: clamp(72px, 10vh, 112px) 0;
  background-color: var(--bg-primary);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.outro-card {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background-color: var(--bg-secondary);
}

.outro-title {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.outro-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 46ch;
  margin: 0 auto 28px;
}

/* ==========================================================================
   Page Headers (Articles List & About)
   ========================================================================== */

.page-hero {
  padding: clamp(64px, 9vh, 104px) 0 clamp(36px, 5vh, 52px);
  background-color: var(--bg-primary);
}

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

.page-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.375rem);
  color: var(--text-secondary);
  max-width: 44ch;
  line-height: 1.5;
}

.page-hero--center .page-subtitle {
  margin: 0 auto;
}

/* ==========================================================================
   Articles List Page — Filter Bar & Large Rounded Cards
   ========================================================================== */

.articles-section {
  padding: 20px 0 clamp(80px, 10vh, 120px);
  background-color: var(--bg-secondary);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 32px;
}

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

.filter-tab {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-light);
  transition: all 0.22s var(--ease-apple);
}

.filter-tab:hover {
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.2);
}

.filter-tab.is-active {
  background-color: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
}

.filter-count {
  font-size: 14px;
  color: var(--text-secondary);
}

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

.article-card {
  background-color: var(--bg-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease-out-expo),
    box-shadow 0.45s var(--ease-out-expo);
}

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

.article-card.is-hidden {
  display: none;
}

.article-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--bg-dark);
}

.article-card--featured .card-media {
  aspect-ratio: auto;
  min-height: 360px;
}

.card-media-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.65s var(--ease-out-expo);
}

.article-card:hover .card-media-inner {
  transform: scale(1.035);
}

.card-body {
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.card-title {
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.article-card--featured .card-title {
  font-size: clamp(1.625rem, 2.8vw, 2.25rem);
}

.card-excerpt {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-read-time {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ==========================================================================
   Article Detail Page — Editorial Long-Form Typography
   ========================================================================== */

.article-page {
  padding-bottom: clamp(72px, 10vh, 112px);
}

.article-header {
  padding: clamp(56px, 8vh, 96px) 0 40px;
  text-align: center;
}

.article-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--link-blue);
  margin-bottom: 24px;
}

.article-breadcrumb:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-title {
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.14;
  color: var(--text-primary);
  max-width: 22ch;
  margin: 0 auto 20px;
}

.article-deck {
  font-size: clamp(1.0625rem, 1.9vw, 1.3125rem);
  line-height: 1.58;
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0 auto 28px;
}

.article-meta-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  font-size: 14px;
  color: var(--text-secondary);
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: var(--text-tertiary);
}

.article-hero-figure {
  margin: 0 auto clamp(44px, 6vh, 64px);
}

.article-hero-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-visual);
}

.article-hero-caption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-tertiary);
  text-align: center;
}

/* Long-Form Prose */
.article-prose {
  font-size: 18px;
  line-height: 1.92;
  color: var(--text-primary);
  letter-spacing: 0.005em;
}

.article-prose > * + * {
  margin-top: 1.55em;
}

.article-prose h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-top: 2.4em;
  margin-bottom: 0.7em;
  color: var(--text-primary);
}

.article-prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin-top: 1.9em;
  margin-bottom: 0.5em;
}

.article-prose p {
  color: #2c2c2e;
}

.article-prose strong {
  font-weight: 600;
  color: var(--text-primary);
}

.article-prose ul,
.article-prose ol {
  padding-left: 1.4em;
}

.article-prose li {
  margin-top: 0.6em;
  color: #2c2c2e;
}

.article-prose blockquote {
  margin: 2.2em 0;
  padding: 24px 28px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--text-primary);
  font-size: 19px;
  line-height: 1.75;
  color: var(--text-primary);
  font-weight: 500;
}

.article-prose blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  color: var(--text-secondary);
}

.article-prose pre {
  margin: 2em 0;
  padding: 24px;
  border-radius: var(--radius-lg);
  background-color: #141416;
  color: #e5e5ea;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

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

.article-callout {
  margin: 2.2em 0;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
}

.article-callout-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.article-callout p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
}

.article-divider {
  border: 0;
  height: 1px;
  background-color: var(--border-light);
  margin: 56px 0 40px;
}

/* Prev / Next Article Navigation */
.article-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.pager-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s var(--ease-apple),
    background-color 0.3s var(--ease-apple);
}

.pager-card:hover {
  transform: translateY(-3px);
  background-color: #ececf0;
}

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

.pager-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.pager-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  line-height: 1.35;
}

/* ==========================================================================
   About Page — Bento Cards & Editorial Bio
   ========================================================================== */

.about-section {
  padding: 24px 0 clamp(80px, 10vh, 120px);
}

.about-hero-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background-color: var(--bg-secondary);
  margin-bottom: 32px;
}

.about-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.about-bio-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-bottom: 16px;
}

.about-bio-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.bento-card {
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-xl);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
}

.bento-card--dark {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  border-color: var(--border-dark);
}

.bento-card--wide {
  grid-column: 1 / -1;
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.bento-card--dark .bento-icon {
  background-color: rgba(255, 255, 255, 0.12);
}

.bento-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.bento-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.bento-card--dark .bento-desc {
  color: var(--text-on-dark-secondary);
}

.principles-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.principle-item {
  padding: 20px;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.principle-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--link-blue-dark);
  margin-bottom: 6px;
}

.principle-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.principle-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-on-dark-secondary);
}

.contact-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.copy-feedback {
  font-size: 14px;
  color: var(--accent-blue);
  opacity: 0;
  transition: opacity 0.25s var(--ease-apple);
}

.copy-feedback.is-visible {
  opacity: 1;
}

/* ==========================================================================
   CSS Gradient Art Themes (Pure Offline Visual Backgrounds)
   ========================================================================== */

.art-hero {
  background: radial-gradient(circle at 20% 20%, #eef4ff 0%, transparent 45%),
    radial-gradient(circle at 82% 78%, #e4e6eb 0%, transparent 50%),
    linear-gradient(135deg, #fbfbfd 0%, #eceef2 100%);
}

.art-tech {
  background: radial-gradient(circle at 22% 24%, rgba(41, 151, 255, 0.32) 0%, transparent 48%),
    radial-gradient(circle at 80% 76%, rgba(94, 92, 230, 0.28) 0%, transparent 52%),
    linear-gradient(145deg, #07080d 0%, #11131d 55%, #090a0f 100%);
}

.art-life {
  background: radial-gradient(circle at 75% 22%, rgba(255, 214, 153, 0.55) 0%, transparent 48%),
    radial-gradient(circle at 20% 80%, rgba(214, 224, 236, 0.7) 0%, transparent 52%),
    linear-gradient(145deg, #faf8f4 0%, #edeae3 100%);
}

.art-travel {
  background: radial-gradient(circle at 72% 30%, rgba(255, 149, 98, 0.42) 0%, transparent 45%),
    radial-gradient(circle at 25% 75%, rgba(48, 128, 210, 0.35) 0%, transparent 55%),
    linear-gradient(160deg, #0b1322 0%, #16243d 52%, #242435 100%);
}

.art-reading {
  background: radial-gradient(circle at 25% 25%, rgba(208, 214, 224, 0.65) 0%, transparent 48%),
    radial-gradient(circle at 80% 80%, rgba(235, 228, 218, 0.8) 0%, transparent 50%),
    linear-gradient(145deg, #f6f6f8 0%, #e7e7ec 100%);
}

/* ==========================================================================
   Minimal Footer
   ========================================================================== */

.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 40px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

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

.footer-brand {
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.2s var(--ease-apple);
}

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

/* ==========================================================================
   Scroll Reveal Animations (IntersectionObserver)
   ========================================================================== */

.js-ready .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s var(--ease-out-expo),
    transform 0.85s var(--ease-out-expo);
  will-change: opacity, transform;
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-ready .reveal-delay-1 {
  transition-delay: 0.08s;
}

.js-ready .reveal-delay-2 {
  transition-delay: 0.16s;
}

.js-ready .reveal-delay-3 {
  transition-delay: 0.24s;
}

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

  .js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 900px) {
  .article-card--featured {
    grid-template-columns: 1fr;
  }

  .article-card--featured .card-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .about-hero-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-avatar {
    max-width: 220px;
    margin: 0 auto;
  }

  .principles-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 20px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mobile-drawer {
    display: block;
  }

  .hero-section {
    min-height: auto;
    padding: 56px 0 64px;
  }

  .showcase-section {
    min-height: auto;
    padding: 72px 0;
  }

  .hero-stage,
  .showcase-visual,
  .article-hero-visual {
    border-radius: var(--radius-lg);
  }

  .articles-grid,
  .bento-grid,
  .article-pager {
    grid-template-columns: 1fr;
  }

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

  .article-prose {
    font-size: 16.5px;
    line-height: 1.85;
  }

  .article-prose blockquote {
    padding: 18px 20px;
    font-size: 17px;
  }

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