/* Guides: short, plain pages for search engines and new visitors.
   Always light, like the front page (the author's rule). Same system font
   and colours as the app (src/styles.css :root). */
:root {
  --bg: #ffffff;
  --bg-sunken: #f5f5f4;
  --text: #1c1917;
  --text-muted: #57534e;
  --border: #e7e5e4;
  --accent: #2159d9;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 20px 0;
}

.wordmark {
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
}

.open-app {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.open-app:hover {
  filter: brightness(1.1);
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.crumbs {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.crumbs a {
  color: inherit;
}

h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 12px;
}

h2 {
  font-size: 23px;
  margin: 36px 0 8px;
}

.lead {
  font-size: 19px;
  color: var(--text-muted);
  margin-top: 0;
}

a {
  color: var(--accent);
}

figure {
  margin: 20px 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

figcaption {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Images wider than the text column (the app screenshots). */
.wide {
  width: min(1000px, calc(100vw - 40px));
  margin-left: 50%;
  transform: translateX(-50%);
}

/* Text with a screenshot beside it; stacks on narrow screens. */
.beside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  margin: 16px 0;
}

.beside figure {
  margin: 0;
}

.beside p:first-child {
  margin-top: 0;
}

@media (max-width: 640px) {
  .beside {
    grid-template-columns: 1fr;
  }
  .beside figure {
    max-width: 420px;
  }
}

ol li,
ul li {
  margin-bottom: 8px;
}

code {
  font-size: 0.92em;
  background: var(--bg-sunken);
  padding: 1px 5px;
  border-radius: 4px;
}

.note {
  background: var(--bg-sunken);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 20px 0;
}

.cta {
  margin: 40px 0 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}

.cta p {
  margin: 0 0 14px;
}

.guide-list {
  list-style: none;
  padding: 0;
}

.guide-list li {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 14px;
}

.guide-list a {
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

.guide-list p {
  margin: 4px 0 0;
  color: var(--text-muted);
}

footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

footer a {
  color: inherit;
}

@media (max-width: 560px) {
  h1 {
    font-size: 28px;
  }
  .wordmark {
    font-size: 20px;
  }
}
