:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --accent: #0b6b57;
  --accent-soft: #e2f3ee;
  --warn: #8a4b00;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(20px, calc((100vw - 1040px) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

main {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.hero {
  padding: 32px 0 22px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  margin: 0 0 12px;
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

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

.article-card h2 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

article {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

article h1 {
  margin-top: 0;
  line-height: 1.15;
}

article h2 {
  margin-top: 32px;
  line-height: 1.25;
}

article li {
  margin: 8px 0;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.ad-slot {
  display: block;
  min-height: 120px;
  margin: 24px 0;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f7f8f8;
  text-align: center;
}

.related {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.related h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 20px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  article {
    padding: 20px;
  }
}
