
/* ==================================================
   PORTFOLIGROW - modernist trade publication
   ================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500;1,600&display=swap');

:root {
  /* Type */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Colors */
  --bg: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-soft: #F5F5F2;
  --ink: #0C0C0C;
  --ink-soft: #2C2C2C;
  --ink-muted: #5A5A5A;
  --ink-faint: #9A9A9A;
  --rule: #D8D8D8;
  --rule-soft: #EBEBEB;

  /* Brand */
  --leaf: #1B4332;
  --leaf-brand: #3FC175;
  --leaf-soft: #C8DDD3;
  --leaf-dark: #0F2218;
  --leaf-mid: #2D6A4F;

  /* Sponsored */
  --sponsor-navy: #0A1F2E;
  --sponsor-beige: #D4A574;
  --sponsor-beige-soft: #F0E1CC;

  /* Layout */
  --max-w: 1180px;
  --read-w: 720px;
  --gutter: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ==================================================
   HEADER
   ================================================== */

.site-header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(4px);
  background-color: rgba(255, 255, 255, 0.97);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

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

.nav a {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.12s;
  position: relative;
}

.nav a:hover { color: var(--leaf); }

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

.nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24px;
  height: 2px;
  background: var(--leaf);
}

.nav-cta {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--bg) !important;
  border-radius: 2px;
  transition: background 0.15s;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-cta:hover { background: var(--leaf); color: var(--bg) !important; }

.mobile-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 2px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.mobile-toggle span::before,
.mobile-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

.mobile-toggle span::before { top: -6px; }
.mobile-toggle span::after  { top: 6px; }

/* ==================================================
   HOMEPAGE HERO
   ================================================== */

.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 88px var(--gutter) 72px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--leaf);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 1.0;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

.hero h1 em {
  font-style: normal;
  color: var(--leaf-brand);
}

.hero-line2 {
  color: var(--leaf-brand);
  display: block;
  white-space: nowrap;
}

.hero p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 52ch;
  font-weight: 400;
}

/* ==================================================
   SECTIONS
   ================================================== */

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--leaf);
  display: block;
}

.section-link {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.12s, gap 0.2s;
}

.section-link:hover { color: var(--leaf); gap: 10px; }

/* ==================================================
   FEATURED LEAD STORY
   ================================================== */

.lead-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}

.lead-story {
  text-decoration: none;
  color: inherit;
  display: block;
}

.lead-story-hero {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 0;
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
}

.lead-story-hero img, .post-card-image img, .post-cover-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lead-story h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.0;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  transition: color 0.12s;
}

.lead-story:hover h2 { color: var(--leaf); }

.lead-story-excerpt {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.story-meta-sep { color: var(--ink-faint); }

.cat-tag {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0;
  background: none;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: opacity 0.12s;
}

.cat-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 1px;
  display: block;
  flex-shrink: 0;
}

.cat-tag:hover { opacity: 0.7; }

/* secondary list (right column on featured) */
.secondary-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.secondary-story {
  text-decoration: none;
  color: inherit;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  display: block;
}

.secondary-story:first-child { padding-top: 0; }
.secondary-story:last-child { border-bottom: none; padding-bottom: 0; }

.secondary-story h3 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.0;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 10px 0 12px;
  transition: color 0.12s;
}

.secondary-story:hover h3 { color: var(--leaf); }

/* ==================================================
   POST GRID
   ================================================== */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}

.post-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-card-image {
  aspect-ratio: 5/3;
  border-radius: 0;
  overflow: hidden;
}

.post-card-cat {
  margin-top: 4px;
}

.post-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.0;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.12s;
}

.post-card:hover h3 { color: var(--leaf); }

.post-card-meta {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ==================================================
   TRENDING (card grid with images)
   ================================================== */

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

.trending-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trending-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-soft);
}

.trending-card-image img,
.trending-card-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.trending-card:hover .trending-card-image img,
.trending-card:hover .trending-card-image svg { transform: scale(1.04); }

.trending-num {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.04em;
  background: rgba(0,0,0,0.45);
  padding: 4px 8px;
  backdrop-filter: blur(2px);
}

.trending-card h4 {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.12s;
}

.trending-card:hover h4 { color: var(--leaf); }

.trending-cat {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ==================================================
   SPONSORED AD SLOT
   ================================================== */

.sponsored-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.sponsored-img-link {
  display: block;
}

.sponsored-img-link img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.15s;
}

.sponsored-img-link:hover img { opacity: 0.93; }


/* ==================================================
   EMAIL SIGNUP
   ================================================== */

.signup {
  background: var(--leaf);
  margin: 0;
  padding: 88px var(--gutter);
  border-bottom: none;
  color: #FFFFFF;
}

.signup-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.signup-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
  font-weight: 600;
}

.signup h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.0;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
  color: #FFFFFF;
}

.signup p {
  font-family: var(--font-body);
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  margin-bottom: 36px;
}

.signup-form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
}

.signup-form input {
  flex: 1;
  font-family: var(--font-ui);
  font-size: 15px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  color: #FFFFFF;
  outline: none;
  transition: border-color 0.15s;
}

.signup-form input::placeholder { color: rgba(255,255,255,0.4); }
.signup-form input:focus { border-color: rgba(255,255,255,0.7); }

.signup-form button {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 24px;
  background: #FFFFFF;
  color: var(--leaf);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
}

.signup-form button:hover { background: var(--leaf-soft); }

.signup-note {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 18px !important;
  font-style: normal !important;
}

.signup-success {
  display: none;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--leaf-brand);
  margin-bottom: 16px;
  font-weight: 500;
}

/* ==================================================
   POST PAGE
   ================================================== */

.post-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px var(--gutter) 48px;
}

.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.0;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  max-width: 30ch;
}

.post-deck {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-muted);
  font-weight: 400;
  max-width: 58ch;
  margin-bottom: 36px;
}

.post-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.byline-author {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.byline-author:hover { color: var(--leaf); }

.post-cover {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.post-cover-inner {
  width: 100%;
  aspect-ratio: 21/9;
  border-radius: 0;
  overflow: hidden;
}

.post-body {
  max-width: var(--read-w);
  margin: 0 auto;
  padding: 64px var(--gutter);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
}

.post-body p { margin-bottom: 1.4em; }


.post-body h2 {
  font-family: var(--font-body);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 60px 0 20px;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
}

.post-body h3 {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 40px 0 16px;
}

.post-body a {
  color: var(--leaf-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--leaf-soft);
  transition: text-decoration-color 0.15s;
}

.post-body a:hover { text-decoration-color: var(--leaf); }

.post-body a[href="https://leedwallet.com"] {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--ink);
}
.post-body a[href="https://leedwallet.com"]:hover { color: var(--leaf-dark); text-decoration-color: var(--leaf-dark); }

.post-body strong { font-weight: 600; color: var(--ink); }

.post-body ul, .post-body ol {
  margin: 0 0 1.4em 1.4em;
  padding-left: 0.4em;
}

.post-body li { margin-bottom: 0.5em; }

.post-body blockquote {
  border-left: none;
  border-top: 3px solid var(--leaf);
  border-bottom: 1px solid var(--rule);
  padding: 28px 0 24px;
  margin: 40px 0;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 21px;
  line-height: 1.5;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 48px 0;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-family: var(--font-ui);
  font-size: 14px;
}

.post-body th {
  text-align: left;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule-soft);
}

.post-body tr:nth-child(even) td { background: var(--bg-soft); }

.post-body em {
  font-style: italic;
  font-family: var(--font-body);
}

.post-body code {
  font-family: 'SF Mono', Monaco, monospace;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

/* Italicised disclaimer at end */
.post-body em:last-child {
  display: block;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-top: 8px;
}

/* Inline sponsored slot mid-article */
.post-sponsored-banner {
  margin: 48px 0;
}

.post-sponsored-banner a {
  display: block;
}

.post-sponsored-banner img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.15s;
}

.post-sponsored-banner a:hover img { opacity: 0.93; }

/* Author bio after article */
.author-bio {
  max-width: var(--read-w);
  margin: 0 auto;
  padding: 48px var(--gutter);
  border-top: 2px solid var(--ink);
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 0;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  flex-shrink: 0;
}

.author-bio-content { flex: 1; }

.author-bio h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.author-bio-title {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 14px;
  font-weight: 600;
}

.author-bio p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* Related posts */
.related {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px var(--gutter) 64px;
  border-top: 1px solid var(--rule);
}

.related h3 {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 36px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.related h3::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--leaf);
  display: block;
}

/* ==================================================
   CATEGORY PAGE
   ================================================== */

.category-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--gutter) 56px;
  border-bottom: 2px solid var(--ink);
}

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

.category-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 96px);
  line-height: 1.0;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}

.category-hero p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 60ch;
}

/* ==================================================
   ABOUT PAGE
   ================================================== */

.about-page {
  max-width: var(--read-w);
  margin: 0 auto;
  padding: 80px var(--gutter);
}

.about-page h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 80px);
  line-height: 1.0;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 36px;
}

.about-page h2 {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 56px 0 20px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
  color: var(--ink);
}

.about-page p {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 1.4em;
}

.about-page p.lead {
  font-size: 22px;
  color: var(--ink-soft);
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
}

.about-disclosure {
  background: var(--bg-soft);
  padding: 28px 32px;
  border-radius: 0;
  border-left: 4px solid var(--leaf);
  margin: 40px 0;
}

.about-disclosure p {
  font-size: 16px;
  margin-bottom: 0.7em;
  color: var(--ink-soft);
}

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

.about-disclosure h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 14px;
  font-weight: 500;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 24px;
}

.team-member {
  padding-top: 20px;
  border-top: 3px solid var(--ink);
}

.team-member h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 4px;
}

.team-member-title {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 16px;
  font-weight: 600;
}

.team-member p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ==================================================
   FOOTER
   ================================================== */

.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 0 40px;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-logo {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: 28px;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  max-width: 20ch;
}

.footer-brand h3 em { font-style: normal; color: var(--leaf-brand); }

.footer-brand p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
  max-width: 36ch;
  font-style: italic;
}

.footer-col h5 {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }

.footer-col a {
  font-family: var(--font-ui);
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--leaf-mid); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-legal {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.55;
  max-width: 70ch;
}

.footer-legal p { margin-bottom: 8px; }
.footer-legal p:last-child { margin-bottom: 0; }

.footer-copy {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}

/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 900px) {
  body { font-size: 17px; }

  .mobile-toggle { display: inline-flex; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 24px var(--gutter);
    gap: 18px;
    border-bottom: 2px solid var(--ink);
    align-items: flex-start;
  }

  .hero { padding: 64px var(--gutter) 48px; }
  .section { padding: 48px var(--gutter); }

  .lead-grid { grid-template-columns: 1fr; gap: 40px; }
  .post-grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .trending { grid-template-columns: 1fr 1fr; }

  .post-hero { padding: 48px var(--gutter) 36px; }
  .post-body { padding: 48px var(--gutter); font-size: 18px; }
  .post-body h2 { font-size: 24px; margin: 48px 0 18px; }
  .post-body h3 { font-size: 20px; margin: 36px 0 14px; }
  .post-cover-inner { aspect-ratio: 16/9; }

  .author-bio { flex-direction: column; gap: 16px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .footer-brand { grid-column: 1 / -1; }

  .team-grid { grid-template-columns: 1fr; gap: 32px; }

  .signup-form { flex-direction: column; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .post-grid { grid-template-columns: 1fr; }
  .trending { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* ==================================================
   CATEGORY ACCENT COLORS
   ================================================== */

.cat-investor-strategy { color: #1B4332; }
.cat-financing { color: #0D4A5C; }
.cat-marketing-and-leads { color: #7A3A2A; }
.cat-market-analysis { color: #6B4D27; }
.cat-operations { color: #2A3D4E; }
