/* Aqxle Article — editorial reading page
   Sibling to beauty.pplx.app & laptops.pplx.app dashboards.
   Same navy/cyan palette, Inter body + JetBrains Mono accents.
*/

:root {
  --bg: #0a1230;
  --surface: #ffffff;
  --ink: #0a1230;
  --ink-soft: #36406b;
  --ink-muted: #6b7395;
  --rule: #e6e8f0;
  --rule-strong: #c9cee0;
  --accent: #00c8d7;
  --accent-deep: #007a85;
  --eyebrow-bg: rgba(0, 200, 215, 0.12);
  --highlight: #fff5d6;
  --footnote-bg: #f6f7fb;
  --max: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #f3f5fb;
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Top bar === */
.topbar {
  background: var(--bg);
  padding: 18px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.topbar .logo img {
  height: 26px;
  width: auto;
  display: block;
}
.topbar-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

/* === Article shell === */
article {
  background: var(--surface);
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 56px 80px;
  box-shadow: 0 1px 0 var(--rule), 0 24px 80px -32px rgba(10, 18, 48, 0.18);
}

/* === Header block === */
.eyebrow {
  display: inline-block;
  background: var(--eyebrow-bg);
  color: var(--accent-deep);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
  margin-bottom: 20px;
}

h1 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--ink);
}

.deck {
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
  font-style: italic;
  margin: 0 0 28px;
  border-left: 3px solid var(--accent);
  padding-left: 18px;
}

.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.byline-avatar-link {
  display: block;
  flex-shrink: 0;
  border-radius: 50%;
  transition: box-shadow 0.15s, transform 0.15s;
  line-height: 0;
}
.byline-avatar-link:hover {
  box-shadow: 0 0 0 2px var(--accent);
  transform: translateY(-1px);
}
.byline-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--footnote-bg);
  box-shadow: 0 0 0 1px var(--rule);
}
.byline-avatar-link:hover .byline-avatar {
  box-shadow: none;
}
.byline-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.byline-name a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.byline-name a:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
}
.byline-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  text-transform: uppercase;
  line-height: 1.4;
  margin-top: 2px;
}

/* === TOC === */
.toc {
  background: var(--footnote-bg);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 0 0 48px;
  border-radius: 4px;
}
.toc-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.toc ol {
  margin: 0;
  padding: 0 0 0 20px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.toc a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: border-color 0.15s, color 0.15s;
}
.toc a:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
}

/* === Body type === */
article p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 22px;
  color: var(--ink);
}
h2 {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 56px 0 18px;
  color: var(--ink);
  scroll-margin-top: 24px;
}
h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 14px;
}

h3 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--ink);
}

article ol, article ul {
  margin: 0 0 22px;
  padding-left: 24px;
  font-size: 18px;
  line-height: 1.7;
}
article li {
  margin-bottom: 8px;
}

article strong {
  color: var(--ink);
  font-weight: 700;
}

article em {
  color: var(--ink-soft);
}

/* === Layer callout block === */
.layer-stack {
  background: linear-gradient(180deg, #f6f7fb 0%, #eef0f8 100%);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 24px 28px;
  margin: 8px 0 28px;
}
.layer-stack p {
  font-size: 16px;
  margin: 0 0 14px;
  padding-left: 72px;
  position: relative;
  line-height: 1.6;
}
.layer-stack p:last-child { margin-bottom: 0; }
.layer-stack p strong:first-child {
  position: absolute;
  left: 0;
  top: 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  background: var(--eyebrow-bg);
  padding: 4px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
}

/* === Pull stat === */
.pullstat {
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  padding: 28px 0;
  margin: 32px 0;
  text-align: center;
}
.pullstat .num {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 10px;
}
.pullstat .lbl {
  display: block;
  font-size: 14px;
  color: var(--ink-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* === Footnote refs === */
sup.fn-ref {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent-deep);
  font-weight: 600;
  padding: 0 1px;
}
sup.fn-ref a {
  color: var(--accent-deep);
  text-decoration: none;
}
sup.fn-ref a:hover { text-decoration: underline; }

/* === FAQ === */
.faq h3 {
  font-size: 17px;
  margin: 24px 0 8px;
  color: var(--ink);
}
.faq p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* === CTA box === */
.cta {
  background: var(--bg);
  color: #fff;
  border-radius: 8px;
  padding: 36px 32px;
  margin: 56px 0 48px;
  text-align: center;
}
.cta .cta-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.cta h3 {
  color: #fff;
  font-size: 22px;
  margin: 0 0 12px;
  line-height: 1.3;
}
.cta p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  margin: 0 auto 22px;
  max-width: 480px;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: #00e0f0;
  transform: translateY(-1px);
}
.btn-secondary {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
}
.btn-secondary:hover {
  color: #fff;
  border-color: var(--accent);
}

/* === Footnotes === */
.footnotes {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 2px solid var(--rule-strong);
}
.footnotes h2 {
  font-size: 18px;
  margin: 0 0 16px;
}
.footnotes h2::before { display: none; }
.footnotes ol {
  padding-left: 0;
  list-style: none;
  counter-reset: fn;
}
.footnotes li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 14px;
  padding-left: 32px;
  position: relative;
  counter-increment: fn;
}
.footnotes li::before {
  content: counter(fn);
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--eyebrow-bg);
  padding: 3px 7px;
  border-radius: 3px;
  min-width: 22px;
  text-align: center;
}
.footnotes a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: rgba(0, 122, 133, 0.35);
  text-underline-offset: 2px;
  word-break: break-word;
}
.footnotes a:hover {
  text-decoration-color: var(--accent-deep);
}

/* === Footer === */
footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.6;
}
footer .methodology {
  max-width: 760px;
  margin: 0 auto 12px;
}
footer a {
  color: var(--accent-deep);
  text-decoration: none;
}

/* === Responsive === */
@media (max-width: 780px) {
  article {
    padding: 40px 24px 56px;
    box-shadow: none;
  }
  h1 { font-size: 30px; }
  .deck { font-size: 18px; padding-left: 14px; }
  h2 { font-size: 22px; margin-top: 40px; }
  article p, article ol, article ul { font-size: 17px; }
  .pullstat .num { font-size: 34px; }
  .layer-stack p {
    padding-left: 0;
    padding-top: 32px;
  }
  .layer-stack p strong:first-child {
    position: relative;
    margin-bottom: 6px;
  }
  .topbar { padding: 14px 20px; }
  .topbar-meta { display: none; }
}
