/* The guides: long reading pages in the look of the landing page. Paper, ink, coral,
   Georgia for headings. Quiet on purpose; the text is the point. */

*, *::before, *::after { box-sizing: border-box; }
:root {
  --ink: #173e48;
  --muted: #4e686b;
  --paper: #faf6ea;
  --cream: #f1ebda;
  --sheet: #fffdf5;
  --coral: #b64c35;
  --coral-dark: #853420;
  --line: #dcded0;
  --good: #2f7a5f;
  --brass: #a9772a;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.035em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid #8a4f1d; outline-offset: 3px; border-radius: 4px; }
::selection { background: #ecc29b; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.button { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; min-height: 44px; padding: 11px 20px; border-radius: 7px; background: var(--coral); color: #fff9eb; font: 600 14px/1.3 var(--sans); text-decoration: none; box-shadow: 0 3px 0 var(--coral-dark); }
.button:hover { background: #9f3c29; }

/* Top bar and footer, as on the landing page. */
.site-bar { display: flex; align-items: center; gap: 28px; margin-top: 20px; padding: 13px 20px; border: 1px solid #fff9e9; border-radius: 13px; background: #fcf9ed; box-shadow: 0 5px 28px #16415110; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: bold 24px/1 var(--serif); letter-spacing: -0.9px; text-decoration: none; white-space: nowrap; }
.site-bar nav { display: flex; gap: 24px; flex: 1; }
.site-bar nav a, .site-bar .login { font-size: 13px; font-weight: 600; text-decoration: none; }
.site-bar nav a:hover, .site-bar .login:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-bar-actions { display: flex; align-items: center; gap: 18px; }
.site-bar .button { min-height: 38px; padding: 9px 16px; font-size: 13px; }
.site-footer { padding: 56px 0 26px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 26px; }
.footer-top > p { font: italic 17px/1.4 var(--serif); color: #75867a; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 25px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* Head of a guide: what it is about, and its picture. */
.guide-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 56px; }
.guide-head.no-art { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 13px; font-weight: 600; color: var(--coral-dark); }
.crumbs a { text-underline-offset: 3px; }
.guide-head h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.05; }
.lead { margin-top: 20px; font-size: 20px; line-height: 1.55; color: #32545a; max-width: 58ch; }
.byline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.guide-art { width: 100%; }

/* Reading column with the contents beside it. */
.guide-layout { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 56px; justify-content: space-between; margin-top: 52px; align-items: start; }
.guide-toc { position: sticky; top: 24px; padding-top: 6px; font-size: 14px; line-height: 1.45; }
.guide-toc p { margin-bottom: 12px; font-size: 12px; font-weight: 700; color: var(--muted); }
.guide-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; border-left: 1px solid var(--line); }
.guide-toc a { display: block; padding-left: 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.guide-toc a:hover { color: var(--ink); border-left-color: var(--coral); }

.guide-body > * + * { margin-top: 22px; }
.guide-body h2 { margin-top: 56px; font-size: clamp(27px, 3vw, 34px); line-height: 1.15; }
.guide-body h3 { margin-top: 38px; font-size: 23px; line-height: 1.25; letter-spacing: -0.025em; }
.guide-body h2 + *, .guide-body h3 + * { margin-top: 16px; }
.guide-body a { color: var(--coral-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.guide-body a:hover { text-decoration-thickness: 2px; }
.guide-body ul, .guide-body ol { margin-bottom: 0; padding-left: 24px; }
.guide-body li + li { margin-top: 8px; }
.guide-body li::marker { color: var(--coral-dark); }
.guide-body strong { font-weight: 650; }
.guide-body code { padding: 2px 6px; border-radius: 5px; background: var(--cream); font: 0.86em/1.5 ui-monospace, 'SF Mono', Menlo, monospace; overflow-wrap: anywhere; }
.guide-body pre { margin-bottom: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--sheet); overflow-x: auto; }
.guide-body pre code { padding: 0; background: none; font-size: 14px; overflow-wrap: normal; }
/* A record to copy, as in the app. */
.guide-body pre.record { border: 1px dashed #95ac8e; background: #f0f3e6; }
.guide-body pre.record code { white-space: pre-wrap; overflow-wrap: anywhere; }
.guide-body blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brass); font: italic 19px/1.6 var(--serif); color: #32545a; }

.takeaways { padding: 22px 26px 24px; border: 1px solid #d8c48d; border-radius: 12px 14px 11px 13px; background: linear-gradient(100deg, #fbf2d9, #f3e5bf); box-shadow: inset 0 0 0 4px #fffaea8c; }
.takeaways p { font: 22px/1.2 var(--serif); letter-spacing: -0.03em; }
.takeaways ul { margin-top: 12px; }

.note { padding: 16px 20px; border-left: 3px solid var(--good); border-radius: 0 10px 10px 0; background: #e9f3ec; }
.note.warn { border-left-color: var(--coral); background: #f9e7e0; }
.note > * + * { margin-top: 10px; }

/* Steps, with the numbers the eye can count. */
.guide-body ol.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 18px; }
.guide-body ol.steps > li { counter-increment: step; position: relative; margin: 0; padding-left: 52px; min-height: 34px; }
.guide-body ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font: bold 16px/1 var(--serif); }
.guide-body ol.steps > li > * + * { margin-top: 10px; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--sheet); }
/* A table keeps a readable width and scrolls sideways on a narrow screen rather than squeezing its columns. */
.guide-body table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.guide-body th, .guide-body td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.guide-body thead th { font-size: 13px; color: var(--muted); white-space: nowrap; background: #f6f1df; }
.guide-body tbody tr:last-child > * { border-bottom: 0; }
.guide-body tbody th { font-weight: 650; }
/* A state in a comparison. */
mark { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--cream); color: var(--ink); font-size: 12.5px; font-weight: 650; line-height: 1.5; white-space: nowrap; }
mark.free { background: #dcefe3; color: #1b5641; }
mark.limited { background: #f4e7c4; color: #5b3d12; }
mark.paid { background: #e8e4d4; color: #4e5a55; }
mark.ended { background: #f6dcd3; color: var(--coral-dark); }

.guide-body figure { margin-inline: 0; }
.guide-body figure img { border-radius: 12px; }
.guide-body figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
/* Stands in for a picture that is still to be made; only shown while working on the pages. */
.placeholder { display: grid; place-content: center; gap: 6px; width: 100%; padding: 16px; text-align: center; border: 2px dashed #95ac8e; border-radius: 12px; color: #44605c; font-size: 13px; line-height: 1.4; background: repeating-linear-gradient(135deg, #f0f3e6 0 12px, #e8eedd 12px 24px); }
.placeholder span + span { font-weight: 700; }

.guide-faq details { border-top: 1px solid var(--line); }
.guide-faq details:last-child { border-bottom: 1px solid var(--line); }
.guide-faq h2 + details { margin-top: 20px; }
.guide-faq summary { padding: 16px 0; font-weight: 650; cursor: pointer; }
.guide-faq summary::marker { color: var(--coral-dark); }
.guide-faq details p { padding: 0 0 18px; color: #32545a; }

.guide-cta { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 26px; align-items: center; margin-top: 56px; padding: 26px 30px; border: 1px solid #d8ceae; border-radius: 12px; background: var(--sheet); box-shadow: 0 3px 0 -1px #eee4ce; }
.guide-cta h2 { margin: 0; font-size: 28px; }
.guide-cta p { margin-top: 10px; color: #32545a; }
.guide-cta .button { margin-top: 18px; color: #fff9eb; text-decoration: none; }

.guide-sources { font-size: 14.5px; }
.guide-sources h2 { font-size: 22px; }
.guide-sources ol { margin-top: 14px; color: var(--muted); }
.guide-sources a { overflow-wrap: anywhere; }

.guide-more { margin-top: 80px; }
.guide-more h2 { font-size: 30px; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 22px; }
.guide-card { display: grid; align-content: start; gap: 8px; padding: 22px 24px; border: 1px solid #d8ceae; border-radius: 9px 12px 10px 11px; background: var(--sheet); box-shadow: 0 3px 0 -1px #eee4ce; text-decoration: none; font-size: 15px; line-height: 1.55; color: #32545a; }
.guide-card:hover { border-color: #173e4880; }
.guide-card .topic { font-size: 12px; font-weight: 700; color: var(--coral-dark); }
.guide-card strong { font: 400 22px/1.2 var(--serif); letter-spacing: -0.03em; color: var(--ink); }
.guide-card .minutes { font-size: 12.5px; color: var(--muted); }

@media (max-width: 900px) {
  body { font-size: 16.5px; }
  .guide-head { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 36px; }
  .guide-art { max-width: 460px; }
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; margin-top: 36px; }
  .guide-toc { position: static; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--sheet); }
  .site-bar nav a:not(:first-child) { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .site-bar { gap: 12px; padding: 11px 14px; margin-top: 12px; }
  .site-bar nav { gap: 14px; }
  .site-bar .button { padding: 8px 12px; }
  .brand { font-size: 21px; }
  .site-bar .login { display: none; }
  .lead { font-size: 18px; }
  .guide-cta { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .guide-cta img { max-width: 170px; }
  .guide-body th, .guide-body td { padding: 10px 12px; }
  .takeaways { padding: 18px 20px 20px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
