/* Melodiorama's site (PLAN A164). One file, no external fonts, no images but the icon.
   The colours are the app's dressing (docs/ART-STATUS.md "Dressing (M24)"): the day panel #FFFCF8 with ink #3E3762
   and quiet #544D74; meadow #C6DE9C; warm #F6C27A; the launch plate #C1B5C1; the icon's sky #ADB3E4 to #F8D0A0.
   At night (prefers-color-scheme: dark) the dusk panel #1A1C48 with ink #F4F1FF and quiet #C3BEE3. */

:root {
  --sky-top: #adb3e4;
  --sky-bottom: #f8d0a0;
  --page: #f6f1ea;
  --panel: #fffcf8;
  --ink: #3e3762;
  --quiet: #544d74;
  --link: #3e3762;
  --line: rgba(62, 55, 98, 0.14);
  --meadow: #c6de9c;
  --warm: #f6c27a;
  --shadow: rgba(70, 60, 110, 0.18);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sky-top: #1a1f4e;
    --sky-bottom: #4a3b74;
    --page: #14163c;
    --panel: #1a1c48;
    --ink: #f4f1ff;
    --quiet: #c3bee3;
    --link: #f4f1ff;
    --line: rgba(244, 241, 255, 0.16);
    --meadow: #a9cc7e;
    --warm: #f2b160;
    --shadow: rgba(5, 6, 30, 0.45);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page) linear-gradient(180deg, var(--sky-top) 0, var(--sky-bottom) 26rem, var(--page) 40rem) no-repeat;
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1875rem; /* 19 pt, the app's body */
  line-height: 1.55;
}

a { color: var(--link); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.14em; }
a:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--panel); padding: 0.5rem 1rem; border-radius: 12px; }
.skip:focus { left: 1rem; z-index: 2; }

/* The bar at the top */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1rem 1rem 0;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.25rem; text-decoration: none; margin-right: auto; }
.brand img { border-radius: 10px; }
.pages, .langs { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.pages a, .langs a {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9375rem; /* 15, the app's small */
  font-weight: 600;
}
.pages a[aria-current="page"] { background: var(--meadow); color: #3e3762; }
.langs a { color: var(--quiet); }
.langs a[aria-current="true"] { color: var(--ink); background: var(--line); }

/* The page */
main { max-width: 46rem; margin: 0 auto; padding: 1rem; }

.hero { text-align: center; padding: 2rem 0 1rem; }
.hero img { border-radius: 28px; box-shadow: 0 6px 24px var(--shadow); }
.hero h1 { font-size: 2.5rem; margin: 1rem 0 0.25rem; letter-spacing: 0.01em; }
.subtitle { margin: 0; font-size: 1.375rem; font-weight: 600; color: var(--quiet); }
.lead { max-width: 32rem; margin: 1.25rem auto 0; font-size: 1.25rem; }

.prose {
  background: var(--panel);
  border-radius: 32px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 6px 24px var(--shadow);
  margin: 1rem 0 2rem;
}
@media (min-width: 40rem) { .prose { padding: 2rem 2.5rem; } }

.prose h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 0.75rem; }
.prose h2 { font-size: 1.25rem; line-height: 1.3; margin: 1.75rem 0 0.5rem; }
.prose p, .prose ul, .prose dl { margin: 0 0 0.9rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin: 0.3rem 0; }
.prose li::marker { color: var(--meadow); }
.updated { color: var(--quiet); font-size: 0.9375rem; }
.more { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--quiet); }

.faq { border-top: 1px solid var(--line); }
.faq:first-of-type { margin-top: 1.25rem; }

.contact {
  margin-top: 2rem;
  padding: 1.25rem;
  border-radius: 22px;
  background: var(--line);
}
.contact h2 { margin-top: 0; }
.contact dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0; }
.contact dt { font-weight: 600; color: var(--quiet); }
.contact dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 26rem) {
  .contact dl { grid-template-columns: 1fr; }
  .contact dd { margin-bottom: 0.5rem; }
}

/* The root page: the five languages */
.choose, .notfound { list-style: none; padding: 0; margin: 1rem auto 3rem; max-width: 28rem; display: grid; gap: 0.75rem; }
.choose a {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 4px 16px var(--shadow);
  text-decoration: none;
}
.choose a:hover { outline: 3px solid var(--meadow); }
.choose .lang { font-weight: 700; font-size: 1.25rem; }
.choose .sub { color: var(--quiet); font-size: 1rem; }
.notfound li { background: var(--panel); border-radius: 22px; padding: 1rem 1.25rem; }
.notfound strong { display: block; }

footer { max-width: 46rem; margin: 0 auto; padding: 0 1rem 2rem; text-align: center; color: var(--quiet); font-size: 0.9375rem; }
footer a { color: var(--quiet); }

@media (prefers-reduced-motion: no-preference) {
  .choose a { transition: transform 0.15s ease; }
  .choose a:active { transform: scale(0.98); }
}
