/* == CSS Variables (Graphite Theme) == */
:root {
  --bg: #3a3a3c;
  --bg-2: #2d2d2f;
  --bg-card: #454547;
  --bg-article: rgba(255,255,255,0.03);
  --ink: #f5f0e8;
  --ink-2: #d4cfc5;
  --ink-light: #9a958d;
  --gold: #c0a56e;
  --gold-2: #b89450;
  --gold-light: #d4c49a;
  --line: rgba(255,255,255,0.10);
  --shadow: 0 18px 50px rgba(0,0,0,.25);
  --shadow-sm: 0 4px 14px rgba(0,0,0,.15);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink-2);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color .25s ease;
}

ul, ol {
  list-style: none;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(30px, 5vw, 48px);
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(22px, 3vw, 32px);
  margin: 48px 0 16px;
}

h3 {
  font-size: clamp(18px, 2.2vw, 24px);
  margin: 36px 0 12px;
}

p {
  line-height: 1.75;
  font-size: 18px;
  color: var(--ink-2);
}

p + p {
  margin-top: 16px;
}

/* == Utility == */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* == 1. PROGRESS BAR == */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gold);
  z-index: 1100;
  width: 0;
  transition: width .1s;
}

/* == 2. NAV == */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(58, 58, 60, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo img {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .3s ease;
}

.nav__links a:hover {
  color: var(--gold);
}

.nav__links a:hover::after {
  width: 100%;
}

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

.nav__links a.active::after {
  width: 100%;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--gold);
  color: var(--bg) !important;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 8px;
  transition: background .25s ease, transform .2s ease;
}

.nav__cta:hover {
  background: var(--gold-2);
  color: var(--bg) !important;
  transform: translateY(-1px);
}

.nav__cta::after {
  display: none !important;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* == 3. ARTICLE HEADER == */
.article-header {
  padding: 56px 0 32px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.breadcrumb {
  font-size: 13px;
  color: var(--ink-light);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--gold);
  transition: color .2s;
}

.breadcrumb a:hover {
  color: var(--gold-light);
}

.article-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 16px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--ink-light);
  color: var(--ink-light);
  margin-bottom: 20px;
}

.article-header h1 {
  margin-bottom: 20px;
}

.article-lead {
  font-size: 20px;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 14px;
  color: var(--ink-light);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* == 4. ARTICLE BODY == */
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 24px 64px;
}

.article-body h2 {
  padding-top: 20px;
  border-top: 2px solid var(--gold);
  color: var(--ink);
}

.article-body h3 {
  color: var(--ink);
}

.article-body p {
  color: var(--ink-2);
}

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

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

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

.article-body blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--gold);
  background: rgba(255,255,255,0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.article-body blockquote p {
  font-size: 17px;
  color: var(--ink);
}

.article-body ul,
.article-body ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin: 8px 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
}

.article-body li::marker {
  color: var(--gold);
}

/* Internal Link Box */
.link-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  text-decoration: none !important;
}

.link-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--gold);
}

.link-box-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gold);
  display: grid;
  place-items: center;
  color: var(--bg);
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Source Sans 3', sans-serif;
  letter-spacing: -0.02em;
}

.link-box div {
  flex: 1;
}

.link-box h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--ink);
}

.link-box p {
  font-size: 13px;
  color: var(--ink-light);
  margin: 0;
}

/* == 5. CTA LEAD MAGNET == */
.article-cta {
  max-width: 760px;
  margin: 0 auto 64px;
  border-radius: var(--radius);
  background: #102644;
  border: 2px solid #c0a56e;
  box-shadow: 0 0 24px rgba(192,165,110,0.15);
  overflow: hidden;
}

.article-cta__inner {
  padding: 40px 36px;
  text-align: center;
}

.article-cta__eyebrow {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  padding: 4px 12px;
  background: rgba(192,165,110,0.12);
  border-radius: 999px;
}

.article-cta__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  color: #f5f0e8;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.article-cta__desc {
  font-size: 15px;
  color: #d4cfc5;
  margin-bottom: 20px;
}

.article-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gold);
  color: #102644;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: background .25s ease, transform .2s ease;
  box-shadow: 0 4px 20px rgba(192,165,110,0.25);
}

.article-cta__btn:hover {
  background: var(--gold-2);
  transform: translateY(-2px);
}

/* == 6. AUTHOR BOX == */
.author-box {
  max-width: 760px;
  margin: 0 auto 56px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 20px;
  align-items: center;
}

.author-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}

.author-info h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--ink);
}

.author-info p {
  font-size: 14px;
  color: var(--ink-light);
  margin: 0;
}

/* == 7. RELATED ARTICLES == */
.related {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px 96px;
}

.related h2 {
  font-size: 28px;
  margin-bottom: 24px;
  border: none;
  padding-top: 0;
}

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

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: block;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.related-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 10px;
}

.related-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.related-card p {
  font-size: 14px;
  color: var(--ink-light);
}

.related-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  margin-top: 14px;
  transition: gap .25s ease;
}

.related-link:hover {
  gap: 8px;
  color: var(--gold-light);
}

/* == 8. FOOTER == */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__brand img {
  height: 64px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer__brand p {
  color: var(--ink-light);
  font-size: 15px;
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  transition: border-color .25s ease, background .25s ease;
}

.footer__social a:hover {
  border-color: var(--gold);
  background: rgba(192,165,110,0.08);
}

.footer__social a svg {
  width: 18px;
  height: 18px;
  stroke: var(--ink);
  fill: none;
  transition: stroke .25s ease;
}

.footer__social a:hover svg {
  stroke: var(--gold);
}

.footer__social a svg.fill-icon {
  fill: var(--ink);
  stroke: none;
}

.footer__social a:hover svg.fill-icon {
  fill: var(--gold);
  stroke: none;
}

.footer__col h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
}

.footer__col ul {
  list-style: none;
}

.footer__col ul li + li {
  margin-top: 12px;
}

.footer__col ul a {
  font-size: 15px;
  color: var(--ink-light);
  transition: color .25s ease;
}

.footer__col ul a:hover {
  color: var(--gold);
}

.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer__copy {
  font-size: 13px;
  color: var(--ink-light);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  font-size: 13px;
  color: var(--ink-light);
  transition: color .25s ease;
}

.footer__legal a:hover {
  color: var(--gold);
}

/* == COOKIE BANNER == */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 18px 24px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
}

.cookie-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-inner p {
  font-size: 14px;
  color: var(--ink-2);
  flex: 1;
  min-width: 260px;
}

.cookie-inner p a {
  color: var(--gold-light);
  text-decoration: underline;
}

.cookie-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background .25s ease, transform .2s ease;
}

.cookie-btn-accept {
  background: var(--gold);
  color: var(--bg);
}

.cookie-btn-accept:hover {
  background: var(--gold-2);
  transform: translateY(-1px);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.cookie-btn-reject:hover {
  border-color: var(--ink-light);
}

/* == SCROLL ANIMATIONS == */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* == RESPONSIVE 980px == */
@media (max-width: 980px) {
  .nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 45, 47, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 48px;
    gap: 0;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
  }

  .nav__links.open {
    transform: translateX(0);
  }

  .nav__links li {
    width: 100%;
    text-align: center;
  }

  .nav__links a {
    display: block;
    padding: 18px 32px;
    font-size: 18px;
  }

  .nav__links a::after {
    display: none;
  }

  .nav__links .nav__cta {
    margin-top: 20px;
    padding: 14px 40px;
    font-size: 16px;
    display: inline-flex;
  }

  .nav__hamburger {
    display: flex;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }

}

/* == RESPONSIVE 600px == */
@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }

  .nav__inner {
    padding: 0 20px;
  }

  .article-header {
    padding: 36px 0 20px;
  }

  .article-body {
    padding: 0 16px 48px;
  }

  .article-cta__inner {
    padding: 28px 20px;
  }

  .article-cta__title {
    font-size: 20px;
  }

  .related {
    padding: 0 20px 64px;
  }

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

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .article-meta {
    flex-direction: column;
    gap: 8px;
  }
}
