/* CoFluent Design — style.css
   Vodafone-adapted editorial with multi-accent chapter bands.
   No shared CSS with any other PBNJ site. */

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

/* ── Custom Properties ── */
:root {
  --glare: #D9FF03;
  --orange: #FD572A;
  --violet: #695AC6;
  --charcoal: #201F1F;
  --black: #000000;
  --canvas: #F2EFEB;
  --gray: #A6A8AB;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --body-size: 18px;
  --body-lh: 1.6;
  --max-width: 800px;
  --page-pad: 32px;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  color: var(--charcoal);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--violet); }
a:visited { color: var(--violet); }

/* ── Header ── */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--page-pad);
  background: var(--charcoal);
}

.wordmark {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--canvas);
  text-decoration: none;
}

.site-header nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--canvas);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-header nav a:hover { text-decoration: underline; }

/* When header sits on canvas (about, article pages that start with canvas) */
.site-header--light {
  background: var(--canvas);
}
.site-header--light .wordmark,
.site-header--light nav a {
  color: var(--charcoal);
}

/* ── Hero (Homepage) ── */
.hero {
  background: var(--charcoal);
  color: var(--canvas);
  padding: 80px var(--page-pad) 80px;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-title {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gray);
  max-width: 520px;
}

/* ── Hero Pillars (CSS-only abstract art) ── */
.hero-art {
  position: absolute;
  top: -60px;
  right: -20px;
  bottom: -60px;
  width: 45%;
  pointer-events: none;
}

.pillar {
  position: absolute;
  border-radius: 100px;
  top: 0;
  bottom: 0;
}

.pillar-1 {
  width: 80px;
  right: 0;
  background: var(--glare);
  opacity: 0.8;
}

.pillar-2 {
  width: 56px;
  right: 110px;
  background: var(--orange);
  opacity: 0.75;
  transform: translateY(50px);
}

.pillar-3 {
  width: 68px;
  right: 195px;
  background: var(--violet);
  opacity: 0.8;
  transform: translateY(-35px);
}

.pillar-4 {
  width: 48px;
  right: 290px;
  background: var(--glare);
  opacity: 0.35;
  transform: translateY(70px);
}

.pillar-5 {
  width: 52px;
  right: 365px;
  background: var(--orange);
  opacity: 0.25;
  transform: translateY(-55px);
}

/* ── Hero (Article Page) ── */
.hero--article {
  min-height: 340px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-title--article {
  font-size: clamp(28px, 5vw, 64px);
  line-height: 0.95;
  margin-bottom: 0;
}

.hero--article .hero-art {
  width: 25%;
}

.hero--article .pillar-accent {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  border-radius: 100px;
  width: 100px;
}

.hero--glare .pillar-accent { background: var(--glare); opacity: 0.6; }
.hero--orange .pillar-accent { background: var(--orange); opacity: 0.6; }
.hero--violet .pillar-accent { background: var(--violet); opacity: 0.6; }

/* ── Hero (About Page) ── */
.hero--about {
  min-height: 240px;
  padding-top: 60px;
  padding-bottom: 48px;
}

.hero--about .hero-title {
  font-size: clamp(36px, 6vw, 80px);
}

/* ── Chapter Bands ── */
.band {
  height: 48px;
  width: 100%;
}

.band--glare  { background: var(--glare); }
.band--orange { background: var(--orange); }
.band--violet { background: var(--violet); }

/* ── Content Column ── */
.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px var(--page-pad);
}

/* ── Article Block (Homepage) ── */
.article-block {
  background: var(--canvas);
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
}

.eyebrow--hero {
  color: var(--gray);
  margin-bottom: 20px;
}

.article-block h2,
.article-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 32px;
}

.article-block h2 a,
.article-title a {
  color: var(--charcoal);
  text-decoration: none;
}

.article-block h2 a:hover,
.article-title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--violet);
  text-underline-offset: 4px;
}

.article-block h3,
.article-single h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--charcoal);
}

.article-block p,
.article-single p {
  margin-bottom: 20px;
}

.article-block strong,
.article-single strong {
  font-weight: 600;
}

/* ── Related Reading ── */
.related-reading {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 2px solid var(--charcoal);
}

.related-reading h2 {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  margin-top: 0;
}

.related-reading ul {
  list-style: none;
  padding: 0;
}

.related-reading li {
  margin-bottom: 12px;
}

.related-reading a {
  font-size: 16px;
  font-weight: 600;
}

/* ── About Page ── */
.about-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px var(--page-pad);
}

.about-body p {
  margin-bottom: 20px;
}

.about-body p:last-child {
  margin-bottom: 0;
}

/* ── 404 ── */
.four-oh-four {
  text-align: center;
  padding: 120px var(--page-pad);
}

.four-oh-four h1 {
  font-size: clamp(48px, 10vw, 144px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  margin-bottom: 24px;
  color: var(--charcoal);
}

.four-oh-four p {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 32px;
}

.four-oh-four a {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--charcoal);
  text-decoration: none;
  border: 2px solid var(--charcoal);
  padding: 12px 24px;
  display: inline-block;
}

.four-oh-four a:hover {
  background: var(--charcoal);
  color: var(--canvas);
}

/* ── Footer ── */
.site-footer {
  background: var(--black);
  color: var(--canvas);
  padding: 64px var(--page-pad);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-inner .wordmark {
  display: block;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 24px;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--canvas);
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --page-pad: 20px;
  }

  .hero {
    min-height: 320px;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-art {
    display: none;
  }

  .hero--article .hero-art {
    display: none;
  }

  .hero--article {
    min-height: 260px;
  }

  .band {
    height: 32px;
  }

  .content {
    padding: 48px var(--page-pad);
  }

  .article-block h3,
  .article-single h2 {
    font-size: 20px;
    margin-top: 36px;
  }

  .site-footer {
    padding: 48px var(--page-pad);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 40px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-title--article {
    font-size: 28px;
  }

  .article-block h2 {
    font-size: 22px;
  }

  body {
    font-size: 16px;
  }
}
