/* guides.css — the /guides section.
   Deliberately its own stylesheet rather than glass.css: these pages are for
   reading, not for showing off a link page, and they must render fast for a
   crawler. Nothing here loads a font from a third party; the system stack is
   what most people already read comfortably. */

:root {
  --g-ink: #1c1420;
  --g-soft: #5b5162;
  --g-faint: #8b8292;
  --g-line: rgba(28, 20, 32, .12);
  --g-accent: #6D3BE0;
  --g-bg: #FBF9F6;
  --g-card: #fff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --g-ink: #F2EEF6; --g-soft: #B9B1C4; --g-faint: #8B839A;
    --g-line: rgba(255, 255, 255, .14);
    --g-accent: #B79BFF; --g-bg: #15111A; --g-card: #1D1824;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--g-bg);
  color: var(--g-ink);
  font-family: ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI",
               system-ui, Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.g-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px max(20px, env(safe-area-inset-left));
  max-width: 780px; margin: 0 auto;
  border-bottom: 1px solid var(--g-line);
}
.g-brand {
  font-weight: 800; font-size: 14px; letter-spacing: -.01em;
  text-decoration: none;
}
.g-nav { display: flex; gap: 16px; font-size: 14px; }
.g-nav a { color: var(--g-soft); text-decoration: none; }
.g-nav a:hover { color: var(--g-ink); }

.g-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px max(20px, env(safe-area-inset-left)) 56px;
}

h1 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15; letter-spacing: -.02em;
  margin: 0 0 16px; font-weight: 800;
}
h2 {
  font-size: clamp(20px, 3vw, 25px);
  line-height: 1.25; letter-spacing: -.01em;
  margin: 40px 0 12px; font-weight: 750;
}
h3 { font-size: 17px; margin: 22px 0 6px; font-weight: 700; }

/* The lead sets the tone and is the paragraph most people actually read. */
.g-lead {
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.55; color: var(--g-soft);
  margin: 0 0 28px;
}

.g-body p, .g-faq p { margin: 0 0 18px; }
.g-body ul { margin: 0 0 20px; padding-left: 22px; }
.g-body li { margin-bottom: 8px; }

/* Index */
.g-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.g-card a {
  display: block; text-decoration: none;
  padding: 18px 20px; border-radius: 14px;
  background: var(--g-card); border: 1px solid var(--g-line);
  transition: transform .14s ease, border-color .14s ease;
}
.g-card a:hover { transform: translateY(-2px); border-color: var(--g-accent); }
.g-card h2 { font-size: 19px; margin: 0 0 6px; line-height: 1.3; }
.g-card p { margin: 0 0 8px; color: var(--g-soft); font-size: 15px; line-height: 1.5; }
.g-meta { font-size: 12.5px; color: var(--g-faint); font-weight: 650; }

/* Article */
.g-back { margin: 0 0 20px; font-size: 14px; }
.g-back a { color: var(--g-soft); text-decoration: none; }
.g-back a:hover { color: var(--g-ink); }

.g-faq { margin-top: 44px; padding-top: 8px; border-top: 1px solid var(--g-line); }
.g-qa { margin-bottom: 18px; }
.g-qa p { color: var(--g-soft); font-size: 16px; }

.g-cta {
  margin: 44px 0 0; padding: 24px; border-radius: 16px;
  background: var(--g-card); border: 1px solid var(--g-line);
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.g-btn {
  display: inline-block; text-decoration: none;
  padding: 13px 22px; border-radius: 999px;
  background: var(--g-accent); color: #fff;
  font-weight: 750; font-size: 16px;
}
.g-btn:hover { filter: brightness(1.08); }
.g-note { font-size: 13.5px; color: var(--g-faint); }

.g-more { margin-top: 44px; padding-top: 8px; border-top: 1px solid var(--g-line); }
.g-more h2 { font-size: 17px; margin: 16px 0 10px; }
.g-more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.g-more a { color: var(--g-accent); text-decoration: none; font-size: 16px; }
.g-more a:hover { text-decoration: underline; }

.g-foot {
  max-width: 780px; margin: 0 auto;
  padding: 24px max(20px, env(safe-area-inset-left)) max(40px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--g-line);
  font-size: 13.5px; color: var(--g-faint);
}
.g-foot a { color: var(--g-soft); text-decoration: none; }
.g-foot a:hover { color: var(--g-ink); }
/* The unaffiliated notice: small, but it must be present on every page that
   names a competitor, which is what keeps the comparison lawful. */
.g-disclaimer { font-size: 12px; line-height: 1.5; margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  .g-card a { transition: none; }
}
