/* 我的辩论日常 —— 站点样式（纯静态、零依赖） */

:root {
  --bg: #f5f3ec;
  --surface: #fffdf8;
  --surface-2: #efebe1;
  --line: #e1dccd;
  --text: #24211b;
  --muted: #6f695c;
  --faint: #9b9585;
  --primary: #33526e;
  --primary-weak: #e4ebf2;
  --accent: #a9542c;
  --frog: #f7dd74;
  --frog-deep: #eccb52;
  --frog-cream: #fdf3cf;
  --frog-ink: #2f2a20;
  --blush: #f0a08a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12110f;
    --surface: #1a1916;
    --surface-2: #211f1b;
    --line: #2d2b26;
    --text: #f0ede6;
    --muted: #9a9488;
    --faint: #6f6a60;
    --primary: #9ab1c9;
    --primary-weak: #232a31;
    --accent: #c99f82;
  }

  .hero {
    background: radial-gradient(420px 200px at 80% 26%, rgba(247, 221, 116, 0.1), transparent 70%);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 system-ui, "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--primary);
}

/* 页头 */
.site-header {
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
}

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

.site-nav a {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* 首页 */
.hero {
  padding: 72px 0 40px;
  background: radial-gradient(520px 240px at 80% 26%, rgba(247, 221, 116, 0.34), transparent 72%);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.hero-frog {
  flex: 0 0 auto;
  width: 128px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(47, 42, 32, 0.12));
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 42px);
  letter-spacing: 0.02em;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.list-title {
  margin: 24px 0 4px;
  color: var(--faint);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.post-list {
  list-style: none;
  margin: 0 0 72px;
  padding: 0;
}

.post-list li {
  border-bottom: 1px solid var(--line);
}

.post-item {
  display: block;
  padding: 22px 0;
  color: inherit;
  text-decoration: none;
}

.post-item time {
  display: block;
  color: var(--faint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.post-item-title {
  display: block;
  margin: 6px 0 4px;
  color: var(--text);
  font-size: 19px;
  font-weight: 650;
}

.post-item:hover .post-item-title {
  color: var(--accent);
}

.post-item-excerpt {
  display: block;
  color: var(--muted);
  font-size: 15px;
}

/* 文章页与关于页 */
.post {
  max-width: 680px;
  padding: 56px 0 72px;
}

.post h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4.2vw, 34px);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.post-meta {
  margin: 0 0 28px;
  color: var(--faint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.post p {
  margin: 0 0 18px;
}

.post-back {
  margin-top: 40px;
  font-size: 15px;
}

.post-back a {
  text-decoration: none;
}

.post-back a:hover {
  text-decoration: underline;
}

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}

.site-footer p {
  margin: 4px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-frog {
  width: 26px;
  height: auto;
  opacity: 0.9;
}

.filing a {
  color: var(--faint);
  text-decoration: none;
}

.filing a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .hero {
    padding: 48px 0 28px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero-frog {
    width: 108px;
  }

  .post {
    padding: 40px 0 56px;
  }
}
