/* ============================================================
   THIS IS THE FIRE — Pete Lawrence
   Design system: campfire-at-night, brushed type, ember motion
   ============================================================ */

:root {
  /* ---- NIGHT (default) ---- */
  --bg: #070b14;
  --bg-raised: #0f1b30;
  --bg-raised-2: #15233d;
  --ink: #f5f0e6;
  --ink-soft: #c9c4ba;
  --ink-faint: #8b9099;
  --fire: #d9622b;
  --ember: #f4a64c;
  --fire-deep: #b8481c;
  --line: rgba(245, 240, 230, 0.12);
  --line-strong: rgba(245, 240, 230, 0.22);
  --jewel-green: #5b8c5a;
  --jewel-purple: #6a5a9c;
  --jewel-blue: #3d6b8c;
  --jewel-gold: #a98a3f;
  --shadow: rgba(0, 0, 0, 0.55);
  --hero-overlay: linear-gradient(180deg, rgba(7,11,20,0.15) 0%, rgba(7,11,20,0.55) 55%, rgba(7,11,20,0.96) 100%);
  --card-shadow: 0 20px 60px rgba(0,0,0,0.45);
  --grain-opacity: 0.05;
}

html[data-theme="day"] {
  --bg: #faf3e6;
  --bg-raised: #ffffff;
  --bg-raised-2: #f3e8d6;
  --ink: #2b2118;
  --ink-soft: #5a4d3f;
  --ink-faint: #8a7c68;
  --fire: #c2531f;
  --ember: #d9772f;
  --fire-deep: #9c3f15;
  --line: rgba(43, 33, 24, 0.12);
  --line-strong: rgba(43, 33, 24, 0.22);
  --jewel-green: #4a7a49;
  --jewel-purple: #5a4a8c;
  --jewel-blue: #2f5a7a;
  --jewel-gold: #9c7a2f;
  --shadow: rgba(80, 60, 30, 0.18);
  --hero-overlay: linear-gradient(180deg, rgba(250,243,230,0.05) 0%, rgba(250,243,230,0.35) 55%, rgba(250,243,230,0.97) 100%);
  --card-shadow: 0 20px 50px rgba(120,90,50,0.15);
  --grain-opacity: 0.03;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Jost', -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}

/* subtle film-grain / star texture overlay on whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

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

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

h1, h2, h3, .display {
  font-family: 'Permanent Marker', 'Eraser Dust', cursive;
  font-weight: normal;
  letter-spacing: 0.01em;
  line-height: 1.08;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }

.eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fire);
  font-weight: 500;
}

p { color: var(--ink-soft); margin-bottom: 1.3em; max-width: 38em; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 6vw;
}

/* ============== NAV ============== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 6vw;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 100%);
  transition: background 0.4s ease;
}

.site-nav.scrolled {
  background: var(--bg);
  box-shadow: 0 2px 24px var(--shadow);
}

.nav-wordmark {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.nav-wordmark .nav-name {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.nav-wordmark span {
  color: var(--fire);
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 2.1rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 6px;
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--fire); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--fire);
  border-radius: 2px;
}

.theme-toggle {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.3s ease, transform 0.2s ease;
}
.theme-toggle:hover { transform: scale(1.08); border-color: var(--fire); }
.theme-toggle svg { width: 19px; height: 19px; }

.nav-burger {
  display: none;
  width: 30px; height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-burger span {
  display: block; height: 2px; width: 100%;
  background: var(--ink);
  border-radius: 2px;
}

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero.hero--page {
  min-height: 56vh;
  align-items: center;
}

.hero.hero--cover {
  min-height: 100vh;
  background-position: center 65%;
  background-size: cover;
  align-items: flex-end;
}
.hero.hero--cover .hero-content {
  padding-bottom: 9vw;
}
.hero.hero--cover .hero-sub {
  max-width: 30em;
  font-size: 1.18rem;
}
.ink-fire { color: var(--fire); }

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
}

.hero--cover::after {
  background: linear-gradient(180deg, rgba(7,11,20,0.05) 0%, rgba(7,11,20,0.25) 45%, rgba(7,11,20,0.92) 100%);
}
html[data-theme="day"] .hero--cover::after {
  background: linear-gradient(180deg, rgba(7,11,20,0.05) 0%, rgba(7,11,20,0.25) 45%, rgba(7,11,20,0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 6vw 6vw;
}

.hero--page .hero-content {
  padding: 0 6vw;
  text-align: center;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
  max-width: 16em;
  margin-left: auto;
  margin-right: auto;
}

.hero-name {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #fff;
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
  margin-bottom: 0.3rem;
  line-height: 1;
}

.brand-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-bottom: 0.3rem;
}
.brand-line .hero-name {
  margin-bottom: 0;
}
.brand-title {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--fire);
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
  line-height: 1;
  white-space: nowrap;
}

.brand-strip .brand-line {
  justify-content: center;
  margin-bottom: 0;
}
.brand-strip .hero-name,
.brand-strip .brand-title {
  color: var(--ink);
  text-shadow: none;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
}
.brand-strip .brand-title {
  color: var(--fire);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.brand-strip {
  text-align: center;
  padding: 3.5rem 0 3rem;
  position: relative;
}
.brand-strip .hero-name {
  color: var(--ink);
  text-shadow: none;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
}
html[data-theme="day"] .hero h1 { color: #fff; }

.hero .eyebrow {
  color: var(--ember);
  margin-bottom: 1rem;
  display: inline-block;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-sub {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  max-width: 32em;
  margin-top: 1.1rem;
  text-shadow: 0 2px 14px rgba(0,0,0,0.5);
}

.hero--page .hero-sub {
  margin-left: auto;
  margin-right: auto;
}

/* embers drifting up — used in home hero + footer */
.embers {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.ember-particle {
  position: absolute;
  bottom: -10px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px 2px var(--fire);
  opacity: 0;
  animation: float-ember linear infinite;
}
@keyframes float-ember {
  0% { opacity: 0; transform: translateY(0) translateX(0) scale(1); }
  8% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-100vh) translateX(var(--drift, 20px)) scale(0.4); }
}
@media (prefers-reduced-motion: reduce) {
  .ember-particle { animation: none; display: none; }
}

/* ============== SECTIONS ============== */
.section {
  padding: 7rem 0;
  position: relative;
}
.section--tight { padding: 4.5rem 0; }
.section--raised {
  background: var(--bg-raised);
}

.section-head {
  margin-bottom: 3rem;
  max-width: 42em;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.lede {
  font-size: 1.25rem;
  color: var(--ink);
  font-style: italic;
  max-width: 34em;
}

.prose {
  max-width: 42em;
}
.prose p { font-size: 1.04rem; }

/* pull-quote, brush-stroke style */
.pull-quote {
  font-family: 'Permanent Marker', cursive;
  color: var(--fire);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.3;
  max-width: 30em;
  margin: 3rem 0;
  position: relative;
  padding-left: 1.4rem;
  border-left: 3px solid var(--fire);
}
.pull-quote cite {
  display: block;
  font-family: 'Jost', sans-serif;
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  background: var(--fire);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}
.btn:hover { background: var(--fire-deep); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--fire); background: transparent; color: var(--fire); }

/* link list e.g. Key Links */
.link-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.link-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem 1.7rem;
  transition: border-color 0.25s ease, transform 0.2s ease;
}
.link-card:hover { border-color: var(--fire); transform: translateY(-3px); }
.link-card .eyebrow { display: block; margin-bottom: 0.5rem; }
.link-card .link-url { color: var(--ink); font-size: 0.95rem; word-break: break-word; }

/* "round the fire" people grid for credits */
.fire-circle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2.5rem 2rem;
  margin-top: 1rem;
}
.role-group .eyebrow { margin-bottom: 0.7rem; display: block; }
.role-group ul { list-style: none; }
.role-group li {
  color: var(--ink-soft);
  font-size: 0.98rem;
  padding: 0.32rem 0;
  border-bottom: 1px solid var(--line);
}
.role-group li:last-child { border-bottom: none; }

/* timeline-ish journal entries for Album page */
.journal-entry {
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
}
.journal-entry:first-of-type { border-top: none; padding-top: 0; }
.journal-entry h3 { margin-bottom: 0.9rem; color: var(--ember); }

/* card grid for workshops */
.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  margin-top: 2.5rem;
}
.workshop-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2.1rem;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.workshop-card:hover { transform: translateY(-4px); border-color: var(--fire); }
.workshop-card h3 { font-size: 1.35rem; margin-bottom: 0.8rem; }
.workshop-card p { font-size: 0.96rem; }
.workshop-card::before {
  content: '';
  position: absolute;
  top: 0; left: 2.1rem;
  width: 36px; height: 3px;
  background: var(--fire);
  border-radius: 2px;
}

/* video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.video-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--line);
}
.video-card .video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}
.video-card .video-embed iframe {
  width: 100%; height: 100%; border: 0; display: block;
}
.video-card .video-meta { padding: 1.3rem 1.5rem; }
.video-card .video-meta h3 { font-size: 1.1rem; }

/* news cards */
.news-grid { display: flex; flex-direction: column; gap: 0; margin-top: 2.5rem; }
.news-item {
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
}
.news-item:first-child { border-top: none; padding-top: 0; }
.news-date {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fire);
  padding-top: 0.3rem;
}
.news-item h3 { font-size: 1.4rem; margin-bottom: 0.7rem; }
.news-item a.read-more {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--fire);
  padding-bottom: 2px;
}

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-form label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
  display: block;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-size: 0.98rem;
  transition: border-color 0.25s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--fire);
}
.contact-form textarea { resize: vertical; min-height: 130px; }

.contact-side .link-card { margin-bottom: 1.2rem; }

/* image bands / hero-style mid-page images */
.image-band {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  margin: 3rem 0;
  box-shadow: var(--card-shadow);
}
.image-band img { width: 100%; height: auto; }

/* two-col layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* divider with jewel dot accents echoing the uplit trees */
.jewel-divider {
  display: flex;
  gap: 0.5rem;
  margin: 2.5rem 0;
}
.jewel-divider span {
  width: 7px; height: 7px;
  border-radius: 50%;
}
.jewel-divider span:nth-child(1) { background: var(--jewel-green); }
.jewel-divider span:nth-child(2) { background: var(--jewel-purple); }
.jewel-divider span:nth-child(3) { background: var(--jewel-blue); }
.jewel-divider span:nth-child(4) { background: var(--fire); }
.jewel-divider span:nth-child(5) { background: var(--jewel-gold); }

/* ============== FOOTER ============== */
.site-footer {
  position: relative;
  background: #04070d;
  color: var(--ink-soft);
  padding: 4.5rem 0 2.5rem;
  overflow: hidden;
}
html[data-theme="day"] .site-footer {
  background: #2b2118;
  color: #d9cdb8;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 3rem;
  position: relative;
  z-index: 2;
}
.footer-wordmark {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 0.8rem;
}
.footer-wordmark span { color: var(--fire); }
.footer-logo {
  width: 140px;
  height: auto;
  margin-bottom: 1.1rem;
  opacity: 0.96;
}
.footer-tagline { font-size: 0.92rem; max-width: 26em; opacity: 0.85; }
.footer-col h4 {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
  opacity: 0.7;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.92rem; opacity: 0.85; transition: opacity 0.2s ease, color 0.2s ease; }
.footer-col a:hover { opacity: 1; color: var(--ember); }
.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  opacity: 0.55;
  position: relative;
  z-index: 2;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .news-item { grid-template-columns: 1fr; gap: 0.6rem; }
  body { font-size: 16px; }
  .section { padding: 4.5rem 0; }
  .hero { min-height: 80vh; }
  .hero--page { min-height: 42vh; }
}

@media (max-width: 880px) {
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem 6vw 2rem;
    gap: 1.3rem;
    border-bottom: 1px solid var(--line);
  }
}

/* ============== FEATURED SIGNUP BAND ============== */
.signup-feature {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.6rem 3rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.signup-feature-text {
  flex: 1;
  min-width: 240px;
}
.signup-feature-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}
.signup-feature-text p {
  font-size: 0.98rem;
  margin-bottom: 0;
}
.signup-feature #flodesk-signup-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .signup-feature {
    flex-direction: column;
    align-items: stretch;
    padding: 2.2rem 1.8rem;
    text-align: center;
  }
  .signup-feature #flodesk-signup-btn {
    width: 100%;
  }
}
