/* =========================================
   INDIGO EGO — AT Guide Article Styles
   ========================================= */

/* --- Nav --- */
.at-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  --nav-height: 60px;
  background: rgba(11, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.at-nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 48px);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.at-nav__brand {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.at-nav__links {
  display: flex;
  gap: 32px;
}

.at-nav__link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.at-nav__link:hover,
.at-nav__link--active {
  color: var(--amber);
}

/* --- Hero --- */
.article-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.article-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* CSS forest background — no image dependency */
.article-hero__forest-layer {
  position: absolute;
  inset: 0;
  background:
    /* tree canopy shadow gradient */
    linear-gradient(180deg, #050408 0%, #0a1008 40%, #0d1a0a 70%, #1a2a1a 100%);
}

.article-hero__gradient {
  position: absolute;
  inset: 0;
  background:
    /* mist rising */
    radial-gradient(ellipse 120% 80% at 50% 60%, rgba(30, 50, 30, 0.4) 0%, transparent 60%),
    /* subtle amber horizon glow */
    radial-gradient(ellipse 80% 30% at 50% 85%, rgba(201, 133, 58, 0.08) 0%, transparent 70%),
    /* deep forest canopy texture */
    radial-gradient(ellipse 50% 60% at 30% 20%, rgba(20, 40, 20, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 70% 15%, rgba(25, 45, 25, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse 80% 40% at 50% 10%, rgba(15, 30, 15, 0.8) 0%, transparent 60%);
}

/* Decorative mountain ridge silhouette */
.article-hero__gradient::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background:
    /* three ridge layers, darker = closer */
    linear-gradient(170deg, transparent 40%, #050508 40.5%, #050508 60%, transparent 60.5%),
    linear-gradient(175deg, transparent 30%, #070608 30.5%, #070608 55%, transparent 55.5%),
    linear-gradient(180deg, transparent 20%, #0a0a0d 20.5%, #0a0a0d 45%, transparent 45.5%);
  opacity: 0.9;
}

/* Star field */
.article-hero__gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(240,237,230,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 10%, rgba(240,237,230,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 25%, rgba(240,237,230,0.18) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 8%,  rgba(240,237,230,0.12) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 18%, rgba(240,237,230,0.2)  0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 42% 15%, rgba(201,133,58,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 20% 35%, rgba(240,237,230,0.1) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 40%, rgba(240,237,230,0.08) 0%, transparent 100%);
}

.article-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: clamp(60px, 10vw, 100px) clamp(24px, 5vw, 64px) clamp(56px, 8vw, 80px);
}

.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.article-hero__tag {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--border-amber);
  padding: 5px 12px;
  border-radius: 2px;
}

.article-hero__sep {
  color: var(--text-dim);
  font-size: 14px;
}

.article-hero__time {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.article-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  text-shadow: 0 0 60px rgba(20, 50, 20, 0.6);
  margin-bottom: 20px;
}

.article-hero__sub {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
}

.article-hero__byline {
  display: flex;
  align-items: center;
  gap: 16px;
}

.article-hero__author {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.article-hero__date {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* --- Sticky TOC --- */
.toc-wrap {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.toc-wrap--sticky {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.toc {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px clamp(24px, 5vw, 64px);
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.toc::-webkit-scrollbar { display: none; }

.toc__label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

.toc__nav {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
}

.toc__link {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.toc__link:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* --- Article Body --- */
.article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) clamp(24px, 5vw, 64px);
}

.article-section {
  margin-bottom: clamp(48px, 6vw, 72px);
}

.article-section--intro {
  border-left: 2px solid var(--indigo);
  padding-left: clamp(24px, 4vw, 40px);
}

.article-lead {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 28px;
}

.article-body p {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: clamp(40px, 6vw, 64px) 0 clamp(20px, 3vw, 32px);
}

.article-body h3 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--amber);
  margin: clamp(32px, 5vw, 48px) 0 16px;
}

.article-body ul {
  list-style: none;
  margin: 16px 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-body li {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}

.article-body li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--indigo-light);
  opacity: 0.6;
}

.article-body strong {
  font-weight: 500;
  color: var(--text);
}

.article-body em {
  font-style: italic;
  color: var(--text);
}

.article-body a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,133,58,0.3);
  transition: border-color 0.2s ease;
}

.article-body a:hover {
  border-color: var(--amber);
}

/* --- Section Label --- */
.section-label {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.section-label__num {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  color: var(--indigo);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.5;
}

.section-label__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-label__name {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.section-label__detail {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* --- Divider --- */
.article-divider {
  text-align: center;
  margin: clamp(40px, 6vw, 64px) 0;
  opacity: 0.4;
}

.article-divider__mark {
  font-size: 14px;
  color: var(--amber);
  letter-spacing: 0.2em;
}

/* --- Article Cards --- */
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--indigo);
  border-radius: 4px;
  padding: clamp(20px, 3vw, 28px);
  margin: clamp(28px, 4vw, 40px) 0;
}

.article-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.article-card__icon {
  font-size: 18px;
  opacity: 0.6;
}

.article-card__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.article-card__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.article-card__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-card__stat dt {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.article-card__stat dd {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.article-card__note {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* --- Callout --- */
.article-callout {
  background: linear-gradient(135deg, var(--indigo-deep) 0%, rgba(22,20,58,0.5) 100%);
  border: 1px solid rgba(44,42,107,0.4);
  border-radius: 4px;
  padding: clamp(20px, 3vw, 28px);
  margin: clamp(28px, 4vw, 40px) 0;
}

.article-callout__text {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
}

.article-callout__text strong {
  color: var(--amber);
  font-weight: 500;
}

/* --- Outline Grid (Sections 3-8) --- */
.outline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.outline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: clamp(20px, 3vw, 28px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.outline-card:hover {
  border-color: var(--border-amber);
  transform: translateY(-2px);
}

.outline-card__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.outline-card__num {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 28px;
  font-weight: 500;
  color: var(--indigo);
  opacity: 0.4;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 4px;
}

.outline-card__title {
  flex: 1;
}

.outline-card__title h3 {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 4px;
}

.outline-card__miles {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin: 0;
}

.outline-card p {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.outline-card__highlight {
  background: rgba(201,133,58,0.07);
  border-left: 2px solid var(--border-amber);
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 12px 0;
}

.outline-card__highlight strong {
  color: var(--amber);
  font-weight: 500;
}

/* --- Gear Grid --- */
.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.gear-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: clamp(18px, 2.5vw, 24px);
}

.gear-category--cta {
  border-color: var(--border-amber);
  background: linear-gradient(135deg, rgba(201,133,58,0.05) 0%, var(--surface) 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gear-category__title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--amber);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.gear-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gear-list li {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-muted);
  padding-left: 0;
  margin: 0;
}

.gear-list li::before { display: none; }

.gear-list strong {
  color: var(--text);
  font-weight: 500;
}

.gear-cta {
  display: inline-block;
  margin-top: auto;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,133,58,0.4);
  transition: border-color 0.2s ease;
  align-self: flex-start;
}

.gear-cta:hover {
  border-color: var(--amber);
}

/* --- Bottom CTA --- */
.article-cta {
  background: linear-gradient(180deg, var(--surface) 0%, var(--indigo-deep) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 48px);
  margin-top: clamp(64px, 10vw, 96px);
  text-align: center;
}

.article-cta__inner {
  max-width: 560px;
  margin: 0 auto;
}

.article-cta__label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 16px;
}

.article-cta__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 20px;
}

.article-cta__body {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.article-cta__btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--bg);
  background: var(--amber);
  padding: 14px 28px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.article-cta__btn:hover {
  background: var(--amber-light, #d4952e);
  transform: translateY(-1px);
}

/* --- Footer --- */
.at-footer {
  background: var(--indigo-deep);
  padding: clamp(40px, 6vw, 64px) 0;
  border-top: 1px solid var(--border);
  margin-top: clamp(48px, 8vw, 80px);
}

.at-footer__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.at-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.at-footer__name {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.at-footer__tagline {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.at-footer__links {
  display: flex;
  gap: 24px;
}

.at-footer__link {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: 0.04em;
}

.at-footer__link:hover {
  color: var(--amber);
}

.at-footer__copy {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  width: 100%;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .at-nav__links {
    gap: 20px;
  }

  .toc {
    align-items: flex-start;
  }

  .toc__label {
    display: none;
  }

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

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

  .article-card__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .at-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .at-footer__links {
    flex-wrap: wrap;
    gap: 16px;
  }

  .at-footer__copy {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .article-hero {
    min-height: 65vh;
  }

  .section-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section-label__num {
    font-size: 32px;
  }
}