/* ============================================================
   ARC COLLECTIVE — BLOG STYLESHEET
   Shared by all blog post pages
   ============================================================ */

/* FONTS */
@font-face {
  font-family: 'Negan';
  src: url('../assets/negan.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Noah';
  src: url('../assets/noah-regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Noah';
  src: url('../assets/noah-bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Noah';
  src: url('../assets/noah-regularitalic.woff') format('woff');
  font-weight: 400; font-style: italic; font-display: swap;
}

/* VARIABLES */
:root {
  --ember:      #D14A2A;
  --near-black: #39393B;
  --dark:       #2E2E30;
  --charcoal:   #4A4A4C;
  --off-white:  #F2F2F4;
  --font-body:  'Noah', system-ui, sans-serif;
  --font-display: 'Negan', system-ui, sans-serif;
  --container:  1160px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--near-black);
  color: var(--off-white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}
::selection { background: var(--ember); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* CONTAINER */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px); }

/* ============================================================
   NAVIGATION
   ============================================================ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 32px;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 72px;
  background: rgba(57,57,59,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.3s;
}
.nav-logo img { height: 32px; width: auto; display: block; }
.nav-links { display: flex; list-style: none; gap: 28px; margin-left: auto; }
.nav-links a {
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(242,242,244,0.7); transition: color 0.2s;
}
.nav-links a:hover { color: var(--off-white); }
.nav-social { display: flex; gap: 12px; align-items: center; }
.nav-social-btn {
  color: rgba(242,242,244,0.5); display: flex; align-items: center;
  transition: color 0.2s;
}
.nav-social-btn:hover { color: var(--off-white); }
.nav-cta {
  background: var(--ember); color: #fff;
  padding: 10px 20px; border-radius: 3px;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 700; white-space: nowrap; transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: #b83e22; transform: translateY(-1px); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--off-white); transition: all 0.3s; }

/* Mobile nav */
.nav-mobile {
  display: none; position: fixed; inset: 0;
  background: var(--near-black); z-index: 99;
  flex-direction: column; justify-content: center; align-items: center; gap: 32px;
}
.nav-mobile.open { display: flex; }
.mobile-link {
  font-family: var(--font-display); font-size: clamp(28px, 5vw, 40px);
  letter-spacing: 0.04em; color: var(--off-white); transition: color 0.2s;
}
.mobile-link:hover { color: var(--ember); }
.mobile-cta {
  background: var(--ember); color: #fff;
  padding: 14px 32px; border-radius: 3px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
}
.mobile-social { display: flex; gap: 20px; align-items: center; }
.mobile-social-btn { color: rgba(242,242,244,0.5); display: flex; align-items: center; transition: color 0.2s; }
.mobile-social-btn:hover { color: var(--off-white); }

/* ============================================================
   ARTICLE HERO
   ============================================================ */
.article-hero {
  padding: 140px 0 72px;
  background: linear-gradient(170deg, #353537 0%, #2b2b2d 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.article-meta {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px;
}
.article-tag {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ember); border: 1px solid rgba(209,74,42,0.4);
  padding: 5px 12px; border-radius: 2px;
}
.article-date {
  font-size: 13px; color: rgba(242,242,244,0.4); letter-spacing: 0.04em;
}
.article-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.1; letter-spacing: 0.02em;
  color: var(--off-white); margin-bottom: 24px;
}
.article-title em { color: var(--ember); font-style: normal; }
.article-intro {
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(242,242,244,0.65); max-width: 680px; line-height: 1.65;
}
.article-byline {
  margin-top: 32px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 16px;
}
.byline-name {
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: rgba(242,242,244,0.7);
}
.byline-role { font-size: 12px; color: rgba(242,242,244,0.4); letter-spacing: 0.03em; }

/* ============================================================
   ARTICLE BODY
   ============================================================ */
.article-body {
  padding: clamp(56px, 8vw, 100px) 0 clamp(56px, 8vw, 100px);
  background: linear-gradient(180deg, #2c2c2e 0%, #353537 100%);
}
.article-content {
  max-width: 740px; margin: 0 auto;
}
.article-content h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  letter-spacing: 0.03em; color: var(--off-white);
  margin: 56px 0 20px; line-height: 1.2;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700; color: rgba(242,242,244,0.9);
  margin: 36px 0 14px; letter-spacing: 0.02em;
}
.article-content p {
  font-size: clamp(15px, 1.4vw, 17px);
  color: rgba(242,242,244,0.72); line-height: 1.8;
  margin-bottom: 22px;
}
.article-content p:last-child { margin-bottom: 0; }
.article-content strong { color: var(--off-white); font-weight: 700; }
.article-content em { color: rgba(242,242,244,0.9); font-style: italic; }
.article-content a { color: var(--ember); text-decoration: underline; text-decoration-color: rgba(209,74,42,0.4); }
.article-content a:hover { text-decoration-color: var(--ember); }
.article-content ul, .article-content ol {
  margin: 8px 0 22px 0; padding-left: 0; list-style: none;
}
.article-content ul li, .article-content ol li {
  font-size: clamp(15px, 1.4vw, 17px);
  color: rgba(242,242,244,0.72); line-height: 1.8;
  margin-bottom: 10px; padding-left: 24px; position: relative;
}
.article-content ul li::before {
  content: '—'; position: absolute; left: 0;
  color: var(--ember); font-weight: 700;
}
.article-content ol { counter-reset: ol-counter; }
.article-content ol li { counter-increment: ol-counter; }
.article-content ol li::before {
  content: counter(ol-counter) '.';
  position: absolute; left: 0;
  color: var(--ember); font-weight: 700; font-size: 14px;
}
.article-content blockquote {
  margin: 36px 0; padding: 24px 28px;
  border-left: 3px solid var(--ember);
  background: rgba(255,255,255,0.03); border-radius: 0 4px 4px 0;
}
.article-content blockquote p {
  font-size: clamp(16px, 1.6vw, 20px);
  color: rgba(242,242,244,0.85); font-style: italic; margin-bottom: 0;
  line-height: 1.6;
}
.article-callout {
  margin: 40px 0; padding: 28px 32px;
  background: rgba(209,74,42,0.08); border: 1px solid rgba(209,74,42,0.2);
  border-radius: 4px;
}
.article-callout p {
  color: rgba(242,242,244,0.85) !important; margin-bottom: 0 !important;
  font-size: 15px !important;
}
.article-callout strong { color: var(--ember) !important; }

/* Price table */
.price-table {
  width: 100%; border-collapse: collapse; margin: 28px 0;
  font-size: 14px;
}
.price-table th {
  text-align: left; padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  color: rgba(242,242,244,0.5); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.price-table td {
  padding: 14px 16px;
  color: rgba(242,242,244,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: top;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table td strong { color: var(--off-white); }

/* ============================================================
   ARTICLE CTA
   ============================================================ */
.article-cta {
  padding: clamp(56px, 8vw, 96px) 0;
  background: linear-gradient(175deg, #3a3a3c 0%, #2d2d2f 100%);
  text-align: center;
}
.article-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 44px);
  letter-spacing: 0.03em; margin-bottom: 16px;
}
.article-cta p {
  color: rgba(242,242,244,0.55); max-width: 520px; margin: 0 auto 36px;
  font-size: clamp(15px, 1.4vw, 17px);
}
.btn-primary {
  display: inline-block;
  background: var(--ember); color: #fff;
  padding: 15px 34px; border-radius: 3px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700; transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: #b83e22; transform: translateY(-2px); }
.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(242,242,244,0.25); color: rgba(242,242,244,0.7);
  padding: 14px 28px; border-radius: 3px;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 700; margin-left: 16px; transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: rgba(242,242,244,0.6); color: var(--off-white); }

/* ============================================================
   RELATED POSTS
   ============================================================ */
.related-posts {
  padding: clamp(56px, 7vw, 80px) 0;
  background: #252527;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.related-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(242,242,244,0.35); margin-bottom: 32px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.related-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px; padding: 24px; transition: border-color 0.2s, background 0.2s;
}
.related-card:hover { border-color: rgba(209,74,42,0.3); background: rgba(255,255,255,0.05); }
.related-tag {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ember); margin-bottom: 10px;
}
.related-card h3 {
  font-size: 15px; font-weight: 700; color: var(--off-white);
  line-height: 1.4; margin-bottom: 10px;
}
.related-card p {
  font-size: 13px; color: rgba(242,242,244,0.45); line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: clamp(48px, 6vw, 80px) 0 32px;
  background: #252527;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
.footer-brand img { height: 28px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: rgba(242,242,244,0.4); line-height: 1.6; }
.footer-col-title {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(242,242,244,0.3); margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: rgba(242,242,244,0.5); transition: color 0.2s; }
.footer-links a:hover { color: var(--off-white); }
.footer-bottom {
  display: flex; align-items: center; gap: 24px;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-copy { font-size: 12px; color: rgba(242,242,244,0.25); flex: 1; }
.footer-social-icons { display: flex; gap: 12px; align-items: center; }
.footer-social-btn { color: rgba(242,242,244,0.3); display: flex; align-items: center; transition: color 0.2s; }
.footer-social-btn:hover { color: rgba(242,242,244,0.7); }
.footer-tagline { font-size: 12px; color: rgba(242,242,244,0.2); font-style: italic; }
.footer-legal-bar {
  margin-top: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.footer-legal-bar a { font-size: 11px; color: rgba(242,242,244,0.25); transition: color 0.2s; }
.footer-legal-bar a:hover { color: rgba(242,242,244,0.5); }
.footer-legal-sep { color: rgba(242,242,244,0.15); font-size: 11px; }

/* ============================================================
   FILM GRAIN (matches main site)
   ============================================================ */
#bg-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 200px 200px;
  opacity: 0.18; mix-blend-mode: screen;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links, .nav-social, .nav-cta { display: none; }
  .nav-burger { display: flex; margin-left: auto; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .related-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .btn-ghost { margin-left: 0; margin-top: 12px; display: inline-block; }
}
