:root {
  --paper: #fbfaf6;
  --canvas: #f3f0e8;
  --ink: #1e2b26;
  --muted: #68736d;
  --line: #ded8ca;
  --sage: #7f9f86;
  --sage-dark: #496f54;
  --blue: #7897ab;
  --clay: #b98262;
  --white: #fffefd;
  --shadow: 0 22px 60px rgba(35, 42, 37, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Georgia", "Times New Roman", serif;
}

body, button, input, textarea {
  font-size: 17px;
  line-height: 1.68;
}

a { color: var(--sage-dark); text-decoration-thickness: 1px; text-underline-offset: 4px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 246, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(222, 216, 202, .75);
}

.nav {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), #d7c2a3);
  position: relative;
}

.mark:after {
  content: "";
  position: absolute;
  inset: 10px 13px 7px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-35deg);
}

.links { display: flex; align-items: center; gap: 18px; font-family: Arial, sans-serif; font-size: 14px; }
.links a { color: #354039; text-decoration: none; }
.langs { display: flex; gap: 8px; }
.langs a { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; }

.hero {
  min-height: 620px;
  display: grid;
  align-items: end;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(22, 34, 29, .18), rgba(22, 34, 29, .76)),
    url("/assets/images/community-hero.png") center/cover no-repeat;
}

.hero .wrap { padding: 90px 0 76px; }
.eyebrow {
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 700;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 500;
}

h1 { max-width: 820px; font-size: clamp(42px, 8vw, 82px); margin-top: 16px; }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 25px; }
p { margin: 0 0 18px; }

.lead { max-width: 760px; font-size: 22px; margin-top: 22px; color: rgba(255,255,255,.9); }
.section { padding: 76px 0; }
.section.alt { background: var(--canvas); }
.grid { display: grid; gap: 28px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }

.panel, .article-card, .note {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel { padding: 32px; }
.note { padding: 24px; margin: 28px 0; background: #f8f6ef; }
.note h2, .note h3 { font-size: 24px; margin-bottom: 12px; }
.article-card { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.article-card a { color: var(--ink); text-decoration: none; }
.meta, .tagline, .breadcrumb, .toc, .author, footer, .small {
  font-family: Arial, sans-serif;
  color: var(--muted);
}

.meta { font-size: 14px; }
.tagline { margin-top: 14px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-family: Arial, sans-serif; font-size: 12px; color: var(--sage-dark); border: 1px solid #c9d6c8; border-radius: 999px; padding: 4px 9px; }
.breadcrumb { padding-top: 28px; font-size: 14px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.article { max-width: 780px; }
.article h1 { color: var(--ink); font-size: clamp(38px, 6vw, 66px); }
.article h2 { margin: 42px 0 16px; font-size: 34px; }
.article p, .page p { color: #34413a; }
.toc { position: sticky; top: 98px; padding: 22px; border-left: 3px solid var(--sage); background: #f8f6ef; }
.toc a { display: block; margin: 9px 0; text-decoration: none; color: #48534d; }
.author { margin-top: 42px; padding: 24px; background: #f8f6ef; border-radius: 8px; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--sage);
  color: var(--sage-dark);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 20px;
}

.newsletter input {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 16px;
  background: var(--white);
}

.newsletter button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  color: var(--white);
  background: var(--sage-dark);
}

footer { background: #202a25; color: #d7ddd7; padding: 54px 0; }
footer a { color: #edf2ed; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }

@media (max-width: 860px) {
  .links { display: none; }
  .grid.two, .grid.three, .article-layout, .footer-grid, .newsletter { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .section { padding: 52px 0; }
  .panel { padding: 24px; }
}
