/* Le site vigza.app : des pages à lire, dans l'identité de Vigza (le violet de l'app, les polices
   d'Apple). Claires ou sombres comme l'appareil ; aucune valeur qui ne vaille que dans l'une. */
:root {
  --bg: #f2f2f7;
  --surface: #ffffff;
  --label: #1c1c1e;
  --label-2: rgba(60, 60, 67, 0.82);
  --separator: rgba(60, 60, 67, 0.18);
  --accent: #8e3fd0;
  --accent-tint: rgba(142, 63, 208, 0.12);
  --draft: #a45c00;
  --draft-tint: rgba(255, 159, 10, 0.18);
  --sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --label: #ffffff;
    --label-2: rgba(235, 235, 245, 0.68);
    --separator: rgba(84, 84, 88, 0.6);
    --accent: #bf5af2;
    --accent-tint: rgba(191, 90, 242, 0.2);
    --draft: #ff9f0a;
    --draft-tint: rgba(255, 159, 10, 0.16);
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.top,
main,
footer {
  max-width: 720px;
  margin: 0 auto;
}
.top {
  padding-block: max(20px, env(safe-area-inset-top, 0px)) 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--label);
  text-decoration: none;
  font-family: var(--rounded);
  font-weight: 700;
  font-size: 20px;
}
.brand img {
  border-radius: 8px;
}
a {
  color: var(--accent);
}

.text {
  background: var(--surface);
  border-radius: 22px;
  padding: 24px 22px 28px;
  margin-block: 12px 24px;
}
.text h1 {
  font-family: var(--rounded);
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 8px;
  text-wrap: balance;
}
.text h2 {
  font-family: var(--rounded);
  font-size: 22px;
  line-height: 1.25;
  margin: 32px 0 8px;
  text-wrap: balance;
}
.text h3 {
  font-size: 18px;
  margin: 22px 0 6px;
}
.text p,
.text ul,
.text ol {
  margin: 0 0 12px;
  max-width: 65ch;
}
.text ul,
.text ol {
  padding-left: 22px;
}
.text li + li {
  margin-top: 6px;
}
.text h1 + p em {
  display: inline-block;
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  color: var(--draft);
  background: var(--draft-tint);
  border-radius: 999px;
  padding: 2px 12px;
}
.text code {
  font-size: 0.9em;
}
.table {
  overflow-x: auto;
  margin: 0 0 12px;
}
table {
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.4;
  min-width: 100%;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 9px 10px 9px 0;
  border-top: 1px solid var(--separator);
}
th {
  font-weight: 600;
}

details {
  border-top: 1px solid var(--separator);
  padding: 12px 0;
}
details:last-child {
  border-bottom: 1px solid var(--separator);
}
summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 24px;
}
/* Plus précis que `.text p`, sinon la réponse garderait sa marge. */
.text details p {
  margin: 8px 0 0;
  color: var(--label-2);
}

footer {
  padding-block: 8px max(32px, env(safe-area-inset-bottom, 0px));
  color: var(--label-2);
  font-size: 15px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-bottom: 8px;
}
footer nav a {
  display: inline-block;
  padding-block: 10px;
}
footer nav a[aria-current="page"] {
  color: var(--label);
  text-decoration: none;
  font-weight: 600;
}
footer .contact {
  margin: 0;
}

.home {
  text-align: center;
  padding: 56px 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.home .logo {
  border-radius: 22px;
}
.home h1 {
  font-family: var(--rounded);
  font-size: 40px;
  margin: 8px 0 0;
}
.home .tagline {
  font-size: 19px;
  max-width: 30ch;
  margin: 0;
}
.home .soon {
  margin: 0;
  color: var(--label-2);
}
.links {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 340px;
}
.links a {
  display: block;
  background: var(--surface);
  border-radius: 14px;
  padding: 13px 16px;
  text-decoration: none;
  font-weight: 600;
}
