/* Sketchshelf site. Headings use Excalifont, the hand-drawn face the app draws
   with (SIL Open Font License, from the Excalidraw project); body text is the
   Mac's own system font, because this is a Mac app. Colours are the editor's
   own palette: its ink, blue, green, red and highlighter yellow. */
@font-face {
  font-family: "Excalifont";
  src: url("assets/Excalifont.woff2") format("woff2");
  font-display: swap;
}
:root {
  --paper: #ffffff;
  --ink: #1e1e1e;
  --muted: #5c5f66;
  --rule: #e3e5e8;
  --blue: #1971c2;
  --green: #2f9e44;
  --red: #e03131;
  --marker: #ffec99;
  --well: #f6f7f8;
  --hand: "Excalifont", "Comic Sans MS", "Chalkboard SE", cursive;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121212; --ink: #e8e8e8; --muted: #a2a6ad; --rule: #2c2e33;
    --blue: #74b3f0; --green: #69c47c; --red: #ff8787; --marker: #6b5d17; --well: #1c1d20;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 var(--sans);
}
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
code, kbd { font-family: var(--mono); font-size: 0.86em; }
code { overflow-wrap: anywhere; }
kbd {
  display: inline-block; min-width: 1.7em; padding: 0 0.4em; text-align: center;
  border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 5px; background: var(--well);
}
pre {
  font: 14px/1.6 var(--mono); background: var(--well); border: 1px solid var(--rule);
  border-radius: 8px; padding: 14px 16px; overflow-x: auto; margin: 0 0 20px;
}

.page { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.text { max-width: 640px; }

/* site bar */
.bar { display: flex; align-items: center; gap: 22px; padding: 18px 0; flex-wrap: wrap; }
.bar .brand { display: flex; align-items: center; gap: 10px; font: 24px/1 var(--hand); color: var(--ink); text-decoration: none; margin-right: auto; }
.bar .brand img { width: 30px; height: 30px; }
.bar a:not(.brand) { color: var(--muted); text-decoration: none; font-size: 15px; }
.bar a:not(.brand):hover, .bar a[aria-current] { color: var(--ink); }

/* headings */
h1, h2, h3 { font-family: var(--hand); font-weight: 400; letter-spacing: 0; }
h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.05; margin: 48px 0 18px; }
h2 { font-size: 34px; line-height: 1.15; margin: 0 0 12px; }
h3 { font-size: 24px; line-height: 1.2; margin: 32px 0 8px; }
p { margin: 0 0 16px; }
.lede { font-size: 20px; color: var(--muted); max-width: 560px; }

/* the download buttons are drawn like Excalidraw rectangles */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 28px 0 0; }
.btn {
  display: inline-block; font: 600 17px/1 var(--sans); color: var(--paper); background: var(--ink);
  padding: 15px 22px; border: 2px solid var(--ink); border-radius: 9px 12px 8px 11px; text-decoration: none;
}
.btn:hover { background: var(--blue); border-color: var(--blue); }
.aside { font-size: 15px; color: var(--muted); }

/* the screenshot sits in a hand-ruled frame */
.shot { margin: 48px 0 0; }
.shot img {
  display: block; width: 100%; height: auto; border: 2px solid var(--ink);
  border-radius: 12px 16px 11px 15px;
}
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* features */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; padding: 72px 0 0; }
.feature + .feature { padding-top: 64px; }
.feature .text p { color: var(--muted); }
.feature .text p strong { color: var(--ink); font-weight: 600; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; gap: 20px; } }

/* a hand-drawn note, styled the way Sketchshelf styles text */
.note {
  font: 26px/1.5 var(--hand); padding: 22px 26px; border: 2px solid var(--ink);
  border-radius: 14px 18px 12px 16px; background: var(--paper);
}
.note .b { color: var(--blue); }
.note .g { color: var(--green); }
.note .r { color: var(--red); }
.note .hl { background: var(--marker); padding: 0 2px; }
.note .ul { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.note .bx { border: 2px solid currentColor; border-radius: 6px; padding: 0 5px; }
.note-cap { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* the shortcut and file lists */
.keys { width: 100%; border-collapse: collapse; font-size: 15px; }
.keys td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.keys td:first-child { white-space: nowrap; width: 1%; }
.files { font: 15px/1.9 var(--mono); background: var(--well); border: 1px solid var(--rule); border-radius: 10px; padding: 16px 18px; overflow-x: auto; white-space: pre; }
.files .dim { color: var(--muted); }

/* comparison */
.compare { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 0; }
.compare th { text-align: left; font-weight: 600; padding: 10px 14px 10px 0; border-bottom: 2px solid var(--ink); }
.compare td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--muted); }
.compare td:first-child { color: var(--ink); font-weight: 600; }
.compare td:last-child { color: var(--ink); }
.table-wrap { overflow-x: auto; }

section.band { padding: 88px 0 0; }
footer { margin-top: 96px; padding: 28px 0 56px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
footer p { max-width: 640px; }

/* docs pages */
.doc h1 { font-size: 52px; }
.doc h2 { font-size: 28px; margin-top: 44px; }
.doc .text p, .doc .text li { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }

@media (max-width: 520px) {
  .page { padding: 0 16px; }
  .note { font-size: 22px; padding: 18px; }
  .bar { gap: 8px 18px; }
  .bar .brand { flex-basis: 100%; }
}
