/* Rivercane Restoration Alliance — shared stylesheet */
/* A restrained, editorial palette echoing the org's monochrome line-art logo:
   near-black ink, warm cane-gold accent, cream paper background. */

:root {
  --ink: #1c1e1a;
  --ink-soft: #55523f;
  --gold: #a8791f;
  --gold-light: #c9932c;
  --sage: #5c6e4f;
  --cream: #f7f4ec;
  --paper: #ffffff;
  --line: #e3ddc9;
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Lora", "Iowan Old Style", "Palatino Linotype", "Georgia", serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.68;
}

h1, h2, h3, .brand-name, nav, button, input, select, .btn {
  font-family: "Work Sans", "Trebuchet MS", "Segoe UI", sans-serif;
}

a { color: var(--gold); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

/* Header / Nav */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  height: 48px;
  width: auto;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: bold;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.2;
}

.brand-name small {
  display: block;
  font-size: 0.62rem;
  font-weight: normal;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 9px 12px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

nav.main-nav a:hover { color: var(--gold); }

nav.main-nav a.active {
  border-bottom-color: var(--gold);
  color: var(--gold);
  font-weight: bold;
}

/* Hero (light, editorial — not a dark gradient) */
.hero {
  position: relative;
  background: var(--paper);
  padding: 68px 24px 64px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    100deg,
    transparent 0px,
    transparent 38px,
    var(--line) 39px,
    transparent 40px
  );
  pointer-events: none;
}

.hero .inner { position: relative; max-width: var(--max-width); margin: 0 auto; }

.hero img.hero-logo {
  width: min(220px, 40vw);
  height: auto;
  margin: 0 auto 20px;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 12px;
  color: var(--ink);
}

.hero p.tagline {
  font-size: 1.18rem;
  margin: 0 auto;
  max-width: 620px;
  color: var(--ink-soft);
  font-style: italic;
}

/* Page hero (interior pages) */
.page-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 46px 24px;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  color: var(--ink);
}

.page-hero p { margin: 0; color: var(--ink-soft); }

/* Content */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 54px 24px 80px;
}

section + section { margin-top: 46px; }

h2 {
  color: var(--ink);
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 0;
  border-radius: 2px;
}

.lede { font-size: 1.06rem; color: var(--ink-soft); }

/* Stat tiles */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.stat-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 18px;
  text-align: center;
}

.stat-tile .num {
  font-size: 2rem;
  font-weight: bold;
  color: var(--gold);
  display: block;
  font-family: "Work Sans", "Trebuchet MS", "Segoe UI", sans-serif;
}

.stat-tile .label {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 10px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.card h3 { margin: 0 0 6px; color: var(--ink); font-size: 1.08rem; }
.card .meta { font-size: 0.82rem; color: var(--gold); margin-bottom: 8px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.03em; }

.card blockquote {
  margin: 10px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
  font-style: italic;
  color: var(--ink-soft);
}

/* Photo gallery */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 22px;
}

@media (max-width: 780px) {
  .photo-gallery { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }
}

.photo-card {
  margin: 0;
  text-align: center;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.photo-card figcaption {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 8px;
  font-style: italic;
}

/* Contact / signup box */
.contact-box, .signup-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  padding: 34px 24px;
  margin-top: 48px;
}

.signup-box { background: #fbf8ef; border-color: var(--gold-light); }

.contact-box h2, .signup-box h2 { margin-top: 0; }

.contact-box a.email {
  display: inline-block;
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 2px solid var(--gold-light);
}

/* Signup form */
.signup-form {
  max-width: 420px;
  margin: 18px auto 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.signup-form input[type="email"] {
  flex: 1 1 220px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.98rem;
  font-family: inherit;
}

.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(168,121,31,0.15);
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 0.96rem;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn:hover { background: #33362e; }
.btn.btn-gold { background: var(--gold); }
.btn.btn-gold:hover { background: var(--gold-light); }

.setup-note {
  max-width: 620px;
  margin: 14px auto 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* Resource groups (shared pattern across all three sites) */
.resource-group { margin-bottom: 40px; }

.resource-group h3 {
  color: var(--ink);
  border-left: 4px solid var(--gold);
  padding-left: 12px;
  margin-bottom: 14px;
}

.empty-state {
  background: var(--paper);
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
  color: var(--ink-soft);
}

.empty-state strong { color: var(--ink); }

.resource-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.resource-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}

.resource-item .icon { font-size: 1.3rem; line-height: 1; flex-shrink: 0; }
.resource-item .meta { font-size: 0.85rem; color: var(--ink-soft); }

/* StoryMap embed placeholder */
.storymap-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.storymap-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.storymap-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  padding: 24px;
  color: var(--ink-soft);
  background: repeating-linear-gradient(135deg, #fbf9f2, #fbf9f2 12px, #f3efe2 12px, #f3efe2 24px);
}

/* News / press cards */
.press-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}

.press-card .source {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  font-weight: bold;
}

.press-card h3 { margin: 6px 0 8px; }
.press-card a.read-more { font-weight: bold; }

/* Footer */
footer {
  background: var(--ink);
  color: #cfcabb;
  text-align: center;
  padding: 26px 24px;
  font-size: 0.86rem;
}

footer a { color: #fff; }

@media (max-width: 640px) {
  .site-header .inner { flex-direction: column; align-items: flex-start; }
  .hero { padding: 50px 20px 50px; }
  .hero h1 { font-size: 1.9rem; }
}
