/* Diaspora — shared site styles. Matches the in-app neo-brutalist visual language. */

@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Chivo:wght@400;700;900&display=swap');

:root {
  --primary: #E63946;   /* chili red */
  --saffron: #F4A261;
  --indigo: #1D3557;    /* ink / borders */
  --teal: #2A9D8F;
  --muted: #8D6A58;
  --cream: #FFF3E0;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--indigo);
  font-family: 'Chivo', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Bungee', display;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
}

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

.brutal-border  { border: 4px solid var(--indigo); }
.brutal-border-2 { border: 2px solid var(--indigo); }

.shadow-brutal    { box-shadow: 8px 8px 0 var(--indigo); }
.shadow-brutal-sm { box-shadow: 4px 4px 0 var(--indigo); }
.shadow-brutal-xs { box-shadow: 2px 2px 0 var(--indigo); }

.bg-stripes {
  background-image: repeating-linear-gradient(
    -45deg, var(--teal) 0 8px, var(--cream) 8px 16px
  );
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Marquee */
.marquee-bar {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  background: var(--saffron);
  border-bottom: 4px solid var(--indigo);
  padding: 8px 0;
}
.marquee-inner {
  display: inline-block;
  font-family: 'Bungee', display;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  animation: marquee 18s linear infinite;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Top nav */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  background: var(--primary);
  color: white;
  border: 4px solid var(--indigo);
  box-shadow: 4px 4px 0 var(--indigo);
  padding: 6px 12px;
  font-family: 'Bungee', display;
  font-size: 1.1rem;
}
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a {
  font-family: 'Bungee', display;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.nav-links a:hover { color: var(--primary); }

/* Hero */
.hero {
  padding: 56px 0 40px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: white;
  border: 2px solid var(--indigo);
  box-shadow: 3px 3px 0 var(--indigo);
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  margin-bottom: 22px;
  transform: rotate(-1deg);
}
.hero h1 {
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  color: var(--primary);
  letter-spacing: -0.02em;
}
.hero p.sub {
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 18px;
  color: var(--indigo);
  opacity: 0.85;
}
.hero-cta {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: 'Bungee', display;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 16px 28px;
  border: 4px solid var(--indigo);
  box-shadow: 5px 5px 0 var(--indigo);
  transition: transform 0.08s ease;
  cursor: pointer;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--indigo); }
.btn-primary { background: var(--primary); color: white; }
.btn-ghost { background: white; color: var(--indigo); }

/* How it works */
.section { padding: 36px 0; }
.section-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  text-align: center;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
}
.step-card {
  background: white;
  border: 4px solid var(--indigo);
  box-shadow: 5px 5px 0 var(--indigo);
  padding: 18px;
}
.step-card .step-num {
  background: var(--saffron);
  border: 2px solid var(--indigo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-family: 'Bungee', display;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.step-card h3 { font-size: 1rem; margin-bottom: 6px; }
.step-card p { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin: 0; }

/* Regions strip */
.region-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.region-pill {
  background: var(--indigo);
  color: var(--cream);
  font-family: 'Bungee', display;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 10px 16px;
  border: 2px solid var(--indigo);
}
.region-pill:nth-child(2) { background: var(--primary); }
.region-pill:nth-child(3) { background: var(--teal); }
.region-pill:nth-child(4) { background: var(--muted); }

/* Quest callout */
.callout {
  background: var(--saffron);
  border: 4px solid var(--indigo);
  box-shadow: 8px 8px 0 var(--indigo);
  padding: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.callout h2 { color: var(--primary); font-size: 1.3rem; margin-bottom: 10px; }
.callout p { font-weight: 700; max-width: 520px; margin: 0 auto 18px; }

/* Footer */
footer {
  border-top: 4px solid var(--indigo);
  margin-top: 40px;
  padding: 24px 0 36px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-row a:hover { color: var(--primary); }

/* Blog index */
.post-card {
  background: white;
  border: 4px solid var(--indigo);
  box-shadow: 6px 6px 0 var(--indigo);
  padding: 22px;
  margin-bottom: 22px;
  display: block;
  transition: transform 0.08s ease;
}
.post-card:hover { transform: translate(-2px, -2px); }
.post-date {
  font-family: 'Bungee', display;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
}
.post-card h2 { font-size: 1.3rem; margin-bottom: 8px; }
.post-card p.excerpt { font-weight: 700; color: var(--indigo); opacity: 0.8; margin: 0; font-size: 0.95rem; }

.page-header { padding: 40px 0 10px; text-align: center; }
.page-header h1 { color: var(--primary); font-size: clamp(1.8rem, 6vw, 2.6rem); }
.page-header p { font-weight: 700; color: var(--muted); margin-top: 10px; }

/* Article */
article.post {
  background: white;
  border: 4px solid var(--indigo);
  box-shadow: 8px 8px 0 var(--indigo);
  padding: 32px;
  margin: 30px 0 40px;
}
article.post h1 {
  color: var(--primary);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin-bottom: 8px;
}
article.post .meta {
  font-family: 'Bungee', display;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 22px;
}
article.post p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 18px;
}
article.post p a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  font-weight: 700;
}
article.post p a:hover {
  color: var(--indigo);
}
article.post .pullquote {
  border-left: 4px solid var(--primary);
  padding-left: 16px;
  font-weight: 700;
  font-style: italic;
  color: var(--indigo);
  margin: 24px 0;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Bungee', display;
  font-size: 0.75rem;
  margin-top: 10px;
}
.back-link:hover { color: var(--primary); }
