:root {
  --ink: #16231f;
  --muted: #63716c;
  --page: #f5f7f2;
  --surface: #ffffff;
  --line: #d9e0d9;
  --green: #285c4e;
  --green-dark: #163d34;
  --blue: #315e78;
  --gold: #9a752d;
  --support: #9f4c52;
  --shadow: 0 18px 50px rgba(22, 35, 31, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #f5f7f2, #edf3f4 55%, #f8f2e5);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
}

.support-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--support);
  color: #fff;
  text-align: center;
}

.support-banner a {
  border-bottom: 2px solid rgba(255, 255, 255, 0.85);
  font-weight: 800;
  text-decoration: none;
}

.site-header,
.page,
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 0.55rem;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.article-meta {
  color: var(--muted);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
}

.main-nav a,
.section-heading a,
.topic-list a,
.post-card a,
.wide-card a,
.site-footer a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.page {
  padding: 1rem;
}

.hero,
.split-section,
.content-section,
.page-title,
.form-layout,
.dashboard-grid,
.article,
.narrow-panel,
.table-card {
  border: 1px solid rgba(217, 224, 217, 0.9);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1rem;
  align-items: stretch;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.hero h1,
.page-title h1,
.article h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero p,
.page-title p,
.article p {
  max-width: 760px;
}

.hero-actions,
.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.button,
button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0.65rem 1rem;
  text-decoration: none;
}

.button.primary,
button.primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.hero-card,
.post-card,
.wide-card,
.stat-card {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #fff;
  padding: 1rem;
}

.support-link,
.support-callout a {
  color: var(--support);
  font-weight: 900;
}

.split-section,
.content-section,
.page-title,
.form-layout,
.dashboard-grid,
.article,
.narrow-panel,
.table-card {
  margin-top: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
}

.split-section,
.form-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1rem;
}

.topic-list,
.post-grid,
.dashboard-grid {
  display: grid;
  gap: 0.85rem;
}

.topic-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.topic-list a,
.topic-pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #e2eee8;
  color: var(--green-dark);
  padding: 0.45rem 0.75rem;
}

.post-grid,
.dashboard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.wide-card h2,
.post-card h3 {
  margin-bottom: 0.35rem;
}

.form-card {
  display: grid;
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font: inherit;
  padding: 0.65rem 0.75rem;
}

textarea {
  resize: vertical;
}

.success,
.error,
.support-callout {
  border-radius: 0.6rem;
  padding: 0.85rem;
}

.success {
  background: #e1f0e7;
  color: var(--green-dark);
}

.error {
  background: #f6e1e2;
  color: #7d2f35;
}

.support-callout {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 0;
  background: #f7e7e8;
}

.article {
  max-width: 860px;
}

.article-body {
  font-size: 1.08rem;
}

.stat-card {
  display: grid;
  gap: 0.35rem;
  text-decoration: none;
}

.stat-card strong {
  font-size: 2.5rem;
}

.table-card {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem;
  text-align: left;
  vertical-align: top;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 1rem;
  color: var(--muted);
}

@media (max-width: 850px) {
  .support-banner,
  .site-header,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .hero,
  .split-section,
  .form-layout,
  .post-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .topic-list {
    grid-template-columns: 1fr;
  }

  .button,
  button {
    width: 100%;
  }
}
