:root {
  --brand-1: #9a3412;
  --brand-2: #c2410c;
  --brand-3: #ea580c;
  --ink-1: #1c1917;
  --ink-2: #44403c;
  --ink-3: #78716c;
  --line: rgba(194, 65, 12, 0.14);
  --panel: rgba(255, 255, 255, 0.94);
  --panel-soft: rgba(255, 247, 237, 0.92);
  --shell: linear-gradient(180deg, #fffaf5 0%, #fff 100%);
  --shadow: 0 18px 44px rgba(124, 45, 18, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 999px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink-1);
  background: var(--shell);
  font-family: "IBM Plex Sans", "Noto Sans SC", "Segoe UI", sans-serif;
  line-height: 1.75;
}

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

a:hover {
  color: var(--brand-3);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 245, 0.9);
  border-bottom: 1px solid var(--line);
}

.site-header-inner,
.site-footer-inner,
.page-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header-inner,
.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.site-brand {
  font-weight: 700;
  color: var(--ink-1);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-nav a {
  color: var(--ink-2);
}

.page-shell {
  padding: 40px 0 72px;
}

.hero,
.panel,
.post-card,
.term-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

.hero {
  background:
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.96));
}

.hero-kicker,
.post-card-date,
.article-meta,
.section-description {
  color: var(--ink-3);
}

.hero h1,
.panel h1,
.panel h2,
.article h1 {
  margin: 0 0 12px;
  line-height: 1.15;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 4rem);
}

.hero-text,
.article-summary {
  max-width: 760px;
  font-size: 1.05rem;
  color: var(--ink-2);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--ink-1);
  background: #fff;
}

.button-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  border-color: transparent;
}

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

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

.post-card,
.term-card {
  border-radius: var(--radius-md);
  padding: 22px;
}

.post-card h3 {
  margin: 10px 0 12px;
  line-height: 1.3;
}

.article {
  max-width: 860px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 28px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 10px 0 12px;
  font-size: 0.96rem;
}

.content.prose h2,
.content.prose h3 {
  margin-top: 1.8em;
}

.content.prose pre,
.content.prose code {
  font-family: "IBM Plex Mono", "Cascadia Code", monospace;
}

.content.prose pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: 18px;
  background: #1c1917;
  color: #fff7ed;
}

.content.prose img {
  display: block;
  max-width: 100%;
  margin: 24px auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--brand-1);
  font-size: 0.92rem;
}

.meta-group {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.archive-group + .archive-group {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.link-list {
  padding-left: 18px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 245, 0.92);
}

.site-footer p {
  margin: 0;
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .post-grid,
  .terms-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .site-header-inner,
  .site-footer-inner {
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
  }

  .page-shell {
    padding-top: 24px;
  }

  .hero,
  .panel {
    padding: 22px;
  }

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