/* ============================================================
   OUTPOST MEDIA — styles.css
   Dark editorial aesthetic. Playfair Display + Source Serif 4.
   Gold accent: #f0b429. Background: #0f0f0f.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Barlow+Condensed:wght@400;600;700&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0f0f0f;
  --bg-2:      #161616;
  --bg-3:      #1e1e1e;
  --gold:      #f0b429;
  --gold-dim:  #c4911e;
  --white:     #f0ede8;
  --muted:     #888880;
  --border:    #2a2a2a;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-ui:   'Barlow Condensed', sans-serif;
  --max-w:     1200px;
  --article-w: 720px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Utility ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.gold { color: var(--gold); }

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,15,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
}
.nav-logo-text span {
  display: block;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

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

.nav-links a {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--bg-3);
}

.nav-links a.active {
  color: var(--gold);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ── HERO (Homepage) ── */
.hero {
  border-bottom: 1px solid var(--border);
  padding: 80px 0 60px;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 18px;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 40px;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 48px;
}

/* ── STREAM CARDS (Homepage featured grid) ── */
.streams-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
}

.streams-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.stream-card {
  background: var(--bg-2);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: background 0.25s, border-color 0.25s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.stream-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.stream-card:hover::before { transform: scaleX(1); }
.stream-card:hover { background: var(--bg-3); border-color: #3a3a3a; }

.stream-card-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.stream-card-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 10px;
}

.stream-card-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── ARTICLE CARD (used on stream pages & homepage recent) ── */
.articles-section {
  padding: 60px 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.article-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  border-color: #3a3a3a;
  background: var(--bg-3);
}

.article-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  filter: brightness(0.92);
  transition: filter 0.3s;
}

.article-card:hover .article-card-thumb {
  filter: brightness(1);
}

.article-card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-card-thumb-placeholder svg {
  opacity: 0.15;
}

.article-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.article-card-stream {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.article-card-date {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.article-card-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 10px;
}

.article-card-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.article-card-read {
  margin-top: 18px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── PAGE HEADER (stream pages) ── */
.page-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}

.page-header-eyebrow {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.page-header-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 12px;
}

.page-header-desc {
  font-family: var(--font-body);
  font-size: 16px;
  font-style: italic;
  color: var(--muted);
  max-width: 600px;
}

/* ── BRIEFS TABS ── */
.briefs-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.briefs-tab {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 24px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.briefs-tab:hover { color: var(--white); }
.briefs-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ── ARTICLE READER ── */
.article-reader {
  max-width: var(--article-w);
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.article-reader-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.article-reader-stream {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.article-reader-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 14px;
}

.article-reader-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.article-reader-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-reader-date {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.article-reader-author {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.article-reader-substack {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 6px 14px;
  transition: background 0.2s, color 0.2s;
}

.article-reader-substack:hover {
  background: var(--gold);
  color: var(--bg);
}

/* Article body content */
.article-body { font-family: var(--font-body); }

.article-body p {
  margin-bottom: 1.6em;
  font-size: 18px;
  line-height: 1.8;
  color: #d8d4ce;
}

.article-body h2 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin: 2.4em 0 0.8em;
  line-height: 1.2;
}

.article-body h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin: 2em 0 0.6em;
}

.article-body blockquote {
  border-left: 3px solid var(--gold);
  margin: 2em 0;
  padding: 4px 0 4px 28px;
  font-size: 20px;
  font-style: italic;
  color: var(--white);
  line-height: 1.6;
}

.article-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold-dim);
  transition: text-decoration-color 0.2s;
}

.article-body a:hover {
  text-decoration-color: var(--gold);
}

.article-body strong { color: var(--white); font-weight: 600; }
.article-body em { font-style: italic; }

.article-hero-img {
  width: 100%;
  border-radius: 2px;
  margin-bottom: 2em;
}

.article-img {
  width: 100%;
  margin: 1.6em 0;
  border-radius: 2px;
}

/* Article footer */
.article-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: gap;
  gap: 16px;
}

.article-footer-label {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── ABOUT PAGE ── */
.about-section {
  max-width: 740px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.about-section h2 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin: 2.4em 0 0.8em;
}

.about-section p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: #d0ccc6;
  margin-bottom: 1.4em;
}

.about-section .principle {
  font-family: var(--font-head);
  font-size: 26px;
  font-style: italic;
  color: var(--gold);
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 40px 0;
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
}

.empty-state p {
  font-family: var(--font-body);
  font-size: 16px;
  font-style: italic;
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .streams-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px 0; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .streams-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-reader { padding: 40px 20px 80px; }
  .article-body p { font-size: 17px; }
  .article-body blockquote { font-size: 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
