/* The site is a page of the same book as the app: the colours are DESIGN-00
   tokens (§2), the shell is the system sans and the headings are set in the
   reading serif (§3.1). Light only, like the app until 1.1. No web fonts:
   the privacy page promises no third-party requests. */

:root {
  --surface-base: #F5F1E8;
  --surface-raised: #FBF8F1;
  --surface-sunken: #EBE5D8;
  --text-primary: #1F1B16;
  --text-secondary: #5F584D;
  --accent: #A8641F;
  --accent-muted: rgba(168, 100, 31, 0.10);
  --hairline: rgba(31, 27, 22, 0.12);
  --strong: rgba(31, 27, 22, 0.22);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --measure: 40rem;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-inline: 20px;
  padding-block: 0 56px;
  background: var(--surface-base);
  color: var(--text-primary);
  font: 17px/1.6 var(--sans);
}

img { max-width: 100%; height: auto; display: block; }

/* Links are ink with an ochre underline: the accent marks them, the text keeps
   the contrast of the page. */
a {
  color: var(--text-primary);
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  padding: 8px 12px;
  background: var(--surface-raised);
  border: 1px solid var(--strong);
  border-radius: 8px;
}
.skip:focus { top: 12px; }

/* The top line: sections on one side, languages on the other. */
.bar {
  max-width: var(--measure);
  margin: 0 auto;
  padding-block: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
}
.bar nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.bar a { text-decoration: none; color: var(--text-secondary); }
.bar a:hover { color: var(--accent); }
.bar a[aria-current] { color: var(--text-primary); font-weight: 600; }

.mark { display: block; width: min(300px, 78%); margin: 28px auto 8px; }
.home .mark { width: min(420px, 92%); margin-top: 36px; }

main { max-width: var(--measure); margin: 0 auto; }

h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(30px, 6vw, 38px); margin: 32px 0 6px; }
h2 { font-size: 23px; margin: 44px 0 10px; }
h3 { font-size: 17px; font-weight: 600; line-height: 1.4; margin: 26px 0 4px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }
li::marker { color: var(--accent); }
strong { font-weight: 600; }

.updated { color: var(--text-secondary); font-size: 15px; margin-bottom: 24px; }
.lead { font-size: 19px; line-height: 1.55; }

/* One raised sheet per page at most: the summary of a policy, the contact. */
.sheet {
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 18px 22px 6px;
  margin: 8px 0 28px;
}
.sheet h2 { margin-top: 4px; font-size: 20px; }

.contents { columns: 2 14rem; column-gap: 32px; padding-left: 20px; }
.contents li { break-inside: avoid; }

/* The table of providers scrolls by itself on a phone, never the page. */
.table { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--hairline); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--hairline); }
th { background: var(--surface-raised); font-weight: 600; color: var(--text-secondary); }
tr:last-child td { border-bottom: 0; }

/* The home page: a title page with its frontispiece. */
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 4.4vw, 24px); text-align: center; color: var(--text-secondary); margin: 0 0 8px; text-wrap: balance; }
.frontispiece { width: min(440px, 100%); margin: 8px auto 24px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 8px 28px; margin: 8px 0 12px; }
.features h2 { font-size: 21px; margin: 18px 0 6px; }
.soon { text-align: center; color: var(--text-secondary); margin-top: 28px; }

footer {
  max-width: var(--measure);
  margin: 56px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  color: var(--text-secondary);
  font-size: 14px;
}
footer a { color: var(--text-secondary); }

@media (max-width: 480px) {
  body { padding-inline: 16px; font-size: 16px; }
  .sheet { padding-inline: 16px; }
  .lead { font-size: 18px; }
}
