@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;600;700&family=Merriweather+Sans:wght@400;600;700;800&display=swap");

:root {
  --color-primary: #2d5016;
  --color-primary-light: #4a7c2c;
  --color-primary-dark: #1a3009;
  --color-secondary: #7d5c3a;
  --color-accent: #a67c52;
  --color-bg-light: #f8f6f3;
  --color-bg-white: #ffffff;
  --color-border: #e5e5e5;

  --color-text-dark: #1a1a1a;
  --color-text-gray: #666666;
  --color-text-muted: #999999;
  --color-text-primary: #1f2937;

  --font-primary: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-secondary: "Merriweather Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-max-width: 1280px;
  --container-padding: 16px;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.14);

  --transition-fast: 200ms ease;
  --transition-base: 300ms ease;
}

/* Base reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-primary);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.5;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  margin: 0;
  color: var(--color-text-dark);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0;
  line-height: 1.6;
  color: var(--color-text-gray);
}

/* Common layout */
.site-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.site-main {
  flex: 1;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  border: 0;
  transition: background var(--transition-base), color var(--transition-base), box-shadow var(--transition-base),
    border-color var(--transition-base);
}

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

.button--primary:hover {
  background: var(--color-primary-dark);
}

.button--white {
  background: #fff;
  color: var(--color-primary);
}

.button--white:hover {
  background: #f3f4f6;
}

.button--outline-white {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: #fff;
}

.button--outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
}

.button--outline-primary {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.button--outline-primary:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Helpers for JS toggles */
.is-hidden {
  display: none !important;
}

.is-rotated {
  transform: rotate(180deg);
}

/* Accessible helper */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Rich text (pages/posts) */
.rich-text {
  color: var(--color-text-gray);
}

.rich-text p {
  margin: 0 0 16px 0;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.rich-text h2,
.rich-text h3,
.rich-text h4 {
  margin: 28px 0 12px 0;
}

.rich-text h2:first-child,
.rich-text h3:first-child,
.rich-text h4:first-child {
  margin-top: 0;
}

.rich-text ul:not(.icon-list),
.rich-text ol {
  margin: 0 0 16px 0;
  padding-left: 20px;
}

.rich-text li {
  margin: 0 0 8px 0;
}

.rich-text strong {
  color: var(--color-text-dark);
}

.rich-text a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rich-text a:hover {
  color: var(--color-primary-dark);
}

.rich-text h1,
.rich-text h2,
.rich-text h3,
.rich-text h4,
.rich-text h5,
.rich-text h6 {
  color: var(--color-text-dark);
  margin-top: 1.25em;
  margin-bottom: 0.6em;
}

.rich-text p {
  margin-bottom: 1em;
}

.rich-text ul,
.rich-text ol {
  margin: 0 0 1em 1.25em;
  padding: 0;
}

.rich-text li {
  margin: 0.25em 0;
}

.rich-text a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rich-text a:hover {
  color: var(--color-primary-dark);
}

@media (min-width: 640px) {
  :root {
    --container-padding: 24px;
  }
}

@media (min-width: 1024px) {
  :root {
    --container-padding: 32px;
  }
}
