/* Bayou & Bluff Historical Society — draft site styles */

:root {
  --green: #1f3b2c;
  --green-deep: #162a1f;
  --green-soft: #2a4d3a;
  --gold: #b08d3e;
  --gold-soft: #c9a84c;
  --brass: #8a6b2f;
  --cream: #f3ead6;
  --cream-light: #faf6ec;
  --parchment: #ebe2cf;
  --ink: #1a241c;
  --ink-soft: #3a453c;
  --muted: #6b7468;
  --rule: #d4c7a8;
  --link: #1f3b2c;
  --link-hover: #b08d3e;
  --nav-text: #1f3b2c;
  --shadow: 0 2px 14px rgba(31, 59, 44, 0.08);
  --radius: 8px;
  --font-display: "Cormorant Garamond", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 760px;
  --max-wide: 1040px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse at top, var(--cream-light) 0%, var(--cream) 50%, var(--parchment) 100%);
  background-attachment: fixed;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--link-hover);
}

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ========== Header (light/cream for wide logo) ========== */

.site-header {
  background: var(--cream-light);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-bar {
  border-bottom: 3px solid var(--green);
}

.header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand:hover {
  color: inherit;
}

.brand-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: min(420px, 72vw);
  object-fit: contain;
}

.brand-mark-sm {
  display: none;
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--green);
}

.brand-tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  appearance: none;
  background: var(--green);
  color: var(--cream-light);
  border: 0;
  border-radius: 6px;
  padding: 0.55rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: var(--green-soft);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.site-nav {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.35rem 1.25rem 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.15rem;
  background: var(--cream);
  border-top: 1px solid var(--rule);
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  background: rgba(31, 59, 44, 0.06);
  color: var(--green-deep);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
  color: var(--green-deep);
  font-weight: 600;
}

/* ========== Main ========== */

main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3.5rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--green);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
}

.ornament {
  display: block;
  width: 100%;
  max-width: 160px;
  height: 14px;
  margin: 0.15rem 0 1.4rem;
  color: var(--gold);
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  margin: 1.85rem 0 0.6rem;
  color: var(--green);
}

h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-soft);
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.45rem;
}

/* ========== Home hero ========== */

.hero-block {
  text-align: center;
  padding: 0.5rem 0 1.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.hero-logo {
  display: block;
  width: min(280px, 70vw);
  height: auto;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 6px 18px rgba(31, 59, 44, 0.18));
}

.hero-block .page-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-mission {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 500;
  color: var(--brass);
  max-width: 34em;
  margin: 0.75rem auto 0;
  line-height: 1.45;
}

.hero {
  text-align: left;
}

/* Cards (Projects) */

.card-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 1.5rem 0 0;
}

.card {
  background: var(--cream-light);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green);
}

.card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.card .label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

/* Contact */

.contact-box {
  background: var(--cream-light);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

.contact-box a {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 600;
  word-break: break-all;
}

.note {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}

/* Sources list */

.source-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.source-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}

.source-list li:last-child {
  border-bottom: 0;
}

.source-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green);
  margin-bottom: 0.2rem;
}

.source-list span {
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ========== Footer ========== */

.site-footer {
  background: var(--green);
  color: #c9d4cb;
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 2rem 1.25rem 1.75rem;
  text-align: center;
  border-top: 3px solid var(--gold);
}

.footer-inner {
  max-width: 560px;
  margin: 0 auto;
}

.footer-logo {
  display: block;
  width: 88px;
  height: auto;
  margin: 0 auto 1rem;
  opacity: 0.95;
}

.site-footer p {
  margin: 0.35rem 0;
  line-height: 1.5;
}

.site-footer a {
  color: var(--gold-soft);
}

.site-footer a:hover {
  color: #e8d48a;
}

.footer-copy {
  margin-top: 0.85rem !important;
  font-size: 0.8rem;
  opacity: 0.85;
}

/* How It's Built */

.build-page .build-section {
  margin-top: 2rem;
}

.build-page h2 {
  font-size: 1.6rem;
  margin-top: 2rem;
}

.build-page h3 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  color: var(--green);
}

.build-diagram {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  margin: 1rem 0 1.25rem;
}

.build-bullets {
  margin: 0.5rem 0 1.25rem;
}

.build-steps {
  margin: 0.5rem 0 1.25rem;
  padding-left: 1.35rem;
}

.build-steps li {
  margin-bottom: 0.55rem;
}

.callout {
  background: var(--cream-light);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
  box-shadow: var(--shadow);
}

.callout strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--green);
  font-size: 1.05rem;
  font-family: var(--font-display);
}

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

.callout ol {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.callout-info {
  border-left: 4px solid #5a7a9a;
}

.callout-success {
  border-left: 4px solid var(--green);
}

.callout-praise {
  border-left: 4px solid var(--gold);
  background: #f7efd8;
}

.fun-facts {
  border: 3px solid var(--green);
  border-radius: 16px;
  padding: 1.15rem 1.35rem;
  margin: 1.25rem 0;
  background: var(--cream-light);
  box-shadow: var(--shadow);
}

.fun-facts h3 {
  margin-top: 0;
  text-align: center;
  font-size: 1.4rem;
}

.fun-facts ul {
  margin-bottom: 0;
}

.code-sample {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0.75rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--green-deep);
  color: var(--cream);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-x: auto;
}

.build-page code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
  background: var(--parchment);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.quiz-list {
  margin: 0.75rem 0 1rem;
  padding-left: 1.35rem;
}

.quiz-list li {
  margin-bottom: 0.65rem;
}

.quiz-answers {
  background: var(--cream-light);
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 0.5rem 0 1.5rem;
}

.quiz-answers summary {
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--green);
}

.quiz-answers ol {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

/* Fun Facts page */

.fun-facts-page .fact-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1.25rem 0 1.75rem;
}

.fact-card {
  background: var(--cream-light);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow);
}

.fact-text {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  color: var(--ink);
}

.fact-source {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
}

.color-of-month {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--cream-light);
  border: 2px dashed var(--green);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.5rem;
}

.color-swatch {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--green);
  box-shadow: var(--shadow);
}

.color-label {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.color-name {
  margin: 0.1rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--green);
}

.color-note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.curator-note {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 1.5rem;
}

/* Kids' Corner */

.kids-corner-body {
  background:
    radial-gradient(ellipse at top, #fff6e8 0%, var(--cream) 40%, #e8f3ef 100%);
}

.kids-title {
  background: linear-gradient(90deg, #c45c26, #2f6f5e, #3d6b9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kids-banner {
  background: linear-gradient(135deg, #ffe8c8, #d9f0e8 50%, #d6e6f7);
  border: 2px solid var(--green);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  margin: 0 0 1.5rem;
  box-shadow: var(--shadow);
}

.kids-banner p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
}

.art-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.art-tile {
  margin: 0;
  background: var(--cream-light);
  border: 2px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.art-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--parchment);
}

.art-tile figcaption {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.55rem 0.65rem;
  color: var(--ink-soft);
  text-align: center;
}

.placeholder-tile {
  border-style: dashed;
  border-color: var(--brass);
  background: repeating-linear-gradient(
    -45deg,
    var(--cream-light),
    var(--cream-light) 10px,
    var(--parchment) 10px,
    var(--parchment) 20px
  );
}

.placeholder-art {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  font-size: 2.5rem;
  background: rgba(250, 246, 236, 0.7);
}

.submit-art {
  background: var(--cream-light);
  border: 2px solid #2f6f5e;
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

.submit-art h2 {
  margin-top: 0;
  color: #2f6f5e;
}

.submit-art h3 {
  font-size: 1.15rem;
  margin: 1.1rem 0 0.5rem;
  color: var(--green);
}

.submit-mail {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.5rem 0 0.75rem;
}

.submit-mail a {
  word-break: break-all;
}

.kids-resources {
  margin: 2rem 0 1rem;
}

.kids-resources h2 {
  color: #3d6b9a;
}

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

.resource-list li {
  margin: 0;
  background: var(--cream-light);
  border: 1px solid var(--rule);
  border-left: 5px solid #3d6b9a;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
}

.resource-list a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
}

.resource-list span {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ========== Responsive ========== */

@media (max-width: 720px) {
  .brand-logo {
    height: 52px;
    max-width: min(300px, 62vw);
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 1rem 0.85rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.65rem 0.75rem;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .site-nav a[aria-current="page"] {
    border-left-color: var(--gold);
    background: rgba(31, 59, 44, 0.06);
  }

  .page-title,
  .hero-block .page-title {
    font-size: 1.85rem;
  }

  .lede {
    font-size: 1.05rem;
  }

  body {
    font-size: 1.02rem;
  }

  .hero-mission {
    font-size: 1.15rem;
  }
}

@media (max-width: 520px) {
  .brand picture {
    display: none;
  }

  .brand-logo {
    display: none;
  }

  .brand-mark-sm {
    display: block;
  }

  .brand-text {
    display: flex;
  }
}

@media (max-width: 560px) {
  .build-page h2 {
    font-size: 1.35rem;
  }

  .code-sample {
    font-size: 0.78rem;
  }

  .color-of-month {
    align-items: flex-start;
  }

  .art-gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}
