/* Guide and comparison pages (Tools/build_guides.py). Same tokens as the sky home page, one quiet
   reading column. /assets/* is cached immutably: a change needs a new file name (guides-v2.css). */

@font-face {
  font-family: "Fraunces Quizel";
  src: url("/assets/fonts/Fraunces-Display-SemiBold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

:root {
  color-scheme: light dark;
  --ground: #f6f4fe;
  --wash: #fbfaff;
  --ink: #1a1630;
  --muted: #5d5878;
  --line: #e1dcf3;
  --panel: #ffffff;
  --violet: #6049dd;
  --violet-ink: #3d2aad;
  --violet-soft: #ece8ff;
  --good: #148567;
  --warm: #9a5b00;
  --warm-soft: #fff4df;
  --sky-1: #5241cc;
  --sky-2: #7d6deb;
  --sky-3: #a79af5;
  --pill: #16122b;
  --pill-ink: #ffffff;
  --shadow-sm: 0 12px 30px rgba(38, 24, 120, 0.1);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-display: "Fraunces Quizel", "Iowan Old Style", Georgia, serif;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0d0a1b; --wash: #14102b; --ink: #f2efff; --muted: #a8a1cb; --line: #29234a; --panel: #161230;
    --violet: #a092ff; --violet-ink: #c3baff; --violet-soft: #241c4c; --good: #4fd3a3;
    --warm: #ffcf87; --warm-soft: rgba(255, 190, 110, 0.1);
    --sky-1: #17104a; --sky-2: #2f2287; --sky-3: #4a35a0;
    --pill: #f2efff; --pill-ink: #16122b;
    --shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--violet-ink); text-underline-offset: 0.18em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #f2a73b; outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; border-radius: 10px;
  background: var(--pill); color: var(--pill-ink); font-weight: 700; text-decoration: none; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.wrap { max-width: 1080px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.col { max-width: 760px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* ---------- Top bar ---------- */
.top { border-bottom: 1px solid var(--line); background: var(--wash); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 21px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top-links { display: flex; align-items: center; gap: 6px 20px; }
.top-links a { color: var(--muted); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.top-links a:hover { color: var(--ink); }
.top-links .pill {
  padding: 9px 16px; border-radius: 14px; background: var(--pill); color: var(--pill-ink); white-space: nowrap;
}
.top-links .pill:hover { color: var(--pill-ink); opacity: 0.9; }

/* ---------- Article ---------- */
main { padding-block: 34px 72px; }
.crumbs { margin: 0 0 18px; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.eyebrow { margin: 0 0 10px; color: var(--violet); font-size: 12.5px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
h1 {
  margin: 0 0 16px; font-size: clamp(34px, 6.2vw, 52px); font-weight: 750; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance;
}
h1 em, h2 em { font-family: var(--font-display); font-style: normal; font-weight: 600; letter-spacing: -0.025em; color: var(--violet); }
h2 { margin: 52px 0 14px; font-size: clamp(25px, 4.2vw, 32px); font-weight: 720; line-height: 1.14; letter-spacing: -0.028em; text-wrap: balance; }
h3 { margin: 30px 0 8px; font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 18px; padding-left: 1.25em; }
li { margin-bottom: 7px; }
.meta { margin: 0 0 24px; font-size: 14px; color: var(--muted); }
.lead {
  margin: 0 0 8px; padding: 20px 22px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); font-size: 18.5px; line-height: 1.55;
}
.small { font-size: 14.5px; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0 0 20px; padding: 0; counter-reset: step; }
.steps li { position: relative; margin: 0 0 14px; padding: 2px 0 2px 50px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--violet-soft); color: var(--violet-ink); font-weight: 800; font-size: 15.5px;
}
.steps b { display: block; }

/* ---------- Tables ---------- */
.table { margin: 0 0 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.4; }
caption { caption-side: bottom; padding: 12px 16px; text-align: left; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); }
th, td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
thead th { font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); font-weight: 750; white-space: nowrap; }
tbody th { font-weight: 700; min-width: 8.5em; }
td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.me th, tr.me td { background: var(--violet-soft); }
.wide table { min-width: 600px; }

/* ---------- Callouts, figures ---------- */
.note { margin: 0 0 20px; padding: 16px 18px; border-radius: 16px; background: var(--warm-soft); color: var(--ink); font-size: 16px; }
.note b:first-child { color: var(--warm); }
.shots { display: flex; gap: 16px; justify-content: center; margin: 26px 0 8px; }
.shots img { width: min(46%, 250px); border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
figure { margin: 0 0 22px; }
figcaption { margin-top: 10px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details { margin-bottom: 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.faq summary { padding: 15px 18px; cursor: pointer; font-weight: 650; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* ---------- Call to action ---------- */
.get {
  margin: 44px 0 0; padding: 30px 26px; border-radius: 28px; text-align: center; color: #ffffff;
  background: linear-gradient(165deg, var(--sky-1), var(--sky-2) 58%, var(--sky-3));
}
.get h2 { margin: 0 0 8px; color: #ffffff; }
.get p { margin: 0 auto 18px; max-width: 34em; color: rgba(255, 255, 255, 0.88); }
.get a { display: inline-block; line-height: 0; }
.get .small { margin: 14px auto 0; color: rgba(255, 255, 255, 0.75); }
.more { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.more h2 { margin-top: 0; font-size: 20px; }
.more ul { list-style: none; padding: 0; margin: 0; }
.more li { margin-bottom: 9px; }

/* ---------- Footer ---------- */
footer { padding-block: 24px 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .brand { font-size: 16px; }
footer .brand img { width: 28px; height: 28px; border-radius: 8px; }
footer .legal { margin-top: 16px; font-size: 12.5px; justify-content: flex-start; }

@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .top-links a:not(.pill) { display: none; }
  .lead { padding: 17px 18px; font-size: 17.5px; }
  th, td { padding: 11px 13px; }
  .get { padding: 26px 20px; border-radius: 24px; }
}
