:root {
  --bg: #f3efe7;
  --surface: rgba(255, 252, 246, 0.82);
  --surface-strong: #fffaf2;
  --text: #171511;
  --muted: #645c50;
  --border: rgba(23, 21, 17, 0.12);
  --accent: #b84c2a;
  --accent-dark: #8f361c;
  --shadow: 0 20px 60px rgba(80, 48, 20, 0.12);
  --radius: 24px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(184, 76, 42, 0.18), transparent 28%),
    radial-gradient(circle at right 20%, rgba(240, 180, 89, 0.18), transparent 22%),
    linear-gradient(180deg, #f8f3ea 0%, var(--bg) 100%);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  line-height: 1.6;
}

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

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

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(248, 243, 234, 0.76);
  border-bottom: 1px solid rgba(23, 21, 17, 0.06);
}

.site-header__inner,
.site-footer__inner,
.hero,
.feature-grid,
.intro-band,
.post-section,
.archive-hero,
.article {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

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

.site-brand__mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #df8b49);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.site-brand__text {
  display: grid;
}

.site-brand__text small,
.site-footer p,
.article-header__meta,
.post-card__meta,
.article-comments-note,
.text-link,
.archive-hero p,
.intro-band p,
.hero__lead {
  color: var(--muted);
}

.site-nav .nav {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 14px;
}

.site-main {
  padding: 28px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: stretch;
  padding-top: 28px;
}

.hero__content,
.hero__panel,
.feature-card,
.intro-band,
.post-card__inner,
.article,
.archive-hero {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

.hero__content,
.hero__panel,
.intro-band,
.archive-hero,
.article {
  border-radius: calc(var(--radius) + 4px);
}

.hero__content {
  padding: 56px;
}

.hero__content h1,
.archive-hero h1,
.article-header h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero__lead {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #da7a3f);
}

.button--secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.64);
}

.hero__panel {
  padding: 24px;
}

.hero-card {
  display: grid;
  align-content: end;
  min-height: 100%;
  padding: 24px;
  border-radius: var(--radius);
  color: #fff7ee;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    linear-gradient(135deg, #171511, #6b2a18 60%, #d88243);
}

.hero-card span {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.hero-card strong {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.feature-card,
.post-card__inner {
  border-radius: var(--radius);
}

.feature-card {
  padding: 28px;
}

.feature-card p:first-child {
  margin: 0 0 28px;
  color: var(--accent);
  font-weight: 700;
}

.feature-card h2,
.section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.intro-band,
.archive-hero {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  padding: 34px;
  margin-top: 22px;
}

.post-section {
  margin-top: 22px;
}

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

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

.post-card__inner {
  overflow: hidden;
  height: 100%;
}

.post-card__inner img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card__body {
  padding: 22px;
}

.post-card__body h2,
.post-card__body h3 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.08;
}

.archive-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.pagination-wrap .pagination {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.pagination-wrap .page-number,
.pagination-wrap .newer-posts,
.pagination-wrap .older-posts {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
}

.article {
  margin-top: 22px;
  padding: 38px;
}

.article-header__excerpt {
  max-width: 760px;
  font-size: 18px;
  color: var(--muted);
}

.article-header__image {
  margin-top: 26px;
  border-radius: 22px;
}

.article-content {
  max-width: 760px;
  margin: 34px auto 0;
  font-size: 18px;
}

.kg-width-wide {
  width: min(calc(100% - 32px), 1100px);
  max-width: 1100px;
}

.kg-width-full {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.kg-card {
  margin: 1.5em 0;
}

.kg-image-card img,
.kg-gallery-card img {
  border-radius: 18px;
}

.kg-gallery-row {
  display: flex;
  gap: 12px;
}

.kg-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kg-callout-card,
.kg-toggle-card {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
}

.kg-bookmark-card,
.kg-embed-card {
  overflow: hidden;
  border-radius: 18px;
}

.article-footer {
  max-width: 760px;
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-tags a {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
}

.site-footer {
  padding-bottom: 30px;
}

.site-footer__meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero,
  .feature-grid,
  .post-grid,
  .intro-band,
  .archive-hero {
    grid-template-columns: 1fr;
  }

  .site-header__inner,
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__content,
  .article {
    padding: 28px;
  }

  .post-card__body h2,
  .post-card__body h3 {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .site-header__inner,
  .site-footer__inner,
  .hero,
  .feature-grid,
  .intro-band,
  .post-section,
  .archive-hero,
  .article {
    width: min(calc(100% - 20px), var(--max));
  }

  .hero__content h1,
  .archive-hero h1,
  .article-header h1 {
    font-size: 40px;
  }

  .hero__lead,
  .article-content {
    font-size: 16px;
  }
}
