:root {
  --bg: #f6f4ee;
  --card: #fffefb;
  --ink: #141414;
  --muted: #5b5b58;
  --line: #d9d3c8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 90% -10%, rgba(239, 90, 41, 0.13), transparent 30%), var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 251, 0.9);
  backdrop-filter: blur(2px);
}

.site-header-inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-brand {
  text-decoration: none;
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 800;
}

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

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.86rem;
  font-weight: 700;
  background: #fff;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 254, 251, 0.9);
  margin-top: auto;
}

.site-footer-inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer-nav {
  display: inline-flex;
  gap: 8px;
}

.site-footer-nav a {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.84rem;
  font-weight: 700;
  background: #fff;
}

.content-header,
.content-grid,
.article-wrap {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.content-header {
  padding: 34px 0 8px;
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.content-header h1 {
  margin: 10px 0 0;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.content-header p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 760px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 0 56px;
}

.content-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--card);
}

.content-card h2 {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.25rem;
}

.content-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.content-card p {
  color: var(--muted);
  margin: 8px 0;
}

.content-card small {
  color: #6f6f6b;
}

.article-wrap {
  padding: 34px 0 56px;
  max-width: 860px;
}

.article-wrap h1 {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 12px 0;
}

.article-wrap .lead {
  margin-top: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.article-body {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  padding: 22px;
}

.article-body h2,
.article-body h3 {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.article-footer {
  margin-top: 14px;
}

.article-footer a {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  background: #171717;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 980px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}
