/* BIZCLUB News — its own stylesheet, own deployable (see docs/architecture.md
 * on why client/, internal/, and news/ never share a relative import across
 * the directory boundary). Palette values match client/css/style.css and
 * internal/app/globals.css exactly, kept as duplicated values rather than a
 * shared import, same pattern internal/ already uses. */

:root {
  --bg:        #0a0a0c;
  --bg-raise:  #141418;
  --bg-card:   #17171c;
  --line:      rgba(255, 255, 255, 0.10);
  --line-firm: rgba(255, 255, 255, 0.22);
  --text:      #ece9e3;
  --muted:     #918f99;
  --gold:      #c8a656;
  --gold-hover:#d8b968;
  --gold-dim:  rgba(200, 166, 86, 0.16);
  --ink:       #0a0a0c;
  --radius:    10px;
  --radius-sm: 6px;
  --wrap:      none;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

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

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

h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 400; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

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

.label {
  margin-bottom: 0.75rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; letter-spacing: 0.04em; color: var(--gold); }
.brand-name .cap { font-size: 1.15em; }
.brand-sub { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.btn-outline { border: 1px solid var(--line-firm); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- intro + filters ---------- */

.page-intro { padding: 3rem 0 1.5rem; max-width: 40rem; }
.page-intro h1 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); margin-bottom: 0.6rem; }
.page-intro .muted { margin-top: 0.4rem; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}

.filter-pill {
  font-family: inherit;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--line-firm);
  color: var(--muted);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.filter-pill:hover { border-color: var(--gold); color: var(--text); }

.filter-pill.active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- news grid ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1.25rem;
  padding-bottom: 4rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.news-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.news-time {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.news-headline {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.news-summary {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.news-read-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
}

.news-read-link:hover { color: var(--gold-hover); }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}

/* ---------- small screens ---------- */

@media (max-width: 480px) {
  .head-inner { flex-wrap: wrap; }
  .news-grid { grid-template-columns: 1fr; }
}
