/* unwrittenbook: shared tokens and the few things every variant of the home page has in common.
   Rules of the brand: brand/README.md. Each variant keeps its own layout in its own file. */
@import url("https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,400;0,7..72,600;1,7..72,400&family=Inter:wght@400;500;600&display=swap");

:root {
  --ink: #14161F;
  --page: #FFFFFF;
  --rubric: #C2371F;
  --rubric-on-ink: #F0603F;
  --grey: #4A4F5E;
  --grey-on-ink: #B9BECC;
  --line: #D9DCE3;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.55; }
h1, h2, h3, p, blockquote, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rubric); outline-offset: 3px; }

.wordmark { display: inline-flex; align-items: center; font-weight: 600; font-size: 22px; letter-spacing: -0.2px; text-decoration: none; line-height: 1; }
.wordmark svg { width: 28px; height: 28px; flex: none; margin-right: 10px; }
.wordmark .stroke { display: inline-block; width: 2px; height: 22px; margin: 0 3px; border-radius: 1px; background: var(--rubric); }
.wordmark .book { font-weight: 400; }

.lang { font-family: var(--sans); font-size: 14px; font-weight: 500; background: none; border: 1px solid currentColor; border-radius: 999px; padding: 8px 14px; min-height: 44px; cursor: pointer; opacity: .8; }
.lang:hover { opacity: 1; }

.sans { font-family: var(--sans); }
.done { font-family: var(--sans); font-size: 15px; min-height: 24px; }

@keyframes blink { 50% { opacity: 0; } }
.caret { display: inline-block; width: .06em; height: .9em; margin-left: .08em; background: var(--rubric); vertical-align: -.08em; animation: blink 1.1s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }
