/* The app's site: its walnut and tan, its light theme by default and its dark one at night. */

@font-face {
  font-family: Literata;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Literata_400Regular.ttf') format('truetype');
}

@font-face {
  font-family: Literata;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Literata_600SemiBold.ttf') format('truetype');
}

:root {
  color-scheme: light dark;
  --background: #efedea;
  --surface: #e4e0d9;
  --text: #1f1a13;
  --muted: #655d51;
  --accent: #2b2216;
  --on-accent: #efedea;
  --accent-text: #7a5e3f;
  --line: #d6d0c6;
  --book: Literata, Georgia, 'Times New Roman', serif;
  --voice: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #211a12;
    --surface: #2e251a;
    --text: #e6e1d7;
    --muted: #a59c8d;
    --accent: #c4aa8f;
    --on-accent: #211a12;
    --accent-text: #c9af93;
    --line: #3b3022;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 400 1.125rem/1.65 var(--book);
}

header,
main,
footer {
  max-width: 42.5rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  font-family: var(--voice);
}

.brand {
  font: 600 1.25rem var(--book);
  color: var(--text);
  text-decoration: none;
}

.language {
  font-size: 0.9375rem;
  color: var(--muted);
}

main {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

h1 {
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

h2 {
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 2.25rem 0 0.5rem;
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.375rem;
}

/* The app's name in the texts; Literata has 400 and 600 here, so bold is the 600 face. */
strong {
  font-weight: 600;
}

h1 strong,
h2 strong {
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration-color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-text);
}

.overline {
  font: 700 0.8125rem var(--voice);
  letter-spacing: 0.3em;
  color: var(--accent-text);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.375rem;
  line-height: 1.5;
}

.store {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 1rem var(--voice);
  text-decoration: none;
}

.store:hover {
  color: var(--on-accent);
  opacity: 0.9;
}

.documents {
  list-style: none;
  padding: 0;
}

.meta {
  font: 0.9375rem var(--voice);
  color: var(--muted);
}

.draft {
  font: 0.9375rem/1.5 var(--voice);
  background: var(--surface);
  padding: 0.75rem 1rem;
}

footer {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  font: 0.875rem/1.6 var(--voice);
  color: var(--muted);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-bottom: 0.75rem;
}
