/* The look of every page on the hosting site. Colours are the apps' palette (Palette.kt). */

@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-700-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --background: #fbf8f2;   /* Oat98 */
  --surface: #f1ede2;      /* Oat94 */
  --on-background: #1b1c17; /* Oat10 */
  --muted: #47473f;        /* Oat30 */
  --outline: #c9c7ba;      /* Oat80 */
  --primary: #4f6f52;      /* Sage40 */
  --logo-e: #4f6f52;
  --logo-jar: #a0583c;
  --logo-lid: #e0a93b;
  --logo-shelf: #e0a93b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #13140f;   /* Oat6 */
    --surface: #1f201b;      /* Oat12 */
    --on-background: #e5e2d6; /* Oat90 */
    --muted: #c9c7ba;        /* Oat80 */
    --outline: #47473f;      /* Oat30 */
    --primary: #b4cfb0;      /* Sage80 */
    --logo-e: #fbf8f2;
    --logo-jar: #ffdbce;
    --logo-lid: #d0ebcb;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--on-background);
  font-family: "Atkinson Hyperlegible Next", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-background);
  text-decoration: none;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.brand svg { width: 44px; height: auto; }
.logo-e { stroke: var(--logo-e); }
.logo-shelf { stroke: var(--logo-shelf); }
.logo-jar { fill: var(--logo-jar); }
.logo-lid { fill: var(--logo-lid); }

h1, h2 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.25rem; margin: 0 0 16px; }
h2 { font-size: 1.375rem; margin: 40px 0 8px; }

p, ul { margin: 0 0 16px; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 8px; }

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

.lead { font-size: 1.1875rem; color: var(--muted); }

.lang {
  font-weight: 700;
  padding: 8px 14px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.note p:last-child { margin-bottom: 0; }

footer {
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid var(--outline);
  color: var(--muted);
  font-size: 0.9375rem;
}

footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; }

.centered {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.centered .brand svg { width: 96px; }
.centered .brand { flex-direction: column; font-size: 2.5rem; gap: 12px; }
.centered footer nav { justify-content: center; }
