/* PAFworks guides: one stylesheet for every page of docs/.
   Colours and fonts follow the PAFworks website (css/tokens.css there). */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --pine-900: #062F27;
  --pine-700: #0D5445;
  --pine-600: #116554;
  --pine-500: #177E68;
  --pine-200: #A8DCCE;
  --pine-100: #D6EFE7;
  --pine-50: #EDF8F4;
  --clay-500: #D2622B;
  --clay-100: #FCE9DE;
  --amber-600: #A66300;
  --amber-100: #FBEBCF;
  --ink-900: #0F1512;
  --ink-800: #1B221E;
  --ink-500: #5F6B64;
  --ink-200: #CDD4D0;
  --ink-150: #DFE4E1;
  --ink-50: #F5F6F4;
  --paper: #FCFBF8;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font: 400 16px/1.6 var(--font-ui);
  color: var(--ink-800);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pine-600); }
a:hover { color: var(--pine-700); }

/* Top bar */
.topbar {
  background: var(--pine-900);
  color: #EAF2EF;
}
.topbar__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 20px/1 var(--font-display);
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}
.topbar__brand span { color: var(--pine-200); font-weight: 500; }
.topbar__brand img { width: 28px; height: 28px; }
.topbar__brand:hover { color: #fff; }
.topbar__spacer { flex: 1; }
.topbar a.topbar__link { color: var(--pine-200); text-decoration: none; font-size: 15px; }
.topbar a.topbar__link:hover { color: #fff; }

/* Layout: table of contents on the side, the guide in the middle */
.layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
}
.layout--single { grid-template-columns: minmax(0, 1fr); max-width: 880px; }

.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  font-size: 14px;
}
.toc p {
  margin: 0 0 8px;
  font: 600 12px/1 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ink-150); }
.toc li a {
  display: block;
  padding: 5px 0 5px 14px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--ink-800);
  text-decoration: none;
}
.toc li a:hover { border-left-color: var(--pine-500); color: var(--pine-700); }

main { min-width: 0; }

h1, h2, h3 { color: var(--ink-900); font-family: var(--font-display); letter-spacing: -0.01em; }
h1 { font-size: 40px; line-height: 1.15; margin: 8px 0 16px; letter-spacing: -0.02em; }
h2 { font-size: 28px; line-height: 1.25; margin: 56px 0 12px; padding-top: 8px; }
h3 { font-size: 20px; line-height: 1.3; margin: 32px 0 8px; }
p, ul, ol { margin: 0 0 16px; }
li { margin-bottom: 6px; }

.eyebrow {
  display: inline-block;
  font: 600 12px/1 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine-600);
  background: var(--pine-50);
  border: 1px solid var(--pine-100);
  border-radius: 999px;
  padding: 6px 10px;
}
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-500); max-width: 62ch; }

/* What you need, before the steps */
.prereq {
  background: #fff;
  border: 1px solid var(--ink-150);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0 8px;
}
.prereq h2 { font-size: 17px; margin: 0 0 8px; padding: 0; font-family: var(--font-ui); font-weight: 600; }
.prereq ul { margin: 0; padding-left: 20px; }

/* Numbered steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
  margin: 0 0 28px;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pine-600);
  color: #fff;
  font: 600 15px/32px var(--font-display);
  text-align: center;
}
.steps > li > h3 { margin-top: 0; font-size: 18px; }

/* Screenshots */
figure.shot { margin: 16px 0 24px; }
figure.shot img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--ink-150);
  border-radius: 10px;
  box-shadow: 0 16px 32px -12px rgba(6, 47, 39, .18), 0 2px 6px rgba(6, 47, 39, .06);
  background: #fff;
}
figure.shot--narrow img { max-width: min(560px, 100%); }
figure.shot figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-500); }

/* Interface words, keys, values to type */
.ui { font-weight: 600; color: var(--ink-900); }
code, kbd {
  font: 500 0.88em var(--font-mono);
  background: var(--ink-50);
  border: 1px solid var(--ink-150);
  border-radius: 6px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}

/* Tables of settings */
table.settings {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0 24px;
  font-size: 15px;
  background: #fff;
  border: 1px solid var(--ink-150);
  border-radius: 10px;
  overflow: hidden;
}
table.settings th, table.settings td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--ink-150); vertical-align: top; }
table.settings th { background: var(--ink-50); font-weight: 600; color: var(--ink-900); }
table.settings tr:last-child td { border-bottom: 0; }

/* Notes */
.note, .tip, .warning {
  border-radius: 10px;
  padding: 14px 18px;
  margin: 16px 0 24px;
  border: 1px solid;
}
.note { background: var(--pine-50); border-color: var(--pine-100); }
.tip { background: #fff; border-color: var(--ink-150); }
.warning { background: var(--amber-100); border-color: #F2D49B; }
.note > :last-child, .tip > :last-child, .warning > :last-child { margin-bottom: 0; }
.note strong:first-child, .tip strong:first-child, .warning strong:first-child { color: var(--ink-900); }

/* The guides index */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 32px 0; }
.card {
  display: block;
  background: #fff;
  border: 1px solid var(--ink-150);
  border-radius: 12px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  transition: border-color .12s, box-shadow .12s;
}
.card:hover { border-color: var(--pine-500); box-shadow: 0 4px 10px -2px rgba(6, 47, 39, .10); color: inherit; }
.card h2 { font-size: 19px; margin: 0 0 6px; padding: 0; }
.card p { margin: 0; color: var(--ink-500); font-size: 15px; }
.card__more { display: inline-block; margin-top: 12px; color: var(--pine-600); font-weight: 600; font-size: 15px; }

/* Next guide, at the end of a page */
.next {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-150);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 15px;
}

footer.foot {
  border-top: 1px solid var(--ink-150);
  color: var(--ink-500);
  font-size: 14px;
}
footer.foot div { max-width: 1080px; margin: 0 auto; padding: 24px; }

@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .toc { position: static; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; margin-top: 40px; }
}
