/* AFK live fixes — 17 August 2026 */

/* Article contents should scroll away with the page, not follow the reader. */
.article-toc {
  position: static !important;
  top: auto !important;
}

/* Cleaner footer: legal links sit below the AFK mark, copyright below them. */
.footer-expanded {
  grid-template-columns: 1fr auto !important;
  align-items: end !important;
}

.footer-left {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.footer-left .brand {
  margin-bottom: 2px;
}

.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
}

.footer-legal a {
  color: var(--muted);
}

.footer-legal a:hover {
  color: var(--ink);
}

.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.footer-instagram:hover {
  color: var(--ink);
}

.footer-instagram svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The base About paragraph rule is intentionally large. Keep the carousel section label small. */
.about-carousel-head .eyebrow {
  max-width: none;
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

/* Author identity links */
.article-byline {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.article-byline a,
.about-founder-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.article-byline a:hover,
.about-founder-link:hover {
  opacity: .72;
}

.about-founder-link {
  display: inline-flex;
  margin-top: 18px;
  font-size: 13px;
}

.founder-profile .updated {
  font-weight: 600;
}

.founder-profile ul {
  margin: 0;
  padding-left: 20px;
}

.founder-profile li {
  margin: 10px 0;
}

/* Explicit dark-mode fallbacks so the theme still works against an older cached base stylesheet. */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f3f0e9;
  --muted: #aaa69f;
  --paper: #111210;
  --surface: #191a18;
  --surface-2: #22231f;
  --line: #30312d;
  --inverse: #111210;
  --white: #111210;
  --sand: #24221d;
  --sage: #1f251f;
  --blue: #202528;
  --grey: #232321;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .mobile-nav,
html[data-theme="dark"] .search-panel,
html[data-theme="dark"] input {
  background: var(--paper) !important;
  color: var(--ink) !important;
}

html[data-theme="dark"] .site-header {
  background: rgba(17, 18, 16, .92) !important;
}

html[data-theme="dark"] .hero-visual,
html[data-theme="dark"] .principle-card,
html[data-theme="dark"] .newsletter-card {
  background: var(--surface) !important;
}

html[data-theme="dark"] .card-sand { background: var(--sand) !important; }
html[data-theme="dark"] .card-green { background: var(--sage) !important; }
html[data-theme="dark"] .card-blue { background: var(--blue) !important; }
html[data-theme="dark"] .card-grey { background: var(--grey) !important; }

html[data-theme="dark"] .button-dark {
  background: var(--ink) !important;
  color: var(--inverse) !important;
}

html[data-theme="dark"] .theme-icon-moon { display: none !important; }
html[data-theme="light"] .theme-icon-sun { display: none !important; }

@media (max-width: 560px) {
  .footer-expanded {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  .footer-instagram {
    justify-self: start;
  }
}
