/* taglibro.app: what every page shares. The paper colours and the fonts of
   the app (Literata, Onest), the header with the brand and the language
   switch, the footer, and the text pages (privacy, support). The home page
   adds home.css. Nothing comes from another site (spec 18, ADR 0156). */
@font-face {
  font-family: 'Literata';
  src: url(/fonts/Literata-Regular.ttf) format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Literata';
  src: url(/fonts/Literata-Medium.ttf) format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Onest';
  src: url(/fonts/Onest-Regular.ttf) format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Onest';
  src: url(/fonts/Onest-SemiBold.ttf) format('truetype');
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --bg: #eeeae2;
  --surface: #f8f5ee;
  --text: #2a211a;
  --text2: #62574a;
  --accent: #2f5d4a;
  --divider: #d2cdc1;
  --underline: #b9b1a2;
}
/* Dark, text pages only: neutral greys, not the warm dark of the app. The
   home page was drawn in the light theme and stays light (home.css). */
@media (prefers-color-scheme: dark) {
  :root:not(.home) {
    --bg: #1c1c1e;
    --surface: #2c2c2e;
    --text: #f2f2f7;
    --text2: #aeaeb2;
    --accent: #8cc5a9;
    --divider: #3a3a3c;
    --underline: #636366;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.6 'Onest',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
.w {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header: the brand goes to the home page of the language. */
.top .w {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 4px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font:
    500 22px/1 'Literata',
    Georgia,
    serif;
  color: var(--text);
  text-decoration: none;
}
.brand img {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 22.5%;
}

/* Language switch: a list of links that opens without scripts. */
.lang {
  position: relative;
  font-size: 16px;
  color: var(--text2);
}
.lang summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  list-style: none;
  cursor: pointer;
}
.lang summary::-webkit-details-marker {
  display: none;
}
.lang summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  transform: translateY(-2px) rotate(45deg);
}
.lang[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}
.lang ul {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 10;
  min-width: 168px;
  margin: 4px 0 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(42, 33, 26, 0.16);
}
.lang li {
  margin: 0;
}
.lang a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  text-decoration: none;
}
.lang a:hover,
.lang a:focus-visible {
  background: var(--bg);
}

/* Text pages. */
.text {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 20px 64px;
}
.text h1,
.text h2,
.text h3 {
  font-family: 'Literata', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.25;
}
.text h1 {
  font-size: 34px;
  margin: 32px 0 16px;
}
.text h2 {
  font-size: 24px;
  margin: 40px 0 8px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
}
.text a {
  color: var(--accent);
}
code {
  font:
    15px ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  background: var(--surface);
  padding: 1px 5px;
  border-radius: 4px;
}
li {
  margin-bottom: 6px;
}

/* Footer: contact on the left, the pages of this language on the right. */
.ft {
  border-top: 1px solid var(--divider);
  font-size: 16px;
  line-height: 30px;
  color: var(--text2);
}
.ft .w {
  padding-top: 36px;
  padding-bottom: 44px;
}
.ft b {
  font-weight: 600;
  color: var(--text);
}
.ft a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-color: var(--underline);
}
.ft .r {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.ft nav.r {
  flex-direction: row;
  gap: 28px;
  margin-top: 20px;
}
.ft .ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text2);
}
.ft .ig svg {
  color: var(--text);
}
/* Store trademarks under the footer, on the home page only. */
.ft .w.tm {
  display: block;
  margin: 0;
  padding-top: 0;
  padding-bottom: 28px;
  font-size: 12px;
  line-height: 18px;
  color: var(--text2);
}
@media (min-width: 700px) {
  .ft {
    line-height: 26px;
  }
  .ft .w {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .ft .r {
    flex-direction: row;
    align-items: center;
    gap: 36px;
  }
  .ft nav.r {
    margin-top: 0;
    gap: 36px;
  }
}
