/* Flock — herdtheflock.com
   Brand: #12B886 (green), #0E8F78 (teal), #D9B44A (gold).
   Text-bearing colors are darkened variants so they meet WCAG AA contrast. */

:root {
  --green: #12B886;
  --teal: #0E8F78;
  --gold: #D9B44A;

  --bg: #ffffff;
  --bg-soft: #f3faf7;
  --text: #16211e;
  --muted: #4a5a55;
  --link: #0a6b5a;          /* ~6.3:1 on white */
  --btn-bg: #0a6b5a;
  --btn-text: #ffffff;
  --border: #d7e6e1;
  --focus: #b8860b;
  --max: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1715;
    --bg-soft: #16211e;
    --text: #e9f2ef;
    --muted: #a9bab5;
    --link: #4fd8ad;
    --btn-bg: #12B886;
    --btn-text: #06231b;
    --border: #2a3935;
    --focus: #D9B44A;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

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

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg);
  color: var(--link);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}
.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { color: var(--link); text-decoration: underline; }
.site-nav a[aria-current="page"] {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Content */
main { padding: 2rem 0 3rem; }

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 2rem; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }

.lede { font-size: 1.2rem; color: var(--muted); }

.hero { text-align: center; padding: 1rem 0 0.5rem; }
.hero img {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 8px 24px rgba(14, 143, 120, 0.25);
  margin-bottom: 1.25rem;
}
.badge {
  display: inline-block;
  background: var(--gold);
  color: #2b2208;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  min-height: 44px;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }

.cards {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}
.cards li {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 0;
}
.cards h2, .cards h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.cards p { margin: 0; }

.callout {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  margin: 2rem 0;
}
.callout > :last-child { margin-bottom: 0; }

.meta { color: var(--muted); font-size: 0.95rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.site-footer p { margin: 0 0 0.35rem; }

@media (min-width: 40rem) {
  h1 { font-size: 2.5rem; }
  .cards { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
.callout > h2:first-child { margin-top: 0; }
