:root {
  color-scheme: light;
  --bg: #f3efe4;
  --surface: #fffaf0;
  --surface-soft: #fbf5e8;
  --text: #211f1a;
  --muted: #6e675b;
  --line: #d8ccb8;
  --accent: #4d463b;
  --accent-dark: #2f2a23;
  --soft: #efe6d5;
  --soft-2: #f7eedf;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.68;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
main {
  margin: 0 auto;
  max-width: 1120px;
  padding-left: 20px;
  padding-right: 20px;
}

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding-bottom: 20px;
  padding-top: 20px;
}

.brand {
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 800;
  text-decoration: none;
}

.header-clock {
  color: var(--muted);
  font-size: 0.84rem;
  margin-left: auto;
  white-space: nowrap;
}

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

.site-nav a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

main {
  padding-bottom: 48px;
}

.hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 34px auto 52px;
  max-width: 860px;
  padding: 34px 38px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0 0 18px;
}

.hero p {
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 760px;
}

.kicker {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 10px;
  padding: 5px 9px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.content-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 auto 46px;
  max-width: 860px;
  padding: 28px;
}

.section-title {
  margin-bottom: 20px;
}

.post-list,
.compact-list,
.category-list {
  display: grid;
  gap: 14px;
}

.split-section {
  align-items: start;
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
}

.post-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.post-item a {
  display: block;
  padding: 18px 20px;
  text-decoration: none;
}

.post-item:hover,
.post-item:focus-within {
  background: #fffdf7;
  border-color: #b9a98e;
  transform: translateY(-2px);
}

.post-item a:focus-visible,
.category-list a:focus-visible {
  outline: 3px solid #b9a98e;
  outline-offset: 3px;
}

.post-item h3 {
  font-size: 1.18rem;
  line-height: 1.25;
  margin-bottom: 8px;
  transition: color 180ms ease;
}

.post-item:hover h3,
.post-item:focus-within h3 {
  color: #3d3326;
}

.post-item p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 0;
}

.category-list {
  gap: 10px;
}

.category-list a {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 12px;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.category-list a:hover,
.category-list a:focus-visible {
  background: #fffdf7;
  border-color: #b9a98e;
  transform: translateX(3px);
}

.ad-slot {
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-size: 0.82rem;
  justify-content: center;
  margin: 0 auto 34px;
  max-width: 860px;
  min-height: 180px;
  padding: 20px;
}

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

.article h1 {
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  line-height: 1.08;
  margin-bottom: 18px;
}

.article-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
  padding-bottom: 26px;
}

.article-description {
  color: var(--muted);
  font-size: 1.02rem;
}

.article-meta,
.tag-list {
  color: var(--muted);
  display: flex;
  font-size: 0.86rem;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 18px;
}

.tag-list span {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 10px;
}

.article-body {
  font-size: 1rem;
  margin-top: 0;
}

.article-body h2 {
  border-top: 1px solid var(--line);
  font-size: 1.28rem;
  line-height: 1.25;
  margin: 38px 0 12px;
  padding-top: 24px;
}

.article-body p {
  margin-bottom: 22px;
}

.article-body ul {
  padding-left: 24px;
}

.article-body li + li {
  margin-top: 8px;
}

.article-body strong {
  font-weight: 700;
}

.article-body em {
  color: var(--muted);
}

.article-ad {
  max-width: 760px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  padding-bottom: 28px;
  padding-top: 22px;
}

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

  .header-clock {
    margin-left: 0;
  }

  .hero,
  .article {
    padding-left: 22px;
    padding-right: 22px;
  }

  .split-section {
    grid-template-columns: 1fr;
  }
}
