:root {
  color-scheme: light;
  --bg: #f6f1e8;
  --panel: #fffaf1;
  --ink: #17211d;
  --muted: #66706b;
  --accent: #b94d2b;
  --accent-dark: #7d301f;
  --line: rgba(23, 33, 29, 0.14);
  --shadow: 0 24px 60px rgba(56, 39, 18, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(185, 77, 43, 0.16), transparent 32rem),
    linear-gradient(135deg, #f8f0df, var(--bg));
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration-color: rgba(185, 77, 43, 0.45);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.site-header,
.site-footer,
main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

.hero {
  display: grid;
  gap: 22px;
  margin: 54px 0 72px;
  padding: clamp(32px, 7vw, 82px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.hero h1,
.page-title h1,
.article h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.45rem, 8vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
}

.lede {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.32rem);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.button {
  width: fit-content;
  padding: 12px 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.section,
.page-title,
.article {
  margin: 0 0 72px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.post-card,
.post-row {
  background: rgba(255, 250, 241, 0.78);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.post-card {
  padding: 22px;
}

.post-card time,
.post-row time,
.article-header time {
  color: var(--muted);
  font-size: 0.9rem;
}

.post-card h3,
.post-row h2 {
  margin: 10px 0 8px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.post-card p,
.post-row p {
  margin: 0;
  color: var(--muted);
}

.page-title {
  padding: 48px 0 16px;
}

.post-list {
  display: grid;
  gap: 14px;
  margin-bottom: 72px;
}

.post-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 24px;
}

.article {
  max-width: 780px;
}

.article-header {
  display: grid;
  gap: 14px;
  margin: 48px 0 36px;
}

.content {
  font-size: 1.08rem;
}

.content h2 {
  margin-top: 2.2em;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.content p,
.content ul {
  color: #2d3833;
}

.site-footer {
  padding: 40px 0 52px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

  .hero {
    margin-top: 24px;
    border-radius: 26px;
  }

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

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