:root {
  --bg: #f5f2ee;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #fffdfb;
  --surface-alt: #f1ebe4;
  --border: rgba(27, 27, 27, 0.08);
  --text: #1b1b1b;
  --muted: #666057;
  --accent: #d2c1af;
  --accent-strong: #b69d86;
  --shadow: 0 18px 60px rgba(122, 105, 85, 0.08);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 36%),
    linear-gradient(180deg, #fdfbf8 0%, var(--bg) 100%);
  overflow-x: hidden;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, 12px, 0);
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 80%);
}

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

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

.background-orb {
  position: fixed;
  z-index: 0;
  width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
  opacity: 0.55;
  animation: drift 12s ease-in-out infinite;
}

.orb-left {
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, rgba(245, 233, 220, 0.9), transparent 68%);
}

.orb-right {
  right: -150px;
  bottom: 12%;
  background: radial-gradient(circle, rgba(231, 236, 229, 0.85), transparent 68%);
}

.site-frame {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--container));
  margin: 24px auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-copy,
.hero-panel,
.featured-section,
.posts-area,
.article-detail-section {
  animation: rise-in 720ms ease both;
}

.hero-panel {
  animation-delay: 120ms;
}

.featured-section {
  animation-delay: 200ms;
}

.posts-area {
  animation-delay: 280ms;
}

.article-detail-section {
  animation-delay: 440ms;
}

.site-header,
.site-footer,
.hero,
.featured-card,
.content-layout {
  display: grid;
}

.site-header {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #eadfce 100%);
  border: 1px solid rgba(27, 27, 27, 0.08);
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 1.7rem;
  font-weight: 700;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-text small,
.section-title span,
.eyebrow,
.panel-label,
.meta-row,
.footer-links,
.tag-row,
.post-index {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-text small,
.section-title span,
.eyebrow,
.panel-label,
.meta-row,
.footer-links,
.tag-row,
.site-nav a,
.site-footer p,
.post-card a,
.hero-copy p,
.featured-content p {
  color: var(--muted);
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 26px;
  flex-wrap: wrap;
}

.site-nav a {
  position: relative;
  padding-bottom: 4px;
  font-size: 0.95rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(27, 27, 27, 0.22);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-nav a:focus-visible,
.button:focus-visible,
.post-card a:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid rgba(182, 157, 134, 0.5);
  outline-offset: 4px;
}

main {
  padding-top: 30px;
}

.hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.featured-card,
.post-card {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
}

.hero-copy,
.hero-panel {
  border-radius: var(--radius-lg);
  padding: 40px;
}

.hero-copy {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 250, 246, 0.86)),
    radial-gradient(circle at top right, rgba(239, 228, 213, 0.9), transparent 34%);
}

.hero-copy h1,
.featured-content h3,
.post-card h3,
.hero-panel h2 {
  margin: 0;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-weight: 600;
  line-height: 0.96;
}

.hero-copy h1 {
  margin-top: 16px;
  max-width: 12ch;
  font-size: clamp(3.4rem, 6vw, 6rem);
}

.hero-copy p {
  max-width: 560px;
  margin: 24px 0 0;
  font-size: 1rem;
  line-height: 1.8;
}

.hero-supporting {
  margin-top: 14px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-dark {
  color: white;
  background: #1c1b1a;
}

.button-light {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.74);
}

.hero-panel {
  display: grid;
  align-content: space-between;
  gap: 22px;
  background:
    linear-gradient(180deg, rgba(252, 248, 243, 0.92), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at bottom left, rgba(229, 235, 227, 0.85), transparent 38%);
}

.hero-panel h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.hero-panel p,
.featured-content p,
.post-card p {
  margin: 0;
  line-height: 1.8;
}

.panel-meta,
.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-meta span,
.tag-row span {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(27, 27, 27, 0.08);
  background: rgba(255, 255, 255, 0.64);
  font-size: 0.75rem;
  color: var(--muted);
}

.profile-list {
  display: grid;
  gap: 14px;
}

.profile-item {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.profile-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-item span {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-item strong {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}

.featured-section,
.content-layout,
.article-detail-section {
  margin-top: 32px;
}

.section-title {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-weight: 600;
}

.section-title.compact h2 {
  font-size: 1.9rem;
}

.featured-card {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.featured-visual {
  position: relative;
  min-height: 360px;
  border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden;
  background:
    linear-gradient(160deg, #f8f5f1 0%, #efe7dd 100%);
}

.featured-visual::before,
.featured-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
}

.featured-visual::before {
  width: 220px;
  height: 220px;
  top: -40px;
  right: -20px;
  background: rgba(255, 255, 255, 0.95);
}

.featured-visual::after {
  width: 180px;
  height: 180px;
  bottom: -30px;
  left: -10px;
  background: rgba(221, 206, 190, 0.56);
}

.visual-card {
  position: absolute;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border: 1px solid rgba(27, 27, 27, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 248, 241, 0.95));
  box-shadow: 0 10px 30px rgba(101, 82, 63, 0.08);
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 1.7rem;
  color: #433a30;
}

.visual-top {
  top: 38px;
  left: 38px;
  width: 54%;
  height: 48%;
}

.visual-bottom {
  right: 30px;
  bottom: 30px;
  width: 50%;
  height: 44%;
}

.featured-content {
  display: grid;
  align-content: center;
  gap: 18px;
}

.meta-row {
  gap: 18px;
}

.featured-content h3 {
  font-size: clamp(2rem, 3.2vw, 3.35rem);
}

.content-layout {
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

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

.post-card {
  display: grid;
  gap: 18px;
  min-height: 240px;
  padding: 28px;
  border-radius: var(--radius-md);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.post-card:nth-child(2n) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(248, 243, 236, 0.88));
}

.post-card:hover,
.post-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(27, 27, 27, 0.12);
  box-shadow: 0 16px 30px rgba(122, 105, 85, 0.08);
}

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

.post-card h3 {
  font-size: 2rem;
}

.post-card a {
  align-self: end;
  width: fit-content;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(27, 27, 27, 0.18);
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.6fr);
  gap: 24px;
  align-items: start;
}

.article-main,
.article-aside-card {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
}

.article-main {
  display: grid;
  gap: 22px;
  padding: 32px;
  border-radius: var(--radius-lg);
}

.article-header {
  display: grid;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.article-header h3,
.article-block h4,
.article-aside-card h4 {
  margin: 0;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-weight: 600;
}

.article-header h3 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.98;
}

.article-header p,
.article-block p,
.article-list,
.check-list,
.article-aside-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.article-block {
  display: grid;
  gap: 14px;
}

.article-block h4,
.article-aside-card h4 {
  font-size: 1.9rem;
}

.article-code,
.example-item {
  border: 1px solid rgba(27, 27, 27, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 243, 236, 0.9));
}

.article-code {
  padding: 18px 20px;
  overflow-x: auto;
}

.article-code code,
.example-item code,
.article-list code,
.check-list code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.95rem;
}

.article-block code {
  padding: 0.12rem 0.35rem;
  border-radius: 8px;
  background: rgba(210, 193, 175, 0.18);
  color: #4d4339;
}

.article-code code,
.example-item code {
  padding: 0;
  background: transparent;
}

.article-code code {
  display: block;
  white-space: pre-wrap;
  line-height: 1.8;
}

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

.type-item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(27, 27, 27, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
}

.type-item strong {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.type-item span {
  color: var(--muted);
  line-height: 1.7;
}

.article-list,
.check-list {
  padding-left: 1.2rem;
}

.example-list {
  display: grid;
  gap: 12px;
}

.example-item {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
}

.example-item p {
  margin: 0;
}

.article-dual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.article-note {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(27, 27, 27, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.good-note {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(242, 247, 240, 0.88));
}

.compact-list {
  gap: 0;
}

.article-aside {
  display: grid;
  gap: 18px;
}

.article-aside-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius-md);
}

.accent-card {
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.9), rgba(243, 236, 228, 0.9));
}

.check-list li + li,
.article-list li + li {
  margin-top: 8px;
}

.site-footer {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

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

@media (max-width: 1024px) {
  .hero,
  .featured-card,
  .content-layout,
  .article-shell,
  .article-dual {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 14ch;
  }

  .site-nav {
    justify-content: flex-start;
  }

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

@media (max-width: 720px) {
.site-frame {
    width: min(calc(100% - 20px), var(--container));
    margin: 10px auto;
    padding: 20px;
    border-radius: 26px;
  }

  .site-header,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel,
  .featured-card,
  .post-card,
  .article-main,
  .article-aside-card,
  .article-note {
    padding: 22px;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 15vw, 4.2rem);
  }

  .featured-visual {
    min-height: 280px;
  }

  .visual-top {
    top: 20px;
    left: 20px;
  }

  .visual-bottom {
    right: 18px;
    bottom: 18px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}
