/* The styles that each page of the site has: the colors, the type, the header and the footer.
   The Worker writes the header and the footer into each page (src/chrome.js), so they are the same on each one.
   A page has its own styles in its file, or in page.css for the text pages. */
:root {
  --bg: #fbf7f4; --text: #1d1512; --soft: #6f625c; --line: #e4d9d2; --field: #ffffff; --card: #ffffff;
  --brand: #f0542a; --brand-dark: #d8431c; --tint: #fdeee8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141110; --text: #f6efeb; --soft: #a99b94; --line: #332b27; --field: #1e1917; --card: #1b1614;
    --tint: #2a1a14;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
/* Only the sides, so that a part of a page can set its own space above. */
.wrap { width: 100%; max-width: 1040px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

/* The header: the name, the pages of the site, and the download. */
.top { display: flex; align-items: center; gap: 22px; padding-top: 16px; padding-bottom: 16px; font-size: 15px; }
.top .name { display: flex; align-items: center; gap: 9px; margin-right: auto; font-size: 18px; font-weight: 700; text-decoration: none; color: var(--text); }
.top .name img { width: 30px; height: 30px; }
.top nav { display: flex; gap: 20px; }
.top nav a { color: var(--soft); text-decoration: none; }
.top nav a:hover { color: var(--text); }
.top .small { padding: 7px 14px; font-weight: 600; color: #fff; background: var(--brand); border-radius: 10px; text-decoration: none; }
.top .small:hover { color: #fff; background: var(--brand-dark); }
/* A download button that does not work yet: it is grey, and it takes no click. */
.top .small.off, .top .small.off:hover { color: var(--soft); background: var(--line); cursor: default; pointer-events: none; }

/* The footer: the legal pages, the contact and the copyright. */
.foot { margin-top: 80px; padding: 26px 20px 30px; border-top: 1px solid var(--line); font-size: 14px; color: var(--soft); text-align: center; }
.foot p { margin: 0 0 10px; }
.foot p:last-child { margin: 0; }
.foot a:hover { color: var(--brand); }
.foot .x { width: 13px; height: 13px; margin-right: 5px; vertical-align: -1px; }

@media (max-width: 640px) {
  .top nav { display: none; }
}
