/* Every page of the site. Colours are the app's, picked from the sore emas room (design/interface/NOTES.md, Colour):
   paper, warm brown ink, sun for the one action. Titles in Bricolage Grotesque (bundled, OFL); body in system fonts.
   Follows the system light/dark setting. */
@font-face {
  font-family: "Brico";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}

:root {
  --bg: #fff4de;
  --surface: #fffaf0;
  --text: #2b1b12;
  --muted: #574032;
  --border: #e6d3b0;
  --lip: #d2b07c;
  --accent: #9a3f1f;
  --sun: #ffb52e;
  --on-sun: #2b1b12;
  --summary: #fde6b8;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1410;
    --surface: #2a1e17;
    --text: #fff4de;
    --muted: #d9c3a5;
    --border: #45332a;
    --lip: #8a6a3e;
    --accent: #ffc56b;
    --summary: #3a2a1c;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

header.wrap {
  padding-top: 28px;
  padding-bottom: 4px;
}

.brand {
  font-family: "Brico", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
}

nav.lang {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0 0;
  font-size: 15px;
}

h1,
h2,
h3 {
  font-family: "Brico", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
}

h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 20px 0 4px;
}

h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 36px 0 8px;
}

p,
li,
td {
  overflow-wrap: anywhere;
}

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

code {
  font-size: 0.9em;
}

.updated {
  color: var(--muted);
  margin: 0;
}

.summary {
  background: var(--summary);
  border-radius: 18px;
  padding: 16px 20px;
  margin: 24px 0;
}

.summary ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

hr.lang-split {
  border: 0;
  border-top: 2px dashed var(--border);
  margin: 64px 0 8px;
}

.table-scroll {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

footer,
footer.wrap {
  margin-top: 56px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}

/* Home page */
.hero {
  text-align: center;
  padding-top: 12vh;
  padding-bottom: 8px;
}

.app-icon {
  display: block;
  margin: 0 auto 16px;
  border-radius: 22px;
}

.hero h1 {
  font-size: clamp(40px, 11vw, 64px);
  line-height: 1.05;
  margin: 0;
}

.ribbon {
  display: inline-block;
  margin: 10px 0 0;
  padding: 2px 14px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--on-sun);
  font-family: "Brico", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: 17px;
}

.promise {
  font-size: 19px;
  max-width: 30em;
  margin: 24px auto 0;
}

.promise-en {
  color: var(--muted);
  font-size: 16px;
  max-width: 30em;
  margin: 8px auto 0;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.facts li {
  background: var(--surface);
  border: 2px solid var(--lip);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 15px;
  font-weight: 600;
}

.cta {
  margin: 32px 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 24px;
  border-radius: 16px;
  background: var(--sun);
  color: var(--on-sun);
  box-shadow: 0 4px 0 var(--lip);
  font-family: "Brico", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
}

.center {
  text-align: center;
  padding-top: 18vh;
}
