:root {
  color-scheme: light;
  --bg: #f4f0e8;
  --surface: rgba(255, 252, 246, 0.88);
  --surface-strong: #fffdf8;
  --ink: #20251f;
  --muted: #69706a;
  --line: #e3dbce;
  --green: #2b725f;
  --green-dark: #185948;
  --blue: #315f9d;
  --clay: #b76545;
  --shadow: 0 24px 70px rgba(36, 42, 35, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(120deg, #f8f5ee 0%, #eef4ef 48%, #f4f0e8 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(115deg, transparent 0 18%, rgba(215, 155, 63, 0.08) 18% 28%, transparent 28% 100%),
    linear-gradient(155deg, transparent 0 64%, rgba(43, 114, 95, 0.08) 64% 76%, transparent 76% 100%);
  background-size: 680px 680px, 760px 760px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 72%);
}

a {
  color: inherit;
}

.page {
  position: relative;
  width: min(1160px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(227, 219, 206, 0.9);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.84);
  box-shadow: 0 12px 36px rgba(36, 42, 35, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fffdf8;
  font-size: 18px;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 750;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(43, 114, 95, 0.09);
}

.site-nav .bot-link {
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 22px rgba(43, 114, 95, 0.22);
}

.site-nav .bot-link:hover {
  color: #fff;
  background: var(--green-dark);
}

.hero-small {
  padding: 58px 0 30px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 16px;
  padding: 6px 10px;
  border: 1px solid rgba(43, 114, 95, 0.2);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.76);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
}

.page-title {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.page-copy {
  max-width: 690px;
  margin: 18px 0 0;
  color: #4e574f;
  font-size: clamp(17px, 2vw, 21px);
}

.panel {
  border: 1px solid rgba(227, 219, 206, 0.95);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(36, 42, 35, 0.08);
  backdrop-filter: blur(16px);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 26px;
}

.content-main {
  padding: 30px;
}

.section-kicker {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-intro {
  margin: 12px 0 24px;
  color: var(--muted);
}

.post-grid {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.post-card:hover {
  border-color: rgba(43, 114, 95, 0.38);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(36, 42, 35, 0.08);
}

.post-card h2,
.post-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

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

.post-card a:hover {
  color: var(--green);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(49, 95, 157, 0.1);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 18px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 850;
}

.button.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 16px 32px rgba(43, 114, 95, 0.22);
}

.button.secondary {
  background: rgba(255, 252, 246, 0.78);
  border-color: var(--line);
  color: var(--ink);
}

.side-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 22px;
  padding: 22px;
}

.side-block + .side-block {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.side-block h2,
.side-block h3 {
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: 0;
}

.side-block p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.article {
  max-width: 860px;
  margin: 30px auto 0;
  padding: 36px;
}

.article h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
}

.article h2 {
  margin-top: 34px;
  font-size: 28px;
}

.article h3 {
  margin-top: 24px;
  font-size: 21px;
}

.article p,
.article li {
  color: #444d45;
  font-size: 17px;
}

.article pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 8px;
  background: #222820;
  color: #f7f0df;
}

.article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.article :not(pre) > code {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(43, 114, 95, 0.1);
}

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

  .site-nav {
    justify-content: flex-start;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 24px, 1160px);
    padding-top: 12px;
  }

  .site-header,
  .content-main,
  .side-panel,
  .article {
    padding: 16px;
  }

  .site-nav a,
  .button {
    flex: 1 1 auto;
  }

  .page-copy {
    max-width: min(320px, calc(100vw - 48px));
    word-break: break-all;
  }

  .button-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .page-title {
    font-size: 38px;
    line-height: 1.05;
  }
}
