:root {
  color-scheme: light;

  --bg: #fffdf9;
  --bg-soft: #fff4e2;
  --panel: #ffffff;
  --ink: #1d1a15;
  --muted: #6f6559;
  --line: rgba(29, 26, 21, 0.12);

  --accent: #d14a2f;
  --accent-2: #0f5b5b;
  --accent-3: #f0b44d;

  --shadow: 0 20px 42px rgba(17, 12, 8, 0.08);
  --radius: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.section {
  padding: clamp(40px, 8vw, 88px) 0;
}

.blog-hero {
  padding-top: clamp(34px, 8vw, 74px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(15, 91, 91, 0.12);
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

h1,
h2 {
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: 0.02em;
  margin: 0;
}

h1 {
  margin-top: 16px;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.05;
}

.hero-subtitle {
  margin: 16px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-strip {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(125deg, rgba(240, 180, 77, 0.18), rgba(15, 91, 91, 0.12));
}

.hero-strip p {
  margin: 0;
  font-weight: 600;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.post-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  content-visibility: auto;
  contain-intrinsic-size: 320px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-card:hover,
.post-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(29, 26, 21, 0.2);
  box-shadow: 0 24px 38px rgba(15, 91, 91, 0.16);
}

.post-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.post-card-link:focus-visible {
  outline: 3px solid rgba(209, 74, 47, 0.45);
  outline-offset: -3px;
  border-radius: var(--radius);
}

.post-card-content {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.post-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 11px;
  background: rgba(209, 74, 47, 0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-title {
  margin: 0;
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  line-height: 1.25;
}

.post-description {
  margin: 0;
  color: var(--muted);
}

.post-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(29, 26, 21, 0.16);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-card:hover .post-link,
.post-card:focus-within .post-link {
  transform: translateY(-2px);
  border-color: rgba(15, 91, 91, 0.32);
  box-shadow: 0 14px 28px rgba(15, 91, 91, 0.2);
}

.blog-empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--muted);
  content-visibility: auto;
  contain-intrinsic-size: 120px;
}

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