/* Lake Griffin Voice — mirrors React/Tailwind theme (HSL tokens from src/index.css) */
:root {
  --background: hsl(40 33% 97%);
  --foreground: hsl(200 25% 15%);
  --primary: hsl(187 55% 28%);
  --primary-foreground: hsl(40 33% 97%);
  --secondary: hsl(40 45% 92%);
  --muted: hsl(200 10% 45%);
  --accent: hsl(35 85% 55%);
  --accent-foreground: hsl(200 25% 15%);
  --border: hsl(40 20% 88%);
  --destructive: hsl(0 70% 45%);
  --radius: 0.5rem;
  --shadow-soft: 0 2px 15px -3px hsl(200 25% 15% / 0.08);
  --shadow-card: 0 4px 25px -5px hsl(200 25% 15% / 0.1);
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.narrow-page {
  max-width: 28rem;
}

.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.text-center { text-align: center; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.accent { color: var(--accent); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: hsl(40 33% 97% / 0.95);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}

/* Join the Community — ensure white text (global `a` color would otherwise win) */
.site-header .btn-primary {
  color: #fff;
}
.site-header .btn-primary:hover {
  color: #fff;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}
.logo:hover { text-decoration: none; }

.logo-img {
  height: 2.25rem;
  width: auto;
  display: block;
}

.logo-text {
  display: none;
}
@media (min-width: 640px) {
  .logo-text { display: inline; }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}
.nav-desktop a:hover { color: var(--primary); text-decoration: none; }

.nav-user { font-size: 0.875rem; color: var(--muted); }

.nav-toggle {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
}
.nav-toggle::before { content: "☰"; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-desktop { display: flex; }
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
}
.nav-mobile[hidden] { display: none !important; }
@media (min-width: 768px) {
  .nav-mobile { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.75rem 1.25rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline-light {
  background: transparent;
  border-color: hsl(40 33% 97% / 0.35);
  color: var(--primary-foreground);
}
.btn-outline-light:hover {
  background: hsl(40 33% 97% / 0.1);
  text-decoration: none;
}
.btn-accent {
  background: var(--accent);
  color: var(--accent-foreground);
  border-color: var(--accent);
}
.btn-accent:hover { filter: brightness(0.95); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: none;
}
.btn-danger {
  background: var(--destructive);
  color: #fff;
  border-color: var(--destructive);
}

.inline-form { display: inline; margin: 0; padding: 0; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, hsl(200 25% 15% / 0.82), hsl(200 25% 15% / 0.45), hsl(200 25% 15% / 0.25)),
    url("../images/hero-lake.jpg") center/cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
  padding-bottom: 5rem;
  max-width: 36rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary-foreground);
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: hsl(40 33% 97% / 0.88);
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Home welcome band — between hero and news */
.home-intro {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: hsl(187 32% 96%);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
  .home-intro {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.home-intro-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .home-intro-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3rem;
  }
}

.home-intro-main .eyebrow {
  margin-bottom: 0.5rem;
}

.home-intro-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--foreground);
}

.home-intro-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.home-intro-main .muted {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.home-intro-aside {
  padding: 1.25rem 1.5rem;
  margin: 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.home-intro-aside-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--foreground);
}

.home-intro-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-intro-steps li {
  padding-bottom: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid hsl(40 20% 88% / 0.75);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--foreground);
}

.home-intro-steps li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.home-intro-step-label {
  display: block;
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.home-intro-steps a {
  font-weight: 600;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}
@media (min-width: 768px) {
  .section { padding: 6rem 0; }
}

.section-alt {
  background: var(--secondary);
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-head.center { margin-left: auto; margin-right: auto; }

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0;
}

.section-desc {
  margin: 0.75rem auto 0;
  max-width: 36rem;
}

/* Cards */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  display: block;
}
a.card:hover {
  box-shadow: var(--shadow-card);
  text-decoration: none;
}

.card-featured {
  display: grid;
  gap: 0;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}
@media (min-width: 768px) {
  .card-featured {
    grid-template-columns: 1fr 1fr;
  }
}

.card-featured-media {
  min-height: 200px;
  background: hsl(187 55% 28% / 0.1);
}
.card-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: hsl(187 55% 28% / 0.35);
}

.card-featured-body {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-title-lg {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.75rem 0;
  line-height: 1.25;
}
.card-title-lg a { color: inherit; }
.card-title-lg a:hover { color: var(--primary); }

.post-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
}

.card-post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-post-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: hsl(187 55% 28% / 0.08);
}
.card-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.card-post:hover .card-post-media img {
  transform: scale(1.04);
}

.card-post-body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-post:not(.card-post-has-img) .card-post-body {
  padding-top: 1.5rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0.5rem 0;
  line-height: 1.35;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--primary); }

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--foreground);
}
.badge-hot {
  background: hsl(0 70% 45%);
  color: #fff;
}
.badge-featured {
  background: hsl(35 85% 55%);
  color: #1d2a2f;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

a.tag-badge {
  color: var(--foreground);
}
a.tag-badge:hover {
  text-decoration: none;
  background: hsl(187 55% 28% / 0.12);
  color: var(--primary);
}
.tag-badge.is-active {
  background: hsl(187 55% 28% / 0.18);
  color: var(--primary);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Forum list */
.forum-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.forum-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.forum-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: hsl(187 55% 28% / 0.1);
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
@media (min-width: 640px) {
  .forum-icon { display: flex; }
}

.forum-main { flex: 1; min-width: 0; }

.forum-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.forum-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: inherit;
}

.forum-stats {
  display: none;
  gap: 1rem;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .forum-stats { display: flex; }
}

.flex-between {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

/* Values & CTA */
.values-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}
@media (min-width: 640px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .values-grid { grid-template-columns: repeat(4, 1fr); }
}

.value-card h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.cta-band {
  background: var(--primary);
  color: var(--primary-foreground);
}
.cta-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0;
  color: var(--primary-foreground);
}
.cta-lead {
  margin: 1rem auto 0;
  max-width: 32rem;
  color: hsl(40 33% 97% / 0.85);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: hsl(40 45% 92% / 0.5);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-brand {
  font-family: var(--font-heading);
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--primary); }

.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
}

.footer-disclaimer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.footer-disclaimer p {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 64rem;
}

.footer-copy {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Forms */
.stack-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 36rem;
}

.stack-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.input {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  width: 100%;
}
textarea.input.code {
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
}

.checkbox-row {
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.page-title {
  font-size: 2rem;
  margin: 0 0 1rem;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.flash-success {
  background: hsl(140 40% 92%);
  color: hsl(140 40% 20%);
}
.flash-error {
  background: hsl(0 60% 95%);
  color: hsl(0 60% 30%);
}

/* Article */
.article-page {
  padding: 2rem 1rem 4rem;
  max-width: 48rem;
}

.article-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0.5rem 0;
  line-height: 1.2;
}

.article-featured {
  margin: 0 0 2rem;
}
.article-featured img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.prose {
  font-size: 1.05rem;
  line-height: 1.7;
}
.prose img { max-width: 100%; height: auto; }
.prose iframe {
  width: 100%;
  max-width: 100%;
  min-height: 315px;
  border: 0;
}
.prose .media {
  margin: 1.25rem 0;
}

.post-comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-comments-title {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.comment-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-card {
  padding: 1rem 1.25rem;
  background: var(--secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.comment-body {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
}

.comment-delete-form {
  margin-top: 0.75rem;
}

.comment-form {
  padding: 1.25rem;
  margin-top: 1rem;
}

.comment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.comment-form .input {
  width: 100%;
  margin-bottom: 0.75rem;
}

/* Thread */
.thread {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.thread-post {
  padding: 1.25rem;
}

.thread-meta {
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.thread-post-actions {
  margin-left: auto;
  display: inline-flex;
  gap: 0.25rem;
}

.topic-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.thread-body {
  white-space: pre-wrap;
  word-break: break-word;
}

.pagination {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.pagination-info {
  min-width: 6rem;
  text-align: center;
}

/* Admin */
.admin-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.admin-card {
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: inherit;
}
.admin-card strong { font-size: 1.5rem; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0.5rem;
  text-align: left;
}
.admin-table code {
  font-size: 0.75rem;
  background: var(--secondary);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-seo-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
  background: hsl(40 30% 99%);
}

.admin-seo-panel h2 {
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.slug-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}

.slug-row .flex-1 {
  flex: 1 1 12rem;
}

.slug-actions {
  padding-bottom: 0.15rem;
}

.char-count {
  font-weight: 600;
}

.text-warn {
  color: hsl(25 90% 40%);
}

textarea.wysiwyg-editor {
  min-height: 200px;
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
}

.admin-thumb {
  max-width: 200px;
  max-height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.admin-edit .stack-form {
  max-width: 52rem;
}

/* Static pages */
.static-page {
  max-width: 56rem;
  padding-bottom: 4rem;
}

.board-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .board-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .board-grid { grid-template-columns: repeat(3, 1fr); }
}

.board-card-body {
  padding: 1.25rem 1.5rem;
}

.board-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.board-role {
  margin: 0;
  font-weight: 600;
  color: var(--primary);
}

.board-term {
  margin: 0.25rem 0 0;
}

.mgmt-info-body {
  padding: 2rem;
}
.mgmt-info-body h2 {
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
}

.info-list {
  margin: 0;
  padding: 0;
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child {
  border-bottom: none;
}

.info-row dt {
  font-weight: 600;
  min-width: 10rem;
  margin: 0;
}

.info-row dd {
  margin: 0;
  flex: 1;
}

/* Meeting dates table */
.meeting-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.meeting-table {
  width: 100%;
  border-collapse: collapse;
}
.meeting-table th,
.meeting-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.meeting-table th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--secondary);
}
.meeting-table tbody tr:hover {
  background: hsl(40 45% 96%);
}
