/* barter.game — shared static site styles
   Design language: deep-navy + purple brand, orange accent, Nunito Sans
   headings over Inter body, eyebrow labels, numbered steps, generous
   rounded corners. */

:root {
  --color-primary: #7239d6;
  --color-primary-light: #8f60de;
  --color-primary-deep: #533afd;
  --color-primary-dark: #5a26b8;
  --color-accent: #ff8c39;
  --color-accent-dark: #e4751f;
  --color-ink: #1a1325;
  --color-navy: #061b31;
  --color-text: #2d3748;
  --color-text-muted: #64748d;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f6fb;
  --color-border: #e2e8f0;
  --font-heading: "Nunito Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Eyebrow label above headings */

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.9rem;
}

.section-dark .eyebrow,
.hero .eyebrow {
  color: var(--color-accent);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.logo-mark {
  height: 1.7rem;
  width: 1.7rem;
  margin-right: 0.45rem;
}

.logo-accent {
  color: var(--color-primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--color-primary);
}

/* The nav's plain-link color must not override button text (specificity). */
.site-nav a.btn-primary,
.site-nav a.btn-primary:hover {
  color: #fff;
}

/* Mobile: keep the header on one row without cramping — tighter spacing and
   smaller type, and on narrow phones the wordmark drops to just the mark. */
@media (max-width: 560px) {
  .header-inner {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  .logo-mark {
    height: 1.4rem;
    width: 1.4rem;
    margin-right: 0.35rem;
  }

  .site-nav {
    gap: 0.7rem;
  }

  .site-nav a {
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  .logo-text {
    display: none;
  }
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-heading);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(114, 57, 214, 0.28);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-ink);
  box-shadow: 0 8px 20px rgba(255, 140, 57, 0.3);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.4rem 1.1rem;
  font-size: 0.9rem;
}

/* Hero */

.hero {
  background:
    linear-gradient(180deg, rgba(26, 19, 37, 0.72), rgba(26, 19, 37, 0.45) 55%, rgba(26, 19, 37, 0.6)),
    url("/assets/hero-potluck.jpg") center / cover no-repeat,
    linear-gradient(165deg, var(--color-ink) 0%, var(--color-navy) 100%);
  color: #fff;
  padding: 7rem 0 8rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.9rem);
  font-weight: 800;
  margin: 0 auto 1.4rem;
  max-width: 18ch;
}

.hero h1 em {
  font-style: italic;
  color: #ffc978;
  text-shadow: 0 2px 26px rgba(20, 10, 40, 0.55);
}

.hero h1 {
  text-shadow: 0 2px 22px rgba(20, 10, 40, 0.45);
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 2.5rem;
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(20, 10, 40, 0.65);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */

.section {
  padding: 5rem 0;
}

.section-banner {
  display: block;
  width: 100%;
  margin: 2.75rem 0 0.5rem;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(26, 19, 37, 0.28);
}

.section-federation {
  background:
    linear-gradient(90deg, rgba(26, 19, 37, 0.35), rgba(26, 19, 37, 0.1)),
    url("/assets/forest-network.jpg") center / cover no-repeat,
    linear-gradient(165deg, var(--color-ink), var(--color-navy));
  color: #fff;
  padding: 8rem 0;
}

.federation-panel {
  max-width: 620px;
  padding: 2.5rem 2.75rem;
  border-radius: 18px;
  background: rgba(20, 12, 36, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(20, 10, 40, 0.35);
}

.section.section-federation h2 {
  color: #fff;
}

.section.section-federation p {
  max-width: 560px;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.7;
}

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

.section-dark {
  background: linear-gradient(165deg, var(--color-ink), var(--color-navy));
  color: #fff;
}

.section h2 {
  color: var(--color-ink);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  margin: 0 0 1rem;
}

.section-dark h2 {
  color: #fff;
}

.section > .container > p {
  max-width: 700px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.section-dark > .container > p {
  color: rgba(255, 255, 255, 0.78);
}

/* Feature cards */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(26, 19, 37, 0.09);
}

.feature h3 {
  margin: 0 0 0.6rem;
  color: var(--color-ink);
  font-size: 1.15rem;
  font-weight: 800;
}

.feature p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.97rem;
}

/* Numbered steps */

.steps {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 0.5rem;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

.steps h3 {
  margin: 0 0 0.45rem;
  color: var(--color-ink);
  font-size: 1.1rem;
  font-weight: 800;
}

.steps p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Two-column split row (dark band) */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split-visual {
  border-radius: 20px;
  background:
    radial-gradient(18rem 12rem at 80% 0%, rgba(255, 140, 57, 0.35), transparent 60%),
    linear-gradient(150deg, var(--color-primary) 0%, var(--color-primary-deep) 100%);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.split-visual span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 2rem;
}

/* CTA */

.cta-section {
  text-align: center;
}

.cta-section p {
  color: var(--color-text-muted);
  margin: 0 auto 2rem;
  max-width: 520px;
}

.cta-section .eyebrow {
  color: var(--color-primary);
}

/* Footer */

.site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.65);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--color-primary-light);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* 404 page */

.notfound {
  text-align: center;
  padding: 7rem 0;
}

.notfound h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--color-ink);
  margin: 0 0 0.6rem;
}

.notfound p {
  color: var(--color-text-muted);
  margin-bottom: 2.2rem;
}

/* Legal pages (privacy policy) */

.legal {
  max-width: 44rem;
  padding: 3.5rem 1.5rem;
}

.legal h1 {
  margin-bottom: 0.25rem;
}

.legal-effective {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 1.35rem;
  margin: 2.2rem 0 0.6rem;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.4rem;
}

.legal p,
.legal li {
  line-height: 1.7;
}

.legal ul {
  padding-left: 1.4rem;
  margin: 0.5rem 0 1rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal a {
  color: var(--color-primary);
}

/* Cookie consent banner (shared via /consent.js) */

#cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 42rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-ink);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(26, 19, 37, 0.35);
  z-index: 1000;
}

#cookie-banner p {
  flex: 1;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

#cookie-banner a {
  color: var(--color-primary-light);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  #cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-banner-actions {
    justify-content: center;
  }
}
