/* Espace artistes Okonowax. Une pochette grise, un disque, une étiquette rouge. */
:root {
  --fond: #e7eaee;
  --encre: #1c1f24;
  --doux: #5b626d;
  --trait: #c9ced6;
  --vinyle: #1c1f24;
  --sillon: #aeb6c1;
  --etiquette: #d7263d;
  --sur-etiquette: #ffffff;
  --succes: #1f6f4a;
  --alerte: #b3261e;
  --s0: #2b3038;
  --s1: #d7263d;
  --s2: #6b7a95;
  --s3: #a9b3c1;
  --s4: #c29a2a;
  --s5: #8a9099;
  --titre: Futura, "Futura PT", "Avenir Next", "Century Gothic", "Trebuchet MS", sans-serif;
  --texte: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #16191d;
    --encre: #e6e8eb;
    --doux: #9aa1ab;
    --trait: #2c3138;
    --vinyle: #060708;
    --sillon: #7d8794;
    --succes: #6cc59a;
    --alerte: #ff8a80;
    --s0: #e6e8eb;
    --s2: #8696b2;
    --s3: #5d6878;
    --s5: #6b717a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 1rem/1.55 var(--texte);
}
main, .tete { max-width: 44rem; margin: 0 auto; padding: 0 1rem; }
main { padding-bottom: 4rem; }

.tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.marque {
  font: 500 1.15rem/1 var(--titre);
  letter-spacing: .02em;
  color: var(--encre);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
}
.marque::before { content: ""; width: .8rem; height: .8rem; border-radius: 50%; background: var(--etiquette); box-shadow: 0 0 0 .22rem var(--vinyle); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; font-size: .92rem; white-space: nowrap; }
nav button.lien { font-size: inherit; }
nav form { margin: 0; }

h1 { font: 500 clamp(2rem, 7vw, 2.75rem)/1.1 var(--titre); margin: 1.5rem 0 1.25rem; letter-spacing: -.01em; }
h2 { font: 500 1.2rem/1.3 var(--titre); margin: 0 0 .75rem; }
p { margin: 0 0 1rem; max-width: 34rem; }
a { color: inherit; text-underline-offset: .18em; }

button {
  font: 600 1rem/1 var(--texte);
  background: var(--encre); color: var(--fond);
  border: 0; border-radius: 999px; padding: .85rem 1.3rem; cursor: pointer;
}
button.lien { background: none; color: var(--doux); padding: 0; font-weight: 400; text-decoration: underline; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--etiquette); outline-offset: 3px; }
input[type=email], input[type=file] {
  font: inherit; color: inherit; width: 100%;
  background: transparent; border: 1px solid var(--trait); border-radius: .5rem; padding: .75rem .85rem;
}
label { display: block; font-weight: 600; margin-bottom: .4rem; }

.accueil { padding-top: 2rem; }
.connexion, .depot { display: grid; gap: .9rem; max-width: 24rem; margin-top: 1.5rem; }

/* Le disque */
.ouverture { display: grid; gap: 1.5rem; align-items: center; margin-bottom: 2.5rem; }
@media (min-width: 40rem) { .ouverture { grid-template-columns: 17rem 1fr; } }
.disque { width: min(78vw, 17rem); height: auto; display: block; }
.vide .disque { width: min(60vw, 12rem); margin-bottom: 1.25rem; opacity: .9; }
.vinyle { fill: var(--vinyle); }
.sillon { fill: none; stroke: var(--sillon); }
.etiquette { fill: var(--etiquette); }
.trou { fill: var(--fond); }
.total { fill: var(--sur-etiquette); font-family: var(--titre); font-weight: 500; font-variant-numeric: tabular-nums; }
.unite { fill: var(--sur-etiquette); font: 7.5px var(--texte); opacity: .85; }
.periode { font-size: 1.1rem; }
.fans { font-size: 1.05rem; }
.fans strong { font: 500 1.6rem/1 var(--titre); margin-right: .2rem; }
.fans span, .note { color: var(--doux); font-size: .92rem; }
.fans span { display: block; margin-top: .2rem; }

/* Sections */
.bloc { margin-top: 2.5rem; }
.barres { width: 100%; height: auto; display: block; overflow: visible; }
.barres .base { stroke: var(--trait); }
.barres .mois, .barres .valeur { fill: var(--doux); font-family: var(--texte); }
.barres .valeur { fill: var(--encre); font-variant-numeric: tabular-nums; }
.s0 { fill: var(--s0); background: var(--s0); }
.s1 { fill: var(--s1); background: var(--s1); }
.s2 { fill: var(--s2); background: var(--s2); }
.s3 { fill: var(--s3); background: var(--s3); }
.s4 { fill: var(--s4); background: var(--s4); }
.s5 { fill: var(--s5); background: var(--s5); }
.legende { list-style: none; padding: 0; margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; color: var(--doux); font-size: .9rem; }
.pastille { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .4rem; vertical-align: -.05rem; }

table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--trait); vertical-align: middle; }
thead th { color: var(--doux); font-weight: 400; font-size: .88rem; }
tbody th { font-weight: 400; padding-right: 1rem; overflow-wrap: anywhere; }
.nombre { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: .75rem; }
.barre { width: 32%; padding-left: 1rem; }
.part { width: 100%; height: .4rem; display: block; }
.part .fond { fill: var(--trait); }
.part .plein { fill: var(--encre); }

.succes, .alerte { border-left: 4px solid; padding: .6rem .9rem; max-width: none; }
.succes { color: var(--succes); }
.alerte { color: var(--alerte); }
.comptes { padding: 0; list-style: none; }
.comptes li { padding: .5rem 0; border-bottom: 1px solid var(--trait); overflow-wrap: anywhere; }
.comptes span { color: var(--doux); font-size: .9rem; display: block; }

@media (prefers-reduced-motion: no-preference) {
  .ouverture .disque { animation: pose .9s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes pose { from { transform: rotate(-80deg) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
}
