/* The site's one stylesheet, for its two pages.

   The studio's look: shadcn's zinc and the logo's blue, darkened to a text
   color (#117aa2; the logo's own, #159bce, is 3.18:1), light only. Every
   text reaches 4.5:1 on its background: the foreground 19.9 on white and
   18.1 on the muted gray of a code block, the muted text 7.7 and 7.0, and
   the blue 4.85 on white. The blue is 4.41 on the gray, so no link sits on
   it. No font, script or tracker is loaded from anywhere. */

:root {
  --background: #ffffff;
  --foreground: #09090b;
  --muted: #f4f4f5;
  --muted-foreground: #52525b;
  --border: #e4e4e7;
  --brand: #117aa2;
  --radius: 0.5rem;
}

html {
  font-family: system-ui, sans-serif;
  color: var(--foreground);
  background: var(--background);
}

body {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  box-sizing: border-box;
}

h1,
h2 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: 2.25rem;
}

/* The wordmark as the heading of Tolk's page, 4rem tall from a picture
   128 pixels tall. */
h1.wordmark {
  line-height: 0;
}

h1.wordmark img {
  width: auto;
  height: 4rem;
}

h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.375rem;
}

p,
li {
  font-size: 1.125rem;
  line-height: 1.6;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

a {
  color: var(--brand);
  text-underline-offset: 0.2em;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875rem;
}

pre {
  margin: 0 0 1rem;
  padding: 1rem;
  overflow-x: auto;
  line-height: 1.6;
  background: var(--muted);
  border-radius: var(--radius);
}

/* The comments of a command, muted. */
pre .note {
  color: var(--muted-foreground);
}

figure {
  margin: 0 0 1.5rem;
}

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

/* A picture wider than the text, centered on it, up to the window's
   width less the body's padding. */
figure.wide {
  width: min(64rem, 100vw - 3rem);
  margin-left: 50%;
  transform: translateX(-50%);
}

figcaption {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* The book: its cover beside its text, stacked on a narrow screen. */
.book {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.book img {
  flex: none;
  width: 9rem;
  height: auto;
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
}

@media (max-width: 30rem) {
  .book {
    flex-direction: column;
  }
}

/* A link drawn as an outlined button, like the studio's. */
.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.button:hover {
  background: var(--muted);
}

/* The heart of GitHub's Sponsor button, its pink: decorative, since the
   word "Sponsor" says what the button does. */
.heart {
  color: #bf3989;
}

/* The phases: done ones muted, the next one in bold. */
.phases li {
  font-size: 1rem;
}

.phases .done {
  color: var(--muted-foreground);
}

.phases .next {
  font-weight: 600;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--muted-foreground);
}
