/* /website/transmissions/transmissions.css */

/* =========================
   Theme tokens
   ========================= */
:root{
  --bg-paper: #f6f1e4;
  --paper-tint: rgba(246,241,228,0.88);

  --ink: #0b0c0f;
  --muted: rgba(11,12,15,0.62);
  --muted-2: rgba(11,12,15,0.48);

  --line: rgba(0,0,0,0.10);
  --line-2: rgba(0,0,0,0.08);

  --accent: #E3B341;

  --prose: rgba(11,12,15,0.86);
  --prose-soft: rgba(11,12,15,0.72);
}

/* =========================
   Base
   ========================= */
html, body{ height: 100%; }

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

body{
  background: var(--bg-paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle paper grain */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

h1,h2,h3,h4,.font-heading{
  font-family: Poppins, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
}

a{
  color: inherit;
  text-underline-offset: 3px;
}

a:hover{
  color: rgba(0,0,0,0.86);
}

::selection{
  background: rgba(227,179,65,0.35);
  color: var(--ink);
}

/* =========================
   Reusable text styles
   ========================= */
.meta{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.deck{
  color: rgba(11,12,15,0.70);
  font-size: 16px;
  line-height: 1.7;
}

.muted{ color: var(--muted); }
.text-accent{ color: var(--accent); }

/* =========================
   Tags
   ========================= */
.tag-row{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tag{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 10px;
  color: rgba(11,12,15,0.58);
  background: rgba(11,12,15,0.03);
  border: 1px solid rgba(11,12,15,0.09);
  border-radius: 999px;
}

/* =========================
   Separators
   ========================= */
.rule{
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
}

/* For plain <hr> without class */
hr{
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
}

/* =========================
   Cards (posts)
   ========================= */
.post-card{
  background: rgba(255,255,255,0.32);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.post-card:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.42);
  box-shadow: 0 14px 40px rgba(0,0,0,0.07);
}

.post-card h2{
  color: rgba(0,0,0,0.92);
}

/* =========================
   Article typography (.prose)
   This is the missing piece that controls spacing.
   ========================= */
.prose{
  color: var(--prose);
  font-size: 18px;
  line-height: 1.9;
}

.prose > *{
  margin-top: 0;
}

/* Paragraph spacing */
.prose p{
  margin: 18px 0;
  color: var(--prose);
}

/* Links inside prose */
.prose a{
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.22);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.prose a:hover{
  text-decoration-color: rgba(0,0,0,0.40);
}

/* Emphasis and strong */
.prose em{ color: rgba(11,12,15,0.92); }
.prose strong{ color: rgba(11,12,15,0.94); }

/* Headings inside prose (if you use them) */
.prose h2{
  font-family: Poppins, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(11,12,15,0.96);
  letter-spacing: -0.03em;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  margin: 40px 0 12px;
}
.prose h3{
  font-family: Poppins, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(11,12,15,0.94);
  letter-spacing: -0.02em;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
  margin: 34px 0 10px;
}

/* Lists */
.prose ul, .prose ol{
  margin: 18px 0 18px 22px;
}
.prose li{
  margin: 8px 0;
  color: var(--prose);
}

/* Blockquotes */
.prose blockquote{
  margin: 26px 0;
  padding: 14px 16px;
  border-left: 3px solid rgba(0,0,0,0.14);
  background: rgba(11,12,15,0.03);
  color: rgba(11,12,15,0.80);
}

/* Images */
.prose img{
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  margin: 26px 0;
}

/* Inline code and code blocks */
.prose code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-size: 0.92em;
  background: rgba(11,12,15,0.04);
  border: 1px solid rgba(11,12,15,0.10);
  padding: 0.15em 0.35em;
  border-radius: 8px;
}
.prose pre{
  margin: 26px 0;
  padding: 16px;
  overflow: auto;
  border-radius: 14px;
  background: rgba(11,12,15,0.04);
  border: 1px solid rgba(11,12,15,0.10);
}
.prose pre code{
  background: transparent;
  border: none;
  padding: 0;
}

/* Spacing around rules used inside prose */
.prose .rule{
  margin: 30px 0;
}

/* =========================
   Call to Builders block
   ========================= */
.call-to-builders{
  margin: 34px 0;
  padding: 22px;
  border-radius: 18px;
  background: rgba(11,12,15,0.03);
  border: 1px solid rgba(11,12,15,0.10);
}

.call-to-builders-title{
  font-family: Poppins, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(11,12,15,0.94);
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.call-to-builders-body{
  color: var(--prose);
  font-size: 16px;
  line-height: 1.85;
}

.call-to-builders-body p{
  margin: 12px 0;
}

.call-to-builders-lead{
  color: rgba(11,12,15,0.80);
}

.call-to-builders-indent{
  margin-left: 14px;
}

.call-to-builders-emphasis{
  color: rgba(11,12,15,0.88);
  font-weight: 600;
}

.call-to-builders-footer{
  color: rgba(11,12,15,0.70);
}

/* =========================
   Hashtags
   ========================= */
.hashtags{
  margin-top: 26px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(11,12,15,0.55);
}

/* =========================
   Nav helpers
   ========================= */
nav a.muted:hover{
  color: rgba(0,0,0,0.85);
}

.nav-paper{
  background: var(--paper-tint);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

/* =========================
   Mobile polish
   ========================= */
@media (max-width: 640px){
  .deck{ font-size: 15px; }
  .prose{ font-size: 16px; line-height: 1.85; }
  .call-to-builders{ padding: 18px; }
}

/* Shared nav button style */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.18);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 600;
  font-family: Poppins, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: transparent;
  color: rgba(11,12,15,0.84);
  text-decoration: none;
}
.btn:hover{ background: rgba(0,0,0,0.04); }

/* Optional safety: make links inherit color on paper pages */
a{ color: inherit; }
