/* epub.slow.tools: the kit's Material, the kit's colours (kit/slow-tokens.css), nothing typed here. */
@font-face { font-family: "Roboto Flex"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url("/fonts/roboto-flex-latin-opsz-normal.woff2") format("woff2"); }
@font-face { font-family: "Material Symbols Rounded"; font-style: normal; font-weight: 100 700; font-display: block; src: url("/fonts/material-symbols-rounded.woff2") format("woff2"); }

:root { color-scheme: light dark; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--md-ref-typeface-plain);
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--md-sys-color-primary); }
md-icon { font-family: var(--md-icon-font); }
.page { max-width: 1040px; margin: 0 auto; padding: 0 24px 64px; }
.narrow { max-width: 440px; }
.top-app-bar { position: sticky; top: 0; z-index: 2; background: var(--md-sys-color-surface); }
.top-app-bar .title a { color: inherit; text-decoration: none; }

/* Type: Material's scale, from the kit's typeface. */
.display { font-size: 45px; line-height: 52px; font-weight: 400; margin: 0; }
.headline { font-size: 28px; line-height: 36px; font-weight: 400; margin: 0; }
.title-l { font-size: 22px; line-height: 28px; font-weight: 400; margin: 0; }
.body-l { font-size: 16px; line-height: 24px; color: var(--md-sys-color-on-surface-variant); }
.body-m { font-size: 14px; line-height: 20px; color: var(--md-sys-color-on-surface-variant); }
.label { font-size: 12px; line-height: 16px; letter-spacing: .5px; color: var(--md-sys-color-on-surface-variant); }
@media (max-width: 599px) { .display { font-size: 36px; line-height: 44px; } }

/* The sign-in form. */
.form { display: grid; gap: 16px; margin-top: 24px; }
.form md-outlined-text-field { width: 100%; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.error { min-height: 20px; margin: 0; color: var(--md-sys-color-error); font-size: 14px; line-height: 20px; }
.notice { color: var(--md-sys-color-on-surface-variant); }
.anchor { position: relative; }

/* The showcase. */
.hero { display: grid; gap: 32px; align-items: center; padding: 40px 0 24px; }
.hero .lede { max-width: 34rem; }
.hero .actions { margin-top: 24px; }
.shot { justify-self: center; width: min(320px, 80vw); margin: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--md-sys-color-outline-variant); background: var(--md-sys-color-surface-container); }
.shot img { display: block; width: 100%; height: auto; }
@media (min-width: 840px) { .hero { grid-template-columns: 1.2fr 1fr; padding-top: 64px; } }
.points { display: grid; gap: 16px; padding: 32px 0; }
@media (min-width: 600px) { .points { grid-template-columns: repeat(3, 1fr); } }
.point { padding: 20px; border-radius: 16px; background: var(--md-sys-color-surface-container-low); }
.point md-icon { color: var(--md-sys-color-primary); }
.point h3 { margin: 8px 0 4px; }
.point p { margin: 0; }
footer.page { padding-top: 24px; border-top: 1px solid var(--md-sys-color-outline-variant); }

/* The shelves. */
md-tabs { position: sticky; top: 64px; z-index: 1; background: var(--md-sys-color-surface); }
.intro { max-width: 40rem; margin: 24px 0; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.book { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: 12px; background: var(--md-sys-color-surface-container-low); }
.book h3 { margin: 0; }
.book .meta { margin: 0; }
.book .licence { margin: 0; }
.book .actions { margin-top: 8px; }
.key-ways { display: grid; gap: 24px; max-width: 34rem; }
.key-way { display: grid; gap: 12px; padding: 20px; border-radius: 12px; background: var(--md-sys-color-surface-container-low); }
.key-way h3, .key-way p { margin: 0; }
.code { font-family: var(--slow-typeface-mono); font-size: 28px; line-height: 36px; letter-spacing: 2px; color: var(--md-sys-color-on-surface); }
.snackbar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 14px 16px; border-radius: 4px; background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); font-size: 14px; line-height: 20px; }
.empty { color: var(--md-sys-color-on-surface-variant); }
